/* =====================================================================
   CoreInfo Group - High-Visibility Sci-Fi Holographic Mission System
   Rich Luminous Colorways, 3D Canvas Atmosphere & High-Contrast Header
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* SPECTRUM 1: COSMIC AURORA (Default) */
  --bg-deep: #030712;
  --bg-space: #060b18;
  --glow-cyan: #00f2fe;
  --glow-violet: #8b5cf6;
  --glow-magenta: #ec4899;
  --glow-primary: var(--glow-cyan);
  --glow-secondary: var(--glow-violet);
  --glow-hot: var(--glow-magenta);
  --text-pure: #ffffff;
  --text-dim: #94a3b8;
  --text-hud: #38bdf8;
  --conic-gradient: conic-gradient(from 0deg, #00f2fe, #8b5cf6, #ec4899, #00f2fe);
  --border-neon: rgba(0, 242, 254, 0.45);
  --header-bg: #0a1122;
  --header-border: rgba(0, 242, 254, 0.4);
  --hud-bg: rgba(7, 13, 26, 0.88);

  --font-display: "Space Grotesk", sans-serif;
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

[data-spectrum="emerald"] {
  /* SPECTRUM 2: MATRIX BIO-EMERALD */
  --bg-deep: #010d0a;
  --bg-space: #021a14;
  --glow-cyan: #00f5d4;
  --glow-violet: #10b981;
  --glow-magenta: #059669;
  --glow-primary: #10b981;
  --glow-secondary: #00f5d4;
  --glow-hot: #34d399;
  --text-hud: #34d399;
  --conic-gradient: conic-gradient(from 0deg, #00f5d4, #10b981, #059669, #00f5d4);
  --border-neon: rgba(16, 185, 129, 0.5);
  --header-bg: #031812;
  --header-border: rgba(16, 185, 129, 0.45);
  --hud-bg: rgba(2, 20, 15, 0.9);
}

[data-spectrum="solar"] {
  /* SPECTRUM 3: SUPERNOVA SOLAR FLARE */
  --bg-deep: #0d0407;
  --bg-space: #1c0a10;
  --glow-cyan: #f59e0b;
  --glow-violet: #ec4899;
  --glow-magenta: #f43f5e;
  --glow-primary: #f59e0b;
  --glow-secondary: #ec4899;
  --glow-hot: #fb7185;
  --text-hud: #fbbf24;
  --conic-gradient: conic-gradient(from 0deg, #f59e0b, #ec4899, #f43f5e, #f59e0b);
  --border-neon: rgba(245, 158, 11, 0.55);
  --header-bg: #1a080e;
  --header-border: rgba(245, 158, 11, 0.5);
  --hud-bg: rgba(24, 8, 14, 0.9);
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  color: var(--text-pure);
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  position: relative;
  transition: background-color 0.5s ease;
}

/* =====================================================================
   INTERACTIVE CANVAS 3D PARTICLES & NEBULA ORBS
   ===================================================================== */
#canvas-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
}

#canvas-3d:active {
  cursor: grabbing;
}

.aurora-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  transition: all 0.8s ease;
}

.orb-tl {
  width: 650px;
  height: 650px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
}

.orb-center {
  width: 750px;
  height: 750px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%);
  opacity: 0.25;
}

.orb-br {
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, var(--glow-hot) 0%, transparent 70%);
}

.hud-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  z-index: 2;
}

/* CORNER BRACKETS */
.hud-corner {
  position: fixed;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--glow-primary);
  opacity: 0.5;
  pointer-events: none;
  z-index: 10;
}
.hc-tl { top: 1.25rem; left: 1.5rem; }
.hc-tr { top: 1.25rem; right: 1.5rem; }
.hc-bl { bottom: 1.25rem; left: 1.5rem; }
.hc-br { bottom: 1.25rem; right: 1.5rem; }

/* =====================================================================
   HIGH-VISIBILITY HEADER (SOLID, NON-TRANSPARENT, CRISP)
   ===================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--header-bg);
  border: 1px solid var(--header-border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 242, 254, 0.15);
  border-radius: 18px;
  padding: 0.9rem 1.6rem;
  animation: fadeIn 0.8s ease-out;
}

.brand-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  background: #080f1e;
  border: 2px solid var(--glow-primary);
  box-shadow: 0 0 20px var(--glow-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffffff;
  text-shadow: 0 0 10px var(--glow-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-wrapper:hover .brand-emblem {
  transform: rotate(8deg) scale(1.1);
  box-shadow: 0 0 35px var(--glow-primary);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.brand-dot {
  color: var(--glow-primary);
  text-shadow: 0 0 14px var(--glow-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* REAL-TIME AUDIO SPECTRUM */
.audio-spectrum-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-neon);
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-spectrum-box:hover {
  background: rgba(0, 242, 254, 0.15);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.bars-group {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.spectrum-bar {
  width: 2.5px;
  background-color: var(--glow-primary);
  border-radius: 1px;
  height: 4px;
  transition: height 0.1s ease;
}

.audio-btn-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-hud);
}

/* SPECTRUM COLOR BUTTONS */
.spectrum-selector {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
}

.spec-pill {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.spec-pill:hover {
  transform: scale(1.2);
}

.spec-pill.active {
  box-shadow: 0 0 12px #ffffff;
  transform: scale(1.15);
}

.sp-aurora { background: linear-gradient(135deg, #00f2fe, #8b5cf6); }
.sp-emerald { background: linear-gradient(135deg, #00f5d4, #10b981); }
.sp-solar { background: linear-gradient(135deg, #f59e0b, #ec4899); }

/* =====================================================================
   CENTER STAGE: HOLOGRAPHIC CONIC CONSOLE (ONLY THE MISSION)
   ===================================================================== */
.mission-stage {
  position: relative;
  z-index: 20;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 1.25rem 3.5rem;
}

.conic-border-box {
  position: relative;
  border-radius: 32px;
  padding: 2.5px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 242, 254, 0.22), 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.conic-border-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--conic-gradient);
  animation: spinConic 7s linear infinite;
  z-index: -1;
}

@keyframes spinConic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hud-console {
  background: var(--hud-bg);
  border-radius: 30px;
  padding: 5.5rem 4rem;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

/* LASER SCANNING BEAM */
.hud-console::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow-primary), var(--glow-secondary), transparent);
  animation: sweepLaser 6s linear infinite;
  opacity: 0.9;
}

@keyframes sweepLaser {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* HEROIC MISSION STATEMENT ONLY */
.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 2.25rem;
  text-wrap: balance;
  background: linear-gradient(135deg, #ffffff 0%, #cffafe 35%, #e9d5ff 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 45px rgba(0, 242, 254, 0.4));
}

.mission-subtext {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--text-dim);
  max-width: 740px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.75;
  text-wrap: pretty;
}

/* =====================================================================
   CLEAN MINIMAL FOOTER
   ===================================================================== */
.site-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 860px) {
  body {
    padding: 1.5rem 1.25rem;
  }
  .site-header {
    padding: 0.75rem 1.25rem;
  }
  .brand-title {
    font-size: 1.3rem;
  }
  .hud-console {
    padding: 3.5rem 1.5rem;
    border-radius: 26px;
  }
}
