/* ==========================================================================
   MAIN STYLES - Anand Shanker & Company
   Global styles, CSS variables, and page-specific styles
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES (Design Tokens)
   ========================================================================== */
:root {
    /* Brand Colors */
    --brand-primary: #0F3A7D;
    --brand-primary-dark: #0A2A5D;
    --brand-primary-light: #1a4a8f;
    --brand-primary-lighter: #2A5A9F;
    
    /* Text Colors */
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-accent: #F0F5FF;
    
    /* Border Colors */
    --border-light: #E5E5E5;
    --border-medium: #d1d5db;
    
    /* Status Colors */
    --success: #10b981;
    --error: #E53E3E;
    
    /* Spacing Scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-base: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    --spacing-4xl: 48px;
    --spacing-5xl: 60px;
    --spacing-6xl: 80px;
    
    /* Typography */
    --font-family: 'Segoe UI', 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 40px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed navbar */
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-primary);
    color: var(--text-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

p {
    margin-bottom: var(--spacing-base);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-dark);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-base);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: white;
}

.btn-white {
    background-color: var(--text-white);
    color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: var(--brand-primary);
    color: var(--text-white);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   LINK WITH ARROW
   ========================================================================== */
.link-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 16px;
}

.link-with-arrow:hover {
    gap: var(--spacing-md);
    color: var(--brand-primary-dark);
}

.link-with-arrow .icon-arrow-inline {
    transition: transform var(--transition-base);
}

.link-with-arrow:hover .icon-arrow-inline {
    transform: translateX(4px);
}
/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    width: 100%;
    min-height: 600px;
    background: linear-gradient(135deg, #0F3A7D 0%, #1a4a8f 100%);
    padding: 100px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 24px;
    border-radius: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.hero-title-line {
    display: block;
    margin-bottom: 15px;
}

.hero-title-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 30px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 20px;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
    padding: 60px 40px;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 600;
}

/* ==========================================================================
   EXPERTISE SECTION
   ========================================================================== */
.expertise-section {
    padding: 80px 40px;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 58, 125, 0.15);
    border-color: var(--brand-primary);
}

.home-clickable-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-clickable-card:hover,
.home-clickable-card:visited,
.home-clickable-card:focus {
    color: inherit;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   SCHEMES SECTION
   ========================================================================== */
.schemes-section {
    padding: 80px 40px;
    background: white;
}

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.scheme-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
}

.scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 58, 125, 0.15);
    border-color: var(--brand-primary);
}

.scheme-subsidy {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.scheme-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 15px;
    padding-right: 100px;
}

.scheme-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */
.values-section {
    padding: 80px 40px;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 58, 125, 0.15);
    border-color: var(--brand-primary);
}

.value-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.value-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.value-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #0F3A7D 0%, #1a4a8f 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .hero-section {
        min-height: 500px;
        padding: 80px 30px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-description {
        font-size: 18px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        min-height: 450px;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-title-highlight {
        padding: 8px 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .stats-section {
        padding: 40px 20px;
    }
    
    .stats-grid {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .expertise-section,
    .schemes-section,
    .values-section,
    .cta-section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .services-grid,
    .schemes-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .scheme-card,
    .value-card {
        padding: 25px;
    }
    
    .service-title,
    .scheme-title,
    .value-title {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */
.btn,
.service-card,
.scheme-card,
.value-card,
.stat-card {
    will-change: transform;
    transform: translateZ(0);
}

/* Smooth scrolling for iOS */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}
