/* ==========================================================================
   MOBILE-BASED STORY INVITATION (WEB2) - ASHUTOSH & PRATIMA
   Inspired by Mobile Story Reels & Modern Web Digital Cards
   ========================================================================== */

:root {
  --color-bg-deep: #0e0517;
  --color-bg-card: #180924;
  --color-bg-card-alt: #240d33;
  --color-plum: #2b0e36;
  --color-wine: #3d1235;
  --color-gold: #d9a34b;
  --color-gold-bright: #f7d794;
  --color-gold-soft: #f4cf8b;
  --color-cream: #fff4da;
  --color-text: #f7ecd5;
  --color-text-muted: rgba(247, 236, 213, 0.78);
  --color-border: rgba(245, 217, 157, 0.35);
  --color-border-soft: rgba(245, 217, 157, 0.16);
  --color-whatsapp: #25d366;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Dimensions */
  --phone-width: 414px;
  --phone-height: 850px;
  --phone-radius: 46px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg-deep);
  color: var(--color-text);
  font-family: var(--color-body, var(--font-body));
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DESKTOP WRAPPER (SMARTPHONE FRAME ON DESKTOP, FULL BLEED ON MOBILE)
   ========================================================================== */
.mobile-app-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #08030d;
  overflow: hidden;
}

/* Ambient Blurred Backdrop for Desktop View */
.desktop-ambient-backdrop {
  position: absolute;
  inset: -40px;
  background-image: url('assets/images/couple-main.jpg');
  background-size: cover;
  background-position: center 20%;
  filter: blur(45px) brightness(0.28) saturate(1.2);
  transform: scale(1.1);
  pointer-events: none;
  z-index: 1;
}

.desktop-ambient-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 8, 30, 0.5), rgba(8, 3, 13, 0.95));
}

/* The Mobile Phone Container */
.phone-device {
  position: relative;
  width: min(100vw, var(--phone-width));
  height: min(100vh, 100dvh);
  max-height: var(--phone-height);
  background-color: var(--color-bg-card);
  border-radius: var(--phone-radius);
  box-shadow: 0 0 0 2px rgba(245, 217, 157, 0.25),
              0 0 0 8px #261338,
              0 25px 80px rgba(0, 0, 0, 0.9),
              0 0 50px rgba(217, 163, 75, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: all 0.4s ease;
}

/* Smartphone Top Speaker & Camera Island */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  gap: 6px;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.15);
}

.phone-island__camera {
  width: 9px;
  height: 9px;
  background: #121228;
  border-radius: 50%;
  box-shadow: inset 0 0 2px #3e3e60;
}

/* Phone Home Indicator Bar at bottom */
.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 135px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  z-index: 100;
  pointer-events: none;
}

/* Fullscreen on pure mobile devices */
@media (max-width: 600px), (max-height: 800px) {
  .phone-device {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .phone-island {
    display: none;
  }
  .desktop-ambient-backdrop {
    display: none;
  }
}

/* ==========================================================================
   CANVAS PETALS OVERLAY
   ========================================================================== */
#storyPetalsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* Floating Sound Toggle Button */
.floating-sound-btn {
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 80;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 600px) {
  .floating-sound-btn {
    top: 18px;
    right: 14px;
  }
}

.btn-icon-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(24, 9, 36, 0.75);
  border: 1px solid var(--color-border);
  color: var(--color-cream);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-icon-round:hover {
  background: rgba(217, 163, 75, 0.35);
  border-color: var(--color-gold-bright);
  color: #fff;
  transform: scale(1.05);
}

/* Sound Wave Equalizer in Header */
.sound-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-bar {
  width: 2.5px;
  background: var(--color-gold-bright);
  border-radius: 1.5px;
  height: 4px;
  transition: height 0.15s ease;
}

.btn-icon-round.playing .sound-bar:nth-child(1) { animation: soundAnim 0.8s infinite; }
.btn-icon-round.playing .sound-bar:nth-child(2) { animation: soundAnim 1.1s infinite 0.2s; }
.btn-icon-round.playing .sound-bar:nth-child(3) { animation: soundAnim 0.7s infinite 0.4s; }

@keyframes soundAnim {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   STORY SLIDES VIEWPORT & FLUID VERTICAL CONTINUOUS TRACK
   ========================================================================== */
.story-slides-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg-base);
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.story-slides-viewport:active {
  cursor: grabbing;
}

/* Master Shared Ambient Parallax Backdrop */
.story-master-backdrop {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.story-master-backdrop__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/couple-main.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: blur(28px) brightness(0.36) saturate(1.3);
  transform: scale(1.12);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-master-backdrop__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(217, 163, 75, 0.22) 0%, transparent 60%),
              radial-gradient(circle at 50% 80%, rgba(139, 26, 43, 0.28) 0%, transparent 65%);
}

.story-master-backdrop__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
              rgba(14, 5, 23, 0.65) 0%, 
              rgba(14, 5, 23, 0.82) 45%, 
              rgba(14, 5, 23, 0.94) 100%);
}

