/* 1. Variables & Tokens */
:root {
    /* Brand Palette - Deep Space (Dark Mode Default) */
    --bg-deep: #020408;
    --bg-surface: #0b101b;

    --text-primary: #f1f5f9;   /* White-ish */
    --text-secondary: #94a3b8; /* Light Grey */
    --text-tertiary: #64748b;

    /* Navbar Background Variable */
    --nav-bg: rgba(2, 4, 8, 0.85);

    /* Accents (Neon for Dark Mode) */
    --accent-teal: #2dd4bf;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-error: #fb7185;

    /* Glass Tokens */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --blur-strength: 12px;

    /* Layout & Typos */
    --max-width: 1200px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body.light-mode {
    /* Backgrounds: Clean White & Very Light Blue-Grey */
    --bg-deep: #f1f5f9;
    --bg-surface: #ffffff;

    /* Typography: High Contrast Dark (Not Grey) */
    --text-primary: #0f172a;  /* Deep Navy/Black */
    --text-secondary: #334155;/* Dark Slate */
    --text-tertiary: #64748b;

    /* Navbar: White Frosted Glass */
    --nav-bg: rgba(255, 255, 255, 0.85);

    /* Accents: Darker & Richer (To pop against white) */
    --accent-teal: #0d9488;   /* Deep Teal instead of Neon */
    --accent-blue: #2563eb;   /* Royal Blue */
    --accent-purple: #7e22ce;
    --accent-error: #be123c;

    /* Glass Tokens for Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.75);
    /* Darker border so cards are visible on white background */
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.8);
}

/* 2. Global Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.section { padding: 2.5rem 0; position: relative; } /* Increased breathing room */

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
p { color: var(--text-secondary); }

