:root {
    --black: #020202;
    --space-blue: #0A1128;
    --electric-blue: #00E5FF;
    --purple: #7B2DFF;
    --neon-red: #ff1744;
    --white: #FFFFFF;
    --glass-bg: rgba(0, 20, 40, 0.7);
    --glass-border: rgba(0, 229, 255, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body, html {
    background-color: var(--black); color: var(--white);
    font-family: 'Rajdhani', sans-serif; overflow-x: hidden; width: 100%;
}

h1, h2, h3, .glow-text, .glitch-text { font-family: 'Orbitron', sans-serif; text-transform: uppercase; }

.console-text { font-family: 'Share Tech Mono', monospace; color: var(--electric-blue); font-size: 0.9rem; letter-spacing: 1px; }
.micro-text { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: #ff1744; display: block; margin-top: 5px; opacity: 0.8;}
.mt-10 { margin-top: 15px; }

@keyframes gridScroll {
    0% { transform: perspective(600px) rotateX(60deg) translateY(0px) translateZ(-200px); }
    100% { transform: perspective(600px) rotateX(60deg) translateY(60px) translateZ(-200px); }
}

.data-stream {
    position: fixed; top: 0; height: 100vh; width: 15vw; z-index: -2;
    font-family: 'Share Tech Mono', monospace; font-size: 10px; color: rgba(0, 229, 255, 0.15);
    line-height: 1.2; word-wrap: break-word; overflow: hidden; pointer-events: none;
}
.stream-left { left: 10px; text-align: left; animation: matrixScroll 20s linear infinite; }
.stream-right { right: 10px; text-align: right; color: rgba(123, 45, 255, 0.15); animation: matrixScroll 25s linear infinite reverse; }

@keyframes matrixScroll {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0%); }
}

/* 1. Stats Scanline & Hex Grid */
.bg-scanline {
    position: relative;
    background: 
        linear-gradient(rgba(0, 229, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at center, rgba(10, 17, 40, 0.9) 0%, rgba(2, 2, 2, 1) 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    overflow: hidden;
}
.bg-scanline::before {
    content: "";
    position: absolute;
    top: -100%; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.15), transparent);
    animation: scanlinePass 3s linear infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes scanlinePass {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* 2. Solar System Cosmic Nebula */
.bg-nebula {
    background: 
        radial-gradient(circle at 20% 30%, rgba(123, 45, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.15) 0%, transparent 40%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" opacity="0.1"><rect width="400" height="400" fill="%23000"/><circle cx="50" cy="50" r="1.5" fill="%23fff"/><circle cx="200" cy="150" r="2" fill="%23fff"/><circle cx="350" cy="300" r="1" fill="%23fff"/></svg>');
    background-size: 100% 100%, 100% 100%, 250px 250px;
    animation: nebulaPulse 15s ease-in-out infinite alternate;
}
@keyframes nebulaPulse {
    0% { background-position: 0% 0%, 0% 0%, 0 0; }
    100% { background-position: 5% 5%, -5% -5%, 50px 50px; }
}

/* 3. Black Hole Singularity Vignette Overlay */
.bg-singularity {
    background: radial-gradient(circle at center, transparent 20%, rgba(255, 23, 68, 0.15) 60%, rgba(123, 45, 255, 0.3) 100%);
    animation: singularityVignette 2.5s infinite alternate ease-in-out;
}
@keyframes singularityVignette {
    0% { box-shadow: inset 0 0 100px rgba(255, 23, 68, 0.1); }
    100% { box-shadow: inset 0 0 400px rgba(123, 45, 255, 0.5); }
}
/* --- HUD OVERLAYS --- */
.hud-overlay {
    position: fixed; z-index: 1000; font-family: 'Share Tech Mono', monospace; font-size: 12px;
    color: var(--electric-blue); pointer-events: none; text-shadow: 0 0 5px var(--electric-blue);
    background: rgba(0, 20, 40, 0.8); padding: 10px; border: 1px solid var(--electric-blue);
}
.hud-tl { top: 20px; left: 20px; border-left: 4px solid var(--electric-blue); }
.hud-br { bottom: 20px; right: 20px; border-right: 4px solid var(--neon-red); color: var(--neon-red); text-align: right; text-shadow: 0 0 5px var(--neon-red); border-color: var(--neon-red);}

/* --- GLITCH & GLOW EFFECTS --- */
.glow-text { text-shadow: 0 0 15px rgba(0, 229, 255, 0.8), 0 0 30px rgba(0, 229, 255, 0.4); }

.glitch-text { animation: glitch 2s linear infinite; position: relative; display: inline-block; }
@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); text-shadow: none; }
    92% { transform: translate(-2px, 2px); text-shadow: -2px 0 red, 2px 0 blue; }
    94% { transform: translate(2px, -2px); text-shadow: 2px 0 red, -2px 0 blue; }
    96% { transform: translate(-2px, -2px); text-shadow: -2px 0 red, 2px 0 blue; }
}

/* --- CUSTOM CURSOR --- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 9999; }
.cursor-dot { width: 4px; height: 4px; background-color: var(--white); box-shadow: 0 0 10px 2px var(--electric-blue); }
.cursor-ring { width: 40px; height: 40px; border: 1px dashed var(--electric-blue); transition: width 0.2s, height 0.2s; animation: spinCursor 4s linear infinite; }
@keyframes spinCursor { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* --- GLASSMORPHISM --- */
.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-top: 3px solid var(--electric-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 229, 255, 0.1);
    position: relative; overflow: hidden;
}

