/* =====================================================================
   STM TRAVEL — CINEMATIC HERO v3.0
   Award-winning luxury travel hero experience
   ===================================================================== */

/* ─── Imports ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;700;800;900&display=swap');

/* ─── Custom Properties ───────────────────────────────────────────── */
:root {
  --c-navy:       #050d1a;
  --c-deep:       #030a13;
  --c-turq:       #00c9b8;
  --c-turq2:      #0ff5e4;
  --c-gold:       #c9a44a;
  --c-gold2:      #f4d576;
  --c-gold3:      #e8b84b;
  --c-sunset:     #ff6b35;
  --c-sunset2:    #ff9f1c;
  --c-white:      #ffffff;
  --c-glass:      rgba(255,255,255,0.06);
  --c-glass2:     rgba(255,255,255,0.12);
  --c-glass3:     rgba(255,255,255,0.03);
  --c-glow-gold:  rgba(201,164,74,0.35);
  --c-glow-turq:  rgba(0,201,184,0.3);
  --c-glow-cyan:  rgba(0,245,228,0.2);

  --ease-luxury:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-silk:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Custom Cursor ───────────────────────────────────────────────── */
#stm-hero-section * {
  cursor: none !important;
}

#hero-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-gold2);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.3s var(--ease-luxury), height 0.3s var(--ease-luxury), background 0.3s ease;
  mix-blend-mode: normal;
  box-shadow: 0 0 16px 4px var(--c-glow-gold), 0 0 40px 8px rgba(201,164,74,0.15);
  will-change: transform;
}

#hero-cursor-ring {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201,164,74,0.5);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease-silk), width 0.4s var(--ease-luxury), height 0.4s var(--ease-luxury), border-color 0.3s ease, opacity 0.3s ease;
  will-change: transform;
}

#hero-cursor.hover {
  width: 20px;
  height: 20px;
  background: var(--c-turq2);
  box-shadow: 0 0 24px 8px var(--c-glow-turq);
}

#hero-cursor-ring.hover {
  width: 64px;
  height: 64px;
  border-color: rgba(0,201,184,0.6);
}

/* Mouse light trail */
#hero-light-trail {
  position: fixed;
  pointer-events: none;
  z-index: 99990;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,74,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease-silk), top 0.6s var(--ease-silk);
  will-change: left, top;
}

/* ─── Hero Wrapper ────────────────────────────────────────────────── */
#stm-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--c-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Cinematic Background Canvas ────────────────────────────────── */
#hero-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ─── Background Slides ───────────────────────────────────────────── */
.hero-scene-bg {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s var(--ease-silk);
  transform: scale(1.08);
  animation: heroKenBurns 16s var(--ease-silk) infinite alternate;
  will-change: transform, opacity;
  z-index: 1;
}

.hero-scene-bg.active {
  opacity: 1;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}

/* Cinematic color overlay layers */
.hero-scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(5,13,26,0) 0%, rgba(5,13,26,0.55) 100%),
    linear-gradient(to bottom,
      rgba(5,13,26,0.2) 0%,
      rgba(5,13,26,0.0) 30%,
      rgba(5,13,26,0.0) 50%,
      rgba(5,13,26,0.75) 85%,
      rgba(3,10,19,0.97) 100%
    );
}

/* Cinematic vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse 130% 120% at 50% 50%, transparent 30%, rgba(3,10,19,0.7) 100%);
  pointer-events: none;
}

/* ─── Particles Canvas ────────────────────────────────────────────── */
#hero-particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ─── Lens Flare ──────────────────────────────────────────────────── */
.hero-lens-flare {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.flare-main {
  top: 12%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(255, 200, 80, 0.18) 0%,
    rgba(255, 160, 40, 0.08) 25%,
    transparent 65%
  );
  border-radius: 50%;
  animation: flarePulse 6s ease-in-out infinite;
}

.flare-streak {
  top: 18%;
  right: 20%;
  width: 4px;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255,220,120,0.5), transparent);
  transform: rotate(-35deg);
  filter: blur(2px);
  animation: flareStreak 6s ease-in-out infinite;
}

.flare-halo {
  top: 5%;
  right: 10%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,200,80,0.12);
  border-radius: 50%;
  animation: flareHalo 8s ease-in-out infinite;
}

@keyframes flarePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

@keyframes flareStreak {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

@keyframes flareHalo {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.12); }
}