.story-master-backdrop__jali {
  position: absolute;
  inset: 0;
  background-image: url('assets/jali-pattern.svg');
  background-size: 160px 160px;
  opacity: 0.12;
  mix-blend-mode: overlay;
}

/* Continuous Sliding Vertical Track */
.story-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 5;
  transform: translate3d(0, 0, 0);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.story-slides-track.is-dragging {
  transition: none !important;
}

/* Individual Slides on Track */
.story-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 44px 20px 84px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0.38;
  filter: blur(2.5px) scale(0.965);
  transform: translate3d(0, 0, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-slide.active {
  opacity: 1;
  filter: blur(0px) scale(1);
  pointer-events: auto;
}

/* Frosted Floating Card Glass */
.story-slide-glass {
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  background: rgba(22, 8, 32, 0.45);
  border: 1px solid rgba(217, 163, 75, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* Linking Golden Thread Spine ("sb link ho") */
.story-link-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, 
              transparent 0%, 
              rgba(217, 163, 75, 0.22) 15%, 
              rgba(217, 163, 75, 0.32) 50%, 
              rgba(217, 163, 75, 0.22) 85%, 
              transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.spine-node {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold-bright);
  box-shadow: 0 0 10px var(--color-gold-bright);
}

/* Staggered Fluid Entry Animations for Active Slide */
.story-slide.active .ganesha-emblem,
.story-slide.active .sloka-badge,
.story-slide.active .slide-eyebrow {
  animation: fluidFadeUp 0.62s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}

.story-slide.active .couple-names-calligraphy,
.story-slide.active .slide-title,
.story-slide.active .family-title-big {
  animation: fluidFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.story-slide.active .couple-frame-wrap,
.story-slide.active .rings-halo,
.story-slide.active .date-highlight-card,
.story-slide.active .venue-card-mobile,
.story-slide.active .family-blessing-card {
  animation: fluidPopScale 0.74s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.story-slide.active .mobile-countdown-grid,
.story-slide.active .slide-quote-text,
.story-slide.active .venue-mobile-map-wrap {
  animation: fluidFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.story-slide.active .btn-whatsapp-hero,
.story-slide.active .calendar-action-row,
.story-slide.active .guest-pill,
.story-slide.active .tap-prompt-pill {
  animation: fluidPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.38s both;
}

@keyframes fluidFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fluidPopScale {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes fluidPop {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.88);
  }
  70% {
    transform: translate3d(0, -2px, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Prompt Pills Animation */
.tap-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(217, 163, 75, 0.14);
  border: 1px solid rgba(217, 163, 75, 0.3);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.tap-prompt-pill:hover {
  background: rgba(217, 163, 75, 0.25);
  border-color: var(--color-gold-bright);
  transform: translateY(-2px);
}

.pill-arrow-anim {
  display: inline-block;
  font-size: 0.85rem;
  animation: arrowBounce 1.4s infinite ease-in-out;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ==========================================================================
   SLIDE 1: AUSPICIOUS WELCOME & ANNOUNCEMENT
   ========================================================================== */
.slide-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
}

.sloka-badge {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--color-gold-bright);
  margin-bottom: 0.5rem;
}

.ganesha-emblem {
  width: 60px;
  height: auto;
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
  animation: floatSoft 3s ease-in-out infinite alternate;
}

.guest-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(217, 163, 75, 0.16);
  border: 1px solid var(--color-border);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--color-gold-bright);
  margin-bottom: 1rem;
}

.moment-proclamation {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  margin-bottom: 0.4rem;
}

.couple-names-calligraphy {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 10vw, 4.4rem);
  color: var(--color-cream);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 35px rgba(217, 163, 75, 0.35);
  margin-bottom: 0.4rem;
}

.couple-names-calligraphy .amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.7em;
  color: var(--color-gold-bright);
}

.tagline-getting-engaged {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.rings-halo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 163, 75, 0.25) 0%, transparent 70%);
  border: 1.5px solid var(--color-border);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0.6rem auto 1.4rem;
  box-shadow: 0 0 25px rgba(217, 163, 75, 0.3);
  animation: pulseRings 2.5s infinite alternate;
}

.tap-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  animation: bounceRight 2s infinite;
}

/* ==========================================================================
   SLIDE 2: THE COUPLE ("TWO HEARTS • ONE JOURNEY")
   ========================================================================== */
.couple-frame-wrap {
  position: relative;
  width: min(85%, 260px);
  height: 320px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.couple-arch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.couple-photo-inner {
  width: 82%;
  height: 88%;
  border-radius: 120px 120px 14px 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.couple-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.slide-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 0.4rem;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.slide-quote-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 1rem;
}

/* ==========================================================================
   SLIDE 3: SAVE THE DATE & LIVE COUNTDOWN
   ========================================================================== */
.date-highlight-card {
  background: rgba(36, 13, 51, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 1.8rem 1.4rem;
  margin-bottom: 1.4rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.date-day-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  color: var(--color-gold-bright);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.date-main-number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5.5vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #fff 0%, #f7d794 70%, #d9a34b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.date-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  background: rgba(217, 163, 75, 0.18);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

/* Countdown Grid Inside Mobile */
.mobile-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 1.4rem;
}

.countdown-box {
  background: rgba(14, 5, 23, 0.75);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.8rem 0.3rem;
  text-align: center;
}

.countdown-box__num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-cream);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.countdown-box__lbl {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  font-weight: 600;
}

.calendar-action-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-mobile-secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem;
  border-radius: 999px;
  background: rgba(217, 163, 75, 0.12);
  border: 1px solid var(--color-border);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 60;
}

