﻿*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #08080c;
    --surface: #101018;
    --card: #14141f;
    --border: #1e1e2e;
    --gold: #c9a96e;
    --teal: #4ecdc4;
    --text: #e8e4de;
    --muted: #6b6b7b;
    --cursor-color: #c9a96e;
    --font-display: 'Syne', sans-serif;
    --font-body: 'IBM Plex Mono', monospace;
}

body {
    cursor: none;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

.back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 100;
}

.back-link:hover { color: var(--gold); }
.back-link svg { transition: transform 0.3s ease; }
.back-link:hover svg { transform: translateX(-4px); }

.project-label {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.2s;
}

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 45px; height: 45px;
    border: 1.5px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
}

.cursor-ring.expanded {
    width: 80px;
    height: 80px;
    border-color: var(--cursor-color);
    background: rgba(201, 169, 110, 0.04);
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.03), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease-out;
}

.nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 4rem;
}

.nav-header {
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.nav-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.accent { color: var(--gold); }

.nav-sub {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    list-style: none;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.nav-links li {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 1.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    border-radius: 8px;
}

.nav-links li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cursor-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.nav-links li:hover::after {
    width: 80%;
}

.nav-links li:hover {
    color: var(--cursor-color);
    border-color: rgba(201, 169, 110, 0.1);
    background: rgba(201, 169, 110, 0.03);
    transform: translateY(-4px);
}

.coordinates {
    display: flex;
    gap: 2rem;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); } 
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring, .cursor-trail { display: none; }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .nav-links li { font-size: 1.3rem; padding: 1rem 1.5rem; }
    .back-link { position: static; padding: 1.5rem; }
    .project-label { position: static; text-align: center; padding: 0 1.5rem; }
}
