/* ==========================================================================
   ENCHANTED GARDEN / FAIRYTALE WEDDING DESIGN SYSTEM
   Theme: Cascading roses, trailing vines, gold chain garlands, glowing hanging lanterns
   Palette: Sage Green (#B8C4B0), Warm Ivory Glow (#F3EFDC), Blush Pink (#E8A8B0),
            Soft Rose (#EFC9C9), Cream White (#F5EDE0), Forest Green (#4A6741),
            Antique Gold (#B8862F), Warm Amber (#E8A33D)
   Text Theme: Main heading (#4A3B2A), Alt heading (#6B3444),
               Subheading/script (#B8862F), Body text (#3E4A38)
   Buttons: Background (#6B3444 or #4A6741), Text (#F5EDE0)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Enchanted Garden / Fairytale Background Tokens */
  --color-sage-green:       #B8C4B0;   /* background edges */
  --color-warm-ivory:       #F3EFDC;   /* background center glow */
  --color-base-white:       #F3EFDC;   /* primary canvas base */
  --color-powder-blue:      #C8D4C2;   /* soft sage tint */
  --color-powder-blue-tint: #F8F5EC;   /* ultra-soft warm ivory tint */
  --color-powder-blue-soft: rgba(184, 196, 176, 0.45);

  --color-mogra-white:      #FFFFFF;   /* pristine card backgrounds & panels */
  --color-cream-white:      #F5EDE0;   /* Cream White (White flowers) */
  --color-cream-pure:       #FAF6EF;   /* pure floral cream highlight */

  /* Text Color Theme — Warm Brown, Dusty Rose & Forest Green-Gray */
  --color-ink:              #4A3B2A;   /* Main heading — Warm brown, soft romantic contrast */
  --color-heading-brown:    #4A3B2A;   /* Warm brown main heading */
  --color-heading-slate:    #4A3B2A;   /* Main heading alias */
  --color-heading-rose:     #6B3444;   /* Alt heading — Dusty rose, ties to florals */
  --color-heading-terra:    #6B3444;   /* Alt heading dusty rose */
  --color-ink-muted:        #3E4A38;   /* Body text — Forest green-gray, calm & readable */
  --color-ink-light:        #5A6B53;   /* tertiary text & captions — soft forest tone */
  --color-ink-slate:        #3E4A38;   /* high contrast body alias */

  /* Rose Blooms & Lighter Roses */
  --color-blush-pink:       #E8A8B0;   /* Blush Pink — Rose blooms */
  --color-soft-rose:        #EFC9C9;   /* Soft Rose — Lighter roses */
  --color-peach:            #E8A8B0;   /* primary rose bloom */
  --color-peach-deep:       #D38892;   /* hover / active rose */
  --color-peach-soft:       rgba(232, 168, 176, 0.22);
  --color-lotus-pink:       #E8A8B0;   /* lotus rose */
  --color-lotus-pink-soft:  rgba(232, 168, 176, 0.22);

  /* Antique Gold & Warm Amber (Chain garlands & glowing lanterns) */
  --color-antique-gold:     #B8862F;   /* Subheading/script, chain garlands, lantern frames */
  --color-antique-gold-deep:#9E7022;   /* hover / active gold */
  --color-golden-amber:     #B8862F;   /* Antique Gold token */
  --color-golden-amber-deep:#9E7022;   /* hover / active */
  --color-golden-amber-soft:rgba(184, 134, 47, 0.2);
  --color-warm-amber:       #E8A33D;   /* Lantern glow */
  --color-marigold:         #E8A33D;   /* warm amber lantern glow */
  --color-marigold-deep:    #C8831E;
  --color-marigold-soft:    rgba(232, 163, 61, 0.22);
  --color-lotus-gold:       #B8862F;
  --color-lotus-gold-deep:  #9E7022;

  /* Leaves & Trailing Vines (Forest Green) */
  --color-forest-green:     #4A6741;   /* Leaves, vines */
  --color-forest-green-deep:#374F2F;
  --color-fresh-green:      #4A6741;   /* Forest green */
  --color-fresh-green-deep: #374F2F;
  --color-fresh-green-soft: rgba(74, 103, 65, 0.2);
  --color-leaf-green:       #4A6741;
  --color-leaf-green-soft:  rgba(74, 103, 65, 0.2);

  /* Branches & Stems (Warm Brown Grounding Tones) */
  --color-warm-brown:       #4A3B2A;   /* warm brown */
  --color-warm-brown-deep:  #34281B;   /* deep espresso brown */
  --color-wood-brown:       #4A3B2A;
  --color-wood-brown-deep:  #34281B;

  /* Accents & Buttons */
  --color-dusty-rose:       #6B3444;   /* Dusty rose */
  --color-dusty-rose-deep:  #532634;
  --color-rani-pink:        #6B3444;   /* Dusty rose accent */
  --color-rani-pink-deep:   #532634;
  --color-rani-pink-soft:   rgba(107, 52, 68, 0.2);
  --color-btn-bg:           #6B3444;   /* Button background: dusty rose */
  --color-btn-bg-alt:       #4A6741;   /* Button background: forest green */
  --color-btn-text:         #F5EDE0;   /* Button text: cream */

  /* Shadows & Fairytale Glows */
  --shadow-sm: 0 4px 14px rgba(74, 59, 42, 0.08);
  --shadow-md: 0 8px 26px rgba(74, 59, 42, 0.12);
  --shadow-lg: 0 16px 40px rgba(74, 59, 42, 0.16);
  --shadow-card: 0 12px 32px -4px rgba(74, 59, 42, 0.1);
  --shadow-glow-marigold: 0 0 24px rgba(232, 163, 61, 0.45);
  --shadow-glow-amber: 0 0 24px rgba(232, 163, 61, 0.5);
  --shadow-glow-gold: 0 0 24px rgba(184, 134, 47, 0.4);
  --shadow-glow-pink: 0 0 24px rgba(232, 168, 176, 0.45);
  --shadow-diya: 0 0 14px rgba(232, 163, 61, 0.75), 0 0 28px rgba(184, 134, 47, 0.4);

  /* Typography */
  --font-script: 'Allura', 'Great Vibes', 'Italianno', cursive;
  --font-couple: 'MonteCarlo', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Spacing */
  --container-width: 1160px;
  --container-narrow: 840px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE RULES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Remove default browser blue outline / highlight box on click/tap */
*:focus {
  outline: none;
}

*:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
  background-color: var(--color-warm-ivory);
  background-image: 
    radial-gradient(ellipse 95% 75% at 50% 25%, #FAF7ED 0%, #F3EFDC 42%, #DBE4D4 78%, #B8C4B0 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
  body {
    background-attachment: scroll !important;
  }
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

button:focus,
button:active,
a:focus,
a:active,
input:focus,
textarea:focus,
select:focus,
[role="button"]:focus,
[role="tab"]:focus,
[tabindex]:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Luxury theme keyboard focus indicator (only for keyboard navigation, not mouse/touch clicks) */
:focus-visible {
  outline: 2px solid var(--color-antique-gold, #B8862F) !important;
  outline-offset: 3px !important;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.font-script {
  font-family: var(--font-script);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-antique-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 0.65rem;
  padding: 0.35rem 1.35rem;
  border-radius: var(--radius-full);
  background: rgba(245, 237, 224, 0.94);
  border: 1px solid rgba(232, 168, 176, 0.6);
  box-shadow: 0 2px 10px rgba(74, 59, 42, 0.08);
  font-weight: 700;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "•";
  color: var(--color-forest-green);
  font-size: 1.1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-heading-slate);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.85);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--color-ink-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.95);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINER
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

/* --------------------------------------------------------------------------
   5. ORNAMENTAL ELEMENTS & DIVIDERS
   -------------------------------------------------------------------------- */
.garland-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 320px;
}

.garland-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-peach),
    var(--color-antique-gold),
    var(--color-forest-green),
    var(--color-peach),
    transparent
  );
}

.lotus-ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-peach);
  filter: drop-shadow(0 2px 4px rgba(184, 134, 47, 0.25));
  animation: lotusPulse 4s ease-in-out infinite alternate;
}

@keyframes lotusPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.shree-ganesh {
  text-align: center;
  margin-bottom: 0.75rem;
}

.ganesh-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(230, 138, 0, 0.45));
}

.shloka-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--color-golden-amber);
  font-style: italic;
  font-weight: 600;
  -webkit-text-stroke: 0.25px var(--color-golden-amber);
  paint-order: stroke fill;
}

/* --------------------------------------------------------------------------
   6. AMBIENT DRIFTING FLOWERS (REAL FLOWER ASSETS - GPU ACCELERATED)
   -------------------------------------------------------------------------- */
