:root {
    --bg-main: #04101b;
    --primary-green: #38aa3a;
    --accent-yellow: #c9d371;
    --neon-purple: #8544b1;
    --cyan-blue: #28b9c6;
    --hot-pink: #c65cc1;
    --dark-green: #3c7327;
    --card-bg: rgba(6, 21, 37, 0.7);
}

/* --- Global Header --- */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  display: flex; 
  align-items: center;
  justify-content: space-between; 
  gap: 1.5rem; 
  padding: 1rem 1.5rem;
  background: var(--card-bg); 
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dark-green); 
  box-shadow: 0 0 12px rgba(133,68,177,.35); 
  width: 100%;
  box-sizing: border-box;
}

.site-header .brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem; 
  font-weight: 900; 
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-yellow); 
  text-decoration: none;
  text-shadow: 0 0 8px rgba(201,211,113,.8), 0 0 15px var(--primary-green); 
}

.site-header .brand-mark { 
  display: inline-block;
  width: 32px;
  height: 32px;
  background-image: url('/images/elggy-logo.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  filter: drop-shadow(0 0 5px var(--primary-green));
}

.site-nav { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .25rem 1rem; 
}

/* Header Links - Small and Clean */
.site-nav a { 
  position: relative; 
  padding: .35rem .5rem; 
  color: var(--cyan-blue);
  text-decoration: none; 
  font-size: .95rem; 
  font-family: 'Orbitron', sans-serif;
  border-radius: 4px;
  transition: color .2s, text-shadow .2s, background .2s; 
}

.site-nav a:hover, 
.site-nav a:focus-visible { 
  color: var(--hot-pink);
  text-shadow: 0 0 8px var(--hot-pink), 0 0 15px var(--hot-pink); 
  background: rgba(198,92,193,.08); 
  outline: none; 
}

.site-nav a.active { 
  color: var(--primary-green); 
  text-shadow: 0 0 10px var(--primary-green);
  border-bottom: 2px solid var(--primary-green); 
}

/* --- Homepage Hero Section --- */
.subtitle, #subtitle, .tagline {
    font-family: 'Orbitron', sans-serif;
}

/* --- The Main 3D Neon Tube Logo Text --- */
h1 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 4.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 5px !important;
    color: #ffffff !important;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--primary-green), 
        0 0 40px var(--primary-green), 
        0 0 80px var(--primary-green),
        0 5px 0px var(--dark-green),
        0 10px 10px rgba(0,0,0,0.8) !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* --- HOMEPAGE BUTTONS (Targeting ONLY the bottom nav) --- */
main nav a, .home-buttons a {
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    border: 2px solid var(--primary-green) !important;
    background: rgba(4, 16, 27, 0.9) !important;
    color: #ffffff !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 10px !important;
    text-shadow: 0 0 8px #fff, 0 0 20px var(--primary-green), 0 0 40px var(--primary-green) !important;
    box-shadow: 0 0 15px rgba(56, 170, 58, 0.3), inset 0 0 10px rgba(56, 170, 58, 0.2) !important;
}

main nav a:hover, .home-buttons a:hover {
    color: #fff !important;
    border-color: var(--hot-pink) !important;
    text-shadow: 0 0 8px #fff, 0 0 20px var(--hot-pink), 0 0 40px var(--hot-pink) !important;
    box-shadow: 0 0 25px rgba(198, 92, 193, 0.6), inset 0 0 15px rgba(198, 92, 193, 0.3) !important;
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; padding: .75rem 1rem; }
  .site-nav { width: 100%; justify-content: space-between; }
}
/* --- Terminal Data Styling --- */
#telemetry-content, 
#energy-content {
    color: #ffffff !important; /* Bright white text */
    font-family: 'Courier New', monospace !important; 
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #fff, 0 0 15px var(--primary-green), 0 0 25px var(--primary-green); /* White core, green halo */
    white-space: pre-wrap !important; 
    line-height: 1.8;
}