/* --- LOADER --- */
#loader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--black); display: flex; justify-content: center; align-items: center; z-index: 9000; }
.loader-content { text-align: center; width: 80%; max-width: 600px; }
#loading-text { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--electric-blue); letter-spacing: 6px; margin-bottom: 20px;}
.loader-subtext { font-family: 'Share Tech Mono', monospace; font-size: 0.9rem; color: #888; margin-top: 15px;}
.progress-bar-container { width: 100%; height: 2px; background-color: #111; position: relative; overflow: hidden;}
.progress-bar { width: 0%; height: 100%; background-color: var(--electric-blue); box-shadow: 0 0 15px var(--electric-blue); }

/* --- HERO --- */
#hero-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; opacity: 0.8; }
#hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; z-index: 1; padding: 0 20px; }
.subtitle { letter-spacing: 12px; font-size: clamp(0.9rem, 2vw, 1.2rem); margin-bottom: 20px; color: var(--neon-red); text-shadow: 0 0 10px var(--neon-red); background: rgba(255,0,0,0.1); padding: 5px 15px; border: 1px solid var(--neon-red); display: inline-block;}
.hero-content h1 { font-size: clamp(3rem, 7vw, 7rem); letter-spacing: clamp(2px, 1vw, 8px); margin-bottom: 25px; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 45px; display: inline-block; text-align: left; background: rgba(0,0,0,0.6); padding: 15px; border-left: 3px solid var(--electric-blue);}

.glow-btn {
    padding: 15px 40px; background: rgba(0, 229, 255, 0.1); border: 1px solid var(--electric-blue);
    color: var(--electric-blue); font-size: 1.2rem; font-family: 'Orbitron', sans-serif; font-weight: bold;
    letter-spacing: 4px; transition: all 0.2s ease; position: relative; overflow: hidden;
}
.glow-btn:hover { background: var(--electric-blue); color: var(--black); box-shadow: 0 0 30px var(--electric-blue); transform: scale(1.05); }

.scroll-indicator { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; opacity: 0.8; }
.scroll-indicator p { font-family: 'Share Tech Mono'; font-size: 0.8rem; letter-spacing: 4px; margin-bottom: 12px; color: var(--electric-blue);}
.scroll-indicator .line { width: 2px; height: 50px; background: var(--electric-blue); animation: stretch 1s infinite ease-in-out; }

/* --- STATS --- */
#stats { padding: 120px 20px; position: relative; z-index: 2; }
.stats-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.stat-box { flex: 1 1 250px; padding: 40px 20px; text-align: center; }
.stat-hud-bg { position: absolute; top: -10px; right: -10px; font-size: 4rem; color: rgba(255,255,255,0.03); font-family: 'Orbitron'; font-weight: 900; z-index: -1; transform: rotate(90deg);}
.stat-box h3 { font-size: clamp(3rem, 5vw, 4.5rem); color: var(--electric-blue); margin-bottom: 10px; text-shadow: 0 0 15px rgba(0,229,255,0.5); }
.stat-box p { font-size: 1.1rem; letter-spacing: 2px; color: #fff; font-weight: bold;}

/* --- SOLAR SYSTEM --- */
#solar-system { height: 100vh; width: 100vw; position: relative; overflow: hidden; perspective: 1200px; display: flex; justify-content: center; align-items: center; }
.system-title { position: absolute; top: 12%; text-align: center; z-index: 10; opacity: 0; padding: 0 20px; background: rgba(0,0,0,0.8); border: 1px solid var(--electric-blue); padding: 20px; }
.system-title h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 8px; color: var(--electric-blue); margin-bottom: 10px;}

.planet-card { position: absolute; display: flex; align-items: center; justify-content: center; gap: 40px; opacity: 0; transform: translateZ(-2000px) scale(0.5); pointer-events: none; width: 100%; max-width: 900px; padding: 0 20px; }
.planet-sphere { width: clamp(160px, 25vw, 300px); height: clamp(160px, 25vw, 300px); border-radius: 50%; box-shadow: inset -40px -40px 60px rgba(0,0,0,0.9), 0 0 50px rgba(255,255,255,0.1); pointer-events: auto; flex-shrink: 0; animation: planetFloat 4s ease-in-out infinite; }
@keyframes planetFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }

.planet-info { padding: 30px; width: clamp(260px, 40vw, 400px); text-align: left; opacity: 0; transform: translateX(30px); transition: all 0.3s; pointer-events: auto; }
.planet-card:hover .planet-info, .planet-info.active { opacity: 1; transform: translateX(0); border-color: var(--electric-blue); box-shadow: 0 0 30px rgba(0,229,255,0.3); }
.planet-card:hover .planet-sphere { filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.8)); }