.ambient-petals-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
  contain: strict;
}

.falling-flower,
.petal {
  position: absolute;
  top: -60px;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  animation: flowerFall linear infinite;
  backface-visibility: hidden;
}

.falling-flower-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  animation: flowerSway 4s ease-in-out infinite alternate;
  will-change: transform;
}

@media (max-width: 767px) {
  .falling-flower-img {
    width: 24px;
    height: 24px;
    animation: none;
  }
}

@keyframes flowerFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.92;
  }
  90% {
    opacity: 0.92;
  }
  100% {
    transform: translate3d(60px, 105vh, 0) rotate(420deg);
    opacity: 0;
  }
}

@keyframes flowerSway {
  0% {
    transform: rotate(-12deg) scale(0.96);
  }
  100% {
    transform: rotate(12deg) scale(1.04);
  }
}


/* Performance Optimization: content-visibility & render containment */
.section-padding:not(#hero),
.footer-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* --------------------------------------------------------------------------
   6B. ENTRANCE OVERLAY & BOX VIDEO TRANSITION
   -------------------------------------------------------------------------- */
body.entrance-active {
  overflow: hidden !important;
  touch-action: none !important;
}

.entrance-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  height: 100dvh;
  background-color: #263324;
  background-image: radial-gradient(circle at center, #354432 0%, #1E281C 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: 
    opacity 2.2s cubic-bezier(0.25, 1, 0.35, 1),
    transform 2.2s cubic-bezier(0.25, 1, 0.35, 1),
    filter 2.2s cubic-bezier(0.25, 1, 0.35, 1),
    visibility 2.2s cubic-bezier(0.25, 1, 0.35, 1);
  will-change: opacity, transform, filter;
}

.entrance-overlay.is-exiting {
  opacity: 0;
  transform: scale(1.08);
  filter: brightness(1.22) contrast(1.05) blur(8px);
  pointer-events: none;
}

.entrance-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
}

.entrance-front-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}

.entrance-front-img.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.entrance-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Central Tap Button & Text Capsule Wrapper */
.entrance-action-wrap {
  position: absolute;
  top: calc(50% + 150px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  pointer-events: auto;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.entrance-action-wrap.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
}

/* Circular Tap Button with Ripple Rings */
.entrance-tap-btn {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.entrance-tap-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(232, 168, 176, 0.85);
  animation: entrancePulse 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}

.entrance-tap-ring-2 {
  animation-delay: 0.8s;
  border-color: rgba(184, 134, 47, 0.75);
}

@keyframes entrancePulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.entrance-tap-circle {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F5EDE0 0%, #E8A8B0 50%, #B8862F 100%);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 28px rgba(232, 168, 176, 0.9), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.entrance-tap-hand {
  font-size: 2.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 5px rgba(92, 45, 39, 0.45));
  transition: transform 0.2s ease;
  user-select: none;
}

.entrance-tap-btn:hover .entrance-tap-hand {
  transform: translateY(-5px) scale(1.1);
}

.entrance-tap-btn:hover .entrance-tap-circle {
  transform: scale(1.08);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), 0 0 34px rgba(240, 101, 132, 1);
}

.entrance-tap-btn:active .entrance-tap-circle {
  transform: scale(0.94);
}

/* Text Capsule Slightly Below Center - Vibrant Festive Color Theme */
.entrance-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.45rem;
  background: linear-gradient(135deg, #A81C38 0%, #D42850 50%, #9C1431 100%);
  border: 1.5px solid #FFDE7A;
  border-radius: var(--radius-full);
  box-shadow: 
    0 6px 22px rgba(168, 28, 56, 0.6), 
    0 0 20px rgba(255, 222, 122, 0.45), 
    inset 0 1px 3px rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  animation: capsuleFloat 2.6s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.entrance-action-wrap:hover .entrance-capsule {
  box-shadow: 
    0 8px 28px rgba(212, 40, 80, 0.75), 
    0 0 26px rgba(255, 222, 122, 0.65), 
    inset 0 1px 4px rgba(255, 255, 255, 0.6);
  border-color: #FFF2A6;
}

.entrance-capsule span {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 235, 160, 0.7);
}

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

@media (max-width: 767px) {
  .entrance-stage {
    max-width: 100%;
  }

  .entrance-tap-btn {
    width: 76px;
    height: 76px;
  }

  .entrance-tap-circle {
    width: 68px;
    height: 68px;
  }

  .entrance-tap-hand {
    font-size: 1.85rem;
  }

  .entrance-capsule {
    padding: 0.5rem 1.25rem;
  }

  .entrance-capsule span {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 235, 160, 0.7);
  }
}

/* --------------------------------------------------------------------------
   7. FLOATING MUSIC TOGGLE BUTTON
   -------------------------------------------------------------------------- */
.music-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-cream-white);
  border: 2px solid var(--color-antique-gold);
  color: var(--color-heading-terra);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 15px rgba(232, 163, 61, 0.4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  padding: env(safe-area-inset-bottom, 0);
}

.music-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(232, 163, 61, 0.55);
}

.music-toggle-btn.is-playing {
  animation: musicSpin 8s linear infinite;
  border-color: var(--color-antique-gold);
  color: var(--color-antique-gold);
}

@keyframes musicSpin {
  100% { transform: rotate(360deg); }
}

.music-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-ink);
  color: var(--color-mogra-white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.music-toggle-btn:hover .music-tooltip {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. SECTION 1: HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  overflow: hidden;
  padding-top: calc(env(safe-area-inset-top, 0px) + 1.25rem);
  padding-bottom: 0.5rem;
  text-align: center;
}

/* Stacked Dual Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-mobile,
.hero-bg-desktop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-bg-desktop {
  display: none;
}

@media (min-width: 768px) {
  .hero-bg-mobile {
    display: none;
  }
  .hero-bg-desktop {
    display: block;
  }
}

/* Hero Background Overlay - Removed all gradients/filters */
.hero-overlay {
  display: none;
}

/* Top Content Block */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body:not(.entrance-active):not(.hero-revealing) .hero-content {
  animation: heroFadeIn 1.2s ease-out forwards;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   8B. SLOW & REVEALING ENTRANCE TO HERO TRANSITION CHOREOGRAPHY
   -------------------------------------------------------------------------- */

/* Ethereal Dawn Reveal Veil: warm morning light that melts away */
.hero-reveal-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 85% 75% at 50% 35%,
    rgba(255, 248, 230, 0.95) 0%,
    rgba(243, 239, 220, 0.75) 45%,
    rgba(219, 228, 212, 0.55) 75%,
    rgba(184, 196, 176, 0.4) 100%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s cubic-bezier(0.25, 1, 0.35, 1);
}

/* 1. Primed Waiting State while Entrance Overlay is active */
body.entrance-active .hero-reveal-veil {
  opacity: 1;
  transition: none !important;
}

body.entrance-active .hero-bg {
  transform: scale(1.08);
  filter: blur(14px) brightness(0.8);
  opacity: 0.25;
  transition: none !important;
}

body.entrance-active .shree-ganesh {
  opacity: 0;
  transform: translateY(-28px) scale(0.88);
  transition: none !important;
}

body.entrance-active .hero-eyebrow {
  opacity: 0;
  transform: translateY(-20px);
  transition: none !important;
}

body.entrance-active .hero-tagline {
  opacity: 0;
  transform: translateY(-20px);
  transition: none !important;
}

body.entrance-active .hero-names {
  opacity: 0;
  transform: scale(0.85);
  filter: blur(10px);
  transition: none !important;
}

body.entrance-active .hero-couple-wrapper {
  opacity: 0;
  transform: translateY(50px) scale(0.92);
  transition: none !important;
}

body.entrance-active .hero-scroll-indicator {
  opacity: 0;
  transform: translateX(-50%) translateY(25px);
  transition: none !important;
}

/* 2. Choreographed Slow & Revealing Sequence when Entrance Video ends */
body.hero-revealing .hero-reveal-veil,
.hero-section.is-revealed .hero-reveal-veil {
  opacity: 0;
}

/* Phase 1: Floral Mandap Arch background gently clarifies and zooms into sharp focus */
body.hero-revealing .hero-bg,
.hero-section.is-revealed .hero-bg {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) brightness(1);
  transition: 
    opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phase 2: Auspicious Shri Ganesh & Shloka floats down with divine grace */
body.hero-revealing .shree-ganesh,
.hero-section.is-revealed .shree-ganesh {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: 
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s,
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

/* Phase 3: Eyebrow and Tagline softly slide into view */
body.hero-revealing .hero-eyebrow,
.hero-section.is-revealed .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: 
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

body.hero-revealing .hero-tagline,
.hero-section.is-revealed .hero-tagline {
  opacity: 1;
  transform: translateY(0);
  transition: 
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s,
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

/* Phase 4: Couple Names ("Muskan & Sumeer") slowly bloom with glowing halo aura */
body.hero-revealing .hero-names,
.hero-section.is-revealed .hero-names {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: 
    opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s,
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s,
    filter 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.0s;
}

/* Phase 5: Anchored Couple Cutout rises majestically into the Garland Arch */
body.hero-revealing .hero-couple-wrapper,
.hero-section.is-revealed .hero-couple-wrapper {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: 
    opacity 1.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s,
    transform 1.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s;
}

/* Phase 6: Bottom Scroll Cue softly breathes into visibility */
body.hero-revealing .hero-scroll-indicator,
.hero-section.is-revealed .hero-scroll-indicator {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: 
    opacity 1.3s ease 1.75s,
    transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 1.75s;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-heading-slate);
  margin-bottom: 0.35rem;
  font-weight: 700;
  -webkit-text-stroke: 0.2px currentColor;
  paint-order: stroke fill;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  .hero-section .ganesh-icon {
    width: 68.6px;
    height: auto;
  }

  @media (min-height: 900px) {
    .hero-section .ganesh-icon {
      width: 89.3px;
      height: auto;
    }
  }

  .hero-eyebrow {
    display: inline-block;
    padding: 0.35rem 1.75rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.55) 55%, transparent 95%);
    color: var(--color-heading-terra);
    font-weight: 700;
    -webkit-text-stroke: 0.25px var(--color-heading-terra);
    paint-order: stroke fill;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.9);
  }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-size: clamp(1.1rem, 3.2vw, 1.65rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-heading-slate);
  font-weight: 700;
  -webkit-text-stroke: 0.3px var(--color-heading-slate);
  paint-order: stroke fill;
  margin: 0.35rem 0 0.15rem;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.9);
}

