/* 
  TRON / HUD SYSTEM CORE v2.0 - ENERGIZED
  Refactored for extreme contrast, luminance, and depth.
*/

:root {
  --bg-deep: #02060a;
  --bg-navy: #030b12;
  --bg-core: #071a26;
  --neon-blue: #00eaff;
  --neon-cyan: #00f0ff;
  --neon-secondary: #0099ff;
  --neon-glow: rgba(0, 234, 255, 0.4);
  --text-primary: #d9faff;
  --text-dim: #9fdfff;
  --border-dim: rgba(0, 234, 255, 0.15);
  --glitch-color: #ff00ff;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Oxanium:wght@300;500;700&family=Rajdhani:wght@400;500;600;700&family=Space+Grotesk:wght@300;400;500;700&display=swap');

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 50%, var(--bg-core) 0%, var(--bg-navy) 40%, var(--bg-deep) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-blend-mode: overlay;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* --- OVERLAYS --- */
.hud-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  opacity: 0.15;
}

.hud-grid {
  position: relative;
}
.hud-grid::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.5;
  z-index: -1;
}

/* --- TYPOGRAPHY --- */
.tron-title { font-family: 'Orbitron', sans-serif; letter-spacing: 0.15em; text-transform: uppercase; }
.tron-ui { font-family: 'Oxanium', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; }
.tron-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; }

.glow-text {
  text-shadow: 0 0 10px var(--neon-blue), 0 0 20px rgba(0, 234, 255, 0.2);
}

/* --- PANELS --- */
.hud-panel {
  background: rgba(6, 19, 28, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-dim);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-panel:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.1), inset 0 0 20px rgba(0, 234, 255, 0.05);
}

/* Corner Accents */
.hud-panel::before, .hud-panel::after,
.hud-panel-corner-tr, .hud-panel-corner-bl {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--neon-blue);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 8px var(--neon-blue);
}

.hud-panel::before { top: -2px; left: -2px; border-width: 3px 0 0 3px; } /* TL */
.hud-panel::after { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; } /* BR */
.hud-panel-corner-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.hud-panel-corner-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }

/* --- UI COMPONENTS --- */
.glow-btn {
  background: rgba(0, 234, 255, 0.05);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  padding: 1rem 2.5rem;
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

.glow-btn:hover {
  background: var(--neon-blue);
  color: var(--bg-deep);
  box-shadow: 0 0 40px var(--neon-blue);
  letter-spacing: 5px;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: 0.5s;
}

.glow-btn:hover::before {
  top: 100%;
  left: 100%;
}

.ui-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  color: var(--neon-blue);
  opacity: 0.8;
}

.ui-indicator .dot {
  width: 4px;
  height: 4px;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  animation: pulse 2s infinite;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes scanline {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0, 234, 255, 0.1), transparent);
  animation: scanline 6s linear infinite;
  pointer-events: none;
  z-index: 9998;
}

@keyframes glitch {
  0% { translate: 0; }
  2% { translate: -2px 1px; }
  4% { translate: 2px -1px; }
  6% { translate: 0; }
}

.glitch-hover:hover {
  animation: glitch 0.3s infinite;
  color: var(--glitch-color);
  text-shadow: 2px 0 var(--neon-blue), -2px 0 var(--glitch-color);
}

/* --- HERO SPECIFIC --- */
.hero-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(0, 234, 255, 0.15) 0%, transparent 60%);
  filter: blur(60px);
  z-index: -2;
  pointer-events: none;
}

.hero-lines-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(transparent 50%, rgba(0, 234, 255, 0.05) 50%, transparent 51%),
    linear-gradient(90deg, transparent 50%, rgba(0, 234, 255, 0.05) 50%, transparent 51%);
  background-size: 100% 80px, 80px 100%;
  opacity: 0.3;
  z-index: -1;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--neon-blue); }
