@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg: #0f1115;          /* GFG Dark Grey */
    --primary: #ffc107;     /* GFG Gold */
    --accent: #ff8f00;      /* Darker Orange/Gold */
    --text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ========================================= */
/* NAVBAR (Desktop Default)                  */
/* ========================================= */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; position: fixed; width: 100%; top: 0; z-index: 1000; transition: 0.3s; }
.navbar.scrolled { background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(10px); padding: 15px 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.logo { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.logo .dot { color: var(--accent); }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: #aaa; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: white; }

.nav-buttons { display: flex; gap: 15px; align-items: center; }
.btn-login { text-decoration: none; color: white; font-weight: 600; }
.btn-glow { background: var(--primary); color: white; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 700; box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); transition: 0.3s; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(139, 92, 246, 0.6); }

.menu-btn { display: none; font-size: 24px; cursor: pointer; color: white; }

/* ========================================= */
/* HERO SECTION                              */
/* ========================================= */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; padding: 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; z-index: -1; }

.hero-content { max-width: 600px; z-index: 2; }
.badge { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid rgba(239, 68, 68, 0.2); display: inline-block; margin-bottom: 20px; }
h1 { font-size: 60px; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.gradient-text { background: linear-gradient(to right, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.cta-group { margin: 30px 0; display: flex; gap: 15px; }
.btn-primary { background: white; color: black; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-primary:hover { transform: scale(1.05); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.2); color: white; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

.stats-row { display: flex; gap: 40px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.stat h3 { font-size: 28px; margin: 0; }
.stat p { color: #888; font-size: 14px; margin: 0; }

/* VISUALS */
.hero-visual { position: relative; width: 500px; }
.hero-img { width: 100%; animation: float 6s ease-in-out infinite; }
.circle-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 400px; height: 400px; background: var(--primary); filter: blur(150px); opacity: 0.4; z-index: -1; }

.float-card { position: absolute; background: rgba(20, 20, 20, 0.9); backdrop-filter: blur(10px); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); display: flex; gap: 15px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card-1 { top: 50px; left: -50px; animation: float 5s infinite reverse; }
.card-2 { bottom: 50px; right: -30px; animation: float 7s infinite; }
.success { color: #10b981; font-size: 24px; }
.gold { color: #ffd700; font-size: 24px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* TRUST STRIP */
.trust-strip { background: #000; border-bottom: 1px solid #222; padding: 20px; text-align: center; color: #444; font-size: 12px; font-weight: bold; letter-spacing: 2px; }
.logos { margin-top: 10px; display: flex; justify-content: center; gap: 20px; font-size: 14px; color: #666; font-weight: 500; text-transform: uppercase; flex-wrap: wrap; }

/* ========================================= */
/* CONTENT SECTIONS                          */
/* ========================================= */
.section { padding: 100px 50px; }
.bg-darker { background: #050505; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; margin-bottom: 10px; }
.section-header p { color: #888; }

/* TIMELINE */
.timeline { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: #111; padding: 20px; border-radius: 15px; border: 1px solid #222; }
.step-icon { width: 50px; height: 50px; background: rgba(139, 92, 246, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.step-content h3 { margin: 0 0 5px; }
.step-content p { color: #888; margin: 0; font-size: 14px; }

/* TRACKS GRID */
.tracks-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.course-card { background: #111; border: 1px solid rgba(255,255,255,0.1); padding: 30px; border-radius: 20px; width: 350px; position: relative; transition: 0.3s; }
.course-card:hover { transform: translateY(-10px); border-color: var(--primary); }

.disabled-card { opacity: 0.6; filter: grayscale(80%); }
.disabled-card:hover { transform: none; border-color: rgba(255,255,255,0.1); }
.badge-pop { position: absolute; top: 15px; right: 15px; background: var(--primary); font-size: 10px; font-weight: bold; padding: 4px 8px; border-radius: 4px; }
.card-icon { font-size: 40px; margin-bottom: 20px; }
.web { color: #00d8ff; } .python { color: #facc15; } .app { color: #10b981; }
.course-card ul { list-style: none; margin: 20px 0; color: #888; line-height: 2; }
.course-card ul i { color: var(--primary); margin-right: 10px; }

.price { font-size: 24px; font-weight: bold; margin-bottom: 20px; }
.old { text-decoration: line-through; color: #666; font-size: 16px; margin-right: 10px; }
.btn-card { display: block; text-align: center; border: 1px solid #333; color: white; padding: 12px; border-radius: 8px; text-decoration: none; transition: 0.3s; background: transparent; font-weight: 600; }
.btn-card:hover { background: white; color: black; }
.btn-card.disabled { background: #222; color: #666; border-color: #333; cursor: not-allowed; pointer-events: none; }
.btn-card.disabled:hover { background: #222; color: #666; transform: none; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.feat-box { background: #111; padding: 30px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); text-align: center; transition: 0.3s; }
.feat-box:hover { transform: translateY(-5px); border-color: var(--primary); }
.feat-box i { font-size: 30px; color: var(--accent); margin-bottom: 15px; }
.feat-box h4 { margin: 0 0 10px; color: white; font-size: 18px; }
.feat-box p { color: #888; font-size: 13px; line-height: 1.5; margin: 0; }

/* LEADERBOARD */
.leaderboard-box { max-width: 600px; margin: 0 auto; background: #111; border-radius: 20px; border: 1px solid #333; overflow: hidden; }
.lb-header { background: #1a1a1a; padding: 20px; text-align: center; border-bottom: 1px solid #333; }
.lb-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #222; }
.lb-item.first { background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent); }
.rank { font-weight: bold; font-size: 20px; width: 40px; color: #666; }
.first .rank { color: #ffd700; }
.lb-item .avatar { width: 40px; height: 40px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 15px; }
.lb-item .info h4 { margin: 0; }
.lb-item .info small { color: #666; }
.reward { color: #ffd700; font-size: 12px; font-weight: bold; margin-left: auto; }
.view-all { display: block; text-align: center; padding: 15px; color: var(--primary); text-decoration: none; font-weight: bold; }

/* FAQ SECTION */
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-item { background: #111; margin-bottom: 10px; border-radius: 10px; border: 1px solid #222; overflow: hidden; }
.question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; }
.answer { padding: 0 20px; max-height: 0; overflow: hidden; color: #888; transition: 0.3s; line-height: 1.6; }

/* Fixed: Increased height and padding for dynamic content */
.faq-item.active .answer { padding-bottom: 20px; max-height: 1000px; }

/* FOOTER */
footer { padding: 50px; background: #050505; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.socials a { color: #666; font-size: 20px; margin-right: 15px; transition: 0.3s; }
.socials a:hover { color: white; }
.links a { display: block; color: #666; text-decoration: none; margin-bottom: 10px; }
.links a:hover { color: var(--primary); }
.copy { text-align: center; color: #444; font-size: 14px; }


/* ========================================= */
/* MOBILE VIEW FIX (Zero Gap & Glass Effect) */
/* ========================================= */
/* ========================================= */
/* MOBILE MENU: REAL GLASS EFFECT           */
/* ========================================= */
@media (max-width: 768px) {
    /* 1. LAYOUT RESET */
    .navbar {
        flex-wrap: wrap; 
        padding: 20px;
        transition: 0.3s ease-in-out;
    }

    /* 2. HEADER ITEMS */
    .logo {
        flex-grow: 1; 
        order: 1;
        z-index: 1100;
    }

    .menu-btn {
        display: block;
        order: 2;
        z-index: 1100;
    }

    /* 3. MENU LIST (The Glass Part) */
    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0 10px 0;
        
        /* --- GLASS EFFECT SETTINGS --- */
        /* 0.6 means 60% opacity (See-through) */
        background: rgba(10, 10, 15, 0.6); 
        
        /* This blurs whatever is BEHIND the menu */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        /* Subtle white edge to make it look like glass */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 4. BUTTONS LIST (Matches Glass) */
    .nav-buttons {
        display: none;
        width: 100%;
        order: 4;
        
        flex-direction: column;
        gap: 15px;
        padding-bottom: 30px;
        
        /* Same see-through background */
        background: rgba(10, 10, 15, 0.6);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        /* Bottom edge of the glass */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }

    /* 5. ACTIVE STATES */
    .nav-links.active, 
    .nav-buttons.active {
        display: flex;
        position: static;
    }

    /* Mobile Layout Adjustments */
    .hero { flex-direction: column; padding: 120px 20px 50px; text-align: center; }
    .hero-visual { width: 100%; margin-top: 50px; }
    .stats-row { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
/* --- FAQ CATEGORY TAG --- */
.faq-cat-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--primary); /* Uses your Gold color */
    background: rgba(255, 193, 7, 0.1); /* Low opacity gold background */
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.q-text {
    font-size: 16px;
    color: white;
}

/* --- BOX DEFINITION --- */
.faq-item {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    margin-bottom: 15px; /* Spacing between boxes */
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Highlight border when open */
.faq-item.active-box {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* --- QUESTION HEADER --- */
.question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111; /* Dark background */
}

/* --- ANSWER BOX (FIX FOR COLOR DIFFERENCE) --- */
.answer {
    /* Hidden by default */
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: 0.3s ease;
    opacity: 0;
    
    /* NEW COLOR STYLE */
    background: #080808; /* Much darker/Black background */
    border-top: 1px solid #222; /* Line separating Q and A */
    color: #bbb; /* Slightly dimmer text */
    font-size: 14px;
    line-height: 1.6;
}

/* When Open */
.answer.open {
    padding: 20px; /* Add padding when open */
    max-height: 500px; /* Allow expansion */
    opacity: 1;
}

/* ========================================= */
/* SEASONAL THEMES & ANIMATIONS              */
/* ========================================= */

/* --- 1. Seasonal Color Overrides --- */
body.season-winter {
    --primary: #0ea5e9; /* Ice Blue */
    --accent: #38bdf8;
    background: radial-gradient(circle at top, #0f172a, #000); /* Cold Dark Blue */
}

body.season-monsoon {
    --primary: #14b8a6; /* Teal/Rainy Green */
    --accent: #2dd4bf;
    background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364); /* Stormy Grey */
}

body.season-autumn {
    --primary: #f97316; /* Pumpkin Orange */
    --accent: #fb923c;
    background: radial-gradient(circle at top, #2a1005, #000); /* Brownish Dark */
}

body.season-summer {
    /* Default Gold/Black style, maybe slightly brighter */
    --primary: #eab308; 
    background: radial-gradient(circle at top, #1a1a00, #000);
}


/* --- 2. Animation Container --- */
#season-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through */
    z-index: 50; /* Behind navbar but above bg */
    overflow: hidden;
}

/* --- 3. Animation: WINTER (Snow) --- */
.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

/* --- 4. Animation: MONSOON (Rain) --- */
.raindrop {
    position: absolute;
    top: -20px;
    width: 2px;
    height: 15px;
    background: rgba(255, 255, 255, 0.4);
    animation: fall-fast linear infinite;
}

/* --- 5. Animation: AUTUMN (Leaves) --- */
.leaf {
    position: absolute;
    top: -20px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.6;
    animation: fall-sway linear infinite;
}

/* --- 6. Animation: SUMMER (Sun Glare) --- */
.sun-glare {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,200,0,0.3) 0%, rgba(0,0,0,0) 70%);
    filter: blur(50px);
    animation: pulse-sun 4s ease-in-out infinite;
}

/* --- Keyframes --- */
@keyframes fall {
    to { transform: translateY(110vh); }
}
@keyframes fall-fast {
    to { transform: translateY(110vh); }
}
@keyframes fall-sway {
    0% { transform: translateY(0) rotate(0deg) translateX(0); }
    50% { transform: translateY(50vh) rotate(180deg) translateX(20px); }
    100% { transform: translateY(110vh) rotate(360deg) translateX(-20px); }
}
@keyframes pulse-sun {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 1. Add Smooth Morphing to the Body */
body {
    transition: background 1.5s ease-in-out, color 0.5s ease;
}

/* 2. Make the Hero Grid react to seasons */
.hero::before {
    transition: opacity 1s ease;
    background-image: linear-gradient(var(--primary) 0.5px, transparent 0.5px), 
                      linear-gradient(90deg, var(--primary) 0.5px, transparent 0.5px) !important;
    opacity: 0.05; /* Subtle seasonal grid lines */
}

/* 3. Advanced Particle Styling (Depth Effect) */
.snowflake, .raindrop, .leaf {
    filter: drop-shadow(0 0 5px white);
    /* Adding a blur to some particles makes them look closer/farther */
}

.snowflake:nth-child(even) { filter: blur(2px); opacity: 0.4; }
.leaf:nth-child(3n) { transform: scale(1.5); filter: blur(1px); }

/* 4. Seasonal Card Glows */
body.season-winter .course-card:hover { box-shadow: 0 0 30px rgba(14, 165, 233, 0.3); }
body.season-autumn .course-card:hover { box-shadow: 0 0 30px rgba(249, 115, 22, 0.3); }
body.season-monsoon .course-card:hover { box-shadow: 0 0 30px rgba(20, 184, 166, 0.3); }

/* --- SEASONAL ANNOUNCEMENT POPUP --- */
.season-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary);
    transform: translateX(120%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.season-popup.show {
    transform: translateX(0);
}

.season-popup-icon {
    font-size: 30px;
    color: var(--primary);
    animation: pulse-icon 2s infinite;
}

.season-popup-text h4 {
    color: white;
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.season-popup-text p {
    color: #aaa;
    margin: 5px 0 0;
    font-size: 13px;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}