/* ==========================================================================
   WARM CANDLELIT CHAMPAGNE & LUXURY GOLD DESIGN SYSTEM
   Palette: Warm Champagne Cream (#F2E8D5), Ivory Silk (#F5F0E4), Rich Gold (#C9962E),
            Candlelight Amber (#F0B84A), Blush Pink (#EFA8B8), Peach (#F0C49C), Soft Green (#8A9B6E)
   Text Theme: Deep Antique Gold-Brown (#8C5A1E), Deep Wine-Rose (#6B2E3D), Warm Brown-Gray (#5A4E3A)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Warm Champagne Cream & Luxury Gold Theme */
  --color-base-white:       #F2E8D5;   /* primary canvas — Warm Champagne Cream */
  --color-champagne-warm:   #F2E8D5;   /* warm champagne background */
  --color-powder-blue:      #F2E8D5;   /* warm champagne legacy fallback */
  --color-powder-blue-tint: #F9F5EC;   /* luminous champagne tint */
  --color-powder-blue-soft: rgba(242, 232, 213, 0.85);

  --color-mogra-white:      #F5F0E4;   /* Ivory Silk — card backgrounds & panels */
  --color-cream-white:      #F5F0E4;   /* Ivory Silk — warm glowing card surface */
  --color-cream-pure:       #FAF6EE;   /* pristine luminous highlight */
  --color-ivory-silk:       #F5F0E4;   /* Curtain fabric & card surface */

  /* Text Color Theme — Warm Candlelit Glow & High Contrast */
  --color-ink:              #5A4E3A;   /* body copy & details — warm brown-gray against cream */
  --color-heading-slate:    #8C5A1E;   /* primary heading text — deep antique gold-brown */
  --color-heading-terra:    #6B2E3D;   /* romantic deep wine-rose — couple names & CTAs */
  --color-ink-muted:        #5A4E3A;   /* body copy & paragraphs — warm brown-gray */
  --color-ink-light:        #7D705C;   /* tertiary hints & subtext */

  /* Rose Blooms & Peach (Blush Pink & Soft Rose Accents) */
  --color-peach:            #EFA8B8;   /* Blush Pink — delicate rose blooms & floral icons */
  --color-peach-deep:       #D98599;   /* hover / active */
  --color-peach-soft:       rgba(239, 168, 184, 0.22);
  --color-peach-light:      #F0C49C;   /* Peach — lighter roses */
  --color-lotus-pink:       #EFA8B8;   /* delicate floral icons */
  --color-lotus-pink-soft:  rgba(239, 168, 184, 0.22);

  /* Rich Gold & Candlelight Amber (Arch Scrollwork, Candelabras, Glow) */
  --color-golden-amber:     #C9962E;   /* Rich Gold — arch scrollwork, candelabras, dividers */
  --color-golden-amber-deep:#A77B21;   /* hover / active */
  --color-golden-amber-soft:rgba(201, 150, 46, 0.2);
  --color-candle-amber:     #F0B84A;   /* Candlelight Amber — candle flames, chandelier glow */
  --color-candle-amber-soft:rgba(240, 184, 74, 0.22);
  --color-marigold:         #C9962E;   /* rich gold */
  --color-marigold-deep:    #A77B21;
  --color-marigold-soft:    rgba(201, 150, 46, 0.2);
  --color-lotus-gold:       #C9962E;
  --color-lotus-gold-deep:  #A77B21;

  /* Soft Green (Foliage Accents & Botanical Accents) */
  --color-fresh-green:      #8A9B6E;   /* Soft Green — foliage accents */
  --color-fresh-green-deep: #718256;
  --color-fresh-green-soft: rgba(138, 155, 110, 0.2);
  --color-leaf-green:       #8A9B6E;
  --color-leaf-green-soft:  rgba(138, 155, 110, 0.2);

  /* Deep Antique Gold-Brown & Warm Wine */
  --color-warm-brown:       #8C5A1E;   /* Deep antique gold-brown */
  --color-warm-brown-deep:  #5A4E3A;   /* Warm brown-gray */
  --color-wood-brown:       #8C5A1E;
  --color-wood-brown-deep:  #5A4E3A;

  /* Wine-Rose Accent Token */
  --color-rani-pink:        #6B2E3D;   /* deep wine-rose */
  --color-rani-pink-deep:   #54222E;
  --color-rani-pink-soft:   rgba(107, 46, 61, 0.22);

  /* Shadows & Candlelight Glows */
  --shadow-sm: 0 4px 14px rgba(90, 78, 58, 0.08);
  --shadow-md: 0 8px 26px rgba(90, 78, 58, 0.12);
  --shadow-lg: 0 16px 40px rgba(90, 78, 58, 0.16);
  --shadow-card: 0 14px 36px -4px rgba(90, 78, 58, 0.12);
  --shadow-glow-marigold: 0 0 26px rgba(240, 184, 74, 0.45);
  --shadow-glow-pink: 0 0 26px rgba(239, 168, 184, 0.42);
  --shadow-diya: 0 0 14px rgba(240, 184, 74, 0.75), 0 0 28px rgba(201, 150, 46, 0.45);

  /* Typography */
  --font-heading: 'Allura', 'Italianno', 'Alex Brush', cursive;
  --font-couple:  'Allura', 'Italianno', 'Alex Brush', cursive;
  --font-script:  'Allura', 'Italianno', 'Alex Brush', 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);
  background-color: var(--color-base-white);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

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-golden-amber, #C9962E) !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-golden-amber);
  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, 240, 228, 0.94);
  border: 1px solid rgba(201, 150, 46, 0.5);
  box-shadow: 0 2px 10px rgba(90, 78, 58, 0.08);
  font-weight: 700;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 400;
  font-style: normal;
  color: var(--color-heading-slate);
  line-height: 1.22;
  text-align: center;
  margin-bottom: 0.65rem;
  letter-spacing: normal;
  text-shadow: 0 2px 10px rgba(245, 240, 228, 0.95), 0 0 16px rgba(242, 232, 213, 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(245, 240, 228, 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-golden-amber),
    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(201, 150, 46, 0.25));
  animation: lotusPulse 4s ease-in-out infinite alternate;
}

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

/* --------------------------------------------------------------------------
   5B. INTER-SECTION FLOWER GARLAND DIVIDER
   Continuous golden connecting line across sections with floral garland placed directly over it
   -------------------------------------------------------------------------- */
.section-garland-divider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -35px auto -35px;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.garland-connecting-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 150, 46, 0.3) 12%,
    var(--color-golden-amber) 50%,
    rgba(201, 150, 46, 0.3) 88%,
    transparent 100%
  );
  z-index: 1;
}

.garland-divider-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(90, 78, 58, 0.16));
}

@media (max-width: 767px) {
  .section-garland-divider {
    margin: -24px auto -24px;
  }
  .garland-divider-img {
    max-width: 280px;
  }
}

.bismillah-wrap {
  text-align: center;
  margin-bottom: 0.75rem;
}

.bismillah-arabic {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  color: var(--color-golden-amber);
  margin-bottom: 0.25rem;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(245, 240, 228, 0.95), 0 0 16px rgba(201, 150, 46, 0.3);
}

.quran-verse {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--color-heading-slate);
  margin-bottom: 0.25rem;
}

.quran-ref {
  font-style: normal;
  font-size: 0.88em;
  color: var(--color-golden-amber);
  font-weight: 600;
}