.btn-mobile-secondary:hover {
  background: rgba(217, 163, 75, 0.25);
  border-color: var(--color-gold-bright);
}

/* ==========================================================================
   SLIDE 4: VENUE & GOOGLE MAPS
   ========================================================================== */
.venue-card-mobile {
  background: rgba(36, 13, 51, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.2rem;
}

.venue-palace-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.venue-mobile-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 0.4rem;
}

.venue-mobile-address {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.venue-mobile-map-wrap {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  margin-bottom: 1rem;
}

.venue-mobile-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn-mobile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7d794 0%, #d9a34b 60%, #b88233 100%);
  color: #240d2f;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 163, 75, 0.4);
  transition: all 0.25s ease;
  z-index: 60;
}

.btn-mobile-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 163, 75, 0.6);
}

/* ==========================================================================
   SLIDE 5: BLESSINGS, FAMILY & WHATSAPP ACTION (LIKE VIDEO)
   ========================================================================== */
.family-blessing-card {
  background: rgba(36, 13, 51, 0.88);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 2rem 1.4rem;
  text-align: center;
  width: 100%;
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.compliments-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.family-title-big {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-gold-bright);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.memorable-quote {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--color-cream);
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

/* Exact "Chat on WhatsApp" Button from Video */
.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1.05rem 1.6rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 60;
  animation: pulseWa 2s infinite;
}

.btn-whatsapp-hero:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp-hero svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.replay-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
  z-index: 60;
}

.btn-replay {
  background: none;
  border: none;
  color: var(--color-gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-replay:hover {
  text-decoration: underline;
}

/* ==========================================================================
   BOTTOM FIXED ACTION BAR
   ========================================================================== */
.story-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 18px 24px;
  background: linear-gradient(0deg, rgba(14, 5, 23, 0.95) 0%, rgba(14, 5, 23, 0.6) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 600px) {
  .story-bottom-bar {
    padding-bottom: 18px;
  }
}

/* Liquid Pill Navigation Track */
.liquid-pill-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20, 8, 30, 0.78);
  border: 1px solid rgba(217, 163, 75, 0.32);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.liquid-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease;
  z-index: 2;
}

.liquid-dot:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1.15);
}

.liquid-dot.active {
  background: transparent;
}

.liquid-pill-thumb {
  position: absolute;
  top: 6px;
  left: 10px;
  width: 20px;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #d9a34b, #fff, #d9a34b);
  box-shadow: 0 0 10px rgba(230, 184, 102, 0.8), 0 0 18px rgba(217, 163, 75, 0.45);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease;
  will-change: transform, width;
}

.bottom-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-bottom-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(36, 13, 51, 0.8);
  border: 1px solid var(--color-border);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 80;
}

.btn-bottom-mini:hover {
  border-color: var(--color-gold-bright);
  background: rgba(217, 163, 75, 0.25);
}

.btn-bottom-mini--wa {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.5);
  color: #8cffb8;
}

.btn-bottom-mini--wa:hover {
  background: #25d366;
  color: #fff;
}

/* ==========================================================================
   INITIAL "TAP TO OPEN" SOUND OVERLAY
   ========================================================================== */
.story-open-overlay {
  position: absolute;
  inset: 0;
  z-index: 120;
  background: rgba(14, 5, 23, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.story-open-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.open-mandala-box {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 1.2rem;
  display: grid;
  place-items: center;
}

.open-mandala-img {
  width: 100%;
  height: 100%;
  animation: rotateSlow 35s linear infinite;
  opacity: 0.9;
}

.open-ganesha-img {
  position: absolute;
  width: 52px;
  height: auto;
}

.open-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7d794 0%, #d9a34b 60%, #b88233 100%);
  color: #240d2f;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(217, 163, 75, 0.5);
  transition: transform 0.25s ease;
}

.open-cta-btn:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatSoft {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

@keyframes pulseRings {
  0% { transform: scale(0.95); box-shadow: 0 0 15px rgba(217, 163, 75, 0.2); }
  100% { transform: scale(1.06); box-shadow: 0 0 30px rgba(217, 163, 75, 0.5); }
}

@keyframes pulseWa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes bounceRight {
  0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(3px); }
}

@keyframes subtleZoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}


/* Floating Sound Button */
.floating-sound-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 110;
  width: 36px;
  height: 36px;
  background: rgba(24, 9, 36, 0.85);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