.hero-names {
  position: relative;
  display: inline-block;
  font-family: var(--font-couple);
  font-weight: 400;
  font-style: normal;
  font-size: 4.37rem;
  font-size: clamp(3.1rem, 9.8vw, 6rem);
  line-height: 1.15;
  color: var(--color-heading-terra);
  -webkit-text-stroke: 0.35px var(--color-heading-terra);
  paint-order: stroke fill;
  margin: 0.2rem 0;
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 0.95),
    0 0 26px rgba(255, 255, 255, 0.8),
    0 0 45px rgba(255, 255, 255, 0.5);
  z-index: 2;
}

/* Light White Glowing Aura behind couple name text */
.hero-names::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 125%;
  height: 140%;
  background: radial-gradient(
    ellipse 75% 65% at center,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.65) 25%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: heroGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@media (max-width: 767px) {
  /* Subtle refined stroke on couple name texts in mobile view */
  .hero-names {
    -webkit-text-stroke: 0.65px var(--color-heading-terra);
    paint-order: stroke fill;
    text-shadow: 
      0 0 12px rgba(255, 255, 255, 0.95),
      0 0 24px rgba(255, 255, 255, 0.7);
  }

  .invitation-person-name {
    -webkit-text-stroke: 0.65px var(--color-heading-terra);
    paint-order: stroke fill;
  }

  .person-name {
    -webkit-text-stroke: 0.5px var(--color-heading-terra);
    paint-order: stroke fill;
  }

  .footer-monogram {
    -webkit-text-stroke: 0.5px var(--color-heading-rose);
    paint-order: stroke fill;
  }

  .lightbox-caption-couple {
    -webkit-text-stroke: 1px var(--color-cream-white);
    paint-order: stroke fill;
  }

  .invitation-ampersand,
  .couple-center-ampersand,
  .connector-ampersand {
    -webkit-text-stroke: 1px var(--color-golden-amber);
    paint-order: stroke fill;
  }
}

.hero-names .ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.7em;
  color: var(--color-golden-amber);
  margin: 0 0.15em;
  display: inline-block;
  vertical-align: middle;
  -webkit-text-stroke: 0.35px var(--color-golden-amber);
  paint-order: stroke fill;
}

.hero-details {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-heading-slate);
  font-weight: 700;
  -webkit-text-stroke: 0.25px currentColor;
  paint-order: stroke fill;
  margin-top: 0.25rem;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.hero-city {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-golden-amber);
  font-weight: 600;
  -webkit-text-stroke: 0.2px currentColor;
  paint-order: stroke fill;
  margin-top: 0.2rem;
}

/* Bottom Couple Cutout Overlay */
.hero-couple-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  margin-top: 0;
  line-height: 0;
}

/* Luminous Glow Halo behind Couple Cutout (Seamless organic radial feathering) */
.hero-couple-glow {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 380px;
  height: 85%;
  background: radial-gradient(
    ellipse 55% 50% at 50% 50%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 248, 225, 0.8) 25%,
    rgba(248, 222, 160, 0.45) 50%,
    rgba(232, 168, 176, 0.2) 75%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(22px);
  pointer-events: none;
  z-index: 1;
  animation: coupleGlowPulse 4.5s ease-in-out infinite alternate;
}

@keyframes coupleGlowPulse {
  0% {
    opacity: 0.78;
    transform: translateX(-50%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

.hero-couple-img {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 336px;
  max-height: 36.4vh;
  max-height: calc(var(--vh, 1vh) * 36.4);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 18px rgba(74, 59, 42, 0.2));
}

/* Bottom Scroll Indicator: "Scroll down" badge with down arrow at right side of "down" */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hero-scroll-indicator:hover {
  transform: translateX(-50%) translateY(2px);
}

.hero-scroll-indicator .scroll-indicator-badge {
  font-weight: 700;
  -webkit-text-stroke: 0.2px currentColor;
  paint-order: stroke fill;
}

/* Shared Section Scroll Cue (Non-overlapping, naturally positioned at section bottoms) */
.section-scroll-cue {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2.75rem;
  padding-bottom: 0.5rem;
  position: relative;
  z-index: 5;
}

.section-scroll-indicator {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.section-scroll-indicator:hover {
  transform: translateY(2px);
}

.scroll-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-warm-brown);
  background: rgba(245, 237, 224, 0.96);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-peach);
  box-shadow: 0 2px 10px rgba(74, 59, 42, 0.12), 0 0 12px rgba(245, 237, 224, 0.9);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.scroll-arrow-icon {
  color: var(--color-antique-gold);
  animation: heroArrowBounce 1.8s infinite ease-in-out;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.hero-scroll-indicator:hover .scroll-indicator-badge,
.section-scroll-indicator:hover .scroll-indicator-badge {
  background: var(--color-heading-rose);
  color: var(--color-btn-text);
  border-color: var(--color-heading-rose);
  box-shadow: 0 5px 18px rgba(107, 52, 68, 0.3), 0 0 20px rgba(245, 237, 224, 0.9);
}

.hero-scroll-indicator:hover .scroll-arrow-icon,
.section-scroll-indicator:hover .scroll-arrow-icon {
  color: var(--color-btn-text);
}

@keyframes heroArrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (max-width: 767px) {
  .hero-scroll-indicator {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.85rem + 40px);
  }

  .section-scroll-cue {
    margin-top: 1.75rem;
    padding-bottom: 0.25rem;
  }

  .scroll-indicator-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.75rem;
    gap: 0.35rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    justify-content: space-between;
    gap: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 2rem);
    padding-bottom: 0;
  }

  .hero-couple-wrapper {
    margin-top: auto;
    max-width: 780px;
  }

  .hero-couple-img {
    width: 65%;
    max-width: 520px;
    max-height: 58vh;
    max-height: calc(var(--vh, 1vh) * 58);
  }
}

/* --------------------------------------------------------------------------
   9. SHARED SECTION BACKGROUND ROTATION (MOBILE & DESKTOP SPANNING)
   Ensures background images span the entire section with pale powder-blue field
   -------------------------------------------------------------------------- */
/* Pattern 1: Section 2 (Countdown), Section 6 (Events) */
.bg-pattern-1 {
  background-image: url('Assets/bg1_mobile.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .bg-pattern-1 {
    background-image: url('Assets/bg1_desktop.webp');
    background-position: center center;
    background-size: cover;
  }
}

/* Pattern 2: Section 3 (Invitation) */
.bg-pattern-2 {
  background-image: url('Assets/bg_mobile.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .bg-pattern-2 {
    background-image: url('Assets/bg_desktop.webp');
    background-position: center center;
    background-size: cover;
  }
}

/* Pattern 3: Section 4 (Couple), Section 8 (Gallery) */
.bg-pattern-3 {
  background-image: url('Assets/bg1_mobile.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .bg-pattern-3 {
    background-image: url('Assets/bg1_desktop.webp');
    background-position: center center;
    background-size: cover;
  }
}