.hero-greeting {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-size: clamp(1.1rem, 3.4vw, 1.55rem);
  letter-spacing: 0.04em;
  color: var(--color-heading-slate);
  font-weight: 600;
  font-style: italic;
  margin-top: 0.35rem;
  text-shadow: 0 1px 10px rgba(245, 240, 228, 0.95), 0 0 16px rgba(245, 240, 228, 0.9);
}

/* --------------------------------------------------------------------------
   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: -70px;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.falling-flower-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  animation: flowerSway 3.5s ease-in-out infinite alternate;
  will-change: transform;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

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

/* 1. Left-to-Right Breeze Drift */
@keyframes flowerFallL2R {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  4% {
    opacity: 0.95;
  }
  30% {
    transform: translate3d(5vw, 33vh, 0) rotate(90deg);
  }
  65% {
    transform: translate3d(11vw, 70vh, 0) rotate(200deg);
  }
  92% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(16vw, 110vh, 0) rotate(360deg);
    opacity: 0;
  }
}

/* 2. Right-to-Left Breeze Drift */
@keyframes flowerFallR2L {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  4% {
    opacity: 0.95;
  }
  30% {
    transform: translate3d(-5vw, 33vh, 0) rotate(-90deg);
  }
  65% {
    transform: translate3d(-11vw, 70vh, 0) rotate(-200deg);
  }
  92% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(-16vw, 110vh, 0) rotate(-360deg);
    opacity: 0;
  }
}

/* 3. Left-to-Right Curving S-Wave */
@keyframes flowerFallWave1 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  4% {
    opacity: 0.95;
  }
  28% {
    transform: translate3d(8vw, 30vh, 0) rotate(95deg);
  }
  60% {
    transform: translate3d(-2vw, 65vh, 0) rotate(190deg);
  }
  85% {
    transform: translate3d(9vw, 90vh, 0) rotate(290deg);
  }
  92% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(14vw, 110vh, 0) rotate(380deg);
    opacity: 0;
  }
}

/* 4. Right-to-Left Curving S-Wave */
@keyframes flowerFallWave2 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  4% {
    opacity: 0.95;
  }
  28% {
    transform: translate3d(-8vw, 30vh, 0) rotate(-95deg);
  }
  60% {
    transform: translate3d(2vw, 65vh, 0) rotate(-190deg);
  }
  85% {
    transform: translate3d(-9vw, 90vh, 0) rotate(-290deg);
  }
  92% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(-14vw, 110vh, 0) rotate(-380deg);
    opacity: 0;
  }
}

@keyframes flowerSway {
  0% {
    transform: rotate(-18deg) scale(0.92);
  }
  50% {
    transform: rotate(0deg) scale(1.05);
  }
  100% {
    transform: rotate(20deg) scale(0.94);
  }
}

/* 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;
}

body.entrance-active .hero-bg {
  transform: scale(1.08);
}

body.entrance-active .hero-content .bismillah-wrap,
body.entrance-active .hero-content .hero-eyebrow,
body.entrance-active .hero-content .hero-tagline,
body.entrance-active .hero-content .hero-names,
body.entrance-active .hero-content .hero-greeting,
body.entrance-active .hero-scroll-indicator {
  opacity: 0 !important;
  pointer-events: none !important;
}

.entrance-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  height: 100dvh;
  background-color: #241A14;
  background-image: radial-gradient(circle at center, #382417 0%, #241A14 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.entrance-overlay.is-exiting {
  opacity: 0;
  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: #241A14;
  box-shadow: 0 0 60px rgba(36, 26, 20, 0.85);
  transform-origin: center center;
  will-change: transform, filter, opacity;
}

/* Cinematic Zoom Dissolve (Camera Push-In Fly-Through) */
.entrance-overlay.is-exiting .entrance-stage {
  transform: scale(1.15);
  filter: blur(5px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease-out, opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.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(201, 150, 46, 0.8);
  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(240, 184, 74, 0.7);
}

@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%, rgba(240, 184, 74, 0.5) 0%, rgba(201, 150, 46, 0.5) 55%, rgba(107, 46, 61, 0.5) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(245, 240, 228, 0.55);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(201, 150, 46, 0.55), inset 0 1px 3px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5F0E4;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 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 6px rgba(0, 0, 0, 0.5));
  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);
  background: radial-gradient(circle at 35% 30%, rgba(240, 184, 74, 0.7) 0%, rgba(201, 150, 46, 0.7) 55%, rgba(107, 46, 61, 0.7) 100%);
  border-color: rgba(245, 240, 228, 0.85);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), 0 0 34px rgba(240, 184, 74, 0.95);
}

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

/* Standout Free-Standing "Tap to begin Invitation" Prompt (Without Capsule) */
.entrance-prompt-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  width: max-content;
  max-width: 90vw;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  outline: none;
  animation: promptGlow 2.8s ease-in-out infinite;
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.entrance-prompt-text::before,
.entrance-prompt-text::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, rgba(240, 184, 74, 0.9));
  box-shadow: 0 0 8px rgba(240, 184, 74, 0.8);
  transition: width 0.3s ease;
}

.entrance-prompt-text::after {
  background: linear-gradient(90deg, rgba(240, 184, 74, 0.9), transparent);
}

.entrance-prompt-text span {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
  font-weight: 700;
  -webkit-text-stroke: 0.35px currentColor;
  letter-spacing: 0.2em;
  margin-right: -0.2em; /* Offsets trailing letter-spacing for true geometric centering */
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: #FFF9EE;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 18px rgba(240, 184, 74, 0.8), 0 0 34px rgba(201, 150, 46, 0.6);
  transition: color 0.25s ease;
}

.entrance-prompt-text:hover {
  transform: translateY(-3px) scale(1.03);
}

.entrance-prompt-text:hover span {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 1), 0 0 30px rgba(240, 184, 74, 1), 0 0 48px rgba(201, 150, 46, 0.9);
}

.entrance-prompt-text:hover::before,
.entrance-prompt-text:hover::after {
  width: 40px;
  box-shadow: 0 0 12px rgba(240, 184, 74, 1);
}

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

@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-prompt-text {
    width: 100%;
    max-width: 95vw;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
  }

  .entrance-prompt-text::before,
  .entrance-prompt-text::after {
    width: 18px;
    flex-shrink: 0;
  }

  .entrance-prompt-text span {
    font-size: clamp(1.03rem, 3.8vw, 1.19rem);
    letter-spacing: 0.14em;
    margin-right: -0.14em;
    text-align: center;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   6C. CINEMATIC GOLDEN LIGHT BLOOM OVERLAY
   Auspicious warm sunbeam burst at climax of entrance box reveal
   -------------------------------------------------------------------------- */
.entrance-golden-bloom {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10005;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse at 50% 48%,
    rgba(255, 248, 225, 0.96) 0%,
    rgba(240, 184, 74, 0.8) 22%,
    rgba(201, 150, 46, 0.45) 48%,
    rgba(140, 90, 30, 0.15) 70%,
    transparent 85%
  );
  mix-blend-mode: screen;
  will-change: opacity, transform;
}

