/* ============================================ */
/* AIRA - Enhanced Modern AI Theme */
/* ============================================ */

/* Design System - Modern Professional Theme */
:root {
    /* Primary Colors - Vibrant Blues */
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-lighter: #60a5fa;
    --color-accent: #1d4ed8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%);
    --gradient-dark: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    
    /* Neutral Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    
    /* Text Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    
    /* Border & Divider */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --spacing-unit: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    font-size: 16px;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/* ENHANCED NAVBAR */
/* ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 20px rgba(91, 141, 239, 0.12);
    border-bottom: 1px solid rgba(91, 141, 239, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 38px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(91, 141, 239, 0));
}

.logo:hover img {
    transform: rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(91, 141, 239, 0.3));
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-menu a.active::before {
    width: 100%;
}
.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.mobile-menu-btn:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-secondary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--color-bg-tertiary);
    border-top: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    display: flex;
    max-height: 500px;
    opacity: 1;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu.active a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

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

.mobile-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.mobile-menu a:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-secondary);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        position: relative;
    }
    
    .nav-demo-btn {
        display: inline-flex !important;
        margin-left: auto;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}
.nav-demo-btn {
    display: none;
}


/* ============================================ */
/* ENHANCED BUTTONS */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

a.btn-primary {
    color: #ffffff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

a.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

a.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================ */
/* ENHANCED HOME SECTION */
/* ============================================ */

#home {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 30%, #f0f9ff 60%, #ffffff 100%);
    background-size: 400% 400%;
    animation: gradientShiftBackground 15s ease infinite;
    text-align: center;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


/* Animated flowing gradient overlay - MORE VISIBLE */
#home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.33) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(191, 219, 254, 0.3) 0%, transparent 50%);
    animation: liquidFlow 10s ease-in-out infinite;
    pointer-events: none;
}

/* Floating cloud-like orbs - MORE VISIBLE */
#home::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: 
        radial-gradient(ellipse at center, rgba(96, 165, 250, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 30%, rgba(147, 197, 253, 0.64) 0%, transparent 60%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: floatOrb 5s ease-in-out infinite;
    filter: blur(60px);
    pointer-events: none;
}

#home .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* CLOUD EFFECTS - MORE VISIBLE */
#home .container::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    width: 400px;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.55) 0%, rgba(147, 197, 253, 0.4) 35%, transparent 65%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 10s ease-in-out infinite;
}

#home h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    overflow: visible;
    padding-bottom: 0.3rem;
    position: relative;
    z-index: 2;
}

#home h1 span {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    font-weight: 700;
    display: inline-block;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both,
               gradientFlow 4s ease infinite;
    overflow: visible;
    padding-bottom: 0.5rem;
    position: relative;
}

/* Add shimmer effect */
#home h1 span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer 3s infinite ease-in-out;
}

#home p {
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem;
    margin: 3rem 0;
    padding: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
    min-width: 280px;
    width: 100%;
    max-width: 320px;
    height: 180px;
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0rem;
    letter-spacing: -0.02em;
    animation: gradientFlow 3s ease infinite;
    position: relative;
}

/* Glowing effect on hover */
.stat-item:hover h2 {
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn-primary {
    animation: pulseGlow 2s ease-in-out infinite;
}

.cta-buttons .btn-primary:hover {
    animation: none;
}

@media (min-width: 768px) {
    #home h1 {
        font-size: 4.5rem;
    }
    #home h1 span {
        font-size: 4.5rem;
    }
    #home p {
        font-size: 1.25rem;
    }
}

@media (max-width: 1440px) {
    #home .container {
        max-width: 90%;
    }
}

@media (max-width: 1024px) {
    #home .container {
        max-width: 100%;
        padding: 0 3rem;
    }
}

/* ============================================ */
/* ENHANCED ABOUT SECTION */
/* ============================================ */

#whyaira {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-secondary) 100%);
    position: relative;
}


#whyaira .section-label {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 2rem;
}

#whyaira h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 3.5rem;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    #whyaira h2 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 640px) {
    #whyaira .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ============================================ */
/* ENHANCED FEATURES SECTION */
/* ============================================ */

#features {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.section-header-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 0 64px 0;
}

.section-header {
    max-width: 800px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.feature-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    height: 100%;
    position: relative;
    overflow: hidden;
}