/* ─── Volumetric Light Rays ───────────────────────────────────────── */
.hero-light-rays {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.light-ray {
  position: absolute;
  top: -20%;
  right: 8%;
  width: 2px;
  height: 120%;
  background: linear-gradient(to bottom, rgba(255,220,120,0.25) 0%, transparent 70%);
  transform-origin: top center;
  filter: blur(3px);
  animation: raySwing 10s ease-in-out infinite;
}

.light-ray:nth-child(2) { right: 14%; width: 1px; opacity: 0.6; animation-delay: -2s; animation-duration: 13s; }
.light-ray:nth-child(3) { right: 20%; width: 3px; opacity: 0.4; animation-delay: -4s; animation-duration: 11s; }
.light-ray:nth-child(4) { right: 6%;  width: 1px; opacity: 0.3; animation-delay: -6s; animation-duration: 14s; }

@keyframes raySwing {
  0%, 100% { transform: rotate(-8deg) scaleX(1); opacity: 0.3; }
  50%       { transform: rotate(4deg) scaleX(1.5); opacity: 0.6; }
}

/* ─── Moving Water Shimmer ────────────────────────────────────────── */
.hero-water-shimmer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(0,201,184,0.04) 0%,
    transparent 100%
  );
  overflow: hidden;
}

.water-wave-svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  opacity: 0.06;
  animation: waterMove 12s linear infinite;
}

.water-wave-svg:nth-child(2) {
  opacity: 0.04;
  animation: waterMove 18s linear infinite reverse;
  bottom: 10px;
}

@keyframes waterMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Flying Birds ────────────────────────────────────────────────── */
.hero-birds {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.bird {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: birdFly 18s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(255,220,120,0.3));
}

.bird:nth-child(1) { top: 15%; animation-delay: 0s; font-size: 0.8rem; }
.bird:nth-child(2) { top: 22%; animation-delay: -6s; font-size: 1.1rem; }
.bird:nth-child(3) { top: 10%; animation-delay: -12s; font-size: 0.7rem; }

@keyframes birdFly {
  0%   { transform: translateX(-100px) translateY(0); opacity: 0; }
  5%   { opacity: 0.7; }
  95%  { opacity: 0.5; }
  100% { transform: translateX(calc(100vw + 100px)) translateY(-40px); opacity: 0; }
}

/* ─── Moving Clouds ───────────────────────────────────────────────── */
.hero-clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  border-radius: 200px;
  background: rgba(255,255,255,0.04);
  filter: blur(20px);
  animation: cloudDrift linear infinite;
}

.cloud:nth-child(1) { width: 400px; height: 80px; top: 8%; animation-duration: 60s; animation-delay: 0s; }
.cloud:nth-child(2) { width: 280px; height: 55px; top: 18%; animation-duration: 80s; animation-delay: -20s; opacity: 0.6; }
.cloud:nth-child(3) { width: 500px; height: 70px; top: 5%;  animation-duration: 100s; animation-delay: -40s; opacity: 0.4; }

@keyframes cloudDrift {
  0%   { transform: translateX(-600px); }
  100% { transform: translateX(calc(100vw + 600px)); }
}

/* ─── STM 3D Letters Zone ─────────────────────────────────────────── */
.stm-letters-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* The actual three-letter display */
.stm-logo-3d {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.5vw, 48px);
  transform-style: preserve-3d;
  perspective: 1000px;
  pointer-events: all;
  position: relative;
  /* shift slightly right to leave content space on left */
  transform: translateX(30%);
  transition: transform 0.6s var(--ease-luxury);
}

.stm-letter-wrap {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease-luxury);
}

.stm-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 12vw, 180px);
  height: clamp(110px, 15vw, 220px);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer !important;

  /* Glass morphism base */
  background: linear-gradient(135deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(201,164,74,0.08) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);

  /* Gold border */
  border: 1px solid rgba(201,164,74,0.4);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-left: 1px solid rgba(255,255,255,0.2);

  /* Glow */
  box-shadow:
    0 0 40px rgba(201,164,74,0.15),
    0 0 80px rgba(201,164,74,0.06),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(201,164,74,0.1),
    0 30px 60px rgba(0,0,0,0.5);

  animation: letterFloat 4s ease-in-out infinite;
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease-luxury);
}