.entrance-golden-bloom.is-blooming {
  animation: goldenBloomFlash 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes goldenBloomFlash {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  28% {
    opacity: 1;
    transform: scale(1.04);
  }
  65% {
    opacity: 0.65;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

/* --------------------------------------------------------------------------
   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-golden-amber);
  color: var(--color-heading-terra);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 15px rgba(240, 184, 74, 0.35);
  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(240, 184, 74, 0.45);
}

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

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

.music-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #3A2E20;
  color: #F5F0E4;
  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 with Ken Burns Settle */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

body.hero-revealing .hero-bg {
  transform: scale(1);
}

.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;
  top: 30px;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   CHOREOGRAPHED STAGGERED ROYAL HERO REVEAL SEQUENCE
   Timed sequentially with deliberate pacing for a majestic reveal
   ========================================================================== */
body.hero-revealing .hero-content .bismillah-wrap {
  animation: heroBismillahReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both;
}

body.hero-revealing .hero-content .hero-eyebrow {
  animation: heroItemFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

body.hero-revealing .hero-content .hero-tagline {
  animation: heroTaglineReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.90s both;
}

body.hero-revealing .hero-content .hero-names {
  animation: heroNamesGrandReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.30s both;
  position: relative;
  overflow: visible;
}

/* Golden foil light shimmer glint across the couple's names */
body.hero-revealing .hero-content .hero-names::after {
  content: '';
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -20%;
  right: -20%;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 240, 200, 0.35) 47%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 240, 200, 0.35) 53%,
    transparent 68%
  );
  transform: translateX(-100%);
  animation: heroShimmerSweep 1.3s cubic-bezier(0.25, 1, 0.5, 1) 2.30s forwards;
  pointer-events: none;
  mix-blend-mode: overlay;
}

body.hero-revealing .hero-content .hero-greeting {
  animation: heroItemFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.70s both;
}

body.hero-revealing .hero-scroll-indicator {
  animation: heroScrollCueReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.10s both;
}

/* Keyframes for Staggered Hero Sequence */
@keyframes heroBismillahReveal {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    filter: drop-shadow(0 0 16px rgba(201, 150, 46, 0.8));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(201, 150, 46, 0));
  }
}

@keyframes heroItemFadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTaglineReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.26em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.16em;
  }
}

@keyframes heroNamesGrandReveal {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
    filter: blur(4px);
  }
  50% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroShimmerSweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes heroScrollCueReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Permanent Resting State once sequence concludes */
body.hero-revealed .hero-bg {
  transform: scale(1);
}

body.hero-revealed .hero-content .bismillah-wrap,
body.hero-revealed .hero-content .hero-eyebrow,
body.hero-revealed .hero-content .hero-tagline,
body.hero-revealed .hero-content .hero-names,
body.hero-revealed .hero-content .hero-greeting,
body.hero-revealed .hero-scroll-indicator {
  opacity: 1;
  animation: none;
  filter: none;
}

body.hero-revealed .hero-content .hero-names::after {
  display: none;
}

/* Accessibility: Graceful Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .entrance-stage,
  .entrance-golden-bloom,
  .hero-bg,
  .hero-content .bismillah-wrap,
  .hero-content .hero-eyebrow,
  .hero-content .hero-tagline,
  .hero-content .hero-names,
  .hero-content .hero-greeting,
  .hero-scroll-indicator {
    animation: none !important;
    transition: opacity 0.3s ease !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .hero-scroll-indicator {
    transform: translateX(-50%) !important;
  }
}

.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: 600;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 0.9);
}

@media (max-width: 767px) {
  .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(245, 240, 228, 0.92) 0%, rgba(242, 232, 213, 0.6) 55%, transparent 95%);
    color: var(--color-heading-terra);
    text-shadow: 0 1px 10px rgba(245, 240, 228, 0.95), 0 0 14px rgba(245, 240, 228, 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;
  margin: 0.35rem 0 0.15rem;
  text-shadow: 0 1px 10px rgba(245, 240, 228, 0.95), 0 0 16px rgba(245, 240, 228, 0.9);
}

.hero-names {
  font-family: var(--font-couple);
  font-weight: 600;
  font-style: normal;
  font-size: 3.8rem;
  font-size: clamp(3rem, 9vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: normal;
  color: var(--color-heading-terra);
  margin: 0.2rem 0;
  text-shadow: 0 2px 14px rgba(245, 240, 228, 0.95), 0 4px 22px rgba(201, 150, 46, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-text-stroke: 0.4px var(--color-heading-terra);
  paint-order: stroke fill;
}

.hero-name-line {
  display: block;
  -webkit-text-stroke: 0.4px var(--color-heading-terra);
  paint-order: stroke fill;
}

@media (max-width: 767px) {
  /* Subtle stroke on all couple name texts in mobile view */
  .hero-names,
  .hero-name-line,
  .footer-couple-name,
  .footer-name-line,
  .invitation-person-name,
  .person-name {
    -webkit-text-stroke: 0.8px var(--color-heading-terra);
    paint-order: stroke fill;
    font-weight: 600;
  }

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

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

  .invitation-ampersand,
  .couple-center-ampersand,
  .hero-names .ampersand,
  .footer-couple-name .footer-ampersand {
    -webkit-text-stroke: 0.75px var(--color-golden-amber);
    paint-order: stroke fill;
  }

  .hero-names {
    text-shadow: 
      0 2px 10px rgba(245, 240, 228, 0.95),
      0 0 18px rgba(201, 150, 46, 0.25);
  }
}

.hero-names .ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.52em;
  color: var(--color-golden-amber);
  margin: -0.05em 0;
  display: block;
  line-height: 1;
  -webkit-text-stroke: 0.3px var(--color-golden-amber);
  paint-order: stroke fill;
}

.hero-names-split {
  display: none;
}

.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: 600;
  margin-top: 0.25rem;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 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: 500;
  margin-top: 0.2rem;
}



/* Bottom Scroll Indicator: "Scroll down" badge with down arrow at right side of "down" */
.hero-scroll-indicator {
  position: absolute;
  bottom: calc(1.25rem + 50px);
  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);
}

/* 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, 240, 228, 0.96);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-golden-amber);
  box-shadow: 0 2px 10px rgba(90, 78, 58, 0.12), 0 0 12px rgba(245, 240, 228, 0.9);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.scroll-arrow-icon {
  color: var(--color-golden-amber);
  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: #FAF6EE;
  color: var(--color-heading-terra);
  border-color: var(--color-heading-terra);
  box-shadow: 0 5px 18px rgba(107, 46, 61, 0.22), 0 0 20px rgba(245, 240, 228, 1);
}

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

@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 + 90px);
  }

  .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;
  }
}

/* Hero Section: Mobile view with height less than 700px (Slightly reduced font sizes & +30px side padding) */
@media (max-width: 767px) and (max-height: 700px) {
  #hero.hero-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  #hero .hero-content {
    top: 12px;
    padding: 0.5rem 0.5rem 0.25rem;
  }

  #hero .bismillah-arabic {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
  }

  #hero .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding: 0.2rem 1.1rem;
    margin-bottom: 0.2rem;
  }

  #hero .hero-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    margin: 0.2rem 0 0.1rem;
  }

  #hero .hero-names-split {
    display: block;
  }

  #hero .hero-names {
    font-size: clamp(2.75rem, 8.5vw, 3.35rem);
    line-height: 1.15;
    margin: 0.15rem 0;
  }

  #hero .hero-greeting {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
  }

  #hero .hero-scroll-indicator {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem + 75px);
  }

  #hero .scroll-indicator-badge {
    font-size: 0.62rem;
    padding: 0.2rem 0.65rem;
  }
}