.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin-bottom: 1.5rem;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.feature-card:hover .feature-divider {
    width: 80px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    stroke: var(--color-primary);
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.875rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.feature-readmore {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    align-self: flex-start;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-readmore::after {
    content: '→';
    transition: transform 0.3s ease;
}

.feature-card:hover,
.feature-card:focus {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.feature-card:hover .feature-readmore,
.feature-card:focus .feature-readmore {
    opacity: 1;
    transform: translateX(0);
}

.feature-card:hover .feature-readmore::after {
    transform: translateX(4px);
}

.feature-card:hover .feature-icon svg,
.feature-card:focus .feature-icon svg {
    stroke: var(--color-accent);
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

/* Icon pulse on hover
.feature-card:hover .feature-icon {
    animation: iconPulse 1s ease-in-out infinite;
} */

/* Ripple effect container */
.feature-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

/* Card content reveal animation */
.feature-card-content {
    opacity: 0;
    transform: translateY(20px);
    animation: cardContentReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-card:nth-child(1) .feature-card-content { animation-delay: 0.1s; }
.feature-card:nth-child(2) .feature-card-content { animation-delay: 0.2s; }
.feature-card:nth-child(3) .feature-card-content { animation-delay: 0.3s; }
.feature-card:nth-child(4) .feature-card-content { animation-delay: 0.4s; }
.feature-card:nth-child(5) .feature-card-content { animation-delay: 0.5s; }
.feature-card:nth-child(6) .feature-card-content { animation-delay: 0.6s; }
.feature-card:nth-child(7) .feature-card-content { animation-delay: 0.7s; }
.feature-card:nth-child(8) .feature-card-content { animation-delay: 0.8s; }
.feature-card:nth-child(9) .feature-card-content { animation-delay: 0.9s; }
.feature-card:nth-child(10) .feature-card-content { animation-delay: 1s; }

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================ */
/* ENHANCED MODAL */
/* ============================================ */

.feature-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.feature-modal {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    border: none;
    background: var(--color-bg-secondary);
    cursor: pointer;
    color: var(--color-text-tertiary);
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(90deg);
}

#modal-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    padding-right: 3rem;
    letter-spacing: -0.02em;
}

#modal-desc {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-bullets {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.modal-bullets div {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-radius: 0.75rem;
    border-left: 3px solid var(--color-primary);
    transition: all 0.2s ease;
}

.modal-bullets div:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.modal-bullets span {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.modal-bullets p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================ */
/* ENHANCED MISSION, STORY, WHY CHOOSE, APPROACH SECTIONS */
/* ============================================ */

#mission,
#story,
#why-choose,
#approach {
    padding: 100px 0;
}

#mission {
    background: var(--gradient-hero);
}

#story {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-secondary) 100%);
}

#story .grid > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#story .bg-white {
    height: 100%;
}

#why-choose {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, #ffffff 100%);
}

#approach {
    background: var(--gradient-hero);
}

/* Enhanced cards for these sections */
#mission .grid > div,
#why-choose .grid > div {
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

#mission .grid > div:hover,
#why-choose .grid > div:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

#approach .space-y-8 > div {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#approach .space-y-8 > div::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

#approach .space-y-8 > div:hover::before {
    width: 8px;
}

#approach .space-y-8 > div:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

/* ============================================ */
/* ENHANCED CONTACT SECTION */
/* ============================================ */

#contact {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-secondary) 100%);
}

#contact input,
#contact textarea {
    transition: all 0.3s ease;
    border: 2px solid var(--color-border);
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

#contact button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#contact button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#contact button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================ */
/* FORM VALIDATION STYLES */
/* ============================================ */

/* ============================================ */
/* ENHANCED FORM STYLES - PHASE 5 */
/* ============================================ */

/* Floating Label Container */
.form-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.form-input {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    background: #FAFBFC;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-label {
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    color: var(--color-text-tertiary);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left top;
    background: transparent;
    padding: 0 0.25rem;
}
/* Floating label animation when focused or has value */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: 0.4rem;
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Glowing border on focus */
.form-input:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1),
                0 0 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

/* Valid state with checkmark */
.form-input.valid {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.02);
    padding-right: 3rem;
}

.form-input.valid ~ .input-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) scale(0) rotate(-180deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-icon svg {
    width: 20px;
    height: 20px;
    stroke: #10b981;
}

/* Invalid state with shake animation */
.form-input.invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.02);
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Character counter for textarea */
.char-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.danger {
    color: #ef4444;
    font-weight: 600;
}

/* Enhanced textarea */
textarea.form-input {
    min-height: 120px;
    max-height: 200px;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    resize: none;
    overflow-y: auto;
}

/* Custom scrollbar for textarea */
textarea.form-input::-webkit-scrollbar {
    width: 8px;
}

textarea.form-input::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

textarea.form-input::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

