/* ============================================================
   XITE STUDIOS — Global Design System v3
   Dark Theme · Cyan/Blue Accents · Premium · Advanced Effects
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
    --bg-deep: #040710;
    --bg-surface: #0a0e1c;
    --bg-card: rgba(10, 16, 36, 0.55);
    --bg-card-hover: rgba(16, 24, 52, 0.7);
    --bg-glass: rgba(8, 14, 30, 0.7);
    --bg-elevated: rgba(14, 22, 48, 0.4);

    --cyan: #00d4ff;
    --cyan-light: #5de8ff;
    --blue: #0088ff;
    --blue-deep: #0055cc;
    --purple: #6c3fff;
    --purple-light: #9b7aff;
    --teal: #00c9a7;
    --amber: #ffaa00;
    --white: #ffffff;

    --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
    --gradient-accent: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 136, 255, 0.05));
    --gradient-dark: linear-gradient(180deg, #040710 0%, #0a0e1c 50%, #080c18 100%);

    --text-primary: #e4eaf5;
    --text-secondary: #6b7a99;
    --text-muted: rgba(107, 122, 153, 0.45);
    --text-bright: #ffffff;

    --border-subtle: rgba(0, 212, 255, 0.05);
    --border-card: rgba(0, 212, 255, 0.08);
    --border-hover: rgba(0, 212, 255, 0.25);

    --glow-cyan: rgba(0, 212, 255, 0.2);
    --glow-blue: rgba(0, 136, 255, 0.15);
    --glow-purple: rgba(108, 63, 255, 0.12);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 6px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 12px 48px rgba(0, 212, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.1), 0 0 120px rgba(0, 136, 255, 0.05);

    --section-padding: 120px 0;
    --container-max: 1200px;
    --nav-height: 80px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(108, 63, 255, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Typography ──────────────────────────────────────────── */
.heading-xl {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(42px, 6.5vw, 82px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.heading-lg {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.heading-md {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.heading-sm {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-brand {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ── Section Header ──────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.5;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-bright);
}

.section-subtitle {
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ── Glass Card ──────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.025) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Card glow trail on hover */
.glass-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.glass-card:hover .glass-card-glow {
    opacity: 1;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::after {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    border: 1.5px solid rgba(0, 212, 255, 0.2);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.03);
}

.btn-outline:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.08);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
}

.btn-ghost {
    color: var(--text-secondary);
    padding: 10px 20px;
}

.btn-ghost:hover {
    color: var(--cyan);
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.badge-cyan {
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.12);
}

.badge-blue {
    background: rgba(0, 136, 255, 0.08);
    color: var(--blue);
    border: 1px solid rgba(0, 136, 255, 0.12);
}

.badge-purple {
    background: rgba(108, 63, 255, 0.08);
    color: var(--purple);
    border: 1px solid rgba(108, 63, 255, 0.12);
}

.badge-teal {
    background: rgba(0, 201, 167, 0.08);
    color: var(--teal);
    border: 1px solid rgba(0, 201, 167, 0.12);
}

/* ── Status Badges ───────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dev {
    background: rgba(255, 170, 0, 0.08);
    color: var(--amber);
    border: 1px solid rgba(255, 170, 0, 0.15);
}

.status-dev::before {
    background: var(--amber);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
    animation: statusPulse 2s ease infinite;
}

.status-beta {
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.status-beta::before {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
    animation: statusPulse 2s ease infinite;
}

.status-secret {
    background: rgba(108, 63, 255, 0.08);
    color: var(--purple-light);
    border: 1px solid rgba(108, 63, 255, 0.15);
}

.status-secret::before {
    background: var(--purple);
    box-shadow: 0 0 10px var(--glow-purple);
    animation: statusPulse 3s ease infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }
}

/* ── Progress Bar ────────────────────────────────────────── */
.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-accent);
    position: relative;
    transition: width 1.8s var(--ease-out);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--glow-cyan);
}

/* ── Glow Line ───────────────────────────────────────────── */
.glow-line {
    width: 50px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--glow-cyan);
}

/* ── Divider ─────────────────────────────────────────────── */
.section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-card), transparent);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(4, 7, 16, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.15));
}

.nav-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-bright);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-bright);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-cyan);
}

.nav-cta {
    margin-left: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px 0;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg canvas {
    width: 100%;
    height: 100%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    z-index: 2;
}

/* Animated grid lines */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 20s linear infinite;
    z-index: 1;
}

@keyframes gridDrift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Morphing blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    z-index: 0;
    animation: blobFloat 20s ease-in-out infinite alternate;
}

.hero-blob--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    top: 5%;
    left: 5%;
    animation-duration: 24s;
}

