/* ============================================
   BLUEYAGE — Extreme Deep-Sea Expeditions
   Global Styles & Animations
   ============================================ */

/* ---------- CSS Variables (Deep Sea & Neon) ---------- */
:root {
  /* Abyss Color Palette */
  --abyss-surface: #0a1b2a;
  --abyss-mid: #05101a;
  --abyss-deep: #02080f;
  --pitch-navy: #000000;

  /* Neon Accents */
  --neon-cyan: #00fff0;
  --neon-cyan-dim: rgba(0, 255, 240, 0.2);
  --safety-orange: #ff5500;
  --safety-orange-dim: rgba(255, 85, 0, 0.2);

  /* Typography */
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);

  --font-display: 'Inter', sans-serif;
  /* Keep it sharp and heavy */
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Glassmorphism */
  --glass-bg: rgba(0, 0, 0, 0.6);
  --glass-border: rgba(0, 255, 240, 0.2);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--pitch-navy);
}

body {
  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--abyss-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.1s linear;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--pitch-navy);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
}

/* ---------- Particle Layer ---------- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* ---------- Top Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--neon-cyan);
  z-index: 100;
  width: 0%;
}

/* ---------- Dive Computer (Right Altimeter) ---------- */
.dive-computer {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  pointer-events: none;
}

.dc-label {
  font-size: 10px;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  margin-bottom: 8px;
  font-weight: 700;
}

.dc-depth {
  font-size: 36px;
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan-dim);
  width: 120px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 0.4s;
}

.dc-unit {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Scale */
.dc-scale {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 16px;
  padding-right: 6px;
  gap: 10px;
  height: 160px;
  border-right: 2px solid var(--neon-cyan-dim);
  position: relative;
  transition: border-color 0.4s;
}

.dc-tick {
  width: 10px;
  height: 1px;
  background: var(--neon-cyan);
  opacity: 0.4;
  transition: background 0.4s;
}

.dc-tick:nth-child(even) {
  width: 18px;
  opacity: 1;
}

.dc-marker {
  position: absolute;
  right: -7px;
  top: 0%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid var(--neon-cyan);
  transition: top 0.1s linear, border-color 0.4s;
}

/* Danger Mode (Deep depth) */
.dive-computer.danger-mode .dc-label,
.dive-computer.danger-mode .dc-depth {
  color: var(--safety-orange);
  text-shadow: 0 0 15px var(--safety-orange-dim);
}

.dive-computer.danger-mode .dc-scale {
  border-right-color: var(--safety-orange-dim);
}

.dive-computer.danger-mode .dc-tick {
  background: var(--safety-orange);
}

.dive-computer.danger-mode .dc-marker {
  border-right-color: var(--safety-orange);
}

/* ---------- HUD Panels (Left) ---------- */
.hud-panel {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: none;
}

.hud-item {
  border-left: 2px solid var(--neon-cyan);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  transition: border-color 0.4s;
}

.hud-item.danger-mode {
  border-left-color: var(--safety-orange);
}

.hud-item-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.hud-item-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.hud-item-value.cyan {
  color: var(--neon-cyan);
}

.hud-item-value.orange {
  color: var(--safety-orange);
}

/* ---------- Section Logic ---------- */
.section {
  position: relative;
  min-height: 120vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  z-index: 1;
}

/* Block Base */
.mission-block {
  max-width: 1000px;
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(80px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  position: relative;
}

.mission-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
.mission-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  border: 1px solid var(--neon-cyan);
  padding: 4px 12px;
}

.danger .mission-tag {
  color: var(--safety-orange);
  border-color: var(--safety-orange);
}

h2.mission-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 30px;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.mission-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 50px;
}

/* ---------- Enhanced Service Cards / Dive Plans ---------- */
.dive-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  width: 100%;
}

.dive-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0px;
  /* Sharp edges for extreme feel */
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dive-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--neon-cyan-dim);
}

.dive-card.danger {
  border-color: rgba(255, 85, 0, 0.3);
}

