/* ===================================================================
   SHIVAM // ANTIGRAVITY ENGINE — COMING SOON STYLESHEET
   Aesthetic: Deep Space Void & Crimson Neon Antigravity HUD
   =================================================================== */

:root {
  --bg-primary: #050508;
  --bg-secondary: #0b070d;
  --bg-surface: rgba(18, 10, 16, 0.65);
  --bg-surface-hover: rgba(30, 14, 25, 0.85);

  --red-neon: #FF1E44;
  --red-crimson: #E50914;
  --red-ruby: #FF3366;
  --red-deep: #4A050F;
  --red-glow: rgba(255, 30, 68, 0.45);
  --red-glow-subtle: rgba(255, 30, 68, 0.15);
  --red-border: rgba(255, 30, 68, 0.28);
  --red-border-bright: rgba(255, 30, 68, 0.7);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-crimson: #FFA0B0;

  --font-display: 'Space Grotesk', 'Syne', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;

  --ease-antigravity: cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

/* Three.js Canvas container */
#webgl-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto; /* allows direct drag to orbit scene */
}

/* Background Atmosphere Layers */
.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(5, 5, 8, 0.85) 100%),
    radial-gradient(circle at 50% 30%, rgba(255, 30, 68, 0.08) 0%, transparent 65%);
}

.noise-grid {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 30, 68, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 30, 68, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

/* HUD UI Layer (Foreground) */
.hud-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 40px;
  pointer-events: none; /* Let canvas capture drags except on buttons */
}

.hud-interactive {
  pointer-events: auto;
}

/* ===================================================================
   HEADER & TELEMETRY NAV
   =================================================================== */
.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-orb {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--red-border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 30, 68, 0.1);
  box-shadow: 0 0 15px var(--red-glow);
}

.brand-icon-orb::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--red-neon);
  border-radius: 50%;
  animation: pulse-core 2s infinite ease-in-out;
}

@keyframes pulse-core {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 8px var(--red-neon)); }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red-crimson);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Header Telemetry Pills */
.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--red-border);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-neon);
  box-shadow: 0 0 8px var(--red-neon);
  animation: blink-dot 1.5s infinite ease-in-out;
}

@keyframes blink-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hud-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--red-border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-antigravity);
  backdrop-filter: blur(10px);
}

.btn-hud-ghost:hover {
  background: var(--bg-surface-hover);
  border-color: var(--red-neon);
  color: #FFFFFF;
  box-shadow: 0 0 20px var(--red-glow-subtle);
  transform: translateY(-1px);
}

.btn-hud-ghost.active {
  border-color: var(--red-neon);
  color: var(--red-neon);
  box-shadow: 0 0 12px var(--red-glow-subtle);
}

/* Audio wave animation */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bar {
  width: 2px;
  background: var(--red-neon);
  height: 4px;
  border-radius: 1px;
}

.sound-bars.playing .sound-bar:nth-child(1) { animation: sound-bar-bounce 0.8s infinite ease alternate; }
.sound-bars.playing .sound-bar:nth-child(2) { animation: sound-bar-bounce 0.6s infinite ease alternate 0.2s; }
.sound-bars.playing .sound-bar:nth-child(3) { animation: sound-bar-bounce 0.9s infinite ease alternate 0.4s; }

@keyframes sound-bar-bounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* ===================================================================
   HERO CENTER SECTION
   =================================================================== */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(26, 8, 14, 0.65);
  border: 1px solid rgba(255, 30, 68, 0.4);
  padding: 8px 22px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--red-neon);
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(255, 30, 68, 0.12);
  transition: all 0.3s ease;
}

.hero-pill:hover {
  border-color: var(--red-neon);
  box-shadow: 0 0 25px rgba(255, 30, 68, 0.3);
  transform: scale(1.02);
}

.hero-pill-dot {
  font-size: 0.65rem;
  color: var(--red-neon);
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--red-neon));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9.5vw, 7.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--red-neon);
  margin: 0;
  text-transform: uppercase;
  text-shadow: 
    0 0 25px rgba(255, 30, 68, 0.65),
    0 0 60px rgba(255, 30, 68, 0.4),
    0 0 120px rgba(255, 30, 68, 0.2);
  user-select: none;
}

.hero-title span.glow-text {
  color: var(--red-neon);
}

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-desc strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===================================================================
   COUNTDOWN TIMER HUD
   =================================================================== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 560px;
  margin-bottom: 38px;
}

