/* ============================================================
   GOVOR STYLE – Centralised Design System
   Based on the index.html design (Pixel + Oswald + Inter)
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Theme variables)
   ============================================================ */
:root {
    /* Dark mode (default) */
    --bg-body: #0b0c10;
    --bg-surface: transparent;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border-card: rgba(255, 255, 255, 0.03);
    --border-nav: rgba(255, 255, 255, 0.04);
    --border-footer: rgba(255, 255, 255, 0.02);
    --text-primary: #f0f4f8;
    --text-secondary: #e8edf2;
    --text-muted: #8a9aa8;
    --text-dim: #5a6a7a;
    --text-footer: #3a4a5a;
    --badge-bg: rgba(167, 139, 250, 0.08);
    --badge-border: rgba(167, 139, 250, 0.08);
    --btn-secondary-bg: transparent;
    --btn-secondary-border: rgba(255, 255, 255, 0.06);
    --btn-secondary-hover: rgba(255, 255, 255, 0.03);
    /* Grid lines – white in dark mode */
    --grid-line: rgba(255, 255, 255, 0.08);
    --grid-line-width: 1px;
    --glow-1: #a78bfa;
    --glow-2: #6ee7b7;
    --glow-opacity: 0.06;
    /* Colours */
    --violet: #4D17F5;
    --orange: #F65608;
    --yellow: #E9D130;
    --pink: #FA9DCD;
    --gradient-start: var(--violet);
    --gradient-mid: var(--orange);
    --gradient-end: var(--yellow);
    --logo-border: rgba(167, 139, 250, 0.15);
    --card-hover-bg: rgba(255, 255, 255, 0.04);
    --card-hover-border: rgba(255, 255, 255, 0.08);
    --scrollbar-track: #0b0c10;
    --scrollbar-thumb: #2a2a3a;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
    --bg-body: #EEEEEC;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-card: rgba(0, 0, 0, 0.06);
    --border-nav: rgba(0, 0, 0, 0.06);
    --border-footer: rgba(0, 0, 0, 0.04);
    --text-primary: #1a1a2e;
    --text-secondary: #2d2d3a;
    --text-muted: #5a6a7a;
    --text-dim: #8a9aa8;
    --text-footer: #b0b8c0;
    --badge-bg: rgba(77, 23, 245, 0.08);
    --badge-border: rgba(77, 23, 245, 0.12);
    --btn-secondary-bg: rgba(0, 0, 0, 0.02);
    --btn-secondary-border: rgba(0, 0, 0, 0.08);
    --btn-secondary-hover: rgba(0, 0, 0, 0.04);
    /* Grid lines – pen-blue in light mode */
    --grid-line: rgba(37, 99, 235, 0.15);
    --grid-line-width: 2px;
    --glow-1: rgba(77, 23, 245, 0.08);
    --glow-2: rgba(246, 86, 8, 0.06);
    --glow-opacity: 0.4;
    --logo-border: rgba(77, 23, 245, 0.25);
    --card-hover-bg: rgba(0, 0, 0, 0.02);
    --card-hover-border: rgba(0, 0, 0, 0.10);
    --scrollbar-track: #EEEEEC;
    --scrollbar-thumb: #c0c8d0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   BACKGROUND – subtle grid + soft glow
   ============================================================ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) var(--grid-line-width), transparent var(--grid-line-width)),
        linear-gradient(90deg, var(--grid-line) var(--grid-line-width), transparent var(--grid-line-width));
    background-size: 48px 48px;
    transition: background-image 0.3s ease;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.bg-glow.g1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    background: var(--glow-1);
    opacity: var(--glow-opacity);
}
.bg-glow.g2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: var(--glow-2);
    opacity: var(--glow-opacity);
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ============================================================
   NAVBAR – with theme toggle
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-nav);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.navbar .brand .logo-pixel {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--violet), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--logo-border);
    transition: border-color 0.3s ease;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.navbar .nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.navbar .nav-links a:hover {
    color: var(--text-primary);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.navbar .nav-links .btn-outline {
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--btn-secondary-border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--btn-secondary-bg);
    transition: all 0.2s ease;
}

.navbar .nav-links .btn-outline:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--text-muted);
}

.navbar .nav-links .btn-primary {
    padding: 0.4rem 1.4rem;
    background: linear-gradient(135deg, var(--violet), var(--orange));
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0b0c10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(77, 23, 245, 0.2);
}

.navbar .nav-links .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(77, 23, 245, 0.3);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 0 3rem;
    gap: 1rem;
}

/* ----- Badge ----- */
.hero .badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--badge-bg);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--badge-border);
    transition: all 0.3s ease;
    color: var(--violet);
}

.hero .badge .dot-orange {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    margin-right: 0.3rem;
    box-shadow: 0 0 10px rgba(246, 86, 8, 0.3);
}

.hero .badge .dot-yellow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    margin-left: 0.3rem;
    box-shadow: 0 0 10px rgba(233, 209, 48, 0.3);
}

