/* =========================================
   1. VARIABLES & GLOBAL RESET
   ========================================= */
:root {
    /* Brand Colors */
    --primary-blue: #2563EB; /* Royal Indigo */
    --primary-dark: #111827; /* Carbon Black */
    --text-grey: #6B7280;
    --bg-light: #F9FAFB;
    
    /* Effects */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    --gradient-cyan: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--primary-dark);
    overflow-x: hidden;
}

.counter-value {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Optional: Add a subtle pulse to the primary metric */
.text-primary .counter-value {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}


/* Mobile Optimization */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    
    .display-1 {
        font-size: 2.8rem !important; /* Prevents title overlap on mobile */
    }

    .glass-card {
        padding: 2rem !important; /* Tighter padding for mobile */
    }

    .counter-value {
        font-size: 1.5rem !important; /* Responsive metrics */
    }
}


/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
/* Gradient Text (Blue/Violet) */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Bootstrap Button Override */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.btn-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

/* Glass Effect Utility */
.backdrop-blur {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.backdrop-blur:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.opacity-60 { opacity: 0.6; }
.ls-1 { letter-spacing: 1px; }

/* =========================================
   3. HERO SECTION (KEN BURNS ANIMATION)
   ========================================= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: kenBurns 18s infinite;
}

/* Slide Timing */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

@keyframes kenBurns {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    33% { opacity: 1; transform: scale(1.1); }
    38% { opacity: 0; }
    100% { opacity: 0; transform: scale(1); }
}

/* =========================================
   4. CARDS & UI ELEMENTS
   ========================================= */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-blue);
}

.service-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    color: var(--primary-blue);
}

.glass-card:hover .service-icon-box {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bg-light-gray { background-color: #F3F4F6; }

/* =========================================
   5. NAVIGATION
   ========================================= */
.navbar {
    transition: all 0.3s ease;
    padding: 20px 0;
}

/* This matches the JS 'scrolled' class */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

/* =========================================
   6. WHATSAPP BUTTON & EXTRAS
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-5px);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.academy-banner {
    background: linear-gradient(135deg, #111827, #374151);
    color: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper {
    overflow: hidden;
    border-radius: 20px;
}
.team-img { transition: transform 0.5s ease; width: 100%; }
.team-card:hover .team-img { transform: scale(1.05); }

/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .display-1 {
        font-size: 3.5rem; /* Prevents text from being too big on phone */
        line-height: 1.1;
    }
    .lead {
        font-size: 1rem !important;
    }
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
}

/* --- FOOTER FLAG TWEAKS --- */
.fi {
    background-size: cover;
    background-position: center;
    vertical-align: middle;
}


/* --- TEAM HOVER OVERLAY EFFECT --- */
.team-img-wrapper {
    position: relative; /* Needed for the overlay to sit inside */
    overflow: hidden;   /* Keeps the overlay contained */
    border-radius: 20px;
}

.team-social-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    /* Gradient: Transparent at top, Dark at bottom so white icons pop */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: center;
    gap: 20px;
    
    /* Hidden State */
    opacity: 0;
    transform: translateY(20px); /* Pushed down slightly */
    transition: all 0.4s ease;
}

/* On Hover: Show the Overlay */
.team-img-wrapper:hover .team-social-overlay {
    opacity: 1;
    transform: translateY(0); /* Slide up to natural position */
}

/* Icon Styling inside Overlay */
.team-social-icon {
    color: white;
    font-size: 1.25rem;
    transition: transform 0.2s, color 0.2s;
}

.team-social-icon:hover {
    color: var(--primary-blue);
    transform: scale(1.2); /* Icon pops when selected */
}



/* --- CINEMATIC STORY SLIDER (3s Per Slide) --- */
.origin-slider-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    background: #000;
}

.origin-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Total loop is now 12s (3s x 4 slides) */
    animation: cinematicStory 12s infinite; 
}

/* Updated Timing for 3s intervals */
.origin-slide:nth-child(1) { animation-delay: 0s; }
.origin-slide:nth-child(2) { animation-delay: 3s; }
.origin-slide:nth-child(3) { animation-delay: 6s; }
.origin-slide:nth-child(4) { animation-delay: 9s; }

@keyframes cinematicStory {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; }   /* Quick Fade In */
    25% { opacity: 1; }  /* Stay visible until 3s mark */
    33% { opacity: 0; transform: scale(1.05); } /* Fade Out */
    100% { opacity: 0; }
}

.slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-blue);
    width: 0;
    z-index: 10;
    /* Progress bar now fills in 3 seconds to match */
    animation: fillProgress 3s linear infinite;
}

@keyframes fillProgress {
    from { width: 0; }
    to { width: 100%; }
}




