/* =========================================
   1. BASE STYLES & ACCESSIBILITY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.7; /* Increased for better readability */
    -webkit-font-smoothing: antialiased; /* Crisp, premium font rendering */
}

/* Accessibility: Shows a clear ring only for keyboard navigation */
*:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   2. NAVBAR (Premium Glass Effect)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); /* Slightly increased blur */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 1000;
}

.logo h2 {
    color: #0f172a;
    font-weight: 800; /* Bolder logo */
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo span {
    color: #2563eb;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Persistent Navbar Verify Button */
.nav-verify-btn {
    background-color: #2563eb;
    color: #ffffff !important; /* Forces it to stay white */
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-verify-btn:hover {
    background-color: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nav-links a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-slider {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother fade */
}

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9));
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    margin-top: 60px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Fluid typography */
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.highlight {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 400;
}

/* --- Premium Buttons --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Cinematic easing */
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-3px);
}

.btn-glow {
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.5); /* The glowing effect */
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: #0f172a;
    transform: translateY(-3px);
}

/* =========================================
   4. LAYOUT SPACING & TYPOGRAPHY
   ========================================= */
section {
    padding: 120px 0; /* Massive breathing room for premium feel */
}

h2 {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 12px;
    margin-bottom: 60px;
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-section {
    background: white;
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 80px; /* Increased gap */
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    margin-top: 24px;
}

.features-list li {
    margin-bottom: 16px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); /* Softer, deeper shadow */
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.about-slide.active {
    opacity: 1;
}

/* =========================================
   6. COURSES SECTION (Enhanced Cards)
   ========================================= */
.text-center {
    text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.course-card {
    background: white;
    padding: 48px 32px; /* Extra padding */
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: #93c5fd;
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15); /* Colored soft shadow */
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.course-card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-weight: 700;
}

/* =========================================
   7. NEW TRUST BUILDING SECTIONS
   ========================================= */

/* Statistics Section */
.stats-section {
    background-color: #0f172a;
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: #eff6ff;
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    color: #475569;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #eff6ff;
}

.student-info h4 {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.student-info .batch {
    font-size: 0.875rem;
    color: #64748b;
}

/* Final CTA Section */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(to right, #eff6ff, #f8fafc);
    border-bottom: 1px solid #e2e8f0;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 5% 40px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 30px 0;
    }
    
    .nav-links.active { left: 0; }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    
    .about-section .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .features-list li {
        justify-content: center;
    }

    section { padding: 80px 0; }
}

/* =========================================
   10. SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   11. VERIFY PAGE STYLES
   ========================================= */
.verify-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    /* UPGRADED: Premium Spotlight Background */
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
}

.verify-container {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.verify-container h2 { 
    margin: 0 0 8px 0; 
    font-size: 1.75rem; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    color: #0f172a; 
}

.verify-container p { 
    color: #64748b; 
    font-size: 0.95rem; 
    margin-bottom: 32px; 
    line-height: 1.6; 
}

.back-link { 
    display: inline-block; 
    margin-bottom: 24px; 
    color: #64748b; 
    text-decoration: none; 
    font-size: 0.875rem; 
    font-weight: 600; 
    transition: color 0.3s ease; 
}

.back-link:hover { 
    color: #2563eb; 
}

.form-group, .captcha-box { 
    text-align: left; 
    margin-bottom: 24px; 
}

.verify-container label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 0.875rem; 
    font-weight: 600; 
    color: #334155; 
}

