/* =============================================================
   AQUALUME VOYAGES — ANIMATIONS
   Ocean · Bioluminescent · Cinematic Motion
   ============================================================= */

/* ─── KEYFRAMES ──────────────────────────────────────────────── */

@keyframes caustic-drift {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(45, 212, 191, 0.07) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse at 40% 30%, rgba(45, 212, 191, 0.09) 0%, transparent 55%),
      radial-gradient(ellipse at 60% 70%, rgba(96, 165, 250, 0.06) 0%, transparent 50%);
  }
}

@keyframes bubble-rise {
  0% {
    transform: translateY(100vh) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) scale(1.1);
    opacity: 0;
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
  }
  50% {
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.9), 0 0 40px rgba(45, 212, 191, 0.4);
  }
}

@keyframes scroll-pulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-right-anim {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slow-wave {
  0%, 100% {
    transform: translateX(0%) scaleY(1);
  }
  50% {
    transform: translateX(-5%) scaleY(1.04);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes ripple-out {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes biolum-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.15), 0 0 40px rgba(45, 212, 191, 0.08);
  }
  50% {
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.3), 0 0 80px rgba(45, 212, 191, 0.15);
  }
}

/* ─── SCROLL-TRIGGERED CLASSES ───────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.36s; }

/* ─── BUTTON RIPPLE ──────────────────────────────────────────── */
.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.btn:active::after {
  transform: scale(1);
  opacity: 1;
  transition: 0s;
}

/* ─── BIOLUMINESCENT CARD GLOW ───────────────────────────────── */
.glass-card {
  animation: biolum-pulse 6s ease-in-out infinite;
}

.eco-pillar,
.value-card,
.commitment-card,
.cert-card {
  animation: biolum-pulse 8s ease-in-out infinite;
}

.eco-pillar:nth-child(2) { animation-delay: -2s; }
.eco-pillar:nth-child(3) { animation-delay: -4s; }
.eco-pillar:nth-child(4) { animation-delay: -6s; }

/* ─── HERO GRADIENT ANIMATION ────────────────────────────────── */
.hero-gradient-layer {
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
}

/* ─── EXPERIENCE PANEL TRANSITIONS ───────────────────────────── */
.exp-panel {
  animation: none;
}

.exp-panel.active {
  animation: fade-up-in 0.5s ease forwards;
}

/* ─── CARD HOVER FLOAT ───────────────────────────────────────── */
.destination-card,
.eco-pillar,
.value-card,
.team-card {
  will-change: transform;
}

/* ─── SCROLL INDICATOR ───────────────────────────────────────── */
.scroll-line {
  transform-origin: top;
}

/* ─── WAVE SVG FLOW (CSS waves) ──────────────────────────────── */
.footer-wave {
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
  animation: slow-wave 8s ease-in-out infinite;
}