:root {
    /* Surfaces */
    --void: #050508;
    --bg: #08080d;
    --bg-alt: #0c0c14;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* Text */
    --text: #f4f4f9;
    --text-dim: #a8a8ba;
    --text-faint: #6f6f82;

    /* Neon accents */
    --cyan: #22e0ff;
    --violet: #a855f7;
    --pink: #ff4fd8;
    --lime: #b6ff3c;

    --gradient-primary: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
    --gradient-warm: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
    --gradient-full: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));

    --glow-cyan: 0 0 30px rgba(34, 224, 255, 0.45);
    --glow-violet: 0 0 30px rgba(168, 85, 247, 0.45);
    --glow-pink: 0 0 30px rgba(255, 79, 216, 0.4);
    --glow-soft: 0 20px 60px rgba(0, 0, 0, 0.55);

    /* Text / glyph color that sits on top of an accent gradient fill
       (buttons, tag pills, icon badges). Dark here because the dark-theme
       accents are bright neon; the light theme flips this to white since
       its accents are deepened. */
    --on-accent: #0a0a12;

    /* Never-themed ink for decorative marks on vivid fills (trail dots,
       floating tooltips) — must stay dark regardless of --on-accent. */
    --ink: #0a0a12;

    /* Translucent navbar/dropdown glass + cursor-spotlight tint */
    --nav-glass: rgba(5, 5, 10, 0.75);
    --nav-menu-bg: rgba(8, 8, 13, 0.98);
    --spotlight: rgba(255, 255, 255, 0.12);

    /* Two typefaces, one family — a tight, single-voice system.
       Display: Archivo Black for headlines and the wordmark.
       Text: Archivo Regular/Medium for body copy, captions, and UI labels.
       --font-label is the same family, kept as an alias for the small
       uppercase caption/label treatments that pair it with tracking. */
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Archivo', sans-serif;
    --font-label: 'Archivo', sans-serif;
}

:root[data-theme="light"] {
    /* Surfaces */
    --void: #ffffff;
    --bg: #f6f6fb;
    --bg-alt: #ffffff;
    --surface: rgba(10, 10, 30, 0.04);
    --surface-strong: rgba(10, 10, 30, 0.07);
    --border: rgba(10, 10, 30, 0.1);
    --border-strong: rgba(10, 10, 30, 0.18);

    /* Text */
    --text: #0e0e18;
    --text-dim: #4b4b60;
    --text-faint: #7c7c90;

    /* Neon accents, deepened so they stay readable on a light background */
    --cyan: #0284a6;
    --violet: #7c3aed;
    --pink: #c2178a;
    --lime: #4d7c0f;

    /* Light-theme accent fills are deep/saturated, so text on them goes white */
    --on-accent: #ffffff;

    --glow-cyan: 0 0 24px rgba(2, 132, 166, 0.25);
    --glow-violet: 0 0 24px rgba(124, 58, 237, 0.25);
    --glow-pink: 0 0 24px rgba(194, 23, 138, 0.22);
    --glow-soft: 0 15px 40px rgba(20, 20, 40, 0.12);

    --nav-glass: rgba(255, 255, 255, 0.75);
    --nav-menu-bg: rgba(255, 255, 255, 0.98);
    --spotlight: rgba(10, 10, 30, 0.06);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

::selection {
    background: var(--violet);
    color: var(--text);
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Responsive container */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 98%;
        padding: 0 10px;
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

/* Responsive section padding */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Responsive section header */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 35px;
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive section title */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* Responsive section subtitle */
@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 3D tilt + cursor spotlight (applied via tilt.js) */
.tilt-card {
    position: relative;
    transition: transform 0.15s ease-out;
}

.tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--spotlight), transparent 60%);
    opacity: var(--spotlight-opacity, 0);
    transition: opacity 0.3s ease;
    pointer-events: none;
}
