:root {
    --space-deep: #03010a;
    --space-mid: #0a0520;
    --space-purple: #1a0a3a;
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --glow-purple: 0 0 20px #7c3aed88, 0 0 40px #7c3aed44;
    --glow-cyan: 0 0 20px #06b6d488, 0 0 40px #06b6d444;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--space-deep);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    cursor: none;
}

#cursor-blob {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed22 0%, #7c3aed08 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
    transition: left 0.08s ease, top 0.08s ease;
}

body::after {
    content: '';
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 10px var(--accent-cyan);
    transform: translate(-50%, -50%);
    left: var(--cx, 50%);
    top: var(--cy, 50%);
}


#viewport {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

#space {
    position: absolute;
    width: 6000px;
    height: 6000px;
    background: radial-gradient(ellipse at 20% 30%, #1a0a3a 0%, #0a0520 40%, #03010a 100%);
    will-change: transform;
}

#space::before {
    content: '';
    position: absolute;
    width: 1200px;
    height: 800px;
    background: radial-gradient(ellipse, #7c3aed18 0%, transparent 70%);
    top: 600px;
    left: 200px;
    border-radius: 50%;
    filter: blur(60px);
}

#space::after {
    content: '';
    position: absolute;
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, #06b6d415 0%, transparent 70%);
    top: 4000px;
    left: 4500px;
    border-radius: 50%;
    filter: blur(80px);
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes starDrift {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

#nav-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

#nav-toggle {
    background: rgba(10, 5, 32, 0.85);
    border: 1px solid #7c3aed55;
    color: var(--text-main);
    padding: 10px 18px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 6px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#nav-toggle:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
}

#nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#nav-links.open {
    max-height: 300px;
}

.nav-item {
    background: rgba(10, 5, 32, 0.9);
    border: 1px solid #ffffff15;
    color: var(--text-main);
    padding: 9px 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    text-align: left;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, background 0.2s;
}

.nav-item:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent-purple);
}

#hud {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    color: #ffffff22;
    letter-spacing: 2px;
    z-index: 100;
}

.planet {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.planet:hover {
    transform: scale(1.08) !important;
}

.planet-label {
    position: absolute;
    text-align: center;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
}

@keyframes planetPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

#intro-overlay {
    position: fixed;
    inset: 0;
    background: #03010a;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
}

#intro-scanline {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
    animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.4; height: 40px; }
    50% { opacity: 1; height: 70px; }
}

#intro-sub {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    letter-spacing: 6px;
    color: var(--accent-purple);
    margin-bottom: 12px;
    animation: fadeSlideUp 1s ease 0.3s both;
}

#intro-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 900;
    line-height: 0.9;
    color: white;
    text-shadow: 0 0 60px #7c3aed88, 0 0 120px #7c3aed33;
    animation: fadeSlideUp 1s ease 0.5s both;
    margin-bottom: 24px;
}

#intro-title span {
    color: var(--accent-purple);
}

#intro-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: var(--text-dim);
    letter-spacing: 1px;
    line-height: 1.8;
    animation: fadeSlideUp 1s ease 0.7s both;
    margin-bottom: 40px;
}

#intro-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 16px 40px;
    cursor: pointer;
    animation: fadeSlideUp 1s ease 0.9s both;
    overflow: hidden;
    transition: color 0.3s;
}

#intro-btn:hover {
    color: white;
    box-shadow: var(--glow-purple);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: var(--accent-purple);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

#intro-btn:hover .btn-glow {
    opacity: 0.3;
}

#intro-hint {
    margin-top: 24px;
    font-size: 12px;
    color: #ffffff22;
    letter-spacing: 2px;
    animation: fadeSlideUp 1s ease 1.1s both, blink 3s ease-in-out 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

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