.stm-letter:nth-child(1) { animation-delay: 0s; }
.stm-letter:nth-child(2) { animation-delay: -1.3s; }
.stm-letter:nth-child(3) { animation-delay: -2.6s; }

@keyframes letterFloat {
  0%, 100% { transform: translateY(0px) rotateX(2deg); }
  33%       { transform: translateY(-12px) rotateX(-1deg); }
  66%       { transform: translateY(6px) rotateX(3deg); }
}

/* Image/video background inside letter */
.stm-letter-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
}

.stm-letter-img-wrap img,
.stm-letter-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.4) brightness(0.75);
  transform: scale(1.08);
  transition: transform 8s ease;
}

@keyframes imgCycle {
  0%   { opacity: 1; }
  32%  { opacity: 1; }
  33%  { opacity: 0; }
  65%  { opacity: 0; }
  66%  { opacity: 1; }
  98%  { opacity: 1; }
}

/* Letter overlay to darken image */
.stm-letter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,13,26,0.45) 0%,
    rgba(5,13,26,0.2) 50%,
    rgba(201,164,74,0.1) 100%
  );
  border-radius: 18px;
  z-index: 2;
}

/* Glass highlight top edge */
.stm-letter-highlight {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
  z-index: 4;
  border-radius: 100%;
}

/* Reflection shimmer */
.stm-letter-reflection {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,0.12) 50%,
    transparent 60%
  );
  z-index: 5;
  animation: letterShimmer 5s ease-in-out infinite;
  border-radius: 18px;
}

.stm-letter-wrap:nth-child(1) .stm-letter-reflection { animation-delay: 0s; }
.stm-letter-wrap:nth-child(2) .stm-letter-reflection { animation-delay: -1.7s; }
.stm-letter-wrap:nth-child(3) .stm-letter-reflection { animation-delay: -3.4s; }

@keyframes letterShimmer {
  0%   { left: -100%; opacity: 0; }
  5%   { opacity: 1; }
  30%  { left: 150%; opacity: 0; }
  100% { left: 150%; opacity: 0; }
}

/* The actual letter character */
.stm-letter-char {
  position: relative;
  z-index: 6;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(64px, 9vw, 140px);
  font-weight: 300;
  line-height: 1;
  color: transparent;

  /* Gold gradient text */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.95) 0%,
    var(--c-gold2) 35%,
    var(--c-gold) 60%,
    rgba(255,255,255,0.9) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;

  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(201,164,74,0.6)) drop-shadow(0 4px 12px rgba(0,0,0,0.8));
  letter-spacing: -0.02em;
  user-select: none;
}

/* Gold edge glow */
.stm-letter-glow {
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background: radial-gradient(ellipse at center, rgba(201,164,74,0.2) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

/* Label beneath letter */
.stm-letter-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,164,74,0.8);
  white-space: nowrap;
  pointer-events: none;
}

/* Floating particles around letters */
.stm-letter-particles {
  position: absolute;
  inset: -30px;
  z-index: 7;
  pointer-events: none;
  overflow: visible;
}

.letter-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-gold2);
  opacity: 0;
  animation: particleOrbit linear infinite;
  box-shadow: 0 0 6px 2px rgba(244,213,118,0.6);
}

@keyframes particleOrbit {
  0%   { transform: rotate(0deg) translateX(60px) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: rotate(36deg) translateX(60px) scale(1); }
  90%  { opacity: 0.6; }
  100% { transform: rotate(360deg) translateX(60px) scale(0); opacity: 0; }
}

/* ─── Hero Main Content ───────────────────────────────────────────── */
.hero-cinematic-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  max-width: 650px;
  pointer-events: none;
}

/* Eyebrow */
.hero-cin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  pointer-events: all;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
}

.hero-loaded .hero-cin-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold2);
  box-shadow: 0 0 10px 3px var(--c-glow-gold);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px 3px var(--c-glow-gold); }
  50%       { transform: scale(1.4); box-shadow: 0 0 16px 6px var(--c-glow-gold); }
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--c-gold2), transparent);
}

.eyebrow-text {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold2);
  opacity: 0.9;
}

/* Headline */
.hero-cin-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin: 0 0 24px;
  pointer-events: all;
}

.hero-cin-headline .line {
  display: block;
  overflow: hidden;
}

.hero-cin-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(40deg);
  transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury);
  transform-origin: bottom center;
}