/* 3. Navigation */
/* New Version */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    background: var(--nav-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar .container {
    display: flex; justify-content: space-between; align-items: center;
    width: 90%; max-width: var(--max-width);
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.logo-chem { color: var(--text-primary); }
.logo-kosh { color: var(--accent-teal); }

.nav-links-desktop { display: flex; gap: 32px; background: rgba(255,255,255,0.03); padding: 8px 24px; border-radius: 50px; border: 1px solid var(--glass-border); }
.nav-item {
    text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: 0.3s;
}
.nav-item:hover, .nav-item.active { color: var(--accent-teal); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

#theme-toggle {
    background: transparent; border: 1px solid var(--glass-border);
    width: 40px; height: 40px; border-radius: 50%;
    color: var(--text-primary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
#theme-toggle:hover { background: var(--glass-highlight); border-color: var(--accent-teal); }
.light-mode .sun-icon, body:not(.light-mode) .moon-icon { display: none; }
.light-mode .moon-icon { display: block; }

/* 4. Hero Section */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.15), transparent 60%);
    overflow: hidden;
}

/* Subtle Animated Background Mesh */
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -1;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.hero-badge {
    display: inline-flex; align-items: center;
    text-align: center;
    width: fit-content;
    padding: 6px 16px; margin-bottom: 24px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--accent-teal);
    border-radius: 100px;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.hero-headline { margin-bottom: 24px; }
.hero-subtext {
    max-width: 600px; margin: 0 auto 40px;
    font-size: 1.2rem; color: var(--text-secondary);
}
.cursor { color: var(--accent-teal); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero Buttons */
.hero-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-mega {
    background: var(--accent-teal); color: #ffffff;
    padding: 16px 32px; border-radius: 100px;
    font-weight: 700; font-size: 1.05rem;
    text-decoration: none; display: flex; align-items: center; gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-mega:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(45, 212, 191, 0.4); }

.btn-secondary {
    padding: 16px 32px; border-radius: 100px;
    border: 1px solid var(--glass-border);
    color: var(--text-primary); background: rgba(255,255,255,0.02);
    font-weight: 600; text-decoration: none;
    transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* --- HERO SECTION LAYOUT --- */


/* THE GRID: Forces Side-by-Side Layout */
.hero-grid-layout {
    display: grid !important; /* Force Grid */
    grid-template-columns: 1.2fr 1fr; /* Text is slightly wider than video */
    gap: 50px; /* Space between text and video */
    align-items: center; /* Vertically center both */
    width: 100%;
}

/* LEFT SIDE: Text Styling */
.hero-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* RIGHT SIDE: Video Container */
.hero-video-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- SIMPLE VIDEO FRAME STYLE --- */
.simple-video-frame {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9; /* Keeps standard video shape */
    border-radius: 16px; /* Smooth rounded corners */
    overflow: hidden; /* Clips the video to the corners */
}

.simple-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- MOBILE RESPONSIVENESS (Stacking) --- */
@media (max-width: 968px) {
    .hero {
        padding-top: 120px;
        margin-inline: 10px;
        min-height: auto;
    }

    .hero-grid-layout {
        grid-template-columns: 1fr; /* Switch to 1 column */
        gap: 40px;
        text-align: center;
    }

    /* Change Order: Text on Top, Video Below */
    .hero-text-content {
        order: 1;
        align-items: center; /* Center text on mobile */
    }

    .hero-video-content {
        order: 2;
    }

    .hero-cta-group {
        justify-content: center;
    }
}
/* 5. Curriculum (Pillars) */
.section-header { text-align: center; margin-bottom: rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title { margin-bottom: 1rem; }
.pillars-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}

.pillar-card {
    padding: 40px 30px; border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s;
    background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(255,255,255,0.01) 100%);
}
.pillar-card:hover { transform: translateY(-8px); border-color: var(--accent-teal); }

.pillar-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; color: #fff;
    font-size: 1.5rem;
}
.teal-glow { background: linear-gradient(135deg, var(--accent-teal), #115e59); box-shadow: 0 10px 30px -10px var(--accent-teal); }
.blue-glow { background: linear-gradient(135deg, var(--accent-blue), #1e3a8a); box-shadow: 0 10px 30px -10px var(--accent-blue); }
.purple-glow { background: linear-gradient(135deg, var(--accent-purple), #581c87); box-shadow: 0 10px 30px -10px var(--accent-purple); }

.topic-list { list-style: none; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--glass-border); }
.topic-list li {
    margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary); font-size: 0.95rem;
}
.topic-list li::before {
    content: ''; width: 6px; height: 6px; background: var(--accent-teal); border-radius: 50%;
}

/* 6. Bento Grid (Why Us) */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 240px);
    gap: 24px;
}
.bento-box {
    padding: 32px; border-radius: var(--radius-lg);
    display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.3s; position: relative; overflow: hidden;
}
.bento-box:hover { background: rgba(255,255,255,0.05); }

.box-visual { grid-column: 1 / 2; grid-row: 1 / 3; justify-content: flex-end; }
.box-notes { grid-column: 2 / 3; grid-row: 1 / 2; }
.box-speed { grid-column: 2 / 3; grid-row: 2 / 3; }

.bento-icon { color: var(--accent-teal); margin-bottom: 16px; width: 32px; height: 32px; }

/* Molecule Art */
.molecule-art { position: absolute; top: 20px; right: 20px; opacity: 0.8; }
.atom { width: 40px; height: 40px; background: var(--accent-teal); border-radius: 50%; position: absolute; box-shadow: 0 0 20px var(--accent-teal); }
.a1 { top: 0; right: 60px; animation: float 6s ease-in-out infinite; }
.a2 { top: 60px; right: 0; width: 30px; height: 30px; opacity: 0.7; animation: float 8s ease-in-out infinite reverse; }
.bond {
    width: 60px; height: 2px; background: var(--accent-teal);
    position: absolute; top: 35px; right: 20px; transform: rotate(45deg); opacity: 0.5;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 7. Quiz & Interactive Elements */
.quiz-card {
    text-align: center; max-width: 600px; margin: 0 auto;
    padding: 40px; border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--glass-bg), rgba(255,255,255,0.01));
}
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.option-btn {
    padding: 16px; background: transparent;
    border: 1px solid var(--glass-border); border-radius: 12px;
    color: var(--text-secondary); cursor: pointer; font-family: var(--font-body);
    transition: 0.2s;
}
.option-btn:hover { background: var(--glass-highlight); color: var(--text-primary); }
.option-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.option-btn.correct { background: rgba(45, 212, 191, 0.1); border-color: var(--accent-teal); color: var(--accent-teal); }
.option-btn.wrong { background: rgba(251, 113, 133, 0.1); border-color: var(--accent-error); color: var(--accent-error); }
.quiz-feedback { margin-top: 20px; min-height: 24px; font-weight: 600; font-size: 0.95rem; }

/* 8. Library/Notes Page */
.library-header { padding: 140px 0 60px; text-align: center; }

.filter-bar {
    display: inline-flex;
    padding: 6px; border-radius: 100px; border: 1px solid var(--glass-border);
    margin-bottom: 50px; position: relative; left: 50%; transform: translateX(-50%);
}
.filter-btn {
    background: transparent; border: none; color: var(--text-secondary);
    padding: 10px 24px; border-radius: 50px; cursor: pointer;
    font-weight: 500; font-size: 0.9rem; transition: 0.3s;
}
.filter-btn.active { background: var(--accent-teal); color: white; font-weight: 700; }

.resource-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px;
}
.resource-card {
    padding: 30px; border-radius: var(--radius-md);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    display: flex; flex-direction: column; gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.resource-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5); }