/* Pattern 4: Section 5 (Story), Section 9 (RSVP) */
.bg-pattern-4 {
  background-image: url('Assets/bg_mobile.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .bg-pattern-4 {
    background-image: url('Assets/bg_desktop.webp');
    background-position: center center;
    background-size: cover;
  }
}

/* Section 6 (Events) - Centered & Full Spanning */
#events.bg-pattern-1 {
  background-image: url('Assets/bg_event_mobile.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (min-width: 768px) {
  #events.bg-pattern-1 {
    background-image: url('Assets/bg1_desktop.webp');
    background-position: center center;
    background-size: cover;
  }
}

/* Section 8 (Gallery) - Centered & Full Spanning */
#gallery.bg-pattern-3 {
  background-image: url('Assets/bg1_mobile.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (min-width: 768px) {
  #gallery.bg-pattern-3 {
    background-image: url('Assets/bg1_desktop.webp');
    background-position: center center;
    background-size: cover;
  }
}

/* Universal Mobile View Override: Background images span the entire section */
@media (max-width: 767px) {
  .bg-pattern-1,
  .bg-pattern-2,
  .bg-pattern-3,
  .bg-pattern-4,
  #countdown,
  #invitation,
  #couple,
  #story,
  #events,
  #gallery,
  #rsvp {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
}


/* --------------------------------------------------------------------------
   10. SECTION 2: SCRATCH CARD + LIVE COUNTDOWN TIMER
   -------------------------------------------------------------------------- */
.scratch-section {
  text-align: center;
}

@media (max-width: 767px) {
  .scratch-section .section-title .mobile-line-break {
    display: block;
  }
}

.svg-defs-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.scratch-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.scratch-card-container {
  position: relative;
  width: 460px;
  height: 250px;
  max-width: 92vw;
  margin: 0 auto;
  background: var(--color-cream-white);
  border: 2px solid rgba(184, 134, 47, 0.45);
  border-radius: var(--radius-lg, 18px);
  box-shadow: 0 16px 38px rgba(184, 134, 47, 0.22), 0 4px 16px rgba(107, 52, 68, 0.12);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.scratch-card-container:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 20px 44px rgba(184, 134, 47, 0.3), 0 6px 20px rgba(255, 145, 0, 0.18);
}

/* Revealed Content (underneath the canvas foil) */
.scratch-revealed-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #FAF6EF 0%, #FFF5F7 50%, #F5EDE0 100%);
  border-radius: var(--radius-lg, 18px);
}

@media (max-width: 480px) {
  .scratch-card-container {
    height: 225px;
  }
  .scratch-revealed-content {
    padding: 1.2rem 1rem;
  }
}

.scratch-flower-ornament {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 2px 8px rgba(184, 134, 47, 0.35));
  display: inline-block;
  animation: lotusPulse 4s ease-in-out infinite alternate;
}

.scratch-save-tag {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-golden-amber);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.scratch-date-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-size: clamp(1.4rem, 4.2vw, 2.05rem);
  font-weight: 700;
  color: var(--color-heading-terra);
  margin-bottom: 0.2rem;
  line-height: 1.15;
}

.scratch-city-sub {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  font-weight: 600;
  margin-bottom: 0;
}

.scratch-revealed-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-warm-brown);
  max-width: 420px;
  line-height: 1.45;
  margin-top: 0.25rem;
}

/* External Countdown Section (Shifted Outside of Scratch Card) */
.countdown-external-wrap {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.countdown-external-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-heading-rose, #6B3444);
  font-weight: 700;
  margin-bottom: 0.95rem;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
}

/* Live Countdown Grid */
.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 480px;
}

.countdown-box {
  flex: 1;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF5F7 52%, #FEE8EC 100%);
  border: 1.5px solid rgba(216, 27, 96, 0.35);
  border-radius: var(--radius-md);
  padding: 0.95rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 20px rgba(216, 27, 96, 0.12), 0 2px 8px rgba(184, 134, 47, 0.12);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.countdown-box:hover {
  transform: translateY(-3px);
  border-color: #D81B60;
  box-shadow: 0 10px 28px rgba(216, 27, 96, 0.24), 0 0 16px rgba(232, 163, 61, 0.3);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: #C2185B;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(194, 24, 91, 0.15);
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A3546;
  margin-top: 0.4rem;
  font-weight: 700;
}

/* Canvas Scratch Foil Layer */
.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 5;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.65s ease-out;
}

.scratch-canvas:active {
  cursor: grabbing;
}

.scratch-canvas.is-revealed {
  opacity: 0;
  pointer-events: none;
}

/* Accessible Tap-to-Reveal fallback button */
.scratch-fallback-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-btn-bg), #532634);
  color: var(--color-btn-text);
  border: 1px solid rgba(184, 134, 47, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(107, 52, 68, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  min-height: 44px;
}

.btn-reveal:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4A6741, #374F2F);
  box-shadow: 0 6px 22px rgba(74, 103, 65, 0.45);
  color: var(--color-btn-text);
}

.scratch-hint {
  font-size: 0.8rem;
  color: var(--color-ink-light);
}

/* --------------------------------------------------------------------------
   11. SECTION 3: INVITATION MESSAGE (OPEN EDITORIAL LAYOUT)
   -------------------------------------------------------------------------- */
.invitation-content-wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 1rem;
}

.invitation-content-wrap .shree-ganesh {
  margin-bottom: 1rem;
}

.invitation-content-wrap .shloka-text {
  display: inline-block;
  padding: 0.45rem 0.5rem;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.58) 60%, transparent 95%);
  font-size: 1.05rem;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--color-golden-amber);
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.85);
}

.invitation-hosts {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-size: clamp(1.05rem, 3.2vw, 1.68rem);
  color: var(--color-heading-terra);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 0;
  padding-right: 0;
  line-height: 1.35;
  -webkit-text-stroke: 0.35px var(--color-heading-terra);
  paint-order: stroke fill;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95);
}

.invitation-hosts .host-line {
  display: inline;
}

.invitation-hosts .invitation-host-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--color-golden-amber);
  margin: 0 0.28em;
  -webkit-text-stroke: 0.35px var(--color-golden-amber);
  paint-order: stroke fill;
}

.invitation-lead {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-size: clamp(0.98rem, 2.6vw, 1.38rem);
  color: var(--color-ink-muted);
  line-height: 1.35;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  -webkit-text-stroke: 0.2px currentColor;
  paint-order: stroke fill;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 18px rgba(255, 255, 255, 0.9);
}

.invitation-person-block {
  margin: 0.85rem 0;
}

.invitation-person-name {
  font-family: var(--font-couple);
  font-weight: 400;
  font-style: normal;
  font-size: 3.8rem;
  font-size: clamp(2.8rem, 8.5vw, 4.8rem);
  color: var(--color-heading-terra);
  line-height: 1.05;
  margin-bottom: 0.15rem;
  -webkit-text-stroke: 0.35px var(--color-heading-terra);
  paint-order: stroke fill;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.95), 0 0 24px rgba(255, 255, 255, 0.9);
}

.invitation-person-parents {
  font-family: var(--font-serif);
  font-size: clamp(0.86rem, 3.2vw, 1.58rem);
  color: var(--color-heading-slate);
  letter-spacing: 0.015em;
  font-weight: 700;
  -webkit-text-stroke: 0.2px currentColor;
  paint-order: stroke fill;
  line-height: 1.35;
  white-space: nowrap;
  margin: 0.18rem -25px;
  padding-left: 0;
  padding-right: 0;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.95);
}

@media (max-width: 480px) {
  .invitation-person-parents {
    font-size: clamp(0.82rem, 3.3vw, 1.1rem);
    letter-spacing: 0.01em;
  }
}

@media (max-width: 360px) {
  .invitation-person-parents {
    font-size: 0.78rem;
    letter-spacing: 0;
  }
}

.invitation-ampersand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.75rem auto;
  max-width: 320px;
}

.invitation-ampersand {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--color-golden-amber);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 15px rgba(230, 138, 0, 0.3);
}

.invitation-with-text {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--color-golden-amber);
  font-weight: 600;
  -webkit-text-stroke: 0.35px var(--color-golden-amber);
  paint-order: stroke fill;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.95), 0 0 15px rgba(230, 138, 0, 0.3);
}

.invitation-quote {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-size: clamp(0.98rem, 2.4vw, 1.25rem);
  font-style: italic;
  color: var(--color-ink-muted);
  line-height: 1.45;
  max-width: 660px;
  margin: 0 auto;
  font-weight: 600;
  -webkit-text-stroke: 0.25px currentColor;
  paint-order: stroke fill;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   12. SECTION 4: COUPLE INTRO (STORYBOOK CAMEO DUO — MOBILE ALTERNATING)
   -------------------------------------------------------------------------- */
#couple {
  padding-top: calc(5rem + 40px);
  padding-bottom: calc(5rem + 40px);
}