textarea.form-input::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Enhanced error message with slide-in animation */
.error-message {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    font-weight: 500;
    animation: slideInError 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-message.show {
    display: flex;
}

.error-message::before {
    content: '⚠';
    font-size: 1rem;
}

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

/* Enhanced success message with celebration */
.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid #10b981;
    color: #065f46;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '✓';
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    animation: checkmarkPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes successBounce {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Submit button enhancement */
.form-submit-btn {
    position: relative;
    overflow: hidden;
}

.form-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.form-submit-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Loading spinner for submit button */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    left: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================ */
/* ENHANCED FOOTER */
/* ============================================ */

footer {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, #ffffff 100%);
    color: var(--color-text-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 2.5rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}
/* ============================================ */
/* CAROUSEL DOTS */
/* ============================================ */

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: var(--color-primary-lighter);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 5px;
    border-color: var(--color-primary);
}

/* Utility Classes */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-white {
    --tw-gradient-from: #ffffff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-gray-50 {
    --tw-gradient-to: #f9fafb;
}

/* ============================================ */
/* WHY CHOOSE CAROUSEL */
/* ============================================ */

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:hover svg {
    stroke: white;
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

.carousel-arrow svg {
    stroke: var(--color-primary);
    transition: stroke 0.3s ease;
}

@media (max-width: 768px) {
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: -10px;
    }
    
    .carousel-next {
        right: -10px;
    }
}


/* ============================================ */
/* ENHANCED CONTACT CARDS */
/* ============================================ */

.contact-email-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(91, 141, 239, 0.08);
}

.contact-email-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(91, 141, 239, 0.15);
    border-color: var(--color-primary);
}

.contact-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 197, 253, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-email-card:hover .contact-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.contact-email-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.contact-email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.contact-email-link:hover::after {
    width: 100%;
}

.contact-offices-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(91, 141, 239, 0.06);
    transition: all 0.3s ease;
}

.contact-offices-card:hover {
    box-shadow: 0 8px 24px rgba(91, 141, 239, 0.12);
}

.office-item {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(249, 250, 251, 0.5);
    transition: all 0.3s ease;
}

.office-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(4px);
}


/* Contact Section Layout Fix */
#contact .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

#contact .bg-white {
    height: auto;
}

#contact .grid > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.contact-offices-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    #contact .grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* ENHANCED CTA BOX */
/* ============================================ */

.cta-box-enhanced {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(147, 197, 253, 0.25) 50%, rgba(191, 219, 254, 0.15) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    transition: all 0.4s ease;
}

.cta-box-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.cta-box-enhanced::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

.cta-box-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.cta-box-enhanced > div {
    position: relative;
    z-index: 1;
}

.cta-box-enhanced h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.cta-box-enhanced p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

.cta-box-enhanced .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-box-enhanced .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ============================================ */
/* HORIZONTAL TIMELINE STYLES - MODERN SEQUENTIAL */
/* ============================================ */

.timeline-horizontal-wrapper {
    position: relative;
    padding: 2rem 0 3rem 0;
    overflow-x: auto;
    overflow-y: visible;
}

.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    min-width: 800px;
    padding: 0 2rem;
}


/* Base line (gray background) */
.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(12.5% + 24px);
    width: calc(75% - 48px);
    height: 3px;
    background: var(--color-border);
    z-index: 0;
    border-radius: 2px;
}

/* Segment 1: Dot 1 to Dot 2 */
.timeline-horizontal::after {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(12.5% + 24px);
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
    border-radius: 2px;
    transition: none;
}

.timeline-horizontal.animate::after {
    animation: lineSegment1 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes lineSegment1 {
    to { width: calc(25% - 32px); }
}

/* Segment 2: Dot 2 to Dot 3 */
.timeline-h-line-2 {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(37.5% + 16px);
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
    border-radius: 2px;
    animation: lineSegment2 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

@keyframes lineSegment2 {
    to { width: calc(25% - 32px); }
}

/* Segment 3: Dot 3 to Dot 4 */
.timeline-h-line-3 {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(62.5% + 8px);
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
    border-radius: 2px;
    animation: lineSegment3 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

@keyframes lineSegment3 {
    to { width: calc(25% - 36px); }
}

.timeline-h-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-h-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Item entrance delays - NOT USED ANYMORE */
.timeline-h-item:nth-child(1) { transition-delay: 0s; }
.timeline-h-item:nth-child(2) { transition-delay: 0s; }
.timeline-h-item:nth-child(3) { transition-delay: 0s; }
.timeline-h-item:nth-child(4) { transition-delay: 0s; }

.timeline-h-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--color-border);
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dot animations - sequential beats */
.timeline-h-item:nth-child(1).visible .timeline-h-dot {
    border-color: var(--color-primary);
    animation: dotBeat 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.timeline-h-item:nth-child(2).visible .timeline-h-dot {
    border-color: var(--color-primary);
    animation: dotBeat 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s;
}

.timeline-h-item:nth-child(3).visible .timeline-h-dot {
    border-color: var(--color-primary);
    animation: dotBeat 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.5s;
}

@keyframes dotBeat {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2);
    }
}

.timeline-h-dot-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    transition: transform 0.3s ease;
}