/* Hero Section: Mobile view with height greater than 900px (Slightly increased font sizes) */
@media (max-width: 767px) and (min-height: 900px) {
  #hero .hero-content {
    top: 38px;
    padding: 1.25rem 1.5rem 0.75rem;
  }

  #hero .bismillah-arabic {
    font-size: 1.7rem;
    margin-bottom: 0.45rem;
  }

  #hero .hero-eyebrow {
    font-size: 0.92rem;
    letter-spacing: 0.22em;
    padding: 0.45rem 2rem;
    margin-bottom: 0.45rem;
  }

  #hero .hero-tagline {
    font-size: 1.35rem;
    letter-spacing: 0.18em;
    margin: 0.45rem 0 0.25rem;
  }

  #hero .hero-names {
    font-size: clamp(4.4rem, 13.5vw, 5.2rem);
    line-height: 1.1;
    margin: 0.35rem 0;
  }

  #hero .hero-greeting {
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
  }

  #hero .hero-scroll-indicator {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem + 95px);
  }

  #hero .scroll-indicator-badge {
    font-size: 0.76rem;
    padding: 0.38rem 0.95rem;
    gap: 0.45rem;
  }
}

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

/* --------------------------------------------------------------------------
   9. SHARED SECTION BACKGROUND ROTATION (MOBILE & DESKTOP SPANNING)
   Ensures background images span the entire section with pale powder-blue field
   -------------------------------------------------------------------------- */
/* Pattern 1, 2, 3, 4: All content sections except Hero & Footer */
.bg-pattern-1,
.bg-pattern-2,
.bg-pattern-3,
.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-1,
  .bg-pattern-2,
  .bg-pattern-3,
  .bg-pattern-4 {
    background-image: url('Assets/bg_desktop.webp');
    background-position: center center;
    background-size: cover;
  }
}

/* Background Pattern for Timeline, Barat Invitation (#couple), and Walima Details (#walima-details) Sections */
.bg-pattern-timeline,
#couple,
#walima-details {
  background-image: 
    linear-gradient(rgba(242, 232, 213, 0.5), rgba(245, 240, 228, 0.5)),
    url('Assets/bg_mobile.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .bg-pattern-timeline,
  #couple,
  #walima-details {
    background-image: 
      linear-gradient(rgba(242, 232, 213, 0.5), rgba(245, 240, 228, 0.5)),
      url('Assets/bg_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,
  .bg-pattern-timeline,
  #countdown,
  #timeline,
  #invitation,
  #couple,
  #walima-invitation,
  #walima-details,
  #memorial {
    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;
  padding-top: calc(5rem - 35px);
  padding-bottom: calc(5rem - 35px);
}

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

.scratch-section .section-title {
  -webkit-text-stroke: 0.5px var(--color-heading-slate);
  paint-order: stroke fill;
}

@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%;
  max-width: 440px;
  margin: 0 auto;
}

.scratch-card-container {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 672;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Constant Decorative Transparent Border Frame Overlay */
.scratch-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 6;
  user-select: none;
  filter: drop-shadow(0 14px 28px rgba(43, 21, 25, 0.22));
}

/* Inner Scratch Card (Dimension reduced by 20%: 80% width x 80% height, centered inside frame) */
.scratch-inner-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-cream-white);
  box-shadow: 0 4px 16px rgba(90, 78, 58, 0.12);
  z-index: 2;
}

/* Revealed Content (underneath the canvas foil) */
.scratch-revealed-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #FAF6EE 0%, #F5F0E4 100%);
}

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

.scratch-date-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-size: clamp(1.15rem, 3.4vw, 1.65rem);
  font-weight: 700;
  color: var(--color-heading-terra);
  margin-bottom: 0.15rem;
  line-height: 1.12;
}

.scratch-city-sub,
.scratch-Time-day {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  margin-bottom: 0.95rem;
}

.countdown-qubool-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-golden-amber);
  font-weight: 700;
  -webkit-text-stroke: 0.35px var(--color-golden-amber);
  paint-order: stroke fill;
  text-shadow: 0 1px 6px rgba(245, 240, 228, 0.9);
}

.countdown-heartbeat-text {
  font-family: var(--font-heading); /* Allura cursive */
  font-size: 2.6rem;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 400;
  font-style: normal;
  color: var(--color-heading-slate);
  -webkit-text-stroke: 0.5px var(--color-heading-slate);
  paint-order: stroke fill;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: 0 2px 10px rgba(245, 240, 228, 0.95), 0 0 16px rgba(242, 232, 213, 0.85);
}

/* 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: #F5F0E4;
  border: 1.5px solid rgba(201, 150, 46, 0.4);
  border-radius: var(--radius-md);
  padding: 0.95rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(90, 78, 58, 0.08), 0 0 12px rgba(240, 184, 74, 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: var(--color-golden-amber);
  box-shadow: 0 8px 22px rgba(201, 150, 46, 0.35);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-heading-terra);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-warm-brown);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* 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-warm-brown), var(--color-heading-terra));
  color: #F5F0E4;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(201, 150, 46, 0.5);
  box-shadow: 0 4px 16px rgba(140, 90, 30, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.btn-reveal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(107, 46, 61, 0.5);
  color: #F5F0E4;
}

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

/* --------------------------------------------------------------------------
   10B. SECTION 2B: WEDDING ITINERARY (VERTICAL TIMELINE)
   -------------------------------------------------------------------------- */
.timeline-section {
  position: relative;
  overflow: hidden;
  padding-top: calc(5rem - 35px);
  padding-bottom: calc(5rem - 35px);
}

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

.timeline-wrapper {
  position: relative;
  max-width: 920px;
  margin: 3.25rem auto 1.5rem;
  padding: 0 1rem;
}

/* Luminous Central Spine */
.timeline-spine {
  position: absolute;
  top: 1.5rem;
  bottom: 2rem;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(201, 150, 46, 0.15) 0%,
    rgba(201, 150, 46, 0.95) 15%,
    rgba(240, 184, 74, 1) 50%,
    rgba(201, 150, 46, 0.95) 85%,
    rgba(201, 150, 46, 0.15) 100%
  );
  box-shadow: 0 0 12px rgba(240, 184, 74, 0.5), 0 0 24px rgba(201, 150, 46, 0.3);
  border-radius: 999px;
  z-index: 1;
}

.timeline-items {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Timeline Item Container */
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Alternating Left / Right on Desktop */
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) {
  flex-direction: row;
}

.timeline-content {
  width: calc(50% - 44px);
}

/* Animated Central Node */
.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.timeline-node-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201, 150, 46, 0.65);
  animation: nodeSpin 16s linear infinite;
}

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

.timeline-node-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FAF6EE 0%, #F5F0E4 50%, #ECD9B7 100%);
  border: 2px solid var(--color-golden-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-heading-slate);
  box-shadow: 0 4px 14px rgba(90, 78, 58, 0.16), 0 0 16px rgba(240, 184, 74, 0.45);
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-node-circle {
  transform: scale(1.12);
  border-color: var(--color-heading-terra);
  color: var(--color-heading-terra);
  box-shadow: 0 6px 20px rgba(107, 46, 61, 0.25), 0 0 24px rgba(240, 184, 74, 0.6);
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

/* Badge Wrap */
.timeline-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.timeline-item:nth-child(odd) .timeline-badge-wrap {
  justify-content: flex-end;
}

.timeline-date-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, #8C5A1E 0%, #C9962E 100%);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(140, 90, 30, 0.25);
}

