:root {
    --cyan: #a855f7;
    --cyan-dark: #7e22ce;
    --blue-deep: #030712;
    --blue-mid: #0a0f1a;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --white: #ffffff;
    --dark: #050a12;
    --accent-secondary: #06b6d4;
    --bg-card: #111827;
    --border-subtle: rgba(168, 85, 247, 0.2);
    --gradient-hero: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(6,182,212,0.08) 50%, rgba(0,0,0,0) 100%);
    --glow: rgba(168, 85, 247, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.logo span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.cta-btn {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: var(--dark) !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--cyan);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 10, 18, 0.75), rgba(5, 10, 18, 0.92));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.25);
}

/* Sections */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-dark {
    background: var(--blue-deep);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 50px 0;
}

.stat-card {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cyan);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: rgba(17, 27, 46, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.4);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 28px;
}

.card h3 {
    color: var(--cyan);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    font-size: 1rem;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 600px;
}

th {
    background: rgba(0, 212, 255, 0.12);
    color: var(--cyan);
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
}

tr:hover td {
    background: rgba(0, 212, 255, 0.04);
}

.highlight {
    color: var(--cyan);
    font-weight: 600;
}

/* Two column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.two-col h2 {
    font-size: 2.4rem;
    color: var(--cyan);
    margin-bottom: 24px;
}

.two-col p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 20px;
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 120px 24px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 18, 0.88);
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cyan);
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Footer */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    padding: 50px 24px;
    text-align: center;
    color: var(--muted);
}

footer .logo {
    margin-bottom: 16px;
    display: inline-block;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Mobile menu */

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 998;
}
.nav-overlay.open { display: block; }

@media (max-width: 900px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
        background: #0f172a !important;
        border: 1px solid rgba(168, 85, 247, 0.5);
        border-radius: 6px;
        padding: 10px;
        width: 46px;
        height: 46px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }

    .nav-links {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 24px !important;
        background: #050a12 !important;
        background-color: #050a12 !important;
        border-top: 1px solid rgba(168, 85, 247, 0.25) !important;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        pointer-events: none;
        align-items: flex-start !important;
        z-index: 999 !important;
        display: flex !important;
        margin: 0 !important;
        list-style: none !important;
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.open {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(168, 85, 247, 0.12);
    }

    .nav-links a {
        display: block;
        padding: 18px 0;
        font-size: 1.15rem;
        color: var(--text);
        color: #f3f4f6 !important;
    }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 600px) {
    .hamburger {
        display: flex;
        width: 40px;
        height: 40px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section {
        padding: 70px 20px;
    }

    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}

.logo img {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Curriculum page additions */
.badge {
    display: inline-block;
    background: var(--accent);
    color: #0b0f19;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.month-block {
    padding: 60px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.month-block h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: center;
}

.month-label {
    display: inline-block;
    background: var(--accent);
    color: #0b0f19;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 12px;
    vertical-align: middle;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.week-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.week-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.week-card strong {
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.week-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 30px;
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    background: var(--accent);
    color: #0b0f19;
    padding: 80px 5%;
    text-align: center;
}

.cta-section h2 {
    color: #0b0f19;
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(11, 15, 25, 0.8);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.cta-section .btn-primary {
    background: #0b0f19;
    color: var(--accent);
    border-color: #0b0f19;
}

.cta-section .btn-primary:hover {
    background: #1a2035;
}

@media (max-width: 900px) {
    .week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .three-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .week-grid {
        grid-template-columns: 1fr;
    }
}


/* YouTube embed responsive */
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 40px auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #050a12;
    overflow: hidden;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}