.planet-info h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; color: var(--electric-blue); }
.planet-info hr { border: none; border-top: 1px dashed var(--electric-blue); margin-bottom: 15px; opacity: 0.8; }
.planet-info p { font-size: 1rem; margin-bottom: 8px; color: #ddd; }
.planet-info strong { color: var(--electric-blue); }

.mercury-texture { background: radial-gradient(circle at 25% 25%, #9e9e9e, #212121); }
.venus-texture { background: radial-gradient(circle at 25% 25%, #ffb74d, #5d4037); }
.earth-texture { background: radial-gradient(circle at 25% 25%, #4fc3f7, #0d47a1); }
.mars-texture { background: radial-gradient(circle at 25% 25%, #ff7043, #bf360c); }

/* --- BLACK HOLE --- */
#black-hole-section { height: 100vh; width: 100vw; position: relative; display: flex; justify-content: center; align-items: center; background: transparent; overflow: hidden; }
#black-hole-canvas { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; }
.black-hole-content { position: relative; z-index: 1; text-align: center; pointer-events: none; padding: 30px; background: rgba(0,0,0,0.7); border: 2px solid var(--neon-red); }

.warning-text { color: var(--neon-red); letter-spacing: 5px; font-weight: bold; margin-bottom: 10px; font-size: clamp(1rem, 2vw, 1.5rem); }
.bh-title { font-size: clamp(3rem, 8vw, 8rem); color: var(--white); text-shadow: 0 0 40px var(--neon-red), 0 0 80px var(--purple); letter-spacing: 10px; }
.bh-desc { margin-top: 15px; color: var(--neon-red); font-size: 1.1rem;}

@media (max-width: 768px) {
    .planet-card { flex-direction: column; gap: 20px; }
    .planet-info { transform: translateY(0); width: 100%; text-align: center; opacity: 1; }
    .data-stream { display: none; } /* Hide crazy streams on mobile for performance */
    .hud-overlay { font-size: 9px; }
    .hero-content h1 { font-size: 2rem; }
}