/* =============================================
   3AM DESIRE — The Void · Space Page Styles
   ============================================= */

/* ─── BODY ─────────────────────────────────── */
.space-body {
  background: #000005;
  overflow-x: hidden;
}

/* ─── Active nav highlight ──────────────────── */
.nav-link.active-page {
  color: var(--neon-pink) !important;
}
.nav-link.active-page::after {
  transform: scaleX(1) !important;
}

/* ─── Fixed starfield canvas ────────────────── */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ─── CSS Nebula background blobs ───────────── */
.space-nebula-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.snb-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: snbFloat 20s ease-in-out infinite;
}

.snb1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255,20,90,0.055) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.snb2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(90,0,200,0.07) 0%, transparent 70%);
  top: 20%; right: -100px;
  animation-delay: -6s;
}
.snb3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,40,160,0.06) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -12s;
}
.snb4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,80,0,0.035) 0%, transparent 70%);
  bottom: -100px; right: 20%;
  animation-delay: -4s;
}

@keyframes snbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-50px) scale(1.06); }
  66% { transform: translate(-25px,30px) scale(0.96); }
}

/* All page content sits above starfield + nebulas */
.space-body .nav,
.space-body section,
.space-body footer,
.space-body .mobile-menu,
.space-body .noise {
  position: relative;
  z-index: 2;
}

/* =============================================
   HERO — VOID ENTRANCE
   ============================================= */
.void-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 32px 80px;
}

.vh-content {
  position: relative;
  z-index: 3;
}

/* Eyebrow row */
.vh-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}
.vh-line-left,
.vh-line-right {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,45,107,0.5));
}
.vh-line-right {
  background: linear-gradient(to left, transparent, rgba(255,45,107,0.5));
}
.vh-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-pink);
}

/* Main hero title */
.vh-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 18rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.vh-word {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: vhWordIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.vh-word:nth-child(1) { animation-delay: 0.2s; }
.vh-word:nth-child(2) { animation-delay: 0.36s; }
.vh-word:nth-child(3) { animation-delay: 0.52s; }

.vh-word.vh-pink {
  color: var(--neon-pink);
  text-shadow:
    0 0 40px rgba(255,45,107,0.5),
    0 0 100px rgba(255,45,107,0.2);
}

@keyframes vhWordIn {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtitle */
.vh-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto 52px;
  opacity: 0;
  animation: vhFadeIn 1s ease 0.8s forwards;
}

/* Scroll CTA */
.vh-enter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s;
  opacity: 0;
  animation: vhFadeIn 1s ease 1s forwards;
}
.vh-enter:hover { color: var(--neon-pink); }
.vh-enter i {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,45,107,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--neon-pink);
  animation: arrowBounce 2.4s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes vhFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Floating micro-particles */
.vh-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.vh-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,45,107,0.6);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translate(0, 0) scale(1);   opacity: 0.8; }
  50%  { opacity: 0.3; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

/* Scanline overlay */
.vh-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.03) 3px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 4;
  opacity: 0.6;
}

/* =============================================
   FLOATING QUOTE
   ============================================= */
.void-quote {
  padding: 100px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vq-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 700px;
}

.vq-glyph {
  font-size: 1.4rem;
  color: var(--neon-pink);
  opacity: 0.6;
  animation: glyphPulse 3s ease-in-out infinite;
}

@keyframes glyphPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.vq-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text-white);
  font-style: normal;
}

.vq-text em {
  color: var(--neon-pink);
  font-style: normal;
  text-shadow: 0 0 40px rgba(255,45,107,0.4);
}

.vq-attr {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  font-style: normal;
}

/* =============================================
   THE PLANET SECTION — cinematic full bleed
   ============================================= */
.void-planet-section {
  position: relative;
  min-height: 110vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 32px 80px;
  gap: 0;
}

/* Headline above planet */
.vp-headline-wrap {
  text-align: center;
  position: relative;
  z-index: 5;
  margin-bottom: -40px; /* overlap the canvas slightly */
}

.vp-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.vp-label-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-pink);
}

.vp-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.vp-title em {
  color: var(--neon-pink);
  font-style: normal;
  text-shadow: 0 0 60px rgba(255,45,107,0.4);
}