@media (min-width: 768px) {
  #couple {
    padding-top: calc(6.5rem + 40px);
    padding-bottom: calc(6.5rem + 40px);
  }
}
.couple-storybook {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.25rem 0.5rem;
}

.couple-cameo-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

.couple-cameo--left {
  flex-direction: row;
}

.couple-cameo--right {
  flex-direction: row;
}

/* Portrait Cameo Visual Frame */
.couple-cameo-visual {
  flex: 0 0 132px;
  width: 132px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cameo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 66px 66px 18px 18px;
  overflow: hidden;
  border: 3px solid var(--color-warm-ivory);
  background: var(--color-warm-ivory);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.cameo-frame--bride {
  outline: 2px solid rgba(232, 168, 176, 0.7);
  box-shadow: 0 6px 20px rgba(74, 59, 42, 0.12), 0 0 16px rgba(232, 168, 176, 0.35);
}

.cameo-frame--groom {
  outline: 2px solid rgba(184, 134, 47, 0.6);
  box-shadow: 0 6px 20px rgba(74, 59, 42, 0.12), 0 0 16px rgba(74, 103, 65, 0.28);
}

.cameo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.couple-cameo-row:hover .cameo-img {
  transform: scale(1.06);
}

/* Cameo Ring Glow Overlay */
.cameo-ring-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Cameo Content & Typography */
.couple-cameo-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.couple-cameo--left .couple-cameo-content {
  align-items: flex-start;
  text-align: left;
}

.couple-cameo--right .couple-cameo-content {
  align-items: flex-end;
  text-align: right;
}

/* Role Badge */
.cameo-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(243, 239, 220, 0.94);
  border: 1px solid rgba(184, 134, 47, 0.4);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-antique-gold);
  margin-bottom: 0.25rem;
  box-shadow: 0 2px 8px rgba(74, 59, 42, 0.08);
}

/* Name */
.cameo-name,
.person-name {
  font-family: var(--font-couple);
  font-size: clamp(2.1rem, 6.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.95);
}

.couple-cameo--left .cameo-name {
  color: var(--color-heading-rose);
}

.couple-cameo--right .cameo-name {
  color: var(--color-heading-brown);
}

/* Bio */
.cameo-bio {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 2.5vw, 0.92rem);
  line-height: 1.45;
  color: var(--color-ink-muted);
  font-weight: 450;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
  max-width: 320px;
  margin: 0;
}

/* Connecting Garland Divider between Bride and Groom */
.couple-story-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
  margin: 0.25rem 0;
}

.connector-line {
  flex: 1;
  max-width: 140px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--color-antique-gold), transparent);
  opacity: 0.6;
}

.connector-medallion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-warm-ivory) 40%, rgba(245, 237, 224, 0.9) 100%);
  border: 1.5px solid rgba(184, 134, 47, 0.45);
  box-shadow: 0 2px 10px rgba(184, 134, 47, 0.2);
}

.connector-ampersand {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-antique-gold);
  line-height: 1;
  padding-bottom: 2px;
}

/* Tablet & Desktop Layout */
@media (min-width: 680px) {
  .couple-storybook {
    max-width: 760px;
    gap: 1.8rem;
    padding: 0.75rem 1rem;
  }

  .couple-cameo-row {
    gap: 2rem;
  }

  .couple-cameo-visual {
    flex: 0 0 175px;
    width: 175px;
  }

  .cameo-frame {
    border-radius: 88px 88px 22px 22px;
  }

  .cameo-bio {
    max-width: 380px;
    font-size: 0.95rem;
  }

  .connector-line {
    max-width: 180px;
  }

  .connector-medallion {
    width: 42px;
    height: 42px;
  }

  .connector-ampersand {
    font-size: 2.1rem;
  }
}

@media (min-width: 900px) {
  .couple-cameo-visual {
    flex: 0 0 195px;
    width: 195px;
  }

  .cameo-frame {
    border-radius: 98px 98px 24px 24px;
  }
}

/* --------------------------------------------------------------------------
   13. SECTION 5: COUPLE STORY (INTERACTIVE MILESTONE STEPPER NAVIGATOR)
   -------------------------------------------------------------------------- */
.milestone-stepper-wrapper {
  position: relative;
  max-width: 840px;
  margin: 2.25rem auto 3rem;
  padding: 0 1rem;
}

/* Horizontal Track Behind Stepper Nodes */
.stepper-track-bar {
  position: absolute;
  top: 24px;
  left: 48px;
  right: 48px;
  height: 4px;
  background: rgba(232, 168, 176, 0.35);
  border-radius: var(--radius-full);
  z-index: 1;
}

.stepper-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-peach), var(--color-antique-gold));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(184, 134, 47, 0.45);
}

/* Stepper Node List */
.stepper-nodes-list {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual Stepper Button */
.stepper-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-fast);
}

.stepper-btn:hover .stepper-indicator {
  transform: scale(1.08);
  border-color: var(--color-golden-amber);
}

/* Stepper Circle Indicator */
.stepper-indicator {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-cream-white);
  border: 2.5px solid rgba(232, 168, 176, 0.65);
  color: var(--color-ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(74, 59, 42, 0.08);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Stepper Emoji Icon */
.stepper-emoji {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(30, 41, 59, 0.12));
  transition: transform var(--transition-fast);
}

.stepper-btn:hover .stepper-emoji {
  transform: scale(1.15);
}

/* Stepper Text Meta */
.stepper-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.65rem;
}

.stepper-date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-golden-amber);
  transition: color var(--transition-fast);
}

.stepper-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading-slate);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

/* Active State */
.stepper-btn.is-active .stepper-indicator {
  background: linear-gradient(135deg, var(--color-antique-gold), var(--color-dusty-rose));
  color: #F5EDE0;
  border-color: var(--color-antique-gold);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(184, 134, 47, 0.45), 0 4px 12px rgba(74, 59, 42, 0.15);
}

.stepper-btn.is-active .stepper-emoji {
  transform: scale(1.12);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.stepper-btn.is-active .stepper-date {
  color: var(--color-heading-terra);
  font-weight: 700;
}

.stepper-btn.is-active .stepper-label {
  color: var(--color-heading-terra);
  font-weight: 700;
}

/* Completed State */
.stepper-btn.is-completed .stepper-indicator {
  background: var(--color-peach-soft);
  border-color: var(--color-golden-amber);
  color: var(--color-golden-amber);
}

/* Story Cards Viewport (Only the active card is displayed) */
.story-viewport {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* Hidden by default — only active card is shown */
.story-card {
  display: none;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.story-card.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: storyCardFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes storyCardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.story-card-inner {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0.25rem 0.5rem 1.25rem;
  box-shadow: none;
  border: none;
  text-align: center;
  overflow: visible;
}

/* Couple Image Royal Arch inside Story Card */
.story-card-img-frame {
  width: 140px;
  height: 175px;
  margin: 0 auto 1.25rem;
  border-radius: 70px 70px 14px 14px;
  overflow: hidden;
  border: 2.5px solid var(--color-peach);
  box-shadow: 0 8px 24px rgba(74, 59, 42, 0.16), 0 0 16px rgba(232, 168, 176, 0.35);
  background-color: var(--color-base-white);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.story-card:hover .story-card-img-frame,
.story-card-inner:hover .story-card-img-frame {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(74, 59, 42, 0.22), 0 0 20px rgba(232, 168, 176, 0.35);
  border-color: var(--color-heading-terra);
}

.story-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Corner floral ornament removed for cardless layout */
.story-card-inner::before {
  display: none;
}

.story-card-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-heading-rose);
  background: rgba(243, 239, 220, 0.94);
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(184, 134, 47, 0.4);
  box-shadow: 0 2px 8px rgba(74, 59, 42, 0.08);
}

.story-card-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-antique-gold);
  margin-bottom: 0.4rem;
}

.story-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  color: var(--color-heading-brown);
  line-height: 1.22;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.85);
}

.story-card-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  color: var(--color-ink-muted);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 450;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

/* Stepper Bottom Navigation Bar */
/* Side Chevron Navigation Buttons (Outstanding Luxury Gold-Crimson Badges) */
.story-side-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6B3444 0%, #4A6741 100%);
  border: 2.5px solid #F5EDE0;
  outline: 2px solid rgba(184, 134, 47, 0.75);
  outline-offset: 2px;
  color: #F5EDE0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(107, 52, 68, 0.38), 0 0 18px rgba(184, 134, 47, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              background 0.28s ease,
              opacity 0.28s ease;
  z-index: 12;
  -webkit-tap-highlight-color: transparent;
}

