:root {
    /* Deep space theme (default) */
    --bg: #050816;
    --bg-alt: #111827;
    --glass: rgba(15, 23, 42, 0.85);
    --glass-strong: rgba(15, 23, 42, 0.95);
    --text: #f9fafb;
    --muted: #9ca3af;
    --accent-mint: #6ee7b7;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.7);
    --radius: 16px;
    --border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Cyber indigo theme */
[data-theme="cyber"] {
    --bg: #020617;
    --bg-alt: #020617;
    --glass: rgba(15, 23, 42, 0.92);
    --glass-strong: rgba(15, 23, 42, 0.98);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent-mint: #22c55e;
    --accent-blue: #38bdf8;
    --accent-purple: #6366f1;
    --shadow: 0 24px 55px rgba(15, 23, 42, 0.85);
}

/* Warm midnight theme */
[data-theme="warm"] {
    --bg: #020617;
    --bg-alt: #020617;
    --glass: rgba(15, 23, 42, 0.9);
    --glass-strong: rgba(15, 23, 42, 0.96);
    --text: #f9fafb;
    --muted: #cbd5f5;
    --accent-mint: #f97316;
    --accent-blue: #22c55e;
    --accent-purple: #fb7185;
    --shadow: 0 24px 55px rgba(15, 23, 42, 0.9);
}

/* Clean light theme */
[data-theme="light"] {
    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-strong: rgba(255, 255, 255, 0.98);
    --text: #020617;
    --muted: #6b7280;
    --accent-mint: #22c55e;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.1), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(167, 139, 250, 0.12), transparent 40%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    padding: 0 1.5rem 3rem;
    position: relative;
    overflow-x: hidden;
}

main,
section {
    max-width: 1200px;
    margin: 0 auto;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.badge {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: var(--border);
    background: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.section {
    padding: 4rem 0;
}

.section__header h2 {
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    margin-bottom: 1.5rem;
}

.glass-card {
    background: var(--glass);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-blue));
    color: #05101f;
    box-shadow: 0 15px 30px rgba(110, 231, 183, 0.35);
}

.btn.ghost {
    border: var(--border);
    color: var(--text);
    background: transparent;
}

.btn:hover {
    transform: translateY(-4px);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--glass);
    border: var(--border);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 30;
}

.navbar__brand {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.navbar__links {
    display: flex;
    gap: 1.2rem;
    font-size: 0.95rem;
}

.navbar__links a.active {
    color: var(--accent-mint);
    position: relative;
}

.navbar__links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-blue));
}

.navbar__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.theme-toggle,
.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: var(--border);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar__links {
        position: fixed;
        top: 80px;
        right: 1.5rem;
        left: 1.5rem;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.96);
        padding: 1.2rem 1.4rem;
        border-radius: var(--radius);
        border: var(--border);
        box-shadow: var(--shadow);
        display: none;
        z-index: 25;
    }

    .navbar__links.open {
        display: flex;
    }

    .menu-toggle {
        display: grid;
    }
}

footer {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 2rem;
    border-radius: var(--radius);
    border: var(--border);
    background: var(--glass);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

footer ul {
    display: flex;
    gap: 1rem;
}

footer li {
    font-size: 0.95rem;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

@media (max-width: 700px) {
    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    footer ul {
        flex-direction: column;
        gap: 0.4rem;
    }
}

.header {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.header__meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.header__meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-mint);
    display: inline-flex;
}

body.nav-open .header {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chips span {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: var(--border);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
}

/* Cursor glow */
.cursor-glow {
    position: fixed;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.22), transparent 65%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.4s ease-out;
    z-index: 20;
}

@media (max-width: 900px) {
    .cursor-glow {
        display: none;
    }
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.2), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(167, 139, 250, 0.25), transparent 60%),
        #020617;
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: 40;
}

.page-transition.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-blue), var(--accent-purple));
    border-radius: 999px;
}
