:root {
    --bg-color: #050505;
    --text-color: #ededed;
    --accent-gold: #cfb562;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
}

/* --- ANIMATED NEBULA BACKGROUND --- */
body {
    background: #050505;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    z-index: -2;
    background: radial-gradient(circle at center, #1a0b2e 0%, #000000 40%, #0f172a 100%);
    /* Adding multi-color blobs */
    background-image:
        radial-gradient(circle at 50% 50%, rgba(76, 29, 149, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);

    animation: nebulaMove 20s ease-in-out infinite alternate;
}

/* Brighten the background slightly (User Request) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -2;
}

@keyframes nebulaMove {
    0% {
        transform: translate(-10%, -10%) scale(1);
    }

    100% {
        transform: translate(0%, 0%) scale(1.1);
    }
}

/* --- MENU OVERLAY --- */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9998;
    /* Just below cursor/nav anchors */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    font-family: var(--font-body);
    transition: transform 0.3s ease, color 0.3s ease;
}

#menu-close:hover {
    transform: rotate(90deg);
    color: var(--accent-gold);
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.menu-link span {
    font-size: 1rem;
    font-family: var(--font-body);
    vertical-align: middle;
    margin-right: 1rem;
    color: var(--accent-gold);
}

.menu-link:hover {
    color: #fff;
}

/* Strikethrough effect on hover? or Slide? Let's keep it simple for now */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10001;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease;
}

.loader-content {
    text-align: center;
    position: relative;
    width: 300px;
}

/* CSS Scooter (Neon Style) */
.scooter-container {
    position: relative;
    height: 100px;
    margin-bottom: 2rem;
    animation: bounce 0.5s infinite alternate;
}

.scooter {
    position: relative;
    width: 120px;
    height: 60px;
    margin: 0 auto;
}

.wheel {
    width: 30px;
    height: 30px;
    border: 3px solid #06b6d4;
    /* Cyan Neon */
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    box-shadow: 0 0 10px #06b6d4;
    animation: spin 0.2s linear infinite;
}

.wheel.back {
    left: 0;
}

.wheel.front {
    right: 0;
}

.wheel::after {
    content: "";
    /* Spokes */
    position: absolute;
    top: 0;
    left: 13px;
    width: 2px;
    height: 100%;
    background: #06b6d4;
}

.frame {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 90px;
    height: 10px;
    background: #fff;
    transform: rotate(-10deg);
}

.handlebars {
    position: absolute;
    bottom: 30px;
    right: 25px;
    width: 5px;
    height: 40px;
    background: #fff;
    transform: rotate(20deg);
}

.handlebars::before {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 5px;
    background: #fff;
}

/* Speed Lines */
.speed-lines {
    position: absolute;
    top: 50%;
    left: -50px;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 0 rgba(255, 255, 255, 0.3), 0 -10px 0 rgba(255, 255, 255, 0.3);
    animation: dash 0.5s linear infinite;
}

/* Counter & Button */
.counter-display {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    font-weight: 800;
}

.unit {
    font-size: 1rem;
    color: #888;
}

#enter-btn {
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid #06b6d4;
    color: #06b6d4;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#enter-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#enter-btn:hover {
    background: #06b6d4;
    color: #000;
    box-shadow: 0 0 20px #06b6d4;
}

/* Animations */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-2px);
    }
}

@keyframes dash {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(-100px);
        opacity: 0;
    }
}

.hidden {
    display: none;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10002;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effect for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* --- THREE.JS LAYER --- */
#world-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* --- TYPOGRAPHY --- (The Lempens Look) */
h1,
h2,
h3,
.brand {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    text-align: center;
    mix-blend-mode: overlay;
    /* Blends with stars */
}

.section-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
}

.label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 1rem;
    display: block;
}

/* --- LAYOUT --- */
.page-wrapper {
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- NAVIGATION ANCHORS --- */
.nav-anchor {
    position: fixed;
    z-index: 50;
    padding: 2rem;
    mix-blend-mode: difference;
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}

.brand {
    font-size: 1.5rem;
}

.menu-btn {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* --- PROJECT/STORY CARDS --- */
.project-item {
    position: relative;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.project-item:hover {
    padding-left: 2rem;
    /* Slide effect */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
}

.project-year {
    font-size: 3rem;
    font-family: var(--font-display);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.project-title {
    font-size: clamp(2rem, 5vw, 4rem);
}