.countdown-card {
  background: var(--bg-surface);
  border: 1px solid var(--red-border);
  padding: 16px 14px;
  border-radius: var(--border-radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.countdown-card:hover {
  border-color: var(--red-border-bright);
  box-shadow: 0 0 25px var(--red-glow-subtle);
  transform: translateY(-2px);
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-neon), transparent);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-crimson);
}

/* ===================================================================
   TRANSMIT / NOTIFY FORM
   =================================================================== */
.form-container {
  max-width: 540px;
  margin-bottom: 28px;
}

.notify-form {
  display: flex;
  gap: 10px;
  background: rgba(14, 8, 13, 0.75);
  border: 1px solid var(--red-border);
  padding: 6px;
  border-radius: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-antigravity);
}

.notify-form:focus-within {
  border-color: var(--red-neon);
  box-shadow: 0 0 30px var(--red-glow);
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 22px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.notify-input::placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-transmit {
  background: linear-gradient(135deg, #FF1E44 0%, #B8001F 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 30px;
  padding: 12px 26px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease-antigravity);
  box-shadow: 0 4px 18px rgba(255, 30, 68, 0.35);
}

.btn-transmit:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 28px rgba(255, 30, 68, 0.6);
  filter: brightness(1.15);
}

.btn-transmit:active {
  transform: scale(0.97);
}

.form-feedback {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: none;
}

.form-feedback.success {
  display: block;
  color: #4ADE80;
}

.form-feedback.error {
  display: block;
  color: #F87171;
}

/* Feature pills under form */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  color: var(--red-neon);
  border-color: var(--red-border);
  background: rgba(255, 30, 68, 0.05);
}

/* ===================================================================
   INTERACTIVE THREE.JS CONTROLS HUD (DOCK)
   =================================================================== */
.threejs-controller-dock {
  position: fixed;
  bottom: 28px;
  right: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.controls-card {
  background: var(--bg-surface);
  border: 1px solid var(--red-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  width: 290px;
  transition: all 0.3s ease;
}

.controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 30, 68, 0.15);
  padding-bottom: 8px;
}

.controls-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-crimson);
  display: flex;
  align-items: center;
  gap: 6px;
}

.controls-minimize-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.physics-mode-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-physics-mode {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 30, 68, 0.2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 8px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-transform: uppercase;
}

.btn-physics-mode:hover {
  background: rgba(255, 30, 68, 0.15);
  color: #FFFFFF;
  border-color: var(--red-neon);
}

.btn-physics-mode.active {
  background: linear-gradient(135deg, rgba(255, 30, 68, 0.3), rgba(184, 0, 31, 0.4));
  border-color: var(--red-neon);
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--red-glow-subtle);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hud-slider {
  width: 100%;
  accent-color: var(--red-neon);
  cursor: pointer;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.btn-shockwave-pulse {
  margin-top: 10px;
  width: 100%;
  background: rgba(255, 30, 68, 0.15);
  border: 1px solid var(--red-border-bright);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-shockwave-pulse:hover {
  background: var(--red-neon);
  color: #FFFFFF;
  box-shadow: 0 0 20px var(--red-glow);
}

/* ===================================================================
   FOOTER TELEMETRY & SOCIALS
   =================================================================== */
.hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 30, 68, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-telemetry {
  display: flex;
  gap: 16px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--red-neon);
}

/* ===================================================================
   MODAL / CLONE INSPECTOR DRAWER
   =================================================================== */
.hud-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hud-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.hud-modal {
  background: #0D080D;
  border: 1px solid var(--red-border);
  border-radius: var(--border-radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--red-glow-subtle);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-antigravity);
}

.hud-modal-backdrop.open .hud-modal {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--red-neon);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--red-crimson);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 4px;
}

.modal-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.modal-body p {
  margin-bottom: 16px;
}

.clone-status-box {
  background: rgba(255, 30, 68, 0.06);
  border: 1px solid var(--red-border);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.clone-status-box li {
  margin-left: 20px;
  margin-top: 6px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ===================================================================
   RESPONSIVENESS
   =================================================================== */
@media (max-width: 900px) {
  .hud-wrapper {
    padding: 20px;
  }

  .telemetry-bar {
    display: none;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .threejs-controller-dock {
    bottom: 80px;
    right: 20px;
  }

  .controls-card {
    width: 250px;
  }

  .hud-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .notify-form {
    flex-direction: column;
    border-radius: 16px;
  }

  .btn-transmit {
    width: 100%;
    justify-content: center;
  }

  .threejs-controller-dock {
    position: static;
    margin-top: 24px;
    width: 100%;
  }

  .controls-card {
    width: 100%;
  }
}