.card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.tag { font-size: 0.75rem; color: var(--accent-teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.btn-download {
    margin-top: auto; padding: 12px;
    border: 1px solid var(--glass-border); border-radius: 8px;
    color: var(--text-primary); text-decoration: none; text-align: center;
    font-weight: 600; font-size: 0.9rem; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-download:hover { background: var(--accent-teal); color:white; border-color: var(--accent-teal); }

/* 9. Playlist Grid */
.playlist-card {
    display: block; text-decoration: none; border-radius: var(--radius-md); overflow: hidden;
    background: var(--bg-surface); border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}
.playlist-card:hover { transform: translateY(-5px); }
.thumbnail-wrapper { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.thumbnail-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.playlist-card:hover img { transform: scale(1.05); filter: brightness(0.7); }
.overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.playlist-card:hover .overlay { opacity: 1; }
.playlist-info { padding: 20px; }
.playlist-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-primary); }

/* 10. Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; align-items: start; }
.contact-form { padding: 40px; border-radius: var(--radius-lg); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--text-primary); font-family: var(--font-body);
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1); }
.btn-primary {
    width: 100%; padding: 14px;
    background: var(--accent-teal);
    border: none;
    border-radius: 8px; font-weight: 700; cursor: pointer;

    /* Force white text in Light Mode for better contrast */
    color: #ffffff;
    /* In Dark mode, keep it dark if you prefer, or stick to white: */
    /* color: var(--bg-deep); */

    transition: 0.3s;
}

/* Specific override for Dark Mode if you want black text on neon buttons */
body:not(.light-mode) .btn-primary {
    color: #020408;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* 11. Footer */
.site-footer {
    border-top: 1px solid var(--glass-border); padding: 80px 0 30px;
    margin-top: 100px;  font-size: 0.9rem;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-desc { max-width: 300px; margin: 20px 0; color: var(--text-tertiary); }
.footer-links h4 { margin-bottom: 24px; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--text-secondary); transition: 0.2s; }
.footer-links a:hover { color: var(--accent-teal); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 30px; display: flex; justify-content: space-between; color: var(--text-tertiary); }

/* 12. Responsive */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .box-visual, .box-notes, .box-speed { grid-column: auto; grid-row: auto; min-height: 200px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links-desktop { display: none; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .btn-mega, .btn-secondary { width: 100%; justify-content: center; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-desc { margin: 20px auto; }
    .quiz-options { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center;}
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }


/* --- NEW BENTO GRID STYLES --- */

.bento-grid {
    display: grid;
    /* Desktop: 1.5fr for the big box, 1fr for the column of small boxes */
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 240px 240px; /* Fixed height for consistency */
    gap: 24px;
}

.bento-box {
    position: relative;
    padding: 35px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    border: 1px solid var(--glass-border);
}

/* Hover Lift Effect */
.bento-box:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
}

/* Typography Inside Boxes */
.bento-box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    /* Ensure text is visible in light mode */
    color: var(--text-primary);
}

.bento-box p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 90%;
}

/* --- Specific Box Styling --- */

/* Box 1: Visuals (Big Box) */
.box-visual {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.1), transparent 60%), var(--glass-bg);
}

.bento-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

/* Box 2 & 3: Small Boxes */
.box-notes {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--glass-bg);
}
.box-speed {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05), transparent), var(--glass-bg);
}

/* Icon Wrappers for Small Boxes */
.icon-wrapper {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
    color: white;
}
.bento-icon-lg { width: 24px; height: 24px; }

/* Light Mode Overrides for Bento Text */
body.light-mode .bento-box h3 {
    background: none;
    color: var(--text-primary);
}
body.light-mode .bento-box {
    background: white;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
body.light-mode .box-visual {
    background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.08), transparent 60%), white;
}


/* --- ANIMATED "ELECTRON CLOUD" ART --- */
.orbital-art {
    position: absolute;
    bottom: -40px; right: -40px;
    width: 250px; height: 250px;
    pointer-events: none;
    opacity: 0.8;
}

.core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-teal);
    z-index: 2;
}

.electron-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: 50%;
}

.r1 {
    width: 140px; height: 60px;
    animation: spin 6s linear infinite;
}
.r2 {
    width: 60px; height: 140px;
    animation: spin 8s linear infinite reverse;
}

/* Add a glowing 'electron' dot to the rings */
.electron-ring::before {
    content: ''; position: absolute; top: -4px; left: 50%;
    width: 8px; height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .box-visual { grid-column: auto; grid-row: auto; min-height: 300px; }
    .box-notes, .box-speed { grid-column: auto; grid-row: auto; min-height: 200px; }

    .orbital-art {
        width: 180px; height: 180px;
        bottom: -20px; right: -20px;
    }
}



/* --- MOBILE MENU STYLES --- */

.hamburger {
    display: none; /* Hidden on Desktop */
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    transition: 0.2s;
}

.hamburger:hover {
    color: var(--accent-teal);
}

/* The Dropdown Container */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--nav-bg); /* Matches navbar color */
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-bottom: 1px solid var(--glass-border);

    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;

    /* Hidden State */
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Active State (Triggered by JS) */
.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-item {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px;
    border-radius: 8px;
    display: flex; align-items: center; gap: 12px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
    background: rgba(255,255,255,0.05);
    border-color: var(--glass-border);
    color: var(--accent-teal);
    padding-left: 20px; /* Slide effect */
}

/* Icons inside mobile links */
.mobile-nav-item i {
    width: 20px; height: 20px;
    color: var(--accent-teal);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
    .nav-links-desktop { display: none; } /* Hide desktop links */
    .hamburger { display: block; }        /* Show hamburger */
}