/* Inner dot appears when line reaches */
.timeline-h-item:nth-child(1).visible .timeline-h-dot-inner {
    animation: dotInnerAppear 0.3s ease 0.2s forwards;
}

.timeline-h-item:nth-child(2).visible .timeline-h-dot-inner {
    animation: dotInnerAppear 0.3s ease 0.9s forwards;
}

.timeline-h-item:nth-child(3).visible .timeline-h-dot-inner {
    animation: dotInnerAppear 0.3s ease 1.5s forwards;
}

.timeline-h-item:nth-child(4).visible .timeline-h-dot-inner {
    animation: dotInnerAppear 0.3s ease 2.1s forwards;
}

@keyframes dotInnerAppear {
    to { transform: translate(-50%, -50%) scale(1); }
}

/* Current milestone - continuous pulse */
.timeline-h-dot-current {
    background: var(--color-primary);
    border-width: 6px;
    border-color: var(--color-primary);
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
}

.timeline-h-item:nth-child(4).visible .timeline-h-dot-current {
    animation: dotBeatContinuous 2s ease-in-out 2.1s infinite;
}

@keyframes dotBeatContinuous {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
}

.timeline-h-dot-current .timeline-h-dot-inner {
    width: 8px;
    height: 8px;
    background: white;
}

/* Pulse ring for current dot */
.timeline-h-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0;
    animation: pulseFade 2s ease-in-out 3.5s infinite;
}

@keyframes pulseFade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.timeline-h-content {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* Content card animations - appear when line reaches dot */
.timeline-h-item:nth-child(1).visible .timeline-h-content {
    animation: contentAppear 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.timeline-h-item:nth-child(2).visible .timeline-h-content {
    animation: contentAppear 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.timeline-h-item:nth-child(3).visible .timeline-h-content {
    animation: contentAppear 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards;
}

.timeline-h-item:nth-child(4).visible .timeline-h-content {
    animation: contentAppear 0.7s cubic-bezier(0.4, 0, 0.2, 1) 2.4s forwards;
}

@keyframes contentAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timeline-h-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 0px;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    transition: none;
}

.timeline-h-item:nth-child(1).visible .timeline-h-content::before {
    width: 0%;
}

.timeline-h-item:nth-child(2).visible .timeline-h-content::before {
    width: 0%;
}

.timeline-h-item:nth-child(3).visible .timeline-h-content::before {
    width: 0%;
}

.timeline-h-item:nth-child(4).visible .timeline-h-content::before {
    width: 0%;
}

.timeline-h-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    border-color: var(--color-primary);
}

.timeline-h-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.timeline-h-badge-current {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.timeline-h-content:hover .timeline-h-badge {
    transform: scale(1.05);
}

.timeline-h-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.timeline-h-desc {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.875rem;
}

.timeline-h-content-current {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, white 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

/* Responsive Timeline */
@media (max-width: 1024px) {
    .timeline-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
        min-width: auto;
    }
    
    .timeline-horizontal::before,
    .timeline-horizontal::after {
        display: none;
    }
    
    .timeline-h-line-2,
    .timeline-h-line-3 {
        display: none;
    }
}

@media (max-width: 640px) {
    .timeline-horizontal {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .timeline-h-content {
        min-height: 140px;
        padding: 1.25rem;
    }
    
    .timeline-h-title {
        font-size: 1rem;
    }
    
    .timeline-h-desc {
        font-size: 0.8125rem;
    }
}

/* ============================================ */
/* MODERN FOOTER */
/* ============================================ */

.modern-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    padding: 40px 0 20px;
    border-top: none;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.footer-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.footer-tagline {
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    max-width: 280px;
    font-size: 0.875rem; 
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-list li:first-child {
    grid-column: 1 / -1; /* Email takes full width */
}

/* Locations side by side */
.footer-locations-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    grid-column: 1 / -1;
    margin-top: 1rem;
    min-width: 0; /* Prevents grid overflow */
}

.footer-location-item p {
    min-width: max-content; /* Prevents premature line breaks */
}

.footer-location-item {
    display: flex;
    flex-direction: column;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .footer-locations-wrapper {
        grid-template-columns: 1fr;
    }
}

.footer-contact-list span,
.footer-contact-list a {
    flex: 1;
}

.footer-contact-list a,
.footer-location-item p {
    word-break: normal;
    overflow-wrap: normal;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-modern p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-made-with {
    color: #64748b;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-modern {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem; 
    }
}

/* ============================================ */
/* MOBILE OPTIMIZATIONS */
/* ============================================ */

@media (max-width: 640px) {
    .stat-item {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 1.5rem 1rem;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
    
    #home h1 {
        font-size: 2.25rem;
    }
    
    #home h1 span {
        font-size: 2.5rem;
    }
    
    .feature-card {
        min-height: 280px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-prev {
        left: -5px;
    }
    
    .carousel-next {
        right: -5px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-box-enhanced {
        padding: 2rem 1.5rem;
    }
    
    .cta-box-enhanced h3 {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-100px, 100px) scale(1.1);
    }
    66% {
        transform: translate(50px, -50px) scale(0.9);
    }
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3),
                    0 0 20px rgba(37, 99, 235, 0.4);
    }
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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


@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* New flowing liquid animation */
@keyframes liquidFlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translate(10%, -10%) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translate(-5%, 5%) rotate(-3deg);
        opacity: 0.9;
    }
    75% {
        transform: translate(8%, -8%) rotate(4deg);
        opacity: 0.95;
    }
}

