/* ==========================================================================
   1. CORE VARIABLES & SETUP
   ========================================================================== */
:root {
    --bg-dark: #090914; 
    --bg-light: #16162c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --primary: #4facfe;
    --secondary: #00f2fe;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --gold: #fbbf24;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: var(--text); }

/* ==========================================================================
   2. ANIMATED BACKGROUND ORBS & GLASSMORPHISM
   ========================================================================== */
.background-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden;
}

.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: floatOrb 30s infinite alternate ease-in-out;
}

.orb-1 { width: 400px; height: 400px; background: #4facfe; top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: #8b5cf6; bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #00f2fe; top: 40%; left: 50%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-glow);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. LAYOUT, NAVIGATION & MOBILE MENU
   ========================================================================== */
.navbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; padding: 1rem 2rem; z-index: 1000;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1rem; align-items: center; transition: all 0.3s ease; }

/* Smooth Background Fill Hover Effect for Menu Links */
.nav-links a:not(.btn-glass) {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:not(.btn-glass):hover {
    background-color: rgba(79, 172, 254, 0.2);
    color: var(--primary);
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none; font-size: 1.5rem; cursor: pointer; color: var(--text);
}

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.badge { background: rgba(79, 172, 254, 0.2); border: 1px solid var(--primary); color: var(--primary); padding: 0.5rem 1.2rem; border-radius: 50px; display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; font-weight: bold; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.2; margin-bottom: 1rem; font-weight: 800; }
.hero p { max-width: 600px; margin: 0 auto 2rem; color: var(--text-muted); font-size: 1.2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; }

.section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; }
.section-header p { color: var(--text-muted); margin-top: 0.5rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-glass {
    padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-block;
}
.btn-primary { background: linear-gradient(to right, var(--primary), var(--secondary)); color: #fff; border: none; }
.btn-primary:hover { transform: scale(1.05); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--primary); }
.btn-secondary:hover { background: rgba(79, 172, 254, 0.1); }
.btn-glass { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }

/* ==========================================================================
   4. ANIMATIONS, HOVER EFFECTS & SCROLL REVEALS
   ========================================================================== */
.floating { animation: float 3s ease-in-out infinite; }
.floating-slow { animation: float 6s ease-in-out infinite; }
.floating-slow-delay { animation: float 6s ease-in-out infinite; animation-delay: 3s; }
.pulse { animation: pulse 2s infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(79, 172, 254, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0); } }

.reveal { transform: translateY(60px); opacity: 0; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { transform: translateY(0); opacity: 1; }

.hover-lift { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.hover-lift:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--glass-glow); border-color: rgba(79, 172, 254, 0.5); }
.hover-glow:hover { box-shadow: 0 0 40px rgba(79, 172, 254, 0.3); border-color: var(--primary); }

/* ==========================================================================
   5. CUSTOM SECTIONS (Steps, Bento, Reviews, Pricing, FAQ)
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.step-card { padding: 2.5rem 1.5rem; }
.step-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.5rem auto; color: white; box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3); }
.step-card h3 { margin-bottom: 1rem; color: var(--text); }
.step-card p { color: var(--text-muted); }

/* Syllabus Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.bento-item { padding: 2rem; }
.bento-item h3 { margin-bottom: 0.2rem; font-size: 1.3rem; color: var(--text); }
.bento-item p { color: var(--text-muted); font-size: 0.95rem; }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.review-box { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; }
.user-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.avatar { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; color: #fff; }
.user-details h4 { margin: 0; font-size: 1.1rem; }
.score { color: var(--secondary); font-weight: bold; font-size: 0.9rem; }
.review-box p { color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem;}
.stars { color: var(--gold); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 800px; margin: 0 auto; }
.pricing-card { padding: 3rem 2rem; position: relative; display: flex; flex-direction: column; }
.pricing-card h2 { font-size: 3rem; margin: 1rem 0; color: var(--primary); }
.pricing-card ul { list-style: none; margin-top: 1.5rem; flex-grow: 1; }
.pricing-card li { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.pricing-card li i { color: #10b981; } 
.pro-card { border: 1px solid var(--primary); background: rgba(79, 172, 254, 0.05); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(to right, var(--primary), var(--secondary)); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4); }

/* FAQ */
.faq-container { padding: 2rem; }
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 1.5rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { font-size: 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); transition: color 0.3s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-item p { margin-top: 1rem; color: var(--text-muted); line-height: 1.8; }   

/* ==========================================================================
   6. RESPONSIVE / MOBILE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) { 
    .bento-grid { grid-template-columns: 1fr 1fr; } 
    .wide { grid-column: span 1; } 
}

@media (max-width: 768px) {
    .menu-toggle { display: block; } /* Show hamburger icon */
    
    .nav-links { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column; 
        padding: 2rem; 
        gap: 1.5rem;
        border-radius: 0 0 20px 20px;
        border: 1px solid var(--glass-border);
        border-top: none;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden by default */
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Reveals menu */
    }

    .mobile-btn { width: 100%; text-align: center; }
    
    /* ADD THESE LINES TO FIX THE BADGE OVERLAP */
    .hero { 
        height: auto; 
        min-height: 100vh; 
        padding-top: 120px; /* Pushes content down below the navbar */
        padding-bottom: 40px;
    }
    
    .badge {
        font-size: 0.8rem; /* Slightly smaller for mobile */
        padding: 0.4rem 1rem;
        white-space: nowrap; /* Stops it from breaking awkwardly into two lines */
    }

    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; width: 100%; }
}


@media (max-width: 600px) { 
    .bento-grid { grid-template-columns: 1fr; } 
    .tall { grid-row: span 1; } 
    .navbar { width: 95%; padding: 0.8rem 1rem;} 
}

/* ==========================================================================
   CUSTOM GLOW SCROLLBAR
   ========================================================================== */

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

/* For Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 12px; /* Slimmer, modern width */
}

/* The track (background) of the scrollbar */
::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.05); /* Matches glass border */
}

/* The draggable thumb */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 20px;
    border: 3px solid var(--bg-dark); /* Creates a floating "pill" effect */
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5); /* Outer glow */
}

/* Thumb hover effect */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.8); /* Brighter glow on hover */
}