.timeline-time-badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-heading-slate);
}

/* Event Title in Allura Cursive */
.timeline-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: normal;
  color: var(--color-heading-terra);
  line-height: 1.15;
  margin-bottom: 0.65rem;
  -webkit-text-stroke: 0.45px var(--color-heading-terra);
  paint-order: stroke fill;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 0.9);
}

.timeline-venue {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-warm-brown);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.timeline-item:nth-child(odd) .timeline-venue {
  justify-content: flex-end;
}

.timeline-pin-icon {
  color: var(--color-golden-amber);
  flex-shrink: 0;
}

.timeline-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-ink);
  line-height: 1.5;
  margin-bottom: 0.95rem;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading-slate);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.timeline-link:hover {
  color: var(--color-heading-terra);
  transform: translateX(4px);
}

.timeline-item:nth-child(odd) .timeline-link:hover {
  transform: translateX(-4px);
}

/* Responsive adjustments for Mobile (< 768px) */
@media (max-width: 767px) {
  .timeline-wrapper {
    margin: 2rem auto 1rem;
    padding-left: 0;
    padding-right: 0.5rem;
  }

  /* Vertical spine anchored with exact center coordinate */
  .timeline-spine {
    left: 24px;
    transform: translateX(-50%);
  }

  .timeline-items {
    gap: 2.25rem;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    align-items: center;
  }

  /* Nodes centered exactly at left: 24px / transform: translateX(-50%) */
  .timeline-node {
    left: 24px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
  }

  .timeline-node-circle {
    width: 36px;
    height: 36px;
  }

  .timeline-node-circle svg {
    width: 17px;
    height: 17px;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%;
    margin-left: 58px;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-badge-wrap,
  .timeline-item:nth-child(even) .timeline-badge-wrap {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-venue,
  .timeline-item:nth-child(even) .timeline-venue {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-link:hover {
    transform: translateX(4px);
  }
}

/* --------------------------------------------------------------------------
   11. SECTION 3: INVITATION MESSAGE (OPEN EDITORIAL LAYOUT)
   -------------------------------------------------------------------------- */
#invitation,
#couple,
#walima-invitation,
#walima-details {
  padding-top: calc(5rem - 50px);
  padding-bottom: calc(5rem - 50px);
}

@media (min-width: 768px) {
  #invitation,
  #couple,
  #walima-invitation,
  #walima-details {
    padding-top: calc(6.5rem - 50px);
    padding-bottom: calc(6.5rem - 50px);
  }
}

.invitation-content-wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 1rem;
}

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

.invitation-residence {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-ink);
  font-weight: 600;
  margin: 0.85rem auto 0.5rem;
  text-align: center;
  max-width: 520px;
  line-height: 1.5;
}

.invitation-lead {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  color: var(--color-ink-muted);
  line-height: 1.35;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  font-weight: 400;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(245, 240, 228, 0.95), 0 0 18px rgba(245, 240, 228, 0.9);
}

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

.invitation-person-name {
  font-family: var(--font-couple);
  font-weight: 600;
  font-style: normal;
  font-size: 4.2rem;
  font-size: clamp(3.5rem, 10vw, 5.8rem);
  color: var(--color-heading-terra);
  line-height: 1.05;
  letter-spacing: normal;
  margin-bottom: 0.15rem;
  text-shadow: 0 2px 14px rgba(245, 240, 228, 0.95), 0 0 24px rgba(245, 240, 228, 0.9);
  -webkit-text-stroke: 0.4px var(--color-heading-terra);
  paint-order: stroke fill;
}

.invitation-person-parents {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  color: var(--color-heading-slate);
  letter-spacing: 0.03em;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 0.95);
}

.invitation-event-date {
  font-family: var(--font-sans) !important;
  letter-spacing: 0.02em;
}

.invitation-ceremony-date {
  color: var(--color-heading-terra) !important;
}

@media (max-width: 767px) {
  .invitation-event-date {
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 0;
    padding-right: 0;
  }

  .invitation-ceremony-date {
    font-size: clamp(0.82rem, 3.5vw, 0.85rem) !important;
  }
}

.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(245, 240, 228, 0.95), 0 0 15px rgba(201, 150, 46, 0.3);
}

.invitation-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-style: italic;
  color: var(--color-ink-muted);
  line-height: 1.45;
  max-width: 660px;
  margin: 0 auto;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(245, 240, 228, 0.95), 0 0 16px rgba(245, 240, 228, 0.9);
}

/* --------------------------------------------------------------------------
   WALIMA R.S.V.P. GORGEOUS CARD
   -------------------------------------------------------------------------- */
.walima-rsvp-card {
  position: relative;
  background: linear-gradient(135deg, rgba(254, 250, 242, 0.92) 0%, rgba(247, 240, 227, 0.95) 50%, rgba(252, 245, 235, 0.92) 100%);
  border: 1.5px solid rgba(201, 150, 46, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(90, 78, 58, 0.08), 0 0 16px rgba(201, 150, 46, 0.15);
  padding: 1.4rem 1.5rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
  text-align: center;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.walima-rsvp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(90, 78, 58, 0.12), 0 0 22px rgba(201, 150, 46, 0.25);
  border-color: var(--color-golden-amber);
}

.walima-rsvp-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(201, 150, 46, 0.35);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

.walima-rsvp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.walima-rsvp-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-golden-amber);
  margin: 0;
  display: inline-block;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 0.9);
}

.walima-rsvp-divider-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-golden-amber), transparent);
}

.walima-rsvp-hosts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.walima-rsvp-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.walima-rsvp-name {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 700;
  color: var(--color-heading-terra);
  line-height: 1.25;
}

.walima-rsvp-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-warm-brown);
  background: rgba(201, 150, 46, 0.12);
  border: 1px solid rgba(201, 150, 46, 0.25);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.75rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.walima-rsvp-tel:hover {
  background: var(--color-golden-amber);
  color: #fff;
  border-color: var(--color-golden-amber);
  transform: scale(1.03);
}

.walima-rsvp-tel svg {
  width: 12px;
  height: 12px;
  color: var(--color-golden-amber);
  transition: color var(--transition-fast);
}

.walima-rsvp-tel:hover svg {
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. SECTION 4: COUPLE INTRO (BRIDE & GROOM)
   -------------------------------------------------------------------------- */
.couple-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 820px) {
  .couple-intro-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }
}

.couple-card {
  background: transparent;
  border-radius: 0;
  padding: 0.25rem 0.75rem;
  text-align: center;
  box-shadow: none;
  border: none;
  transition: transform var(--transition-normal);
}

.couple-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.person-role {
  display: inline-block;
  background: rgba(245, 240, 228, 0.95);
  border: 1.5px solid var(--color-golden-amber);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-warm-brown);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(90, 78, 58, 0.1);
  margin-bottom: 0.75rem;
}

.person-name {
  font-family: var(--font-couple);
  font-weight: 600;
  font-style: normal;
  font-size: 3.4rem;
  font-size: clamp(2.8rem, 7.5vw, 4rem);
  letter-spacing: normal;
  color: var(--color-heading-terra);
  margin-bottom: 0.15rem;
  line-height: 1.05;
  -webkit-text-stroke: 0.4px var(--color-heading-terra);
  paint-order: stroke fill;
}

.person-parentage {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--color-warm-brown);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.couple-monogram-badge {
  font-family: var(--font-couple);
  font-size: 2.8rem;
  color: var(--color-golden-amber);
  display: inline-block;
  margin-top: 0.25rem;
  line-height: 1;
}