.hero-loaded .hero-cin-headline .word {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.hero-cin-headline .accent {
  background: linear-gradient(105deg, var(--c-gold2), var(--c-gold3), var(--c-sunset2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Subtitle */
.hero-cin-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  max-width: 460px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-luxury) 0.8s, transform 1s var(--ease-luxury) 0.8s;
  pointer-events: all;
}

.hero-loaded .hero-cin-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Buttons */
.hero-cin-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-luxury) 1.1s, transform 1s var(--ease-luxury) 1.1s;
  pointer-events: all;
}

.hero-loaded .hero-cin-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Primary — Book Now */
.btn-cin-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-deep);
  overflow: hidden;
  cursor: pointer !important;
  border: none;
  outline: none;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;

  background: linear-gradient(105deg,
    var(--c-gold2) 0%,
    var(--c-gold3) 40%,
    var(--c-gold) 70%,
    var(--c-gold2) 100%
  );
  background-size: 200% 100%;
  animation: goldShift 4s ease infinite;

  box-shadow:
    0 0 30px rgba(201,164,74,0.45),
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

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

.btn-cin-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 0 50px rgba(201,164,74,0.65),
    0 16px 48px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-cin-primary:active {
  transform: translateY(-1px) scale(1.01);
}

/* Ripple */
.btn-cin-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn-cin-primary:active::before {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* Btn shine sweep */
.btn-cin-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 3.5s ease-in-out infinite 2s;
}

@keyframes btnShine {
  0%   { transform: translateX(-100%); }
  15%  { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}

.btn-cin-icon {
  display: flex;
  align-items: center;
  transition: transform 0.4s var(--ease-spring);
}

.btn-cin-primary:hover .btn-cin-icon {
  transform: translateX(4px);
}

/* Secondary — Watch Experience */
.btn-cin-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  cursor: pointer !important;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.btn-cin-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.play-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-spring);
}

.btn-cin-secondary:hover .play-icon-wrap {
  background: var(--c-gold2);
  border-color: var(--c-gold2);
  transform: scale(1.1);
}

.play-icon-wrap svg {
  fill: white;
  width: 10px;
  height: 10px;
  margin-left: 2px;
}

/* ─── Floating Glass Cards ────────────────────────────────────────── */
.hero-cin-cards {
  position: absolute;
  top: 95px;
  left: 0;
  width: 100%;
  z-index: 25;
  pointer-events: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 16px;
}

.glass-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
  pointer-events: all;
  cursor: default !important;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury), box-shadow 0.3s ease;
  animation: cardFloat 5s ease-in-out infinite;
}

.glass-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card:hover {
  background: rgba(255,255,255,0.1);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.4),
    0 0 20px rgba(201,164,74,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-4px) !important;
}

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

.card-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1;
}

.card-value .gold { color: var(--c-gold2); }

.card-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Specific card animation delays to maintain the staggered floating effect */
.gc-rating   { animation-delay: 0s; }
.gc-years    { animation-delay: -1.2s; }
.gc-travelers{ animation-delay: -2.4s; }
.gc-padi     { animation-delay: -1.8s; }
.gc-yacht    { animation-delay: -3.6s; }
.gc-whatsapp { animation-delay: -0.8s; }

/* Live indicator dot */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px 3px rgba(46,204,113,0.5);
  animation: livePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px 3px rgba(46,204,113,0.5); }
  50%       { transform: scale(1.3); box-shadow: 0 0 16px 6px rgba(46,204,113,0.7); }
}

/* ─── Live Weather Bar ────────────────────────────────────────────── */
.hero-cin-live {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 30;
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s var(--ease-luxury) 1.6s, transform 0.8s var(--ease-luxury) 1.6s;
}

.hero-cin-live.visible {
  opacity: 1;
  transform: translateY(0);
}

.live-weather-pill {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}

.live-weather-pill .temp {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-gold2);
}

/* ─── Countdown Badge ─────────────────────────────────────────────── */
.hero-cin-countdown {
  position: absolute;
  bottom: 120px;
  left: 5%;
  z-index: 30;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,164,74,0.25);
  border-radius: 16px;
  padding: 14px 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s var(--ease-luxury) 1.8s, transform 0.8s var(--ease-luxury) 1.8s;
}

.hero-cin-countdown.visible {
  opacity: 1;
  transform: translateX(0);
}

.countdown-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-units {
  display: flex;
  gap: 8px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cu-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1;
  min-width: 32px;
  text-align: center;
}