/* Enhanced gradient background shift */
@keyframes gradientShiftBackground {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================ */
/* ENHANCED CTA ANIMATION */
/* ============================================ */

.cta-enhanced {
    animation: ctaFloat 6s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cta-enhanced:hover {
    animation: none;
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4) !important;
}

/* ============================================ */
/* SCROLL ANIMATION UTILITIES */
/* ============================================ */

/* Initial hidden state for scroll animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.scroll-scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay classes for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================ */
/* PHASE 6: ENHANCED MISSION & STORY SECTIONS */
/* ============================================ */


/* Enhanced Mission Cards */
.mission-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-card:hover::before {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mission-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover .mission-icon {
    transform: scale(1.1) translateY(-5px);
}

/* Pattern Overlay for Story Section */
#story {
    position: relative;
}

#story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Timeline Badge */
.timeline-badge {
    position: relative;
    overflow: hidden;
}

.timeline-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.timeline-item:hover .timeline-badge::after {
    width: 100%;
    height: 100%;
}

/* Lift Effect for Cards */
.lift-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.lift-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Icon Animation */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.mission-card:hover .mission-icon span {
    animation: iconFloat 2s ease-in-out infinite;
}

/* Approach Section Border Animation */
#approach .space-y-8 > div {
    position: relative;
    overflow: hidden;
}

#approach .space-y-8 > div::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0%;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#approach .space-y-8 > div:hover::after {
    height: 100%;
}

/* Number Badge Animation */
.approach-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

#approach .space-y-8 > div:hover .approach-number {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Story Grid Animation */
#story .grid {
    position: relative;
}

#story .grid > div {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#story .grid > div:first-child {
    transform: translateX(-30px);
    opacity: 0;
}

#story .grid > div:last-child {
    transform: translateX(30px);
    opacity: 0;
}

#story .grid.visible > div {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger Animation Delays */
#story .grid.visible > div:first-child {
    transition-delay: 0.1s;
}

#story .grid.visible > div:last-child {
    transition-delay: 0.3s;
}

/* ============================================ */
/* ADDITIONAL RESPONSIVE IMPROVEMENTS */
/* ============================================ */

@media (max-width: 1024px) {
    #home {
        padding: 120px 0 80px;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    #whyaira h2,
    #mission h2,
    #story h2,
    #why-choose h2,
    #approach h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #home {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    #home h1 {
        font-size: 2rem;
    }
    
    #home h1 span {
        font-size: 2.25rem;
    }
    
    #home p {
        font-size: 1rem;
    }
    
    .stats-container {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 100%;
        padding: 1.25rem;
        height: auto;
    }
    
    .stat-item h2 {
        font-size: 2.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .feature-modal {
        width: 95%;
        padding: 2rem 1.5rem;
    }
    
    #modal-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    #whyaira h2,
    #mission h2,
    #story h2,
    #why-choose h2,
    #approach h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        min-height: 260px;
    }
    
    #story .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-box-enhanced {
        padding: 2rem 1.5rem;
    }
    
    .cta-box-enhanced h3 {
        font-size: 1.5rem;
    }
    
    .cta-box-enhanced p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #home h1 {
        font-size: 1.75rem;
    }
    
    #home h1 span {
        font-size: 2rem;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}