.person-bio {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  line-height: 1.45;
  max-width: 320px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 0.95);
}

.person-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-warm-brown);
  border-top: 1px dashed rgba(201, 150, 46, 0.45);
  padding-top: 0.85rem;
}

/* Center Floral & Motif Divider */
.couple-intro-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
}

.couple-center-ampersand {
  font-family: var(--font-script);
  font-size: 3.6rem;
  color: var(--color-golden-amber);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(201, 150, 46, 0.3);
}

@media (max-width: 767px) {
  .couple-intro-grid {
    gap: 1.25rem;
  }

  .couple-intro-center {
    padding: 0;
  }

  .couple-intro-center .lotus-ornament {
    display: none;
  }

  .couple-center-ampersand {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 0.9;
    font-size: 3.2rem;
  }
}

/* --------------------------------------------------------------------------
   13. SECTION 5: IN CHERISHED MEMORY (MEMORIAL TRIBUTE)
   -------------------------------------------------------------------------- */
.memorial-section {
  position: relative;
  text-align: center;
  padding-top: 2.75rem;
  padding-bottom: 2.5rem;
}

.memorial-section .section-title {
  color: var(--color-heading-terra);
}

.memorial-logo-img {
  display: block;
  width: auto;
  max-width: 140px;
  height: auto;
  max-height: 65px;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.memorial-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-warm-brown);
  max-width: 540px;
  margin: 0 auto 1.25rem;
  line-height: 1.45;
}

/* Memorial Grid: Cardless Open Layout */
.memorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 920px;
  margin: 1.25rem auto 1rem;
}

@media (min-width: 768px) {
  .memorial-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem auto 1.25rem;
  }
}

.memorial-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal);
}

@media (min-width: 768px) {
  .memorial-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 150, 46, 0.4), transparent);
  }
}

.memorial-item:hover {
  transform: translateY(-3px);
}



.memorial-item-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.memorial-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-heading-terra);
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.memorial-item:hover .memorial-name {
  color: var(--color-golden-amber);
}

.memorial-relation {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-heading-terra);
  font-weight: 700;
  background: rgba(107, 46, 61, 0.08);
  border: 1px solid rgba(107, 46, 61, 0.28);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.75rem;
  box-shadow: 0 2px 6px rgba(90, 78, 58, 0.04);
}

/* Mobile Layout (< 768px) */
@media (max-width: 767px) {
  .memorial-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(201, 150, 46, 0.3);
    border-radius: 0;
    gap: 0.4rem;
  }
  .memorial-item:last-child {
    border-bottom: none;
  }
  .memorial-item-details {
    align-items: center;
    gap: 0.3rem;
  }
  .memorial-name {
    font-size: 1.2rem;
    text-align: center;
  }
  .memorial-relation {
    font-size: 0.7rem;
    padding: 0.15rem 0.65rem;
  }
}

/* Compact Cherished Prayer Line */
.memorial-prayer-wrap {
  text-align: center;
  max-width: 580px;
  margin: 0.9rem auto 1.15rem;
  padding: 0 0.5rem;
}

.memorial-prayer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--color-heading-terra);
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 0.95);
}

/* A Celebration Crafted By Block (Ultra-Attractive & Compact) */
.celebration-crafted-block {
  max-width: 760px;
  margin: 0.75rem auto 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96) 0%, rgba(248, 242, 232, 0.92) 100%);
  border: 1.5px solid rgba(201, 150, 46, 0.45);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(90, 78, 58, 0.05), 0 0 14px rgba(201, 150, 46, 0.08);
  position: relative;
}

.crafted-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.crafted-garland-line {
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 150, 46, 0.5), transparent);
}

.crafted-title-badge {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-golden-amber);
  font-weight: 700;
  margin: 0;
}

.crafted-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.crafted-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.crafted-company {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-golden-amber);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.crafted-host {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading-terra);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
}

.crafted-pillar-divider {
  color: var(--color-golden-amber);
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (max-width: 767px) {
  .celebration-crafted-block {
    padding: 0.85rem 0.75rem;
    margin-top: 0.85rem;
  }
  .crafted-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .crafted-pillar-divider {
    display: none;
  }
  .crafted-pillar:not(:last-child) {
    border-bottom: 1px dashed rgba(201, 150, 46, 0.35);
    padding-bottom: 0.55rem;
  }
  .crafted-company {
    font-size: 0.82rem;
  }
  .crafted-host {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   14. SECTION 6: WEDDING EVENT DETAILS
   -------------------------------------------------------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .event-card {
    max-width: 100%;
  }
}

.event-card {
  position: relative;
  background: var(--color-cream-white);
  border-radius: calc(var(--radius-lg) * 0.8);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201, 150, 46, 0.4);
  display: flex;
  flex-direction: column;
  max-width: 352px;
  width: 100%;
  margin: 0 auto;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(240, 184, 74, 0.25);
}

/* Event Thumbnail with Circular Ring Framing */
.event-thumb-wrapper {
  position: relative;
  width: 100%;
  padding: 1.4rem 1rem 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(201, 150, 46, 0.15) 0%, transparent 70%);
}

/* Circular Ring Frame */
.event-ring-frame {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-golden-amber), var(--color-candle-amber));
  box-shadow: 0 6px 18px rgba(90, 78, 58, 0.14), 0 0 14px rgba(201, 150, 46, 0.28);
  outline: 2px dashed rgba(201, 150, 46, 0.6);
  outline-offset: 3px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), outline-color var(--transition-normal);
}

.event-card:hover .event-ring-frame {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(90, 78, 58, 0.2), 0 0 20px rgba(240, 184, 74, 0.35);
  outline-color: var(--color-golden-amber);
}

/* ==========================================================================
   INDIVIDUAL EVENT CARD THEMES (BASED ON CELEBRATION VIBE & DRESS CODES)
   ========================================================================== */