.vp-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── PLANET CANVAS STAGE ───────────────────── */
.vp-stage-wrap {
  position: relative;
  width: min(92vw, 860px);
  aspect-ratio: 1;
  flex-shrink: 0;
  z-index: 3;
}

#planetCanvas {
  width: 100%;
  height: 100%;
  display: block;
  filter:
    drop-shadow(0 0 80px rgba(255,45,107,0.2))
    drop-shadow(0 0 180px rgba(80,40,160,0.15));
}

/* Atmospheric glow ring (CSS, behind canvas) */
.vp-glow-ring {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 38%,
    rgba(255,45,107,0.04) 50%,
    rgba(80,40,160,0.06) 60%,
    transparent 72%
  );
  animation: vpGlowPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes vpGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Orbit labels */
.vp-orbit-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  z-index: 4;
}

.vpl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255,45,107,0.9), 0 0 20px rgba(255,45,107,0.5);
  flex-shrink: 0;
}

.vpl-line {
  width: 40px; height: 1px;
  background: linear-gradient(to right, rgba(255,45,107,0.6), transparent);
  flex-shrink: 0;
}

.vp-orbit-label:nth-child(even) .vpl-line {
  background: linear-gradient(to left, rgba(255,45,107,0.6), transparent);
}

.vpl-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Positions */
.vpl-1 { top: 12%; left: 0; flex-direction: row; animation: labelFloat 7s ease-in-out infinite 0s; }
.vpl-2 { top: 28%; right: 0; flex-direction: row-reverse; animation: labelFloat 7s ease-in-out infinite -1.8s; }
.vpl-3 { bottom: 32%; left: 0; flex-direction: row; animation: labelFloat 7s ease-in-out infinite -3.2s; }
.vpl-4 { bottom: 16%; right: 0; flex-direction: row-reverse; animation: labelFloat 7s ease-in-out infinite -4.6s; }
.vpl-5 { top: 50%; left: -4%; flex-direction: row; animation: labelFloat 7s ease-in-out infinite -6s; }

@keyframes labelFloat {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-10px); opacity: 1; }
}

/* ─── Rotating text strip ───────────────────── */
.vp-footer-tag {
  margin-top: 32px;
  position: relative;
  z-index: 5;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
}

.vp-rotating-text {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  animation: rotText 18s linear infinite;
}

@keyframes rotText {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   SOUND AS COSMOS
   ============================================= */
.void-cosmos {
  padding: 100px 0;
}

.vc-header {
  text-align: center;
  margin-bottom: 60px;
}

.vc-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-pink);
  margin-bottom: 16px;
}

.vc-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.vc-title em {
  color: var(--neon-pink);
  font-style: normal;
  text-shadow: 0 0 40px rgba(255,45,107,0.35);
}

.vc-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 16px;
  line-height: 1.7;
}

.vc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cosmos card */
.vc-card {
  position: relative;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 40px 28px 32px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
  cursor: default;
}

.vc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(255,45,107,0.07) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}

.vc-card:hover {
  transform: translateY(-12px);
  border-color: rgba(255,45,107,0.22);
}
.vc-card:hover::after { opacity: 1; }

.vc-card-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,45,107,0.15) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.vc-card:hover .vc-card-glow { opacity: 1; }

.vc-icon {
  width: 54px; height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(255,45,107,0.07);
  border: 1px solid rgba(255,45,107,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--neon-pink);
  position: relative;
  z-index: 1;
}

.vc-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.vc-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.vc-card-number {
  position: absolute;
  bottom: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.06);
}

/* =============================================
   CREW IN ORBIT
   ============================================= */
.void-crew {
  padding: 80px 0 120px;
}

.vcrew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.vcrew-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.vcrew-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255,45,107,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.vcrew-card:hover {
  transform: translateY(-6px) translateX(4px);
  border-color: rgba(255,45,107,0.2);
  background: rgba(255,45,107,0.03);
}
.vcrew-card:hover::before { opacity: 1; }

/* Crew planet orb */
.vcrew-planet {
  width: 72px; height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  animation: vcOrbit 24s linear infinite;
}