.story-side-chevron svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.8;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.story-side-chevron:hover:not(:disabled) {
  background: linear-gradient(135deg, #824053 0%, #5B7F50 100%);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(107, 52, 68, 0.55), 0 0 26px rgba(184, 134, 47, 0.65);
  outline-color: #B8862F;
}

.story-side-chevron:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.story-side-chevron:disabled {
  opacity: 0.25;
  filter: grayscale(0.85);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  outline: none;
}

.story-chevron-prev {
  left: -26px;
}

.story-chevron-next {
  right: -26px;
}

/* Centered Navigation Indicator Dots */
.story-dots-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  width: 100%;
}

.story-dots-indicator {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.story-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(232, 168, 176, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.story-dot.is-active {
  width: 26px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-peach), var(--color-antique-gold));
}

/* Responsive adjustments for Mobile */
@media (max-width: 767px) {
  .story-viewport {
    padding: 0 2.2rem;
  }
  .story-chevron-prev {
    left: -4px;
  }
  .story-chevron-next {
    right: -4px;
  }
  .story-side-chevron {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }
  .story-side-chevron svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.8;
  }
}

@media (max-width: 600px) {
  .milestone-stepper-wrapper {
    margin: 1.5rem auto 2rem;
    padding: 0 0.5rem;
  }
  
  .stepper-track-bar {
    top: 20px;
    left: 28px;
    right: 28px;
    height: 3px;
  }
  
  .stepper-indicator {
    width: 40px;
    height: 40px;
  }

  .stepper-emoji {
    font-size: 1.15rem;
  }
  
  .stepper-btn {
    padding: 0 0.25rem;
  }
  
  .stepper-date {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }
  
  .stepper-label {
    font-size: 0.85rem;
  }
  
  .story-card-inner {
    padding: 1.85rem 1.25rem;
  }

  .story-card-img-frame {
    width: 115px;
    height: 145px;
    border-radius: 58px 58px 12px 12px;
    margin-bottom: 1rem;
  }
  
  .story-card-title {
    font-size: 1.7rem;
  }
  
  .story-card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .story-chevron-prev {
    left: -8px;
  }
  .story-chevron-next {
    right: -8px;
  }
  .story-side-chevron {
    width: 40px;
    height: 40px;
    box-shadow: 0 6px 18px rgba(184, 46, 77, 0.4), 0 0 14px rgba(230, 138, 0, 0.45);
  }
  .story-side-chevron svg {
    width: 18px;
    height: 18px;
  }
}


/* --------------------------------------------------------------------------
   14. SECTION 6: WEDDING EVENTS (SEPARATE GORGEOUS EVENT CARDS IN SINGLE COLUMN)
   -------------------------------------------------------------------------- */
.wedding-events-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  max-width: 740px;
  margin: 2.2rem auto 0;
  padding: 0 0.5rem;
}

/* Individual Standalone Gorgeous Event Card */
.wedding-event-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.2rem;
  padding: 1.85rem 2.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 248, 0.95) 50%, rgba(250, 246, 238, 0.98) 100%);
  border: 1.5px solid rgba(184, 134, 47, 0.35);
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(74, 59, 42, 0.08), 0 2px 10px rgba(184, 134, 47, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Subtle Royal Golden Border Inset */
.wedding-event-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  border: 1px dashed rgba(184, 134, 47, 0.22);
  pointer-events: none;
}

.wedding-event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 134, 47, 0.65);
  box-shadow: 0 18px 44px rgba(107, 52, 68, 0.12), 0 4px 18px rgba(184, 134, 47, 0.22);
}

/* Event Photo Visual (Natural, Unboxed & Borderless) */
.event-card-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.event-card-photo {
  position: relative;
  width: 155px;
  height: 155px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
  transition: transform var(--transition-normal);
}

.wedding-event-card:hover .event-card-photo {
  transform: scale(1.06) translateY(-2px);
}

.event-card-img {
  width: 100%;
  height: 100%;
  max-width: 155px;
  max-height: 155px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 14px rgba(74, 59, 42, 0.12));
  transition: filter var(--transition-normal);
}

.wedding-event-card:hover .event-card-img {
  filter: drop-shadow(0 10px 22px rgba(184, 134, 47, 0.3));
}

/* Individual Celebration Theme Soft Shadow Tints */
.photo--haldi .event-card-img {
  filter: drop-shadow(0 6px 14px rgba(232, 163, 61, 0.25));
}

.photo--sangeet .event-card-img {
  filter: drop-shadow(0 6px 14px rgba(232, 168, 176, 0.3));
}

.photo--wedding .event-card-img {
  filter: drop-shadow(0 6px 14px rgba(184, 134, 47, 0.25));
}

.photo--reception .event-card-img {
  filter: drop-shadow(0 6px 14px rgba(74, 103, 65, 0.22));
}

/* Event Content Details */
.event-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 1;
}

.event-card-header {
  margin-bottom: 0.65rem;
}

.event-card-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-antique-gold);
  font-weight: 700;
  background: rgba(184, 134, 47, 0.1);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.8vw, 1.7rem);
  font-weight: 700;
  color: var(--color-heading-brown);
  line-height: 1.2;
  margin: 0;
}

/* Meta List: Date, Time, Venue */
.event-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  width: 100%;
}

.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

.event-card-meta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-antique-gold);
}

.event-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
}

.event-card-attire {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-heading-rose);
  margin: 0;
  line-height: 1.35;
}

.event-card-btn {
  width: auto !important;
  margin-top: 0.2rem;
  padding: 0.45rem 1.15rem;
}

/* ==========================================================================
   EVENT CARD VIBE THEMES (INDIVIDUAL CELEBRATION PALETTES)
   ========================================================================== */

