/* ==========================================================================
   DEEP OCEAN // ABYSSAL BATHYSCAPHE LUXURY EXPEDITION STYLESHEET
   Color Polarity: Intentional Dark Mode (#02060D Hadal Black to #071324 Midnight)
   ========================================================================== */

:root {
  --bg-hadal: #02060D;
  --bg-trench: #071324;
  --bg-card: rgba(7, 19, 36, 0.72);
  --bg-glass: rgba(9, 25, 48, 0.65);
  --text-ivory: #F2F7FA;
  --text-slate: #8CA3BA;
  --text-cobalt: #46607A;
  --accent-cyan: #00E5FF;
  --accent-cyan-soft: rgba(0, 229, 255, 0.16);
  --accent-amber: #FF6B3D;
  --accent-amber-soft: rgba(255, 107, 61, 0.18);
  --status-green: #10B981;
  --status-yellow: #F59E0B;
  --status-red: #EF4444;
  --border-hairline: rgba(255, 255, 255, 0.12);
  --border-cyan: rgba(0, 229, 255, 0.45);
  --font-display: 'Syne', 'Montserrat', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-Luxury: cubic-bezier(0.22, 1, 0.36, 1);

  /* Hero Flashlight CSS Variables */
  --mouse-x: 50%;
  --mouse-y: 50%;
  --beam-radius: 340px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-hadal);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-hadal);
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--accent-cyan);
  selection-color: var(--bg-hadal);
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-hadal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-hadal);
}
::-webkit-scrollbar-thumb {
  background: #142E4F;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ==========================================================================
   TYPOGRAPHY & TECHNICAL LABELS
   ========================================================================== */
.font-display {
  font-family: var(--font-display);
}
.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--text-ivory);
}

.section-subtitle {
  color: var(--text-slate);
  font-size: 1.05rem;
  max-width: 64ch;
  font-weight: 300;
}

/* ==========================================================================
   FIXED DEPTH GAUGE RAIL (RIGHT VIEWPORT TELEMETRY)
   ========================================================================== */
.depth-rail {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.depth-rail-track {
  width: 2px;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.depth-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-amber));
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: height 0.15s ease-out;
}

.depth-readout-box {
  background: rgba(2, 6, 13, 0.85);
  border: 1px solid var(--border-hairline);
  padding: 0.35rem 0.65rem;
  backdrop-filter: blur(8px);
  text-align: right;
}

@media (max-width: 1024px) {
  .depth-rail {
    display: none;
  }
}

/* ==========================================================================
   TOP NAVIGATION BAR (MINIMALIST BATHYSCAPHE HUD)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  background: rgba(2, 6, 13, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(0, 229, 255, 0.2);
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-slate);
  transition: color 0.3s ease;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-ivory);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width 0.35s var(--transition-Luxury);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   SECTION 1: HERO SECTION WITH INTERACTIVE MOUSE FLASHLIGHT REVEAL
   ========================================================================== */
.hero-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background-color: #010409;
  overflow: hidden;
  cursor: none;
  user-select: none;
}

/* Layer 1: Pitch-Dark Ambient Base Layer (Barely perceptible silhouette in the dark) */
.hero-dark-base {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-deep-ocean.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.08) contrast(1.25) saturate(0.4) blur(1px);
  transform: scale(1.015);
  z-index: 1;
  transition: filter 0.5s ease;
}

/* When Full Floodlight mode is toggled ON by user */
.hero-viewport.floodlight-active .hero-dark-base {
  filter: brightness(0.95) contrast(1.08) saturate(1.15) blur(0px);
}

/* Layer 2: Illuminated Flashlight Reveal Layer (Full vibrant jellyfish + optical flares) */
.hero-flashlight-reveal {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-deep-ocean.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(1.12) contrast(1.1) saturate(1.2);
  transform: scale(1.015);
  z-index: 2;
  pointer-events: none;
  /* Radial mask tracks --mouse-x and --mouse-y smoothly */
  -webkit-mask-image: radial-gradient(
    circle var(--beam-radius) at var(--mouse-x) var(--mouse-y),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 32%,
    rgba(0, 0, 0, 0.48) 64%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    circle var(--beam-radius) at var(--mouse-x) var(--mouse-y),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 32%,
    rgba(0, 0, 0, 0.48) 64%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Layer 3: Volumetric Submersible Beam Glow + Optical Chromatic Halo */
.hero-beam-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle calc(var(--beam-radius) * 1.15) at var(--mouse-x) var(--mouse-y),
    rgba(0, 229, 255, 0.14) 0%,
    rgba(255, 107, 61, 0.05) 42%,
    rgba(2, 6, 13, 0.85) 85%,
    rgba(1, 4, 9, 0.96) 100%
  );
  mix-blend-mode: screen;
}

/* Layer 4: Marine Snow Bioluminescent Particle Canvas */
.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* Layer 5: Custom Submersible HUD Reticle Cursor following mouse */
.flashlight-reticle {
  position: absolute;
  top: var(--mouse-y);
  left: var(--mouse-x);
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 50%;
  z-index: 15;
  pointer-events: none;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.2), inset 0 0 12px rgba(0, 229, 255, 0.12);
}

.flashlight-reticle::before,
.flashlight-reticle::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
}

.flashlight-reticle::before {
  top: 50%;
  left: -8px;
  right: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan) 12%, transparent 25%, transparent 75%, var(--accent-cyan) 88%);
}

.flashlight-reticle::after {
  left: 50%;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-cyan) 12%, transparent 25%, transparent 75%, var(--accent-cyan) 88%);
}

.reticle-coords {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  background: rgba(2, 6, 13, 0.78);
  padding: 1px 6px;
  border: 1px solid rgba(0, 229, 255, 0.28);
}