.vcrew-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  animation: vcRingPulse 4s ease-in-out infinite;
}

@keyframes vcOrbit {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(360deg) brightness(1.05); }
}

@keyframes vcRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.12; }
}

.vcp1 {
  background: radial-gradient(circle at 35% 30%, #6a0025, #1e000a, #000);
  box-shadow: 0 0 28px rgba(255,45,107,0.3), 0 0 60px rgba(255,45,107,0.1);
}
.vcp2 {
  background: radial-gradient(circle at 35% 30%, #200050, #0a0018, #000);
  box-shadow: 0 0 28px rgba(130,50,255,0.3), 0 0 60px rgba(130,50,255,0.1);
  animation-duration: 30s;
}
.vcp3 {
  background: radial-gradient(circle at 35% 30%, #5a1800, #1e0800, #000);
  box-shadow: 0 0 28px rgba(255,110,0,0.25), 0 0 60px rgba(255,110,0,0.08);
  animation-duration: 20s;
}
.vcp4 {
  background: radial-gradient(circle at 35% 30%, #001840, #00071a, #000);
  box-shadow: 0 0 28px rgba(0,120,255,0.2), 0 0 60px rgba(0,120,255,0.07);
  animation-duration: 26s;
}
.vcp5 {
  background: radial-gradient(circle at 35% 30%, #001a12, #000a06, #000);
  box-shadow: 0 0 28px rgba(0,220,120,0.2), 0 0 60px rgba(0,220,120,0.06);
  animation-duration: 34s;
}
.vcp6 {
  background: radial-gradient(circle at 35% 30%, #2e1600, #100800, #000);
  box-shadow: 0 0 28px rgba(220,170,0,0.2), 0 0 60px rgba(220,170,0,0.07);
  animation-duration: 18s;
}

/* Crew info */
.vcrew-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vcrew-num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--neon-pink);
  opacity: 0.8;
}

.vcrew-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-white);
  line-height: 1;
}

.vcrew-role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* =============================================
   TRANSMISSION CTA
   ============================================= */
.void-transmission {
  padding: 80px 0 140px;
}

.vt-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,45,107,0.1);
  border-radius: 12px;
  padding: 72px 80px;
  position: relative;
  overflow: hidden;
}

.vt-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(255,45,107,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Signal animation */
.vt-signal {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vts-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,45,107,0.35);
  animation: signalPulse 3s ease-out infinite;
}
.vts-r1 { width: 60px; height: 60px; animation-delay: 0s; }
.vts-r2 { width: 90px; height: 90px; animation-delay: 0.8s; }
.vts-r3 { width: 120px; height: 120px; animation-delay: 1.6s; }

@keyframes signalPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}

.vts-core {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,45,107,0.12);
  border: 1px solid rgba(255,45,107,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--neon-pink);
  position: relative;
  z-index: 1;
}

.vt-text { flex: 1; }

.vt-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 14px 0 18px;
}

.vt-title em {
  color: var(--neon-pink);
  font-style: normal;
  text-shadow: 0 0 40px rgba(255,45,107,0.35);
}

.vt-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.vt-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .vc-grid { grid-template-columns: repeat(2, 1fr); }
  .vcrew-grid { grid-template-columns: repeat(2, 1fr); }
  .vt-inner { flex-direction: column; gap: 40px; padding: 48px 40px; text-align: center; }
  .vt-actions { justify-content: center; }
  .vc-tag { justify-content: center; }
  .vt-signal { display: none; }
}

@media (max-width: 768px) {
  .vc-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .vcrew-grid { grid-template-columns: 1fr; max-width: 480px; margin: 60px auto 0; }
  .vp-orbit-label { display: none; }
  .vh-title { font-size: clamp(4.5rem, 22vw, 9rem); }
  .vp-stage-wrap { width: 90vw; }
  .vt-inner { padding: 40px 28px; }
}

@media (max-width: 480px) {
  .vh-title { font-size: 5rem; }
  .vc-card { padding: 28px 20px 24px; }
  .vt-actions { flex-direction: column; align-items: center; }
}