/* 1. HALDI & MEHNDI UTSAV — Festive Sunshine Yellow & Marigold Vibe */
.card--haldi {
  background: linear-gradient(135deg, #FFFEFA 0%, #FFF9EB 45%, #FFF2D1 100%);
  border-color: rgba(229, 160, 35, 0.42);
  box-shadow: 0 10px 32px rgba(184, 134, 47, 0.09), 0 2px 10px rgba(229, 160, 35, 0.08);
}
.card--haldi::before {
  border-color: rgba(217, 138, 14, 0.28);
}
.card--haldi:hover {
  border-color: rgba(229, 160, 35, 0.75);
  box-shadow: 0 18px 44px rgba(217, 119, 6, 0.16), 0 4px 18px rgba(245, 158, 11, 0.24);
}
.card--haldi .event-card-badge {
  color: #92400E;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.card--haldi .event-card-title {
  color: #783E00;
}
.card--haldi .event-card-meta-icon {
  color: #D97706;
}
.card--haldi .event-card-attire {
  color: #92400E;
}
.card--haldi .event-card-btn {
  border-color: #D97706;
  color: #783E00;
}
.card--haldi .event-card-btn:hover {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  border-color: #D97706;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

/* 2. RING CEREMONY — Regal Rani Pink, Jewel Tones & Musical Sangeet Glamour Vibe */
.card--sangeet {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFF0F4 45%, #FEE5ED 100%);
  border-color: rgba(216, 27, 96, 0.36);
  box-shadow: 0 10px 32px rgba(216, 27, 96, 0.08), 0 2px 10px rgba(194, 24, 91, 0.08);
}
.card--sangeet::before {
  border-color: rgba(216, 27, 96, 0.24);
}
.card--sangeet:hover {
  border-color: rgba(216, 27, 96, 0.72);
  box-shadow: 0 18px 44px rgba(216, 27, 96, 0.16), 0 4px 18px rgba(194, 24, 91, 0.22);
}
.card--sangeet .event-card-badge {
  color: #C2185B;
  background: rgba(216, 27, 96, 0.12);
  border: 1px solid rgba(216, 27, 96, 0.26);
}
.card--sangeet .event-card-title {
  color: #880E4F;
}
.card--sangeet .event-card-meta-icon {
  color: #D81B60;
}
.card--sangeet .event-card-attire {
  color: #AD1457;
}
.card--sangeet .event-card-btn {
  border-color: #D81B60;
  color: #880E4F;
}
.card--sangeet .event-card-btn:hover {
  background: linear-gradient(135deg, #E91E63, #C2185B);
  color: #FFFFFF;
  border-color: #C2185B;
  box-shadow: 0 6px 18px rgba(216, 27, 96, 0.35);
}

/* 3. THE SACRED SAATH PHERE — 24K Royal Gold & Auspicious Mandap Vows Vibe */
.card--wedding {
  background: linear-gradient(135deg, #FFFCF5 0%, #FFF8EA 45%, #FAF0D6 100%);
  border-color: rgba(184, 134, 47, 0.44);
  box-shadow: 0 10px 32px rgba(184, 134, 47, 0.09), 0 2px 10px rgba(184, 134, 47, 0.08);
}
.card--wedding::before {
  border-color: rgba(184, 134, 47, 0.28);
}
.card--wedding:hover {
  border-color: rgba(184, 134, 47, 0.8);
  box-shadow: 0 18px 44px rgba(184, 134, 47, 0.18), 0 4px 18px rgba(142, 97, 26, 0.22);
}
.card--wedding .event-card-badge {
  color: #8A5D19;
  background: rgba(184, 134, 47, 0.15);
  border: 1px solid rgba(184, 134, 47, 0.3);
}
.card--wedding .event-card-title {
  color: #5C3810;
}
.card--wedding .event-card-meta-icon {
  color: #B8862F;
}
.card--wedding .event-card-attire {
  color: #7A4918;
}
.card--wedding .event-card-btn {
  border-color: #B8862F;
  color: #5C3810;
}
.card--wedding .event-card-btn:hover {
  background: linear-gradient(135deg, #D4AF37, #B8862F);
  color: #FFFFFF;
  border-color: #9E7022;
  box-shadow: 0 6px 18px rgba(184, 134, 47, 0.4);
}

/* 4. THE GRAND RECEPTION — Royal Emerald Forest & Starry Lake Palace Gala Vibe */
.card--reception {
  background: linear-gradient(135deg, #F6FAF7 0%, #EEF6F0 45%, #E0EFE4 100%);
  border-color: rgba(74, 103, 65, 0.4);
  box-shadow: 0 10px 32px rgba(74, 103, 65, 0.08), 0 2px 10px rgba(46, 84, 41, 0.08);
}
.card--reception::before {
  border-color: rgba(74, 103, 65, 0.25);
}
.card--reception:hover {
  border-color: rgba(74, 103, 65, 0.75);
  box-shadow: 0 18px 44px rgba(74, 103, 65, 0.16), 0 4px 18px rgba(46, 84, 41, 0.22);
}
.card--reception .event-card-badge {
  color: #2D5227;
  background: rgba(74, 103, 65, 0.14);
  border: 1px solid rgba(74, 103, 65, 0.28);
}
.card--reception .event-card-title {
  color: #1F3C1A;
}
.card--reception .event-card-meta-icon {
  color: #4A6741;
}
.card--reception .event-card-attire {
  color: #2D5227;
}
.card--reception .event-card-btn {
  border-color: #4A6741;
  color: #1F3C1A;
}
.card--reception .event-card-btn:hover {
  background: linear-gradient(135deg, #5C8052, #3E5A36);
  color: #FFFFFF;
  border-color: #3E5A36;
  box-shadow: 0 6px 18px rgba(74, 103, 65, 0.35);
}

/* Mobile Responsiveness for Event Cards */
@media (max-width: 639px) {
  .wedding-events-stack {
    gap: 1.6rem;
    padding: 0 0.25rem;
  }

  .wedding-event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 1.6rem 1.25rem;
  }

  .wedding-event-card::before {
    inset: 5px;
    border-radius: 16px;
  }

  .event-card-photo {
    width: 135px;
    height: 135px;
    margin-bottom: 0.15rem;
  }

  .event-card-img {
    max-width: 135px;
    max-height: 135px;
  }

  .event-card-body {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .event-card-meta {
    align-items: center;
  }

  .event-card-meta-item {
    justify-content: center;
    font-size: 0.78rem;
  }

  .event-card-footer {
    align-items: center;
    text-align: center;
  }

  .event-card-btn {
    width: 100% !important;
    max-width: 240px;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   15. EVENT VENUE DETAIL BUTTON & POPUP MODAL CARD (CLEAN LOOK)
   -------------------------------------------------------------------------- */
.btn-event-venue {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  width: 100%;
  padding: 0.46rem 0.95rem;
  background: #FFFFFF;
  border: 1.5px solid var(--color-btn-bg);
  border-radius: var(--radius-full);
  color: var(--color-btn-bg);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.btn-event-venue * {
  pointer-events: none;
}

.btn-event-venue:hover {
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  border-color: var(--color-btn-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 14px rgba(107, 52, 68, 0.3);
}

.btn-event-venue svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-event-venue:hover svg {
  transform: scale(1.15);
}

/* Event Cards Mobile Height Reduction */
@media (max-width: 767px) {
  .events-grid {
    max-width: 330px;
    gap: 1.1rem;
  }

  .event-thumb-wrapper {
    padding: 1rem 0.8rem 0.5rem;
  }

  .event-ring-frame {
    width: 98px;
    height: 98px;
    outline-offset: 2.5px;
  }

  .event-content {
    padding: 0.75rem 0.85rem 0.95rem;
  }

  .event-title {
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
  }

  .event-meta-list {
    margin: 0.35rem 0 0.5rem;
    gap: 0.25rem;
  }

  .event-meta-item {
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .event-meta-icon {
    width: 13px;
    height: 13px;
  }

  .event-attire {
    padding-top: 0.45rem;
    font-size: 0.7rem;
  }

  .btn-event-venue {
    margin-top: 0.6rem;
    padding: 0.38rem 0.8rem;
    font-size: 0.72rem;
  }
}

/* Venue Modal Overlay */
.venue-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}

.venue-modal.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.venue-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(42, 54, 40, 0.82);
  -webkit-tap-highlight-color: transparent;
}

/* Clean Look Venue Detail & Map Card */
.venue-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-cream-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(232, 168, 176, 0.65);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(232, 168, 176, 0.25);
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.venue-modal.open .venue-modal-card {
  transform: scale(1) translateY(0);
}

/* Close Button */
.venue-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 168, 176, 0.25);
  border: 1px solid rgba(232, 168, 176, 0.45);
  color: var(--color-heading-terra);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.venue-modal-close:hover {
  background: var(--color-heading-terra);
  color: #F5EDE0;
  transform: rotate(90deg);
}

/* Header Info */
.venue-modal-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-heading-terra);
  background: rgba(232, 168, 176, 0.25);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(232, 168, 176, 0.45);
}

.venue-modal-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--color-heading-slate);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.venue-modal-spot {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-golden-amber);
  margin-bottom: 0.5rem;
}

.venue-modal-address {
  font-size: 0.88rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
  max-width: 440px;
  margin: 0 auto 1.25rem;
}

.venue-modal-address svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-golden-amber);
}

/* Framed Responsive Google Map Iframe */
.venue-modal-map-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(240, 101, 132, 0.5);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  background: var(--color-base-white);
}

.venue-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer & Directions CTA */
.venue-modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.venue-modal-tip {
  font-size: 0.82rem;
  color: var(--color-ink-light);
  line-height: 1.45;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--color-btn-bg), #532634);
  color: var(--color-btn-text);
  border: 1px solid rgba(184, 134, 47, 0.4);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(107, 52, 68, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  min-height: 44px;
  text-decoration: none;
}

.btn-directions:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4A6741, #374F2F);
  color: var(--color-btn-text);
  box-shadow: 0 6px 18px rgba(74, 103, 65, 0.4);
}

/* Responsive adjustments for venue modal card on mobile */
@media (max-width: 600px) {
  .venue-modal {
    padding: 0.75rem;
  }

  .venue-modal-card {
    padding: 1.85rem 1.15rem 1.25rem;
    max-height: 92vh;
    max-height: 92dvh;
  }

  .venue-modal-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 1.6rem;
  }

  .venue-modal-title {
    font-size: 1.35rem;
  }

  .venue-modal-map-wrap {
    height: 195px;
    margin-bottom: 1rem;
  }

  .btn-directions {
    padding: 0.65rem 1.35rem;
    font-size: 0.88rem;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   16. SECTION 8: COUPLE PHOTO GALLERY (ROMANTIC POLAROID SCRAPBOOK GARLAND)
   -------------------------------------------------------------------------- */
.polaroid-gallery-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 0;
  overflow: hidden;
}

/* Garland Rope Line across the top */
.polaroid-garland-line {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #B8862F 0px, #B8862F 12px, #E8A8B0 12px, #E8A8B0 24px, #4A6741 24px, #4A6741 36px);
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(74, 59, 42, 0.15);
  z-index: 1;
  pointer-events: none;
}

.polaroid-track-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 1.75rem 0 2.25rem;
  touch-action: pan-x pan-y;
  outline: none;
}

.polaroid-track-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.polaroid-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0 max(1.5rem, calc(50vw - 155px));
  width: max-content;
  position: relative;
  z-index: 2;
}