.dive-card.danger:hover {
  border-color: var(--safety-orange);
  box-shadow: 0 10px 40px var(--safety-orange-dim);
}

/* Card Image Styles */
.card-img-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--abyss-deep);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease, filter 0.8s ease, opacity 0.8s ease;
  mix-blend-mode: luminosity;
  /* moody look, desaturating */
  opacity: 0.6;
  filter: contrast(1.2);
}

.dive-card:hover .card-img-wrapper img {
  transform: scale(1.05);
  opacity: 0.9;
  mix-blend-mode: normal;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--glass-bg));
  pointer-events: none;
  transition: background 0.5s ease;
}

.dive-card:hover .image-overlay {
  background: linear-gradient(to bottom, var(--neon-cyan-dim), var(--glass-bg));
}

.dive-card.danger:hover .image-overlay {
  background: linear-gradient(to bottom, var(--safety-orange-dim), var(--glass-bg));
}

/* Card Content Styles */
.card-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* Hardcore Diving Specs Table */
.hardcore-data {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 8px;
}

.data-row span:first-child {
  color: var(--text-muted);
  letter-spacing: 1px;
}

.data-row span:last-child {
  color: #fff;
  font-weight: 700;
}

/* Bottom Meta Footer */
.dc-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 255, 240, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.dc-meta span:first-child {
  color: var(--neon-cyan);
  font-weight: bold;
}

.dive-card.danger .dc-meta span:first-child {
  color: var(--safety-orange);
}

.danger .dc-meta {
  border-top-color: rgba(255, 85, 0, 0.2);
}

/* ---------- Section 1: Hero Video / Logo ---------- */
#hero {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero Background Video overlay */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--abyss-surface) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

/* Deep blue repeating radial gradient to simulate underwater light */
.hero-light-shafts {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 240, 0.1), transparent 50%);
  animation: shimmer 10s infinite alternate linear;
  z-index: -2;
}

@keyframes shimmer {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-content {
  text-align: center;
  z-index: 10;
}

.hero-logo {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 0.9;
  margin-bottom: 24px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-down::after {
  content: '';
  width: 1px;
  height: 40px;
  margin-top: 10px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
  animation: drop 2s infinite ease-in-out;
}

@keyframes drop {

  0%,
  100% {
    height: 10px;
    opacity: 0;
  }

  50% {
    height: 40px;
    opacity: 1;
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: var(--neon-cyan);
  color: var(--pitch-navy);
  box-shadow: 0 0 30px var(--neon-cyan-dim);
}

.btn-danger {
  border-color: var(--safety-orange);
  color: var(--safety-orange);
}

.btn-danger:hover {
  background: var(--safety-orange);
  color: var(--pitch-navy);
  box-shadow: 0 0 30px var(--safety-orange-dim);
}

/* ---------- Membership Area ---------- */
.membership-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.tier-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  text-align: center;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

.tier-card h4 {
  font-family: var(--font-mono);
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tier-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
  height: 40px;
}

.tier-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.tier-card.tier-air h4 {
  color: #fff;
}

.tier-card.tier-nitrox h4 {
  color: var(--neon-cyan);
}

.tier-card.tier-nitrox {
  border-color: var(--neon-cyan-dim);
}

.tier-card.tier-trimix h4 {
  color: var(--safety-orange);
}

.tier-card.tier-trimix {
  border-color: var(--safety-orange-dim);
}

/* Whale reuse - styling for Pelagic wrapper */
.whale-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  position: absolute;
  right: -100px;
  top: 20%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  filter: drop-shadow(0 0 40px var(--neon-cyan-dim));
}

/* Base Mobile */
@media (max-width: 900px) {
  .hud-panel {
    display: none;
  }

  .mission-block {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .dive-computer {
    right: 16px;
    transform: translateY(-50%) scale(0.85);
    transform-origin: right center;
  }

  .section {
    padding: 80px 16px;
    min-height: 100vh;
  }

  .card-img-wrapper {
    height: 180px;
  }
}