/* ----- Heading (Oswald + animated gradient) ----- */
.hero-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    letter-spacing: -0.15rem;
    line-height: 1.05;
    color: var(--text-primary);
    max-width: 700px;
    transition: color 0.3s ease;
}

.hero-heading .gradient-text {
    background: linear-gradient(135deg, var(--violet), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% auto;
    animation: textShine 4s ease-in-out infinite alternate;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-heading .highlight-pink {
    color: var(--pink);
    text-shadow: 0 0 30px rgba(250, 157, 205, 0.2);
}

/* ----- Paragraph ----- */
.hero p {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
    font-weight: 400;
    transition: color 0.3s ease;
}

/* ----- CTAs ----- */
.hero .cta-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero .cta-group .btn-hero {
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hero .cta-group .btn-hero-primary {
    background: linear-gradient(135deg, var(--violet), var(--orange));
    color: #0b0c10;
    box-shadow: 0 2px 20px rgba(77, 23, 245, 0.2);
}

.hero .cta-group .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(77, 23, 245, 0.3);
}

.hero .cta-group .btn-hero-secondary {
    background: var(--btn-secondary-bg);
    color: var(--text-secondary);
    border: 1px solid var(--btn-secondary-border);
}

.hero .cta-group .btn-hero-secondary:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--text-muted);
}

/* ============================================================
   TEACHER GRID
   ============================================================ */
.grid-section {
    padding: 1.5rem 0 3rem;
    border-top: 1px solid var(--border-footer);
    transition: border-color 0.3s ease;
}

.grid-section .grid-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

.grid-section .grid-label .accent {
    color: var(--orange);
}

.grid-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.grid-section .grid .card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.25s ease;
    cursor: default;
}

.grid-section .grid .card:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(77, 23, 245, 0.04);
}

.grid-section .grid .card .flag {
    font-size: 1.4rem;
    line-height: 1;
}

.grid-section .grid .card .info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.grid-section .grid .card .info .name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.grid-section .grid .card .info .subject {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.grid-section .grid .card .info .subject .lang {
    background: linear-gradient(135deg, var(--violet), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Colour‑coded teacher cards */
.grid-section .grid .card.pink-accent {
    border-color: rgba(250, 157, 205, 0.15);
}
.grid-section .grid .card.pink-accent:hover {
    border-color: var(--pink);
    box-shadow: 0 4px 20px rgba(250, 157, 205, 0.1);
}
.grid-section .grid .card.pink-accent .subject .lang {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grid-section .grid .card.orange-accent {
    border-color: rgba(246, 86, 8, 0.1);
}
.grid-section .grid .card.orange-accent:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 20px rgba(246, 86, 8, 0.1);
}
.grid-section .grid .card.orange-accent .subject .lang {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grid-section .grid .card.yellow-accent {
    border-color: rgba(233, 209, 48, 0.1);
}
.grid-section .grid .card.yellow-accent:hover {
    border-color: var(--yellow);
    box-shadow: 0 4px 20px rgba(233, 209, 48, 0.1);
}
.grid-section .grid .card.yellow-accent .subject .lang {
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-footer);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: border-color 0.3s ease;
}

.footer span {
    font-size: 0.65rem;
    color: var(--text-footer);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.footer span .accent-violet { color: var(--violet); }
.footer span .accent-orange { color: var(--orange); }
.footer span .accent-yellow { color: var(--yellow); }
.footer span .accent-pink { color: var(--pink); }

.footer .links {
    display: flex;
    gap: 1.5rem;
}

.footer .links a {
    font-size: 0.6rem;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.footer .links a:hover {
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 0 1.25rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .nav-links {
        gap: 1rem;
    }

    .navbar .nav-links a {
        font-size: 0.7rem;
    }

    .navbar .nav-links .btn-outline,
    .navbar .nav-links .btn-primary {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    .theme-toggle {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 0;
        gap: 0.75rem;
    }

    .hero-heading {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -0.1rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .grid-section .grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        padding: 0 1rem;
    }

    .navbar .brand {
        font-size: 0.95rem;
    }

    .navbar .brand .logo-pixel {
        font-size: 0.7rem;
    }

    .navbar .nav-links a:not(.btn-outline):not(.btn-primary):not(.theme-toggle) {
        display: none;
    }

    .hero-heading {
        font-size: 1.8rem;
        letter-spacing: -0.08rem;
    }

    .hero .cta-group .btn-hero {
        font-size: 0.7rem;
        padding: 0.5rem 1.2rem;
    }

    .grid-section .grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .grid-section .grid .card {
        padding: 0.6rem 0.75rem;
    }

    .grid-section .grid .card .flag {
        font-size: 1.2rem;
    }

    .grid-section .grid .card .info .name {
        font-size: 0.65rem;
    }

    .grid-section .grid .card .info .subject {
        font-size: 0.5rem;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a4a;
}