.hero-blob--2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(108, 63, 255, 0.09), transparent 70%);
    bottom: 15%;
    right: 5%;
    animation-duration: 19s;
    animation-delay: -7s;
}

.hero-blob--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.07), transparent 70%);
    top: 40%;
    left: 45%;
    animation-duration: 28s;
    animation-delay: -12s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -40px) scale(1.12);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.92);
    }

    100% {
        transform: translate(40px, -15px) scale(1.06);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 860px;
    padding: 0 24px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    position: relative;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.2));
    animation: heroLogoPulse 6s ease-in-out infinite alternate;
}

.hero-logo::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06), transparent 70%);
    animation: heroLogoPulse 6s ease-in-out infinite alternate-reverse;
}

@keyframes heroLogoPulse {
    0% {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.12));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.3));
        transform: scale(1.04);
    }
}

.hero-title {
    margin-bottom: 22px;
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--cyan);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s step-end infinite;
    box-shadow: 0 0 10px var(--glow-cyan);
    border-radius: 1px;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 44px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════
   FEATURE STRIP (What We Do)
   ═══════════════════════════════════════════════════════════ */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-strip-card {
    padding: 40px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.feature-strip-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-card);
    transition: all 0.5s ease;
}

.glass-card:hover .feature-strip-icon {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.12);
    transform: scale(1.08) translateY(-4px);
}

.feature-strip-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.feature-strip-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   SECRET PROJECT CARDS (Codename games)
   ═══════════════════════════════════════════════════════════ */
.project-secret-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
}

.project-secret-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Mobile game — cool blue geometric */
.project-secret-bg--mobile {
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 136, 255, 0.04) 50%, transparent 100%),
        radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(108, 63, 255, 0.04) 0%, transparent 50%),
        var(--bg-surface);
}

.project-secret-bg--mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 0%, transparent 70%);
}

.project-secret-bg--mobile::after {
    content: '📱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 80px;
    opacity: 0.08;
    filter: blur(2px);
}

/* Desktop game — purple geometric */
.project-secret-bg--desktop {
    background:
        linear-gradient(135deg, rgba(108, 63, 255, 0.08) 0%, rgba(0, 136, 255, 0.04) 50%, transparent 100%),
        radial-gradient(circle at 30% 30%, rgba(108, 63, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        var(--bg-surface);
}

.project-secret-bg--desktop::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 63, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 63, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, black 0%, transparent 70%);
}

.project-secret-bg--desktop::after {
    content: '🖥️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 80px;
    opacity: 0.08;
    filter: blur(2px);
}

.project-secret-content {
    position: relative;
    z-index: 1;
}

.project-secret-codename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-secret-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.project-secret-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Lock icon for secret projects */
.lock-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT / STATS
   ═══════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 32px 20px;
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════
   PROJECT SPOTLIGHT
   ═══════════════════════════════════════════════════════════ */
.project-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    border-radius: var(--radius-xl);
}

.project-spotlight-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-spotlight-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-spotlight-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
}

.project-spotlight-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════ */
.cta-banner {
    position: relative;
    padding: 80px 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
    border: 1px solid var(--border-card);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 300px at 30% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 70% 50%, rgba(108, 63, 255, 0.04) 0%, transparent 70%);
    z-index: 0;
}

.cta-banner-content {
    position: relative;
    z-index: 1;
}

.cta-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-banner-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'JetBrains Mono', monospace;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 16, 36, 0.6);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.04);
    background: rgba(10, 16, 36, 0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border: 1px solid var(--border-card);
    color: var(--cyan);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 15px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.35s ease;
}

.social-link:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--blue), var(--purple), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 44px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--glow-cyan);
    border: 2px solid var(--bg-deep);
}

.timeline-year {
    font-size: 11px;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.timeline-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (sub-pages)
   ═══════════════════════════════════════════════════════════ */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 80% 70%, rgba(108, 63, 255, 0.04) 0%, transparent 70%);
    z-index: 0;
}

.page-header-title {
    position: relative;
    z-index: 1;
}

.page-header-desc {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(4, 7, 16, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-logo img {
    height: 30px;
}

.footer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 17px;
}

.footer-brand-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-bright);
    margin-bottom: 18px;
    font-family: 'JetBrains Mono', monospace;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--cyan);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.06);
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.15);
    }
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-grid {
        gap: 40px;
    }

    .project-spotlight {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .feature-strip {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --nav-height: 64px;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(4, 7, 16, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 22px;
        font-weight: 700;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-banner {
        padding: 48px 24px;
    }

    .project-spotlight {
        padding: 24px;
    }

    .hero-blob {
        display: none;
    }

    .hero-grid {
        display: none;
    }

    .project-secret-card {
        min-height: 340px;
        padding: 28px;
    }
}

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

    .stat-number {
        font-size: 34px;
    }
}