.verify-container input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.verify-container input:focus { 
    border-color: #2563eb; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}

.captcha-box { 
    background: #f8fafc; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0; 
    text-align: center; 
}

.captcha-box label { 
    color: #2563eb; 
    font-size: 1.1rem; 
}

.captcha-box input { 
    width: 120px; 
    text-align: center; 
    margin-top: 8px; 
}

.verify-container button {
    width: 100%; 
    padding: 16px; 
    background: #2563eb; 
    color: white; 
    border: none;
    border-radius: 8px; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.verify-container button:hover { 
    background: #1d4ed8; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5); 
}

.verify-container button:disabled { 
    background: #94a3b8; 
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none;
}

.status-panel { 
    margin-top: 24px; 
    padding: 24px; 
    border-radius: 12px; 
    display: none; 
}

.success-panel { 
    background: #f0fdf4; 
    border: 1px solid #bbf7d0; 
    color: #166534; 
}

.error-panel { 
    background: #fef2f2; 
    border: 1px solid #fecaca; 
    color: #991b1b; 
}

.cert-preview { 
    margin-top: 16px; 
    width: 100%; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    border: 4px solid white; 
    display: block; 
    box-sizing: border-box; 
}

/* =========================================
   12. UI REFINEMENTS (Form Details)
   ========================================= */
/* Remove arrows/spinners from number inputs in Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Remove arrows/spinners from number inputs in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* =========================================
   13. GPAY-STYLE SUCCESS ANIMATIONS
   ========================================= */
.success-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* The SVG Checkmark */
.checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #166534;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #166534;
    /* Fills with light green after the stroke is drawn */
    animation: fillCheck 0.4s ease-in-out 0.4s forwards, scaleCheck 0.3s ease-in-out 0.9s both;
}

/* Draws the circle */
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #166534;
    fill: none;
    animation: strokeCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Draws the tick */
.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCheck {
    100% { stroke-dashoffset: 0; }
}
@keyframes scaleCheck {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fillCheck {
    100% { box-shadow: inset 0px 0px 0px 40px #dcfce7; }
}

/* Staggered Fade Ins for the text and image */
.fade-in-delay-1 { opacity: 0; animation: fadeInSmooth 0.6s ease 1s forwards; }
.fade-in-delay-2 { opacity: 0; animation: fadeInSmooth 0.6s ease 1.2s forwards; }
.fade-in-delay-3 { opacity: 0; animation: fadeInSmooth 0.8s ease 1.5s forwards; }

@keyframes fadeInSmooth {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Placeholder Avatar for users without photos */
.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e7ff; /* Soft premium blue */
    color: #3730a3; /* Deep blue text */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid #eff6ff;
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        /* ... existing nav mobile styles ... */
    }
    
    .nav-links.active { left: 0; }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    
    .about-section .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .features-list li {
        justify-content: center;
    }

    section { padding: 80px 0; }

    /* --- ADD THESE NEW RULES FOR THE IMAGES --- */
    .about-image {
        width: 100%;
        display: block;
    }

    .about-slider-container {
        height: 280px; /* Much better proportion for phone screens */
        width: 100%;
    }

    /* Modal Mobile Fixes */
    .modal-footer {
        flex-direction: column;
        align-items: stretch; /* Stretches buttons to full width */
        gap: 12px;
        padding-bottom: 10px; /* Gives a little extra breathing room at the bottom */
    }

    .modal-footer .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .brochure-tabs {
        flex-wrap: wrap; /* Allows tabs to wrap if the screen is super small */
    }
    /* ------------------------------------------ */
}


/* =========================================
   14. FLYER MODAL / LIGHTBOX
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Update your existing modal-content */
.modal-content {
    background: white;
    padding: 16px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh; /* Keeps the modal from getting bigger than the screen */
    overflow-y: auto; /* FIX: If content is too tall, it will scroll inside the white box */
    overflow-x: hidden;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}


/* NEW: The animation class we will trigger with JS */
.fade-out {
    opacity: 0;
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Upgraded Premium Close Button */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9; /* Light gray circular background */
    border: none;
    color: #475569; /* Dark gray X */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* Ensures it stays above the images and tabs */
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a; /* Darkens on hover for visual feedback */
    transform: scale(1.1);
}
.modal-image {
    width: 100%;
    height: auto;
    max-height: 55vh; /* FIX: Reduced from 70vh to leave room for tabs & buttons */
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease; /* Prepares the image for the fade animation */
}

.modal-footer {
    padding-top: 16px;
    text-align: center;
}

/* NEW: The animation class we will trigger with JS */
.fade-out {
    opacity: 0;
}

/* =========================================
   15. WHATSAPP BUTTON & FOOTER UPGRADE
   ========================================= */
/* WhatsApp Button Style */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.5);
}

/* Premium Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-logo span {
    color: #3b82f6;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.8;
    max-width: 400px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-contact-info strong {
    color: #e2e8f0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-desc {
        margin: 0 auto;
    }
}

/* =========================================
   16. MODAL TOGGLE TABS
   ========================================= */
.tab-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #cbd5e1;
    color: #475569;
}

/* The blue highlight for the currently selected language */
.tab-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}