.cu-label {
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: rgba(201,164,74,0.6);
  align-self: flex-start;
  margin-top: 2px;
}

/* ─── Booking Notification Popups ─────────────────────────────────── */
.booking-notif {
  position: absolute;
  bottom: 120px;
  right: 20px;
  z-index: 35;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid var(--c-gold2);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  transform: translateX(120%) scale(0.95);
  opacity: 0;
  transition: all 0.5s var(--ease-spring);
  pointer-events: none;
}

.booking-notif.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notif-text {
  flex: 1;
}

.notif-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 2px;
}

.notif-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ─── Scroll Indicator ────────────────────────────────────────────── */
.hero-cin-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 1s var(--ease-luxury) 2s;
  cursor: pointer !important;
  pointer-events: all;
}

.hero-cin-scroll.visible {
  opacity: 1;
}

.scroll-cin-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.scroll-cin-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  position: relative;
  overflow: hidden;
}

.scroll-cin-mouse::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,201,184,0.1), transparent);
  animation: waterRipple 2s ease-in-out infinite;
}

@keyframes waterRipple {
  0%, 100% { transform: scaleX(1) translateY(0); opacity: 0.5; }
  50%       { transform: scaleX(1.2) translateY(-4px); opacity: 1; }
}

.scroll-cin-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.6);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

.scroll-cin-ripple {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,201,184,0.3);
  animation: rippleExpand 2s ease-out infinite;
  position: absolute;
  bottom: -24px;
}

@keyframes rippleExpand {
  0%   { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* ─── Video Modal ─────────────────────────────────────────────────── */
.hero-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.5s ease;
}

.hero-video-modal.open {
  background: rgba(0,0,0,0.95);
  pointer-events: all;
}

.video-modal-inner {
  width: min(90vw, 1100px);
  aspect-ratio: 16/9;
  position: relative;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.5s var(--ease-spring);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}

.hero-video-modal.open .video-modal-inner {
  transform: scale(1);
  opacity: 1;
}

.video-modal-inner video,
.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 18px;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* ─── Scene Indicator Dots ────────────────────────────────────────── */
.hero-scene-dots {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.4s ease;
  cursor: pointer !important;
}

.scene-dot.active {
  background: var(--c-gold2);
  box-shadow: 0 0 10px 3px var(--c-glow-gold);
  transform: scale(1.3);
}

/* ─── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stm-logo-3d {
    transform: translateX(0) scale(0.65);
    gap: 6px;
  }

  .stm-letters-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
  }

  .stm-letter {
    width: 80px;
    height: 96px;
  }

  .stm-letter-char {
    font-size: 56px;
  }

  .hero-cinematic-content {
    padding: 0 5vw;
    max-width: 100%;
    justify-content: flex-end;
    padding-bottom: 140px;
    background: linear-gradient(to top,
      rgba(3,10,19,0.98) 0%,
      rgba(3,10,19,0.85) 40%,
      transparent 100%
    );
  }

  .hero-cin-headline {
    font-size: clamp(36px, 9vw, 56px);
  }

  .gc-rating   { display: none; }
  .gc-years    { top: 10%; right: 4%; }
  .gc-travelers{ display: none; }
  .gc-yacht    { display: none; }
  .gc-whatsapp { bottom: 160px; left: 4%; }
  .gc-padi     { display: none; }

  .hero-cin-countdown { display: none; }

  .hero-cin-live {
    top: 70px;
    right: 10px;
  }

  .live-weather-pill { padding: 6px 12px; font-size: 10px; }

  .btn-cin-primary, .btn-cin-secondary {
    padding: 14px 24px;
    font-size: 12px;
  }

  .flare-main, .flare-streak, .flare-halo { display: none; }
  .light-ray { display: none; }
}

@media (max-width: 480px) {
  .hero-cin-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-cin-primary, .btn-cin-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Preloader transition ────────────────────────────────────────── */
#stm-hero-section {
  opacity: 0;
  /* Safety fallback: always become visible after 3s even if JS fails */
  animation: heroFallbackShow 0.8s ease 3s forwards;
  transition: opacity 0.8s ease 0.3s;
}

@keyframes heroFallbackShow {
  to { opacity: 1; }
}

#stm-hero-section.hero-loaded {
  opacity: 1;
  animation: none; /* cancel fallback, JS handled it */
}