/* Individual Polaroid Card */
.polaroid-card {
  position: relative;
  flex: 0 0 290px;
  width: 290px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #FAF6EF;
  border-radius: 4px;
  padding: 14px 14px 20px;
  border: 1px solid rgba(184, 134, 47, 0.32);
  box-shadow: 0 12px 28px rgba(74, 59, 42, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transform-origin: top center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Alternating Playful Tilt Angles */
.polaroid-tilt-1 { transform: rotate(-2.8deg); }
.polaroid-tilt-2 { transform: rotate(2.2deg); }
.polaroid-tilt-3 { transform: rotate(-1.8deg); }
.polaroid-tilt-4 { transform: rotate(2.8deg); }
.polaroid-tilt-5 { transform: rotate(-2.2deg); }
.polaroid-tilt-6 { transform: rotate(1.6deg); }

.polaroid-card:hover,
.polaroid-card.is-active {
  transform: translateY(-8px) rotate(0deg) scale(1.03);
  box-shadow: 0 20px 42px rgba(74, 59, 42, 0.22), 0 0 22px rgba(232, 168, 176, 0.28);
  border-color: rgba(232, 168, 176, 0.75);
  z-index: 5;
}

/* Decorative Gold Washi Tape / Wooden Clip */
.polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: linear-gradient(135deg, rgba(184, 134, 47, 0.8), rgba(243, 239, 220, 0.85));
  border: 1px dashed rgba(184, 134, 47, 0.5);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  z-index: 3;
  pointer-events: none;
}

.polaroid-pin {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--color-antique-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  font-size: 0.82rem;
  pointer-events: none;
}

.polaroid-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.polaroid-photo-frame {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 2px;
  overflow: hidden;
  background: #2D2320;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.05);
}

.polaroid-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(240, 101, 132, 0.5);
  color: var(--color-heading-terra);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  opacity: 0.9;
  transition: all var(--transition-fast);
  outline: none;
}

.polaroid-zoom-btn:hover {
  background: var(--color-antique-gold);
  color: #FFFFFF;
  border-color: var(--color-antique-gold);
  transform: scale(1.12);
}

/* Handwritten Scrapbook Captions */
.polaroid-caption {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polaroid-title {
  font-family: var(--font-script);
  font-size: 2.35rem;
  font-weight: 400;
  color: var(--color-heading-terra);
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.polaroid-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

/* Controls Bar */
.polaroid-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  width: 100%;
}

.polaroid-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-cream-white);
  border: 1.5px solid rgba(232, 168, 176, 0.65);
  color: var(--color-heading-terra);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.polaroid-nav-btn:hover {
  background: var(--color-antique-gold);
  color: #F5EDE0;
  border-color: var(--color-antique-gold);
  transform: scale(1.08);
  box-shadow: var(--shadow-md), 0 0 16px rgba(184, 134, 47, 0.35);
}

.polaroid-nav-btn:active {
  transform: scale(0.95);
}

.polaroid-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.polaroid-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(232, 168, 176, 0.35);
  border: 1.5px solid rgba(232, 168, 176, 0.6);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.polaroid-dot:hover {
  background: rgba(184, 134, 47, 0.6);
}

.polaroid-dot.is-active {
  width: 26px;
  background: var(--color-antique-gold);
  border-color: var(--color-antique-gold);
  box-shadow: 0 0 12px rgba(184, 134, 47, 0.4);
}

/* Mobile Gesture Hint */
.polaroid-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--color-ink-muted);
  font-weight: 500;
  text-align: center;
}

.polaroid-hint-icon {
  font-size: 0.95rem;
  display: inline-block;
  animation: swipeNudge 2.2s infinite ease-in-out;
}

/* Responsive adjustments for Mobile */
@media (max-width: 600px) {
  .polaroid-card {
    flex: 0 0 240px;
    width: 240px;
    padding: 10px 10px 16px;
  }

  .polaroid-photo-frame {
    height: 220px;
  }

  .polaroid-title {
    font-size: 1.8rem;
    -webkit-text-stroke: 1px rgba(92, 45, 39, 0.7);
    paint-order: stroke fill;
  }

  .polaroid-track {
    gap: 1.25rem;
    padding: 0 max(1.25rem, calc(50vw - 120px));
  }
}

@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 48, 36, 0.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(232, 168, 176, 0.65);
}

.lightbox-caption-bar {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--color-cream-white);
  font-size: 0.9rem;
}

.lightbox-caption-couple {
  font-family: var(--font-couple);
  font-weight: 400;
  font-style: normal;
  font-size: 1.8rem;
  color: var(--color-cream-white);
  letter-spacing: 0.04em;
}

.lightbox-counter {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-golden-amber);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 44px;
  height: 44px;
  color: var(--color-cream-white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--color-antique-gold);
  transform: scale(1.15);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(58, 46, 36, 0.8);
  color: var(--color-cream-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--color-antique-gold);
  color: #F5EDE0;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close-btn { top: 15px; right: 15px; }
}

/* --------------------------------------------------------------------------
   17. SECTION: FOOTER SECTION (LIGHT VIBRANT FAIRYTALE GARDEN GRADIENT)
   -------------------------------------------------------------------------- */
.footer-section {
  position: relative;
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  background: 
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.95) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(184, 196, 176, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(232, 163, 61, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #FAF4E8 0%, #FDE9ED 25%, #F8D3DC 60%, #F0B8C5 100%);
  border-top: 3px solid var(--color-antique-gold);
  box-shadow: inset 0 2px 14px rgba(184, 134, 47, 0.25), 0 -8px 24px rgba(232, 168, 176, 0.25);
  color: var(--color-ink-muted);
}

.footer-section .container-narrow {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 1.25rem;
  box-shadow: none;
  color: var(--color-ink-muted);
}

.footer-monogram {
  font-family: var(--font-couple);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(3.4rem, 7.5vw, 4.8rem);
  color: var(--color-heading-rose);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.95), 0 0 24px rgba(232, 168, 176, 0.45);
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-heading-brown);
  max-width: 580px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-antique-gold-deep);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

/* Warm Guest Invitation Line */
.footer-invite-note {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  max-width: 520px;
  margin: 0 auto 0.65rem;
  line-height: 1.55;
  font-weight: 450;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}

/* Gorgeous & Attractive Footer Compliments Block */
.footer-compliments-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.25rem auto 1.6rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-compliments-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 0.45rem;
}

.footer-compliments-ornament .compliment-line {
  display: inline-block;
  height: 1px;
  width: 32px;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 47, 0.65), transparent);
}

.footer-compliments-ornament .compliment-sparkle {
  font-size: 0.75rem;
  color: var(--color-antique-gold);
  text-shadow: 0 0 8px rgba(232, 163, 61, 0.6);
}

.footer-compliments-label {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-antique-gold-deep);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
}

.footer-compliments-family {
  font-family: var(--font-couple);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 400;
  color: var(--color-heading-rose);
  line-height: 1.15;
  margin-top: 0.1rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.95), 0 0 20px rgba(232, 168, 176, 0.45);
}

.footer-compliments-sub {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
  margin-top: 0.75rem;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

/* Wedding Hashtag Badge in Footer */
.footer-hashtag-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  gap: 0.45rem;
}

.footer-hashtag-label {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-antique-gold-deep);
  font-weight: 600;
}

.footer-hashtag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  cursor: default;
  user-select: text;
}

.footer-hashtag-badge .hashtag-sparkle {
  font-size: 1.1rem;
  color: var(--color-golden-amber);
}

.footer-hashtag-badge .hashtag-text,
.hashtag-text {
  font-family: var(--font-couple);
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 400;
  color: var(--color-heading-terra);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.85);
  line-height: 1.15;
}

.footer-credits {
  font-size: 0.78rem;
  color: var(--color-ink-light);
  border-top: 1px dashed rgba(184, 134, 47, 0.4);
  padding-top: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.footer-credits a {
  color: var(--color-heading-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-credits a:hover {
  color: var(--color-antique-gold-deep);
  text-shadow: 0 0 8px rgba(232, 168, 176, 0.45);
}

/* --------------------------------------------------------------------------
   19. SCROLL-REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   20. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .ambient-petals-container {
    display: none !important;
  }
  .music-toggle-btn.is-playing {
    animation: none !important;
  }
  body.entrance-active .hero-bg,
  body.entrance-active .shree-ganesh,
  body.entrance-active .hero-eyebrow,
  body.entrance-active .hero-tagline,
  body.entrance-active .hero-names,
  body.entrance-active .hero-couple-wrapper,
  body.entrance-active .hero-scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-reveal-veil {
    display: none !important;
  }
}