/* Theme 1: Haldi & Mehndi Utsav (Sunshine Yellow & Candlelight Amber) */
.event-card--haldi {
  background: linear-gradient(165deg, #FAF4E6 0%, #F5ECDA 60%, #EFE1C5 100%);
  border: 1.5px solid rgba(201, 150, 46, 0.5);
  box-shadow: 0 8px 24px rgba(201, 150, 46, 0.14), var(--shadow-card);
}

.event-card--haldi:hover {
  box-shadow: 0 14px 30px rgba(201, 150, 46, 0.24), 0 0 20px rgba(240, 184, 74, 0.25);
  border-color: rgba(201, 150, 46, 0.75);
}

.event-card--haldi .event-thumb-wrapper {
  background: radial-gradient(circle at center, rgba(240, 184, 74, 0.25) 0%, transparent 70%);
}

.event-card--haldi .event-ring-frame {
  background: linear-gradient(135deg, #F0B84A, #C9962E);
  outline: 2px dashed rgba(201, 150, 46, 0.65);
}

.event-card--haldi .event-title {
  color: #8C5A1E;
}

.event-card--haldi .event-meta-icon {
  color: #C9962E;
}

.event-card--haldi .event-tag {
  background: linear-gradient(135deg, #F0B84A, #C9962E);
  color: #F5F0E4;
}

.event-card--haldi .event-attire {
  color: #8C5A1E;
  border-top-color: rgba(201, 150, 46, 0.35);
}

/* Theme 2: Ring Ceremony & Sangeet (Blush Pink & Deep Wine-Rose) */
.event-card--sangeet {
  background: linear-gradient(165deg, #FAF1F3 0%, #F5E8EB 60%, #EEDBE0 100%);
  border: 1.5px solid rgba(107, 46, 61, 0.4);
  box-shadow: 0 8px 24px rgba(107, 46, 61, 0.12), var(--shadow-card);
}

.event-card--sangeet:hover {
  box-shadow: 0 14px 30px rgba(107, 46, 61, 0.22), 0 0 20px rgba(239, 168, 184, 0.35);
  border-color: rgba(107, 46, 61, 0.75);
}

.event-card--sangeet .event-thumb-wrapper {
  background: radial-gradient(circle at center, rgba(239, 168, 184, 0.25) 0%, transparent 70%);
}

.event-card--sangeet .event-ring-frame {
  background: linear-gradient(135deg, #EFA8B8, #6B2E3D);
  outline: 2px dashed rgba(239, 168, 184, 0.65);
}

.event-card--sangeet .event-title {
  color: #6B2E3D;
}

.event-card--sangeet .event-meta-icon {
  color: #C9962E;
}

.event-card--sangeet .event-tag {
  background: linear-gradient(135deg, #EFA8B8, #6B2E3D);
  color: #F5F0E4;
}

.event-card--sangeet .event-attire {
  color: #6B2E3D;
  border-top-color: rgba(107, 46, 61, 0.35);
}

/* Theme 3: The Sacred Saath Phere (Deep Antique Gold & Wine-Rose) */
.event-card--wedding {
  background: linear-gradient(165deg, #FAF2EC 0%, #F5EAE1 60%, #ECDDD2 100%);
  border: 1.5px solid rgba(140, 90, 30, 0.45);
  box-shadow: 0 8px 24px rgba(140, 90, 30, 0.12), var(--shadow-card);
}

.event-card--wedding:hover {
  box-shadow: 0 14px 30px rgba(140, 90, 30, 0.22), 0 0 20px rgba(240, 184, 74, 0.25);
  border-color: rgba(140, 90, 30, 0.75);
}

.event-card--wedding .event-thumb-wrapper {
  background: radial-gradient(circle at center, rgba(240, 184, 74, 0.25) 0%, transparent 70%);
}

.event-card--wedding .event-ring-frame {
  background: linear-gradient(135deg, #C9962E, #8C5A1E);
  outline: 2px dashed rgba(201, 150, 46, 0.65);
}

.event-card--wedding .event-title {
  color: #8C5A1E;
}

.event-card--wedding .event-meta-icon {
  color: #C9962E;
}

.event-card--wedding .event-tag {
  background: linear-gradient(135deg, #C9962E, #8C5A1E);
  color: #F5F0E4;
}

.event-card--wedding .event-attire {
  color: #8C5A1E;
  border-top-color: rgba(140, 90, 30, 0.35);
}

/* Theme 4: The Grand Reception (Soft Green Foliage & Rich Gold) */
.event-card--reception {
  background: linear-gradient(165deg, #F4F6F0 0%, #ECF0E6 60%, #E1E7D8 100%);
  border: 1.5px solid rgba(138, 155, 110, 0.45);
  box-shadow: 0 8px 24px rgba(138, 155, 110, 0.12), var(--shadow-card);
}

.event-card--reception:hover {
  box-shadow: 0 14px 30px rgba(138, 155, 110, 0.22), 0 0 20px rgba(138, 155, 110, 0.25);
  border-color: rgba(138, 155, 110, 0.75);
}

.event-card--reception .event-thumb-wrapper {
  background: radial-gradient(circle at center, rgba(138, 155, 110, 0.22) 0%, transparent 70%);
}

.event-card--reception .event-ring-frame {
  background: linear-gradient(135deg, #8A9B6E, #C9962E);
  outline: 2px dashed rgba(138, 155, 110, 0.65);
}

.event-card--reception .event-title {
  color: #5A6B40;
}

.event-card--reception .event-meta-icon {
  color: #8A9B6E;
}

.event-card--reception .event-tag {
  background: linear-gradient(135deg, #8A9B6E, #5A6B40);
  color: #F5F0E4;
}

.event-card--reception .event-attire {
  color: #5A6B40;
  border-top-color: rgba(138, 155, 110, 0.35);
}

/* Diya Lamp Glow for Haldi & Sacred Events */
.diya-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245, 240, 228, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-golden-amber);
  box-shadow: var(--shadow-diya);
  z-index: 2;
  animation: diyaFlicker 2.5s infinite alternate ease-in-out;
}

.diya-badge svg {
  width: 17px;
  height: 17px;
}

@keyframes diyaFlicker {
  0% { box-shadow: 0 0 10px rgba(240, 184, 74, 0.6), 0 0 20px rgba(201, 150, 46, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 16px rgba(240, 184, 74, 0.9), 0 0 30px rgba(201, 150, 46, 0.7); transform: scale(1.05); }
  100% { box-shadow: 0 0 12px rgba(240, 184, 74, 0.7), 0 0 24px rgba(201, 150, 46, 0.5); transform: scale(1); }
}

.event-content {
  padding: 1.1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading-slate);
  margin-bottom: 0.25rem;
  text-align: center;
}

.event-host-note {
  font-size: 0.88rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.35rem;
  font-style: italic;
  line-height: 1.35;
}

.event-awaiting {
  font-size: 0.8rem;
  color: var(--color-ink);
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(201, 150, 46, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 150, 46, 0.25);
}

.event-meta-list {
  list-style: none;
  margin: 0.55rem 0 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  padding: 0;
  width: 100%;
}

.event-meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  text-align: center;
}

.event-meta-icon {
  width: 14px;
  height: 14px;
  color: var(--color-golden-amber);
  flex-shrink: 0;
}

.event-attire {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(201, 150, 46, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-heading-terra);
  text-align: center;
  width: 100%;
}

/* --------------------------------------------------------------------------
   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.52rem 0.95rem;
  background: linear-gradient(135deg, #8C5A1E, #6B2E3D);
  border: 1px solid rgba(201, 150, 46, 0.5);
  border-radius: var(--radius-full);
  color: #F5F0E4;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 12px rgba(90, 78, 58, 0.15);
  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: linear-gradient(135deg, #C9962E, #8C5A1E);
  color: #F5F0E4;
  border-color: #C9962E;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 150, 46, 0.35);
}

.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.42rem 0.85rem;
    font-size: 0.74rem;
  }
}

/* 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(36, 26, 20, 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(201, 150, 46, 0.5);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(201, 150, 46, 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(201, 150, 46, 0.15);
  border: 1px solid rgba(201, 150, 46, 0.35);
  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: #F5F0E4;
  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: #F5F0E4;
  background: linear-gradient(135deg, #8C5A1E, #6B2E3D);
  padding: 0.28rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(201, 150, 46, 0.4);
}

.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(201, 150, 46, 0.4);
  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, #8C5A1E, #6B2E3D);
  color: #F5F0E4;
  border: 1px solid rgba(201, 150, 46, 0.5);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(90, 78, 58, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  text-decoration: none;
}

.btn-directions:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #C9962E, #8C5A1E);
  color: #F5F0E4;
  box-shadow: 0 6px 20px rgba(201, 150, 46, 0.45);
}

/* 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, #C9962E 0px, #C9962E 12px, #F0B84A 12px, #F0B84A 24px, #EFA8B8 24px, #EFA8B8 36px, #6B2E3D 36px, #6B2E3D 48px);
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(90, 78, 58, 0.2);
  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: #FFFDF9;
  border-radius: 4px;
  padding: 14px 14px 20px;
  border: 1px solid rgba(230, 138, 0, 0.28);
  box-shadow: 0 12px 28px rgba(92, 45, 39, 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(92, 45, 39, 0.22), 0 0 22px rgba(240, 101, 132, 0.22);
  border-color: rgba(240, 101, 132, 0.65);
  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(230, 138, 0, 0.8), rgba(255, 214, 165, 0.85));
  border: 1px dashed rgba(180, 107, 0, 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-golden-amber);
  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;
}

/* --------------------------------------------------------------------------
   18. SECTION 10: FOOTER SECTION (ROYAL THEME GRADIENT & COMPACT CARDLESS DESIGN)
   -------------------------------------------------------------------------- */
.footer-section {
  position: relative;
  text-align: center;
  padding: 4rem 1rem 3rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(240, 184, 74, 0.28) 0%, transparent 65%),
    radial-gradient(circle at 12% 85%, rgba(239, 168, 184, 0.32) 0%, transparent 50%),
    radial-gradient(circle at 88% 80%, rgba(240, 196, 156, 0.32) 0%, transparent 50%),
    linear-gradient(135deg, #FBF6EC 0%, #F6EDE0 25%, #FDF1E6 52%, #FAEAEE 78%, #F7EFF5 100%);
  border-top: none;
  box-shadow: none;
  color: var(--color-ink);
  overflow: hidden;
}

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

.footer-logo-img {
  display: block;
  width: auto;
  max-width: 140px;
  height: auto;
  max-height: 65px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.footer-ornament-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-ornament-line {
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--color-golden-amber), transparent);
}

.footer-lotus-icon {
  color: var(--color-golden-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sacred Du'a */
.footer-dua-block {
  margin: 0 auto 1.5rem;
  max-width: 600px;
}

.footer-dua-arabic {
  font-family: var(--font-arabic, 'Amiri', 'Traditional Arabic', serif);
  font-size: 1.45rem;
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  color: var(--color-heading-terra);
  line-height: 1.6;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(245, 240, 228, 0.95);
}

.footer-dua-translation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-warm-brown);
  line-height: 1.45;
  margin: 0 auto;
}

/* Farewell Message */
.footer-message-block {
  margin: 1.5rem auto 1.75rem;
  max-width: 620px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--color-heading-slate);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

.footer-warm-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
}

/* Couple Signature */
.footer-signature-block {
  margin: 1.75rem auto 0.85rem;
}

.footer-couple-name {
  font-family: var(--font-couple);
  font-weight: 600;
  font-size: 3.6rem;
  font-size: clamp(2.8rem, 7.5vw, 4.4rem);
  color: var(--color-heading-terra);
  line-height: 1.05;
  margin-bottom: 0.45rem;
  text-shadow: 0 2px 14px rgba(245, 240, 228, 0.95), 0 3px 20px rgba(201, 150, 46, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-text-stroke: 0.4px var(--color-heading-terra);
  paint-order: stroke fill;
}

.footer-name-line {
  display: block;
  -webkit-text-stroke: 0.4px var(--color-heading-terra);
  paint-order: stroke fill;
}

.footer-couple-name .footer-ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.52em;
  color: var(--color-golden-amber);
  margin: -0.05em 0;
  display: block;
  line-height: 1;
  -webkit-text-stroke: 0.3px var(--color-golden-amber);
  paint-order: stroke fill;
}

.footer-date-badge {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-golden-amber);
  font-weight: 700;
  margin: 0;
}

/* Interactive Actions */
.footer-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem auto 2rem;
  max-width: 580px;
}

.btn-footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  background: rgba(254, 250, 242, 0.95);
  border: 1.5px solid rgba(201, 150, 46, 0.45);
  border-radius: var(--radius-full);
  color: var(--color-heading-terra);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(90, 78, 58, 0.08);
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

.btn-footer-action:hover {
  background: var(--color-golden-amber);
  color: #fff;
  border-color: var(--color-golden-amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 150, 46, 0.3);
}

.btn-footer-action svg {
  color: var(--color-golden-amber);
  transition: color var(--transition-fast);
}

.btn-footer-action:hover svg {
  color: #fff;
}

.btn-footer-hashtag .hashtag-symbol {
  font-weight: 800;
  color: var(--color-golden-amber);
  font-size: 1rem;
}

.btn-footer-action:hover .hashtag-symbol {
  color: #fff;
}

/* Host Signing */
.footer-hosts-signing {
  margin: 0.85rem auto 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px dashed rgba(201, 150, 46, 0.4);
  max-width: 440px;
}

.footer-compliments-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.25rem;
}

.footer-compliments-family {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-heading-terra);
  letter-spacing: 0.03em;
  margin: 0;
}

/* Credits */
.footer-credits {
  font-size: 0.82rem;
  color: var(--color-ink-light);
  border-top: 1px dashed rgba(201, 150, 46, 0.45);
  padding-top: 0.85rem;
  max-width: 540px;
  margin: 0 auto;
}

.footer-credits a {
  color: var(--color-heading-terra);
  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-golden-amber);
  text-shadow: 0 0 10px rgba(201, 150, 46, 0.35);
}

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

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

/* Depth Scale Reveal (Scratch card, logos, cards) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Directional Glides (Timeline alternating events) */
.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Royal Flower Garland Ribbon Unfurl & Bloom */
.section-garland-divider.reveal-garland .garland-connecting-line {
  transform: translateY(-50%) scaleX(0);
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.section-garland-divider.reveal-garland.is-visible .garland-connecting-line {
  transform: translateY(-50%) scaleX(1);
}

.section-garland-divider.reveal-garland .garland-divider-img {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  will-change: opacity, transform;
}

.section-garland-divider.reveal-garland.is-visible .garland-divider-img {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Container Cascade (Countdown boxes, pods) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* Timeline Spine Progressive Growth */
.timeline-wrapper .timeline-spine {
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.timeline-wrapper.is-visible .timeline-spine {
  transform: translateX(-50%) scaleY(1);
}

/* Staggered Delay Helpers */
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* In Cherished Memory Staggered Elder Pods */
.memorial-grid.reveal > .memorial-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.memorial-grid.reveal.is-visible > .memorial-item:nth-child(1) {
  transition-delay: 0.08s;
  opacity: 1;
  transform: translateY(0);
}

.memorial-grid.reveal.is-visible > .memorial-item:nth-child(2) {
  transition-delay: 0.22s;
  opacity: 1;
  transform: translateY(0);
}

.memorial-grid.reveal.is-visible > .memorial-item:nth-child(3) {
  transition-delay: 0.36s;
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   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,
  .reveal-scale,
  .reveal-left,
  .reveal-right,
  .reveal-stagger > *,
  .memorial-grid.reveal > .memorial-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .section-garland-divider.reveal-garland .garland-connecting-line {
    transform: translateY(-50%) scaleX(1) !important;
    transition: none !important;
  }
  .section-garland-divider.reveal-garland .garland-divider-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .timeline-wrapper .timeline-spine {
    transform: translateX(-50%) scaleY(1) !important;
    transition: none !important;
  }
  .ambient-petals-container {
    display: none !important;
  }
  .music-toggle-btn.is-playing {
    animation: none !important;
  }
}