/* Layer 6: Interactive Content & Architectural Typography Overlay */
.hero-ui-layer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem 3.5rem 2.75rem;
}

/* Architectural Anamorphic Laser Flare Lines framing DEEP OCEAN */
.anamorphic-flare {
  width: 100%;
  max-width: 820px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.35) 20%,
    rgba(242, 247, 250, 0.95) 50%,
    rgba(0, 229, 255, 0.35) 80%,
    transparent 100%
  );
  box-shadow: 0 0 18px 2px rgba(0, 229, 255, 0.75), 0 0 38px 6px rgba(0, 140, 255, 0.45);
  opacity: 0.85;
}

.hero-display-title {
  font-family: 'Montserrat', var(--font-display);
  font-weight: 200;
  font-size: clamp(3.6rem, 11vw, 9.2rem);
  letter-spacing: 0.36em;
  margin-right: -0.36em; /* Optical balance for wide letter-spacing */
  line-height: 1;
  color: rgba(242, 247, 250, 0.92);
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.38), 0 8px 32px rgba(0, 0, 0, 0.85);
}

.hero-display-subtitle {
  font-family: 'Montserrat', var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 2.2rem);
  letter-spacing: 0.55em;
  margin-right: -0.55em;
  text-transform: uppercase;
  color: rgba(242, 247, 250, 0.88);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
}

/* Sharp Rectangular Ghost Button matching reference image "DIVE IN" */
.btn-dive-in {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 3.2rem;
  border: 1.5px solid rgba(242, 247, 250, 0.85);
  background: rgba(2, 6, 13, 0.42);
  backdrop-filter: blur(8px);
  color: var(--text-ivory);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s var(--transition-Luxury);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), inset 0 0 0 rgba(0, 229, 255, 0);
}

.btn-dive-in:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.14);
  color: #FFFFFF;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.4), inset 0 0 16px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

.btn-luxury-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.25rem;
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: var(--text-ivory);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--transition-Luxury);
}

.btn-luxury-primary:hover {
  background: var(--accent-cyan);
  color: var(--bg-hadal);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.45);
}

.btn-luxury-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border-hairline);
  background: rgba(7, 19, 36, 0.55);
  color: var(--text-ivory);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--transition-Luxury);
}

.btn-luxury-ghost:hover,
.btn-luxury-ghost.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.18);
}

@media (max-width: 768px) {
  .hero-viewport {
    cursor: default;
  }
  .flashlight-reticle {
    width: 64px;
    height: 64px;
  }
  .hero-ui-layer {
    padding: 5.5rem 1.25rem 2rem;
  }
}

/* ==========================================================================
   GLASSMORPHIC LUXURY CARDS & INSTRUMENT PANELS
   ========================================================================== */
.abyssal-card {
  position: relative;
  background: linear-gradient(165deg, rgba(10, 26, 48, 0.78) 0%, rgba(3, 9, 19, 0.92) 100%);
  border: 1px solid var(--border-hairline);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.45s var(--transition-Luxury), border-color 0.45s var(--transition-Luxury), box-shadow 0.45s var(--transition-Luxury);
  overflow: hidden;
}

.abyssal-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-cyan);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 229, 255, 0.12);
}

/* Corner technical crosshairs on cards */
.corner-pip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent-cyan);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.abyssal-card:hover .corner-pip {
  opacity: 1;
}
.pip-tl { top: 0; left: 0; border-top: 1.5px solid var(--accent-cyan); border-left: 1.5px solid var(--accent-cyan); }
.pip-tr { top: 0; right: 0; border-top: 1.5px solid var(--accent-cyan); border-right: 1.5px solid var(--accent-cyan); }
.pip-bl { bottom: 0; left: 0; border-bottom: 1.5px solid var(--accent-cyan); border-left: 1.5px solid var(--accent-cyan); }
.pip-br { bottom: 0; right: 0; border-bottom: 1.5px solid var(--accent-cyan); border-right: 1.5px solid var(--accent-cyan); }

/* Image zoom inside cards */
.card-media-wrap {
  position: relative;
  overflow: hidden;
}
.card-media-wrap img {
  transition: transform 0.75s var(--transition-Luxury), filter 0.5s ease;
}
.abyssal-card:hover .card-media-wrap img {
  transform: scale(1.06);
  filter: brightness(1.08) contrast(1.05);
}

/* ==========================================================================
   REAL-TIME CONDITIONS TELEMETRY & RADAR DIALS
   ========================================================================== */
.sonar-pulse {
  position: relative;
}
.sonar-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: sonarPing 2.4s infinite ease-out;
}

@keyframes sonarPing {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* Status Pill Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid;
}
.status-optimal {
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}
.status-limited {
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}
.status-waitlist {
  color: #FF6B3D;
  border-color: rgba(255, 107, 61, 0.4);
  background: rgba(255, 107, 61, 0.1);
}

/* ==========================================================================
   FLEET BLUEPRINT HOTSPOTS
   ========================================================================== */
.blueprint-hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  border: 1.5px solid var(--accent-cyan);
  color: var(--text-ivory);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.blueprint-hotspot:hover,
.blueprint-hotspot.active {
  background: var(--accent-cyan);
  color: var(--bg-hadal);
  box-shadow: 0 0 20px var(--accent-cyan);
  transform: translate(-50%, -50%) scale(1.18);
}

/* ==========================================================================
   FORM INPUTS (LUXURY BATHYSCAPHE CONSOLE)
   ========================================================================== */
.abyssal-input,
.abyssal-select,
.abyssal-textarea {
  width: 100%;
  background: rgba(2, 8, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-ivory);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.abyssal-input:focus,
.abyssal-select:focus,
.abyssal-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.abyssal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-slate);
  margin-bottom: 0.45rem;
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(1, 4, 9, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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