/* ==========================================================================
   Custom Font Declarations
   ========================================================================== */
@font-face {
  font-family: 'World Discovery';
  src: url('../WorldDiscovery_PERSONAL_USE_ONLY.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'World Discovery One';
  src: url('../WorldDiscovery_PERSONAL_USE_ONLY.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WorldDiscovery';
  src: url('../WorldDiscovery_PERSONAL_USE_ONLY.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  --color-blue-border: #729AC9;
  --color-rose-soft: #dca3a9;
  --color-rose-text: #bd737d;
  --color-rose-deep: #a85863;
  --color-gold-accent: #d4af37;
  --color-bg-ambient: #dceaf7;
  --color-white: #ffffff;
  --color-card-bg: rgba(255, 255, 255, 0.95);

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-couple: 'World Discovery', 'World Discovery One', 'WorldDiscovery', cursive;
  --font-event-title: 'Cinzel', 'Playfair Display', 'Montserrat', 'Cormorant Garamond', Georgia, serif;

  --mobile-max-width: 430px;
  /* Proportions mapped from 1080x1920 artboard (631px x 109px) */
  --track-height: 48px;
  --handle-size: 40px;
  --handle-padding: 3px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  height: 100%;
  background-color: #121820;
  /* scroll-behavior: smooth removed — conflicts with JS scroll clamping and causes jank */
}

body {
  width: 100%;
  min-height: 100%;
  background-color: #121820;
  font-family: var(--font-sans);
  color: #333333;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Locked state during lock screen interaction */
body.locked {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Desktop Ambient Backdrop (Sky / Map Ambient)
   ========================================================================== */
.ambient-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 50% 35%, rgba(114, 154, 201, 0.25), transparent 70%),
    radial-gradient(circle at 50% 80%, rgba(189, 214, 238, 0.18), transparent 60%),
    #0f1620;
  /* filter: blur removed — fixed blur on a large element triggers constant GPU repaint on every scroll */
  z-index: 0;
  pointer-events: none;
  will-change: auto;
}

/* ==========================================================================
   Mobile Viewport Shell (Strict 430px Centered Frame)
   ========================================================================== */
.mobile-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: #f7faff;
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(114, 154, 201, 0.12);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Isolate the mobile frame as its own stacking context for GPU compositing */
  isolation: isolate;
  transform: translateZ(0);
}

/* ==========================================================================
   SECTION 1: Lock Screen
   ========================================================================== */
.lock-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mobile-max-width);
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.6s ease;
  will-change: opacity, transform;
}

.lock-screen.unlocked {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(1.03);
  visibility: hidden;
}

/* Background Image Layer (Layer 1.png / bg.png: 1080x1920) */
.lock-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Section1/bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Lock Screen Layout Content: perfectly framed vertical layout with small elegant gap */
.lock-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.8vh, 26px);
  padding: max(2vh, 16px) 16px;
  box-sizing: border-box;
}

/* Logo / Crest Container: Large, majestic central illustration */
.crest-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 92%;
  max-width: 380px;
  max-height: min(65vh, 520px);
  animation: floatSubtle 6s ease-in-out infinite alternate;
}

.crest-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(65vh, 520px);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(114, 154, 201, 0.22));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ==========================================================================
   Slide to Unlock Track (Sleek, delicate pill container)
   ========================================================================== */
.slider-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-track {
  position: relative;
  width: 86%;
  min-width: 275px;
  max-width: 335px;
  height: 52px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.2px solid #8FAEC9;
  border-radius: 999px;
  box-shadow:
    0 4px 18px rgba(114, 154, 201, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
}

.slider-track:active {
  cursor: grabbing;
}

/* Instruction Text inside Track - centered cleanly in the track area to the right of the handle */
.slider-text {
  position: absolute;
  top: 50%;
  left: calc(50% + 20px);
  transform: translate(-50%, -50%);
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  font-weight: 700;
  letter-spacing: clamp(1px, 0.35vw, 1.8px);
  color: #C84B7C;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  transition: opacity 0.2s ease;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.slider-handle {
  position: relative;
  z-index: 2;
  margin-right: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  transform: translateX(0);
  will-change: transform;
  outline: none;
}

.slider-handle:focus-visible {
  outline: none;
}

.slider-handle.dragging {
  cursor: grabbing;
  transition: none !important;
}

.slider-handle.animating {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lock-screen.unlocked .slider-handle,
.lock-screen.unlocked .plane-icon {
  animation: none !important;
}

.plane-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.2s ease;
  animation: planeAttentionShake 2.2s ease-in-out infinite;
  transform-origin: center center;
}

.slider-handle:hover .plane-icon {
  transform: scale(1.08);
}

.slider-handle.dragging .plane-icon {
  animation: none;
  transform: scale(1.12) rotate(4deg);
}

/* Shake / Nudge Animation for Plane Slider */
@keyframes planeAttentionShake {

  0%,
  58%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }

  63% {
    transform: translateX(4px) translateY(-1px) rotate(6deg) scale(1.06);
  }

  68% {
    transform: translateX(-3px) translateY(1px) rotate(-4deg) scale(1.04);
  }

  73% {
    transform: translateX(4px) translateY(-1px) rotate(4deg) scale(1.06);
  }

  78% {
    transform: translateX(-2px) translateY(0) rotate(-2deg) scale(1.03);
  }

  83% {
    transform: translateX(2px) translateY(-0.5px) rotate(1deg) scale(1.02);
  }

  88% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
}

/* ==========================================================================
   SECTION 2: Couple Announcement Card (Strict Mobile 100vh Container)
   ========================================================================== */
.section-couple {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f7faff;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
}

body:not(.locked) .section-couple {
  opacity: 1;
}

/* Background Map Layer */
.section2-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Section1/bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   Central Stamp Card Frame (Shape 1: top 19px, left 124px, width 956px, height 1830px)
   ========================================================================== */
.stamp-card-frame {
  position: relative;
  z-index: 3;
  /* 956 / 1080 = 88.5% */
  width: calc(100% * (956 / 1080));
  max-width: 380px;
  /* 1830 / 1920 = 95.3% of viewport */
  height: 90vh;
  max-height: 750px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Outer Scalloped Stamp Vector Border */
.stamp-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(113, 161, 194, 0.35));
  pointer-events: none;
}

.stamp-outer-path {
  fill: #71a1c2;
}

/* Inner White Stamp Card Area */
.stamp-inner-card {
  position: absolute;
  top: 4%;
  left: 5%;
  width: 90%;
  height: 92%;
  background-color: #ffffff;
  border-radius: 4px;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 20px rgba(113, 161, 194, 0.15);
}

/* Map Watermark Layer (Only visible on white section, under path) */
.stamp-map-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.18;
}

/* ==========================================================================
   GLOBAL FLIGHT PLANE (Center-Axis Vertical Continuous Flight)
   ========================================================================== */
#globalPlane,
.global-flight-plane {
  position: absolute;
  left: 50%;
  top: 0px;
  width: 58px;
  height: 58px;
  /* Rotate 90deg so the horizontal image nose points 100% straight down vertically */
  transform: translate3d(-50%, 0, 0) translateY(-50%) rotate(90deg) translateZ(0);
  z-index: 999;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
}

/* Plane is visible throughout once invitation is unlocked */
body:not(.locked) #globalPlane,
body:not(.locked) .global-flight-plane {
  opacity: 1;
}

/* Ensure ample top clearance on Section 2 */
#section2,
.section-couple {
  padding-top: 0 !important;
  box-sizing: border-box;
}

/* Announcement Typography Content (Gracefully centered with clearance above foreground passports & suitcase) */
.announcement-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(16px, 2.4vh, 26px) clamp(12px, 3vw, 18px) clamp(80px, 12vh, 100px) clamp(12px, 3vw, 18px);
  margin-top: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   Section 2 Sequential Line-by-Line Reveal
   ========================================================================== */
.reveal-line {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Reveal Active State */
.reveal-line.visible,
.section-couple.section-visible .reveal-line,
body:not(.locked) .section-couple.section-visible .reveal-line {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for 8 Lines */
.reveal-line:nth-child(1) {
  transition-delay: 0.15s;
}

.reveal-line:nth-child(2) {
  transition-delay: 0.35s;
}

.reveal-line:nth-child(3) {
  transition-delay: 0.55s;
}

.reveal-line:nth-child(4) {
  transition-delay: 0.75s;
}

.reveal-line:nth-child(5) {
  transition-delay: 0.95s;
}

.reveal-line:nth-child(6) {
  transition-delay: 1.15s;
}

.reveal-line:nth-child(7) {
  transition-delay: 1.35s;
}

.reveal-line:nth-child(8) {
  transition-delay: 1.55s;
}

/* ==========================================================================
   Section 2 Typography Hierarchy & Spacing
   ========================================================================== */

/* Element 1: Top Divine Blessings Kicker (Above Shagun) */
.text-kicker {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  color: #315A77;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
  line-height: 1.36;
  max-width: 330px;
  margin: 0 0 clamp(18px, 2.8vh, 28px) 0;
  text-align: center;
}

/* Elements 2 & 5: Couple Names (Shagun & Dhruvv) - Symmetrical & Generous Gap Below */
.couple-name {
  font-family: var(--font-couple), 'World Discovery', 'World Discovery One', 'WorldDiscovery', cursive !important;
  color: #E969A1;
  font-size: clamp(26px, 6.8vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 clamp(16px, 2.5vh, 24px) 0;
  text-align: center;
  filter: drop-shadow(0 2px 6px rgba(233, 105, 161, 0.18));
}

/* Elements 3, 4, 7, 8: Grandparents & Parents Info */
.parents-info {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  color: #315A77;
  font-size: clamp(13.5px, 3.3vw, 15.5px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 3px 0;
  text-align: center;
  white-space: normal;
  max-width: 330px;
}

.parents-info.last-line {
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

/* Element 4: Connector ('with' - Above Dhruvv) */
.text-conjunction {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  color: #315A77;
  font-size: clamp(15px, 3.8vw, 17.5px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 clamp(18px, 2.8vh, 28px) 0;
  text-align: center;
  display: block;
}

/* ==========================================================================
   Tilted Mini Map Postcard (Independent Auto-Animation on Section Entry)
   ========================================================================== */
.mini-map-postcard {
  position: absolute;
  top: 26%;
  left: -26px;
  width: 22%;
  max-width: 92px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-40px) rotate(-18deg);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s,
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
  will-change: transform, opacity;
}

.mini-map-postcard.visible,
.section-couple.section-visible .mini-map-postcard {
  opacity: 0.92;
  transform: translateX(0) rotate(-14deg);
}

.mini-map-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(49, 90, 119, 0.32));
}

/* ==========================================================================
   Foreground Layer Elements: Luggage Suitcase & Dual Hands
   ========================================================================== */
.foreground-decorations {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 10;
  pointer-events: none;
}

/* Suitcase (Auto-Animated into bottom-right resting corner) */
.suitcase-wrapper {
  position: absolute;
  bottom: clamp(6px, 1.2vh, 12px);
  right: clamp(4px, 1.5vw, 10px);
  width: 29%;
  max-width: 118px;
  z-index: 18;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.6s,
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
  will-change: transform, opacity;
  pointer-events: none;
}

.suitcase-wrapper.visible,
.section-couple.section-visible .suitcase-wrapper {
  transform: translateY(0px);
  opacity: 1;
}

.suitcase-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(49, 90, 119, 0.22));
}

/* Hand Elements Base (Independent Auto-Animation on Section Entry) */
.hand-wrapper {
  position: absolute;
  bottom: 0;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.8s,
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.8s;
}

.hand-wrapper.visible,
.section-couple.section-visible .hand-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* Left Hand with Red Passport */
.hand-left {
  left: -8%;
  width: 32%;
  max-width: 132px;
  z-index: 16;
}

/* Right Hand with Purple Passport */
.hand-right {
  left: 28%;
  width: 33%;
  max-width: 136px;
  z-index: 17;
  transition-delay: 0.9s;
}

.hand-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 -6px 18px rgba(0, 0, 0, 0.16));
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes floatSubtle {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-8px);
  }
}

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

  100% {
    background-position: 200% 50%;
  }
}

/* ==========================================================================
   Section 2 Scroll Down Indicator (Inside Card, below text)
   ========================================================================== */
.scroll-down-indicator {
  position: relative;
  margin: clamp(5px, 1.2vh, 10px) auto 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 16px 6px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.6s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.6s;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.scroll-down-indicator.visible,
.section-couple.section-visible .scroll-down-indicator,
body:not(.locked) .section-couple.section-visible .scroll-down-indicator {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: scrollIndicatorFloating 2.4s ease-in-out infinite 2.2s;
}

.scroll-down-text {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(12.5px, 3.2vw, 14.5px);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #315A77;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1.2;
  transition: color 0.25s ease, transform 0.25s ease;
}

.scroll-down-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 14px;
  margin-top: 2px;
}

.chevron-arrow {
  width: 14px;
  height: 7px;
  color: #315A77;
  display: block;
  overflow: visible;
  transition: color 0.25s ease;
}

.chevron-arrow path {
  stroke: currentColor;
}

.scroll-down-indicator:hover .scroll-down-text,
.scroll-down-indicator:hover .chevron-arrow,
.scroll-down-indicator:focus-visible .scroll-down-text,
.scroll-down-indicator:focus-visible .chevron-arrow {
  color: #C84B7C;
}

.chevron-1 {
  animation: chevronPulse 1.6s ease-in-out infinite;
  margin-bottom: -2px;
}

.chevron-2 {
  animation: chevronPulse 1.6s ease-in-out infinite 0.25s;
}

@keyframes chevronPulse {
  0% {
    opacity: 0.25;
    transform: translateY(-3px);
  }
  50% {
    opacity: 1;
    transform: translateY(1px);
  }
  100% {
    opacity: 0.25;
    transform: translateY(5px);
  }
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
/* ==========================================================================
   SECTION 3: Scratch the Date Reveal & Live Countdown
   ========================================================================== */
.section-scratch {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 80vh;
  min-height: 80dvh;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 16px 50px 16px;
  background-color: #f7faff;
  box-sizing: border-box;
}

/* Background Map Layer */
.section3-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Section1/bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.section-scratch-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section Header */
.scratch-header {
  text-align: center;
  margin-bottom: 24px;
}

.scratch-kicker {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  color: #315A77;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.scratch-title {
  font-family: 'CandlescriptDemoVersion', 'Great Vibes', 'Pinyon Script', cursive;
  color: #E969A1;
  font-size: clamp(38px, 10vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(233, 105, 161, 0.16));
}

.scratch-subtitle {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  color: #315A77;
  opacity: 0.85;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  max-width: 290px;
  margin: 0 auto;
}

/* Boarding Pass Scratch Cards Grid */
.scratch-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 30px;
}

.scratch-card {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(49, 90, 119, 0.12);
  border: 1.5px solid rgba(113, 161, 194, 0.38);
  background: #ffffff;
  user-select: none;
  -webkit-user-select: none;
}

/* Card Inner Face (Revealed Underneath) */
.scratch-card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  text-align: center;
  background: #ffffff;
  box-sizing: border-box;
}

.card-tag-label {
  font-family: 'Montserrat', 'Cinzel', sans-serif;
  font-size: 10.5px;
  letter-spacing: 2px;
  color: #315A77;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}

.card-revealed-value {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #E969A1;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.5px;
}

.card-revealed-value.month-val {
  font-family: var(--font-event-title, 'Cinzel', serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.card-revealed-value.date-val,
.card-revealed-value.days-val {
  font-family: var(--font-event-title, 'Cinzel', serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.card-revealed-value.year-val {
  font-family: var(--font-event-title, 'Cinzel', serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
}

.card-barcode-deco {
  width: 36px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #71a1c2 0, #71a1c2 2px, transparent 2px, transparent 4px);
  margin-top: 10px;
  opacity: 0.6;
}

/* Scratch HTML5 Canvas Overlay */
.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  z-index: 5;
  transition: opacity 0.4s ease;
  border-radius: 10px;
}

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

/* Confetti Particle Canvas (Contained within Section 3 around scratch cards) */
.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* Live Countdown Module (Shows 00 until all 3 scratch cards are unlocked) */
.countdown-module {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 22px 14px;
  text-align: center;
  border: 1.5px solid rgba(113, 161, 194, 0.38);
  box-shadow: 0 10px 30px rgba(49, 90, 119, 0.12);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  box-sizing: border-box;
  transition: border-color 0.6s ease, box-shadow 0.6s ease, transform 0.6s ease;
}

.countdown-module.active-countdown {
  border-color: #E969A1;
  box-shadow: 0 12px 36px rgba(233, 105, 161, 0.22);
  animation: countdownUnlockedPulse 1.2s ease-out;
}

@keyframes countdownUnlockedPulse {
  0% {
    transform: scale(0.97);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.countdown-label {
  font-family: 'Transcend', 'TranscendSemibold', 'Transcend-Semibold', 'Cinzel', var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #315A77;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  text-align: center;
}

.countdown-pods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

.countdown-pod {
  background: #ffffff;
  border: 1px solid rgba(49, 90, 119, 0.15);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(49, 90, 119, 0.05);
}

.pod-number {
  font-family: var(--font-event-title, 'Cinzel', serif);
  font-size: clamp(26px, 7.6vw, 34px);
  font-weight: 700;
  color: #E969A1;
  line-height: 1;
  letter-spacing: 0.5px;
}

.pod-label {
  font-family: var(--font-event-title, 'Cinzel', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #315A77;
  text-transform: uppercase;
  margin-top: 5px;
}

.celebration-note {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  color: #315A77;
  font-style: italic;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
  opacity: 0.9;
}

/* ==========================================================================
   SECTION 3 - EVENT PART 1: Shubhaarambh & Meethi Manuhar
   ========================================================================== */
.section-event-1 {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  height: 100vh;
  height: 100dvh;
  min-height: 720px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 10;
}

/* Base Textured Green Background */
.event-bg-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Section1/section3/sec1/bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* Trellis Lattice Floral Overlay (Background Layer behind Card - z-index: 2) */
.trellis-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.85;
}

/* Top half (slides above) */
.trellis-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Section1/section3/sec1/flower.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  clip-path: inset(0 0 49.8% 0);
  -webkit-clip-path: inset(0 0 49.8% 0);
  will-change: transform, opacity;
  transform: translateY(0);
  transition: transform 0.08s linear, opacity 0.08s linear;
}

/* Bottom half (slides below) */
.trellis-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Section1/section3/sec1/flower.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  clip-path: inset(50% 0 0 0);
  -webkit-clip-path: inset(50% 0 0 0);
  will-change: transform, opacity;
  transform: translateY(0);
  transition: transform 0.08s linear, opacity 0.08s linear;
}

/* Central Event Stamp Frame (Entrance Animation on Section View) */
.event-stamp-frame {
  position: relative;
  z-index: 6;
  width: 86%;
  max-width: 370px;
  height: 64vh;
  min-height: 520px;
  max-height: 600px;
  margin-top: 3vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.section-event-1:not(.section-entered) .event-stamp-frame {
  opacity: 0;
  transform: scale(0.92) translateY(16px);
}

.section-event-1.section-entered .event-stamp-frame {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Scalloped Frame Background Image from frame.png */
.event-frame-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

/* Inner Card Content Area (Vertical Rhythm & Typography Hierarchy) */
.event-inner-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(48px, 6.8vh, 64px);
  padding-bottom: 20px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
  text-align: center;
}

/* Sequential Line-by-Line Staggered Revelations (Each element animates in order) */
.event-inner-card .reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.section-event-1:not(.section-entered) .event-inner-card .reveal-item {
  opacity: 0;
  transform: translateY(14px);
}

/* Element 1: Date Header */
.section-event-1.section-entered .item-date {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* Element 2: Shubhaarambh Title */
.section-event-1.section-entered .item-title-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

/* Element 3: Shubhaarambh Tagline */
.section-event-1.section-entered .item-tagline-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.60s;
}

/* Element 4: Shubhaarambh Time & Venue */
.section-event-1.section-entered .item-meta-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.75s;
}

/* Element 5: Gold Flourish Divider */
.section-event-1.section-entered .item-flourish {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.90s;
}

/* Element 6: Meethi Manuhar Title */
.section-event-1.section-entered .item-title-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.05s;
}

/* Element 7: Meethi Manuhar Tagline */
.section-event-1.section-entered .item-tagline-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.20s;
}

/* Element 8: Meethi Manuhar Time & Venue */
.section-event-1.section-entered .item-meta-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.35s;
}

/* Date Header ("DEC | 11 | 2026") - Expanded Gap to Shubharambh */
.event-date-header {
  margin-bottom: clamp(26px, 3.8vh, 36px);
}

.event-date-text {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(14px, 3.8vw, 16.5px);
  font-weight: 700;
  letter-spacing: 3px;
  color: #2F5C3E;
  text-transform: uppercase;
  display: inline-block;
}

/* Event Content Blocks */
.event-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
}

/* Gap between Pooja Room and Page Break Flourish */
.event-block-1 {
  margin-bottom: clamp(28px, 4vh, 38px);
}

.event-block-2 {
  margin-bottom: 0;
}

/* Event Titles ("Shubhaarambh" & "Meethi Manuhar") */
.event-title {
  font-family: var(--font-event-title);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 700;
  color: #BA743A;
  line-height: 1.15;
  margin: 0 0 clamp(6px, 0.9vh, 9px) 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Taglines ("The auspicious beginning!" & "Welcome Lunch & warm Hellos!!") */
.event-tagline {
  font-family: 'Cormorant Garamond', 'Alex Brush', cursive, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(17px, 4.4vw, 20px);
  color: #BF8350;
  margin: 0 0 clamp(9px, 1.3vh, 13px) 0;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

/* Time & Venue Meta Info ("8:21 AM ONWARDS", "POOJA ROOM") */
.event-meta-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.6vh, 7px);
  text-align: center;
}

.event-time,
.event-venue {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(14px, 3.8vw, 16.5px);
  line-height: 1.4;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #2F5C3E;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Horizontal Flourish Divider (Page Break Image) - Expanded Gap to Meethi Manuhar */
.event-divider-flourish {
  width: 100%;
  max-width: 115px;
  height: auto;
  margin: 0 auto clamp(28px, 4vh, 38px) auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flourish-img {
  width: 100%;
  max-height: 22px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Side Mini-Stamps (Staggered Spring Entrance + Continuous Idle Floating) */
.stamp-inset {
  position: absolute;
  z-index: 12;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stamp-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Stamp 1: Top-Left Feast Postcard */
.stamp-inset-top-left {
  top: 3%;
  left: -32px;
  width: 70px;
  max-width: 21%;
  opacity: 1;
  transform: translate(0, 0) rotate(-2deg);
}

.section-event-1:not(.section-entered) .stamp-inset-top-left {
  opacity: 0;
  transform: translate(-30px, -20px) rotate(-8deg);
}

.section-event-1.section-entered .stamp-inset-top-left {
  opacity: 1;
  transform: translate(0, 0) rotate(-2deg);
  transition-delay: 0.35s;
  animation: stampFloat1 4s ease-in-out infinite 1.2s;
}

/* Stamp 2: Middle-Right Garden Dining Postcard */
.stamp-inset-mid-right {
  top: 48%;
  right: -30px;
  width: 72px;
  max-width: 22%;
  opacity: 1;
  transform: translate(0, 0) rotate(2deg);
}

.section-event-1:not(.section-entered) .stamp-inset-mid-right {
  opacity: 0;
  transform: translate(30px, 0) rotate(8deg);
}

.section-event-1.section-entered .stamp-inset-mid-right {
  opacity: 1;
  transform: translate(0, 0) rotate(2deg);
  transition-delay: 0.70s;
  animation: stampFloat2 4.5s ease-in-out infinite 1.5s;
}

/* Stamp 3: Temple Bells Postcard */
.stamp-inset-bottom-left {
  top: 70%;
  left: -32px;
  bottom: auto;
  width: 86px;
  max-width: 26%;
  opacity: 1;
  transform: translate(0, 0) rotate(-1.5deg);
}

.section-event-1:not(.section-entered) .stamp-inset-bottom-left {
  opacity: 0;
  transform: translate(-30px, 20px) rotate(-6deg);
}

.section-event-1.section-entered .stamp-inset-bottom-left {
  opacity: 1;
  transform: translate(0, 0) rotate(-1.5deg);
  transition-delay: 1.05s;
  animation: stampFloat3 5s ease-in-out infinite 1.8s;
}

/* Continuous Idle Floating Micro-Animations */
@keyframes stampFloat1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }

  50% {
    transform: translate(-2px, -4px) rotate(0deg);
  }
}

@keyframes stampFloat2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(2deg);
  }

  50% {
    transform: translate(2px, -4px) rotate(4deg);
  }
}

@keyframes stampFloat3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(-1.5deg);
  }

  50% {
    transform: translate(-2px, 3px) rotate(0.5deg);
  }
}

/* Foreground Ganesha Altar setup (Anchored to Bottom 0, Grand Scale to Cover Lower White Space) */
.ganesha-altar-layer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 116%;
  max-width: 530px;
  height: 54vh;
  min-height: 400px;
  max-height: 520px;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
  will-change: transform, opacity;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ganesha-altar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 -10px 28px rgba(0, 0, 0, 0.45));
}

/* ==========================================================================
   TRANSITIONAL FLIGHT STOP: Destination Dividers (Right Side of Plane)
   ========================================================================== */
.flight-stop-divider {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 180px;
  height: 22vh;
  max-height: 220px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 5;
  background-color: #dceaf7;
}

/* Sky Background Layer with Provided Map Image */
.flight-stop-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Map.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.98;
  z-index: 1;
  pointer-events: none;
  transform: translateZ(0);
}

/* Center-Relative Flight Stop Content Wrapper */
.flight-stop-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* Dotted Trail Branch extending from center plane (50%) to the right */
.flight-trail-branch {
  position: absolute;
  left: calc(50% + 14px);
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.trail-curve-svg {
  width: 100%;
  height: 100%;
}

/* Destination Pin & Label Badge positioned strictly to the RIGHT of the plane */
.flight-destination-badge {
  position: absolute;
  left: calc(50% + 24px);
  top: 50%;
  transform: translateY(-50%) translateX(6px) scale(0.96);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.97);
  /* backdrop-filter removed — expensive GPU layer; white bg + shadow is sufficient */
  padding: 5px 12px 5px 8px;
  border-radius: 20px;
  border: 1.5px solid rgba(114, 154, 201, 0.45);
  box-shadow: 0 4px 14px rgba(49, 90, 119, 0.18);
  white-space: nowrap;
  box-sizing: border-box;
  max-width: calc(50% - 16px);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transform-origin: left center;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Visible when plane is arrived in this specific flight stop section */
.flight-stop-divider.plane-arrived .flight-destination-badge,
body:not(.locked) .flight-stop-divider.plane-arrived .flight-destination-badge {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
}

.flight-stop-divider.plane-arrived .flight-trail-branch,
body:not(.locked) .flight-stop-divider.plane-arrived .flight-trail-branch {
  opacity: 0.85;
}

/* Pin Marker & Pulse Ring */
.flight-pin-marker {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pin-svg-icon {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 2px 4px rgba(233, 105, 161, 0.35));
  position: relative;
  z-index: 2;
}

.pin-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(233, 105, 161, 0.25);
  transform: translate(-50%, -50%);
  animation: pinPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  z-index: 1;
}

@keyframes pinPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Destination Typography */
.flight-destination-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  min-width: 0;
}

.destination-kicker {
  font-family: 'Cambria Math', 'Cambria', 'Cormorant Garamond', Georgia, serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #315A77;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.destination-name {
  font-family: 'CandlescriptDemoVersion', 'Great Vibes', 'Pinyon Script', cursive;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 400;
  color: #E969A1;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 4 - SQUID GAME EVENT SECTION (Interactive Elevator & Revealed Stage)
   ========================================================================== */
.section-squidgame {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  max-height: 880px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #0d0f12;
}

/* --------------------------------------------------------------------------
   STAGE 1: ELEVATOR DOOR LOCK OVERLAY (#squidElevator)
   -------------------------------------------------------------------------- */
.squid-elevator-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity 0.4s ease 0.6s;
}

.squid-elevator-overlay.unlocked {
  pointer-events: none;
  opacity: 0;
}

/* Sliding Doors (Left & Right) */
.squid-door {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50.1%;
  overflow: hidden;
  z-index: 1;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.squid-door-left {
  left: 0;
  transform-origin: left center;
}

.squid-door-right {
  right: 0;
  transform-origin: right center;
}

.squid-door-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.squid-door-flipped {
  transform: scaleX(-1);
}

/* Unlocked Door Separation Animation */
.squid-elevator-overlay.unlocked .squid-door-left {
  transform: translateX(-105%);
}

.squid-elevator-overlay.unlocked .squid-door-right {
  transform: translateX(105%);
}

/* Top Instruction Prompt */
.squid-top-instruction {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.squid-instruction-text {
  font-family: 'Cinzel', 'Cambria Math', 'Cambria', Georgia, serif;
  font-size: clamp(15px, 4.3vw, 18.5px);
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #1A1A1A;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
  margin: 0;
  text-transform: uppercase;
}

.squid-elevator-overlay.unlocked .squid-top-instruction {
  opacity: 0;
  transform: translate(-50%, -20px);
}

/* Bottom Interactive Guards Bar */
.squid-guards-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  z-index: 5;
  padding: 0 12px 8px 12px;
  box-sizing: border-box;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.squid-elevator-overlay.unlocked .squid-guards-bar {
  opacity: 0;
  transform: translateY(30px);
}

.squid-guard-slot {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 31%;
  max-width: 118px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.squid-guard-slot:not(.active) {
  animation: guardPulse 2.4s ease-in-out infinite;
}

.squid-guard-slot:nth-child(2):not(.active) {
  animation-delay: 0.35s;
}

.squid-guard-slot:nth-child(3):not(.active) {
  animation-delay: 0.7s;
}

@keyframes guardPulse {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.squid-guard-slot:hover {
  transform: scale(1.04);
}

.squid-guard-slot.active {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(255, 30, 86, 0.7));
  animation: none;
}

.squid-guard-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: filter 0.2s ease;
}

/* --------------------------------------------------------------------------
   STAGE 2: REVEALED EVENT STAGE (#squidContent)
   -------------------------------------------------------------------------- */
.squid-stage-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.squid-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 1;
}

/* Unified Stage Scene Container (Keeps Top Board & Bottom Stick together across all devices) */
.squid-scene-stack {
  position: relative;
  z-index: 3;
  width: min(88%, 340px, calc((100dvh - 20px) * 0.559));
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  pointer-events: none;
  transform-origin: 50% 0%;
  will-change: transform;
}

/* Suspended Rope & Card Gentle Sway Animation */
@keyframes cardGentleSwing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(0.6deg);
  }

  75% {
    transform: rotate(-0.6deg);
  }
}

.squid-scene-stack.swinging,
.squid-card-wrapper.swinging {
  transform-origin: 50% 0%;
  animation: cardGentleSwing 4.5s ease-in-out infinite;
}

/* Central Suspended Event Card Artwork (Group 1.png + Inner Text) */
.squid-card-wrapper {
  position: relative;
  width: 100%;
  z-index: 3;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  will-change: transform, opacity;
}

.squid-card-wrapper.revealed {
  opacity: 1;
  transform: scale(1);
}

.squid-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

/* Background Shapes Typography */
.squid-shape-text {
  position: absolute;
  pointer-events: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Left Pink Triangle ("The Winning Side") with playful subtle wiggle */
@keyframes triangleWiggle {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  35% {
    transform: translate(-50%, -50%) rotate(-1deg) scale(1.03);
  }

  70% {
    transform: translate(-50%, -50%) rotate(0.8deg) scale(0.98);
  }
}

.squid-shape-triangle {
  position: absolute;
  top: 40%;
  left: 26%;
  transform: translate(-50%, -50%);
  width: 36%;
  color: #FFFFFF;
  font-family: 'Cinzel', 'Cambria Math', Georgia, serif;
  font-weight: 700;
  font-size: clamp(10px, 2.7vw, 12.5px);
  line-height: 1.2;
  z-index: 4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: triangleWiggle 4s ease-in-out infinite;
}

/* Right Teal Circle ("DEC | 11 | 2026") with floating bob */
@keyframes circleFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, calc(-50% - 3px)) scale(1.03);
  }
}

.squid-shape-circle {
  position: absolute;
  top: 48%;
  left: 78%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-family: 'Cinzel', 'Cambria Math', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.6px;
  font-size: clamp(9.5px, 2.5vw, 11.5px);
  line-height: 1.2;
  white-space: nowrap;
  z-index: 4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: circleFloat 3.8s ease-in-out infinite 0.5s;
}

/* Central Framed Event Card Inner Content */
.squid-card-inner-text {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  height: 41%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 2px;
  box-sizing: border-box;
  z-index: 5;
  pointer-events: none;
}

/* Tagline ("An evening of Fun & Games!") with gentle breathing glow */
@keyframes taglineBreathe {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.6));
  }

  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 6px rgba(38, 155, 155, 0.5));
  }
}

.squid-tagline {
  display: inline-block;
  font-family: 'Cormorant Garamond', 'Alex Brush', cursive, serif;
  font-style: italic;
  color: #269B9B;
  font-size: clamp(14.5px, 4.2vw, 19px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 4px 0;
  letter-spacing: 0.2px;
  transform-origin: center center;
  animation: taglineBreathe 3.2s ease-in-out infinite;
}

/* Timings & Venue Block with subtle pulse */
.squid-meta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.squid-time,
.squid-venue {
  font-family: 'Montserrat', 'Cinzel', sans-serif;
  font-weight: 700;
  color: #DE2276;
  font-size: clamp(10px, 2.8vw, 12.8px);
  line-height: 1.25;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Bottom Foreground: Squid Games Element Group (Piggy bank, guard on rope, dalgona, ddakji) */
.squid-group-wrapper {
  position: relative;
  width: 100%;
  margin-top: -3px;
  /* Seamless overlap so board and stick are together with zero gap across all devices */
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
  will-change: transform, opacity;
}

.squid-group-wrapper.revealed,
.squid-card-wrapper.revealed~.squid-group-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.squid-element-group {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 -4px 18px rgba(0, 0, 0, 0.25));
  will-change: transform;
}

@media (max-height: 650px) {
  .squid-scene-stack {
    width: min(85%, calc((100dvh - 16px) * 0.559), 290px);
  }
}

/* ==========================================================================
   SECTION: RED CARPET ROMANCE (Sangeet Ceremony)
   ========================================================================== */
.section-redcarpet {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  max-height: 880px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #0A0203;
}

/* Layer 1 (z-0): Red Carpet Runway Stage Background */
.rc-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  z-index: 1;
}

/* Layer 2 (z-10): Glowing Pink Radial Spotlight Heart Behind Couple */
.rc-heart-spotlight {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 225px;
  max-width: 58%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  filter: drop-shadow(0 0 35px rgba(255, 140, 175, 0.8));
  animation: rcHeartPulse 3.6s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes rcHeartPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 25px rgba(255, 120, 165, 0.75)) drop-shadow(0 0 45px rgba(255, 70, 125, 0.45));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 0 42px rgba(255, 140, 185, 0.95)) drop-shadow(0 0 65px rgba(255, 90, 150, 0.7));
  }
}

.rc-heart-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Layer 3 (z-15): Dancing Couple Silhouette on Red Carpet Stairs (Slow Romantic Dance) */
.rc-couple-wrapper,
.sangeet-couple {
  position: absolute;
  top: 36%;
  left: calc(50% + 18px);
  transform: translateX(-50%);
  width: 215px;
  max-width: 54%;
  pointer-events: none;
  z-index: 15;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.85));
  animation: rcCoupleSlowDance 4.8s ease-in-out infinite;
  transform-origin: 50% 90%;
  will-change: transform;
}

@keyframes rcCoupleSlowDance {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateX(-50%) translateY(-5px) rotate(1.4deg);
  }
}

.rc-couple-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Layer 4: Vintage Marquee Lightbulb Header Frame (Above Curtains) */
.rc-marquee-container {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  max-width: 335px;
  z-index: 45;
  pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.75));
  animation: rcMarqueeFloat 4s ease-in-out infinite;
  will-change: transform;
}

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

.rc-marquee-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlaid Text Strictly Constrained Inside Marquee */
.rc-marquee-text-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

.rc-marquee-line-1 {
  font-family: var(--font-event-title);
  font-size: clamp(15px, 4.4vw, 19px);
  font-weight: 800;
  color: #FFB800;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.8),
    0 0 20px rgba(255, 140, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.9);
  animation: rcTextGlow1 3s ease-in-out infinite alternate;
}

.rc-marquee-line-2 {
  font-family: var(--font-event-title);
  font-size: clamp(19px, 5.6vw, 24px);
  font-weight: 800;
  color: #FFC72C;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(255, 199, 44, 0.85),
    0 0 24px rgba(255, 140, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.9);
  animation: rcTextGlow2 3s ease-in-out infinite alternate 1.5s;
}

@keyframes rcTextGlow1 {
  0% {
    text-shadow: 0 0 8px rgba(255, 184, 0, 0.7), 0 0 16px rgba(255, 140, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9);
  }
  100% {
    text-shadow: 0 0 14px rgba(255, 210, 50, 0.95), 0 0 26px rgba(255, 160, 20, 0.75), 0 2px 4px rgba(0, 0, 0, 0.9);
  }
}

@keyframes rcTextGlow2 {
  0% {
    text-shadow: 0 0 10px rgba(255, 199, 44, 0.75), 0 0 20px rgba(255, 140, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.9);
  }
  100% {
    text-shadow: 0 0 16px rgba(255, 220, 80, 1), 0 0 30px rgba(255, 165, 30, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
  }
}

/* Layer 5 (z-30 & z-35): 2-Stage Progressive Reveal Gloved Hands */
.rc-hand {
  position: absolute;
  pointer-events: auto;
  will-change: transform, opacity;
}

.rc-hand-inner {
  position: relative;
  width: 100%;
  will-change: transform;
}

.rc-hand-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Hand 1 (Initial Offscreen State): Bottom-left envelope (Inward clearance to prevent curtain clipping) */
.rc-hand-envelope {
  position: absolute;
  z-index: 30;
  bottom: 10%;
  left: 6%;
  width: 55%;
  max-width: 240px;
  transform: translate(-60px, 120%) rotate(-10deg) translateZ(0);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

/* Hand 1 (Scroll Trigger 1 Active State) */
.section-redcarpet.stage-1 .rc-hand-envelope,
.section-redcarpet.stage-2 .rc-hand-envelope,
.section-redcarpet.state-2 .rc-hand-envelope,
.section-redcarpet.state-3 .rc-hand-envelope,
.rc-hand-envelope.revealed {
  transform: translate(0, 0) rotate(0deg) translateZ(0);
  opacity: 1;
  pointer-events: auto;
}

.rc-hand-envelope.revealed .rc-hand-inner {
  animation: rcHandFloatLeft 4s ease-in-out infinite alternate;
}

@keyframes rcHandFloatLeft {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* Hand 2 (Initial Offscreen State): Bottom-right lace SANGEET card (Inward clearance to prevent curtain clipping) */
.rc-hand-card {
  position: absolute;
  z-index: 35;
  bottom: -2%;
  right: 6%;
  width: 58%;
  max-width: 255px;
  transform: translate(60px, 120%) rotate(10deg) translateZ(0);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.75));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

/* Hand 2 (Scroll Trigger 2 Active State) */
.section-redcarpet.stage-2 .rc-hand-card,
.section-redcarpet.state-3 .rc-hand-card,
.rc-hand-card.revealed {
  transform: translate(0, 0) rotate(0deg) translateZ(0);
  opacity: 1;
  pointer-events: auto;
}

.rc-hand-card.revealed .rc-hand-inner {
  animation: rcHandFloatRight 4s ease-in-out infinite alternate 0.6s;
}

@keyframes rcHandFloatRight {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-5px) rotate(1deg);
  }
}

/* Overlaid Typography Inside Lace Card Sheet Area (Constrained to Beige Parchment) */
.rc-card-details-overlay {
  position: absolute;
  top: 22%;
  left: 32.5%;
  transform: translate(-50%, -50%);
  width: 38%;
  max-width: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  box-sizing: border-box;
}

.rc-card-title {
  font-family: var(--font-event-title);
  font-size: clamp(9px, 2.4vw, 11px);
  font-weight: 800;
  color: #8A2424;
  letter-spacing: 0.8px;
  line-height: 1.25;
  margin: 0 0 3px 0;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.rc-card-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
}

.rc-card-time {
  font-family: 'Playfair Display', 'Cinzel', serif;
  font-size: clamp(11.5px, 2.9vw, 13.5px);
  font-weight: 700;
  color: #B26A20;
  line-height: 1.15;
}

.rc-card-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(8px, 2vw, 9.5px);
  font-weight: 600;
  color: #B26A20;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rc-card-venue-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.rc-card-venue-1,
.rc-card-venue-2 {
  font-family: 'Cinzel', 'Montserrat', serif;
  font-size: clamp(8.5px, 2.2vw, 10px);
  font-weight: 700;
  color: #B26A20;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
}

/* Layer 6 (z-40): Theater Red Draped Velvet Curtains Frame */
.rc-curtains-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 40;
}

/* Soft Backdrop Dim Veil for Stage 1 & Stage 2 */
.rc-backdrop-dim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.section-redcarpet.stage-1 .rc-backdrop-dim,
.section-redcarpet.stage-2 .rc-backdrop-dim,
.section-redcarpet.state-2 .rc-backdrop-dim,
.section-redcarpet.state-3 .rc-backdrop-dim {
  opacity: 1;
}

/* Floating Music Note Trails */
.rc-music-notes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
  overflow: hidden;
}

.rc-note {
  position: absolute;
  color: #FFE680;
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.85), 0 0 18px rgba(255, 105, 180, 0.65);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  animation: rcNoteFloat var(--note-dur, 5s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform, opacity;
}

@keyframes rcNoteFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.6) rotate(0deg);
  }
  15% {
    opacity: 0.9;
    transform: translateY(-20px) translateX(6px) scale(1) rotate(6deg);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-90px) translateX(-8px) scale(1.05) rotate(-8deg);
  }
  80% {
    opacity: 0.75;
    transform: translateY(-160px) translateX(10px) scale(0.95) rotate(10deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-230px) translateX(-4px) scale(0.8) rotate(-5deg);
  }
}

/* ==========================================================================
   SECTION 5 - VRINDAVAN UNPLUGGED (Indian Bhajan Jamming Concert)
   ========================================================================== */
.section-vrindavan {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  height: 100vh;
  height: 100dvh;
  min-height: 680px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #f7f1e7;
}

/* Direct Soft Vrindavan Background Image Artwork */
.vrindavan-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  z-index: 1;
  transform: scale(1.02);
  transform-origin: center center;
}

/* Bell Rigging & Hanging Chain (Centered in upper area on top of background) */
.bell-hanging-rig {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 10;
  pointer-events: auto;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bell-hanging-rig.faded {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px) scale(0.95);
}

.bell-chain-link {
  width: 5px;
  height: 80px;
  background: repeating-linear-gradient(to bottom,
      #FCE182 0px,
      #DEB052 8px,
      #885718 16px,
      #4B2A04 20px);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  position: relative;
}

.bell-chain-link::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border: 3px solid #DEB052;
  border-radius: 50%;
  box-sizing: border-box;
}

/* Temple Bell Wrapper & Hit Area */
.temple-bell-wrapper {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transform-origin: 50% 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -6px;
  filter: drop-shadow(0 10px 22px rgba(110, 60, 10, 0.35));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.temple-bell-wrapper:hover {
  transform: scale(1.03);
}

/* Idle subtle swing animation */
@keyframes bellIdleSwing {
  0% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(-3deg);
  }
}

.temple-bell-wrapper.idle-swing {
  animation: bellIdleSwing 3.6s ease-in-out infinite;
}

/* Natural decaying swing animation: templeBellRing */
@keyframes templeBellRing {
  0% {
    transform: rotate(0deg) scale(1.02);
  }

  12% {
    transform: rotate(18deg) scale(1.04);
  }

  24% {
    transform: rotate(-16deg) scale(1.04);
  }

  36% {
    transform: rotate(13deg) scale(1.02);
  }

  48% {
    transform: rotate(-10deg) scale(1.01);
  }

  62% {
    transform: rotate(6deg) scale(1);
  }

  78% {
    transform: rotate(-3deg) scale(1);
  }

  90% {
    transform: rotate(1deg) scale(1);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.temple-bell-wrapper.bell-ringing {
  animation: templeBellRing 1.1s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.temple-bell-svg {
  width: 140px;
  height: auto;
  display: block;
  overflow: visible;
}

.bell-ring-glow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Aesthetic 'Tap the bell' Interactive Prompt */
.bell-tap-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 18px;
  background: rgba(255, 252, 245, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(218, 165, 32, 0.55);
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(110, 60, 10, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: promptGlowFloat 2.8s ease-in-out infinite;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: auto;
}

.bell-tap-prompt:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 250, 0.96);
  box-shadow: 0 6px 22px rgba(138, 90, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.bell-prompt-text {
  font-family: 'Cinzel', 'TranscendSemibold', 'Montserrat', serif;
  font-size: clamp(11.5px, 3.2vw, 13px);
  font-weight: 700;
  color: #7A4B0E;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.bell-prompt-sparkle {
  font-size: 11px;
  color: #D4AF37;
  display: inline-block;
  animation: sparkleRotate 3.2s ease-in-out infinite alternate;
}

@keyframes promptGlowFloat {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(110, 60, 10, 0.12), 0 0 0 0 rgba(218, 165, 32, 0.2);
  }

  50% {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(110, 60, 10, 0.18), 0 0 10px 2px rgba(218, 165, 32, 0.25);
  }
}

@keyframes sparkleRotate {
  0% {
    transform: scale(0.85) rotate(-10deg);
    opacity: 0.75;
  }

  100% {
    transform: scale(1.15) rotate(15deg);
    opacity: 1;
  }
}

/* Centered Event Details Text Overlay (Positioned in open parchment area) */
.vrindavan-content-overlay {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

/* Sequential Fade-and-Slide Up Reveal */
.vrindavan-text-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.section-vrindavan.revealed .vrindavan-item-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.section-vrindavan.revealed .vrindavan-item-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.section-vrindavan.revealed .vrindavan-item-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.section-vrindavan.revealed .vrindavan-item-4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.75s;
}

.section-vrindavan.revealed .vrindavan-item-5 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.95s;
}

/* Item 1: Date */
.vrindavan-date-block {
  margin-bottom: 8px;
}

.vrindavan-date-text {
  font-family: 'TranscendSemibold', 'Transcend-Semibold', 'Transcend', 'Cinzel', 'Montserrat', serif, sans-serif;
  color: #366520;
  font-size: clamp(16px, 4.4vw, 21px);
  font-weight: 600;
  letter-spacing: 0px;
  text-align: center;
  text-transform: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Item 2: Main Title */
.vrindavan-title {
  font-family: var(--font-event-title);
  color: #CB710E;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Item 3: Subtitle */
.vrindavan-subtitle {
  font-family: 'Gabriola', 'Cormorant Garamond', 'Alex Brush', 'Playfair Display', cursive, serif;
  color: #CB710E;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: 0px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Item 4: Time */
.vrindavan-time-block {
  margin-bottom: 4px;
}

.vrindavan-time {
  font-family: 'TranscendSemibold', 'Transcend-Semibold', 'Transcend', 'Montserrat', sans-serif;
  color: #4B7339;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 600;
  letter-spacing: 0px;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Item 5: Venue */
.vrindavan-venue-block {
  margin-top: 0;
}

.vrindavan-venue {
  font-family: 'TranscendSemibold', 'Transcend-Semibold', 'Transcend', 'Montserrat', sans-serif;
  color: #4B7339;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 600;
  letter-spacing: 0px;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Flower Shower Particle Layer */
.vrindavan-flower-shower {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}

.vrindavan-petal {
  position: absolute;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  will-change: transform, opacity;
  transform: translateZ(0);
  animation: fallFlowerPetal var(--fall-dur, 4s) linear forwards;
}

@keyframes fallFlowerPetal {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.6) translateZ(0);
    opacity: 0;
  }

  15% {
    opacity: 1;
    transform: translate3d(calc(var(--sway-x) * 0.3), 15vh, 0) rotate(60deg) scale(1) translateZ(0);
  }

  50% {
    opacity: 0.95;
    transform: translate3d(calc(var(--sway-x) * -0.5), 50vh, 0) rotate(180deg) scale(1.05) translateZ(0);
  }

  85% {
    opacity: 0.85;
    transform: translate3d(var(--sway-x), 85vh, 0) rotate(320deg) scale(0.95) translateZ(0);
  }

  100% {
    transform: translate3d(calc(var(--sway-x) * 1.2), 105vh, 0) rotate(var(--rot-end, 480deg)) scale(0.7) translateZ(0);
    opacity: 0;
  }
}

/* ==========================================================================
   SECTION 6 - BARAAT ROYALE (Wedding Procession, Varmala & Reception)
   ========================================================================== */
.section-baraat {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 820px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background-color: #F8F5EE;
  padding: 68px 0 54px 0;
}

/* Background Scenic Layer (Palace, Pink Velvet Curtains, Peonies, Carriage) */
.baraat-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.baraat-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Golden Chandelier (Top Center) */
.baraat-chandelier-wrapper {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  width: 21%;
  max-width: 84px;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.baraat-chandelier-wrapper.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.baraat-chandelier-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(160, 100, 20, 0.32));
  animation: baraatChandelierSway 4.8s ease-in-out infinite alternate;
  transform-origin: 50% 0%;
}

@keyframes baraatChandelierSway {
  0% {
    transform: rotate(-1.5deg);
  }

  100% {
    transform: rotate(1.5deg);
  }
}

.chandelier-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95px;
  height: 95px;
  background: radial-gradient(circle, rgba(255, 230, 150, 0.35) 0%, rgba(255, 215, 100, 0.1) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  animation: chandelierGlowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes chandelierGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

/* Central Pink Scalloped Stamp Frame */
.baraat-stamp-frame {
  position: relative;
  z-index: 10;
  width: 86%;
  max-width: 345px;
  min-height: 480px;
  height: clamp(480px, 64vh, 525px);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.16));
}

.baraat-stamp-frame.visible {
  opacity: 1;
  transform: scale(1);
}

.baraat-frame-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

/* Inner Content Layout Inside Scalloped White Stamp */
.baraat-inner-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 28px 14px 20px 14px;
  box-sizing: border-box;
  text-align: center;
  overflow: visible;
}

/* Date Header ("DEC | 12 | 2026") */
.baraat-date-header {
  margin: 0;
}

.baraat-date-text {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(13.5px, 3.8vw, 16px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #2E5C3B;
  text-transform: uppercase;
  display: inline-block;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Event Blocks (Baraat Royale, Varmala & Vows, Hearts & Hellos) */
.baraat-event-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
  margin: 0;
}

.baraat-title {
  font-family: var(--font-event-title);
  font-size: clamp(15.5px, 4.2vw, 18.5px);
  font-weight: 700;
  color: #9E3668;
  margin: 0 0 1px 0;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.baraat-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(16.5px, 4.5vw, 19.5px);
  font-weight: 600;
  color: #B56E22;
  margin: 0 0 2px 0;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.baraat-time,
.baraat-venue {
  font-family: 'Montserrat', 'Cinzel', sans-serif;
  font-size: clamp(11.5px, 3.1vw, 13px);
  font-weight: 700;
  color: #2E5C3B;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
}

/* Gold Flourish Divider */
.baraat-divider-flourish {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 82px;
  margin: 0;
}

.baraat-flourish-img {
  width: 100%;
  max-height: 18px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   Miniature Inset Stamp Cards Around the Central Stamp
   -------------------------------------------------------------------------- */
.baraat-stamp-inset {
  position: absolute;
  z-index: 15;
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  will-change: transform, opacity;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.baraat-stamp-inset .stamp-card-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.24));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.baraat-stamp-inset:hover .stamp-card-img,
.baraat-stamp-inset.tapped .stamp-card-img {
  filter: drop-shadow(0 10px 22px rgba(158, 54, 104, 0.35));
}

/* Stamp 1: Mid-Left (Varmala Ceremony) */
.baraat-stamp-mid-left,
.baraat-stamp-top-left {
  top: 38%;
  left: -10%;
  width: 27%;
  max-width: 92px;
  transform: translate(-25px, -15px) rotate(-6deg);
}

.baraat-stamp-mid-left.visible,
.baraat-stamp-top-left.visible {
  opacity: 1;
  transform: translate(0, 0) rotate(-2deg);
}

.baraat-stamp-mid-left:hover,
.baraat-stamp-mid-left.tapped,
.baraat-stamp-top-left:hover,
.baraat-stamp-top-left.tapped {
  transform: translate(0, -4px) rotate(-2deg) scale(1.07);
}

/* Stamp 2: Top-Right (Dhruvv Ki Baraat DJ Stage) */
.baraat-stamp-top-right {
  top: 13%;
  right: -9%;
  width: 28%;
  max-width: 96px;
  transform: translate(25px, -15px) rotate(8deg);
}

.baraat-stamp-top-right.visible {
  opacity: 1;
  transform: translate(0, 0) rotate(-3deg);
}

.baraat-stamp-top-right:hover,
.baraat-stamp-top-right.tapped {
  transform: translate(0, -4px) rotate(-3deg) scale(1.07);
}

/* Stamp 3: Bottom-Right (Candlelit Reception Dining Table) */
.baraat-stamp-bottom-right {
  bottom: 6%;
  right: -9%;
  width: 28%;
  max-width: 98px;
  transform: translate(25px, 25px) rotate(14deg);
}

.baraat-stamp-bottom-right.visible {
  opacity: 1;
  transform: translate(0, 0) rotate(6deg);
}

.baraat-stamp-bottom-right:hover,
.baraat-stamp-bottom-right.tapped {
  transform: translate(0, -4px) rotate(6deg) scale(1.07);
}

/* ==========================================================================
   SECTION 7 - AN ETERNAL BEGINNING (Sacred Pheras Ceremony)
   ========================================================================== */
.section-eternal {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  height: 100vh;
  height: 100dvh;
  min-height: 680px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  background-color: #060910;
}

/* Base Night Sky & Wedding Mandap Background Layer */
.eternal-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.eternal-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* Top Hanging Toran Canopy Layer (Layer 5.png) */
.eternal-toran-layer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  width: 100%;
  max-width: var(--mobile-max-width);
  z-index: 12;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.eternal-toran-layer.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.eternal-toran-inner {
  position: relative;
  width: 100%;
  transform-origin: 50% 0%;
  animation: eternalToranBreeze 6.2s ease-in-out infinite;
  will-change: transform;
}

.eternal-toran-inner.toran-gust {
  animation: toranWindGust 1.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.eternal-toran-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

/* Organic Hanging Canopy Breeze Physics */
@keyframes eternalToranBreeze {
  0% {
    transform: rotate(0deg) scaleY(1);
  }

  25% {
    transform: rotate(-1.3deg) skewX(-0.6deg) scaleY(1.008);
  }

  50% {
    transform: rotate(0.1deg) scaleY(1);
  }

  75% {
    transform: rotate(1.3deg) skewX(0.6deg) scaleY(1.008);
  }

  100% {
    transform: rotate(0deg) scaleY(1);
  }
}

/* Interactive Wind Gust on Tap */
@keyframes toranWindGust {
  0% {
    transform: rotate(0deg) scale(1);
  }

  20% {
    transform: rotate(-3.5deg) scaleY(1.025);
  }

  40% {
    transform: rotate(3deg) scaleY(0.99);
  }

  60% {
    transform: rotate(-2deg) scaleY(1.015);
  }

  80% {
    transform: rotate(1deg) scaleY(1);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* Moonlight Shimmer Gleam Reflection Sweep across Toran Tassels */
.toran-shimmer-gleam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
      transparent 0%,
      transparent 40%,
      rgba(255, 235, 175, 0.35) 50%,
      rgba(255, 255, 255, 0.5) 53%,
      rgba(255, 235, 175, 0.35) 56%,
      transparent 66%,
      transparent 100%);
  background-size: 250% 100%;
  background-position: -150% 0;
  mix-blend-mode: overlay;
  animation: toranShimmerSweep 6.5s ease-in-out infinite;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, transparent 100%);
}

@keyframes toranShimmerSweep {

  0%,
  40% {
    background-position: -150% 0;
  }

  70%,
  100% {
    background-position: 150% 0;
  }
}

/* Drifting Festive Flower Petals Falling from Toran */
.toran-petals-emitter {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: none;
  overflow: visible;
}

.toran-petals-emitter .petal {
  position: absolute;
  width: 7px;
  height: 9px;
  background: linear-gradient(135deg, #F8A5C2 0%, #E84393 100%);
  border-radius: 60% 0 60% 0;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: petalFall 6.5s linear infinite;
}

.petal-1 {
  left: 15%;
  animation-delay: 0.5s;
  animation-duration: 6.8s;
  transform: scale(0.85);
}

.petal-2 {
  left: 38%;
  animation-delay: 2.2s;
  animation-duration: 7.4s;
  transform: scale(1.1);
  background: linear-gradient(135deg, #FFD57E 0%, #FFA801 100%);
}

.petal-3 {
  left: 62%;
  animation-delay: 4s;
  animation-duration: 6.2s;
  transform: scale(0.9);
}

.petal-4 {
  left: 84%;
  animation-delay: 1.4s;
  animation-duration: 7.8s;
  transform: scale(1);
  background: linear-gradient(135deg, #F8A5C2 0%, #E84393 100%);
}

.petal-5 {
  left: 48%;
  animation-delay: 5.2s;
  animation-duration: 6.5s;
  transform: scale(0.75);
  background: linear-gradient(135deg, #FFD57E 0%, #FF9FF3 100%);
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.7);
  }

  15% {
    opacity: 0.85;
  }

  85% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateY(320px) translateX(30px) rotate(360deg) scale(0.95);
  }
}

/* Sacred Holy Fire (Agni Kund) Warm Glow Effect */
.holy-fire-glow {
  position: absolute;
  bottom: 14.8%;
  left: 49.2%;
  transform: translate(-50%, 50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle,
      rgba(255, 185, 60, 0.9) 0%,
      rgba(255, 120, 20, 0.5) 40%,
      rgba(255, 70, 10, 0.2) 65%,
      transparent 80%);
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  animation: agniFireFlicker 2s ease-in-out infinite alternate;
}

.holy-fire-glow.visible {
  opacity: 1;
}

@keyframes agniFireFlicker {
  0% {
    transform: translate(-50%, 50%) scale(0.85);
    opacity: 0.7;
    filter: drop-shadow(0 0 8px rgba(255, 170, 40, 0.8));
  }

  50% {
    transform: translate(-50%, 50%) scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(255, 140, 20, 0.95));
  }

  100% {
    transform: translate(-50%, 50%) scale(0.92);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(255, 170, 40, 0.85));
  }
}

/* Twinkling Starlight Particles */
.eternal-stars-overlay {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 40%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.eternal-stars-overlay .star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #FFF9E6;
  border-radius: 50%;
  box-shadow: 0 0 6px #FFE8A3;
  animation: starTwinkle 3s ease-in-out infinite alternate;
}

.star-1 {
  top: 20%;
  left: 18%;
  animation-delay: 0.2s;
}

.star-2 {
  top: 35%;
  left: 82%;
  animation-delay: 1.1s;
}

.star-3 {
  top: 55%;
  left: 14%;
  animation-delay: 0.7s;
}

.star-4 {
  top: 15%;
  left: 75%;
  animation-delay: 1.8s;
}

.star-5 {
  top: 70%;
  left: 86%;
  animation-delay: 0.4s;
}

.star-6 {
  top: 40%;
  left: 28%;
  animation-delay: 1.4s;
}

.star-7 {
  top: 25%;
  left: 52%;
  animation-delay: 2.1s;
}

.star-8 {
  top: 65%;
  left: 68%;
  animation-delay: 0.9s;
}

@keyframes starTwinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.7);
  }

  100% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* Celestial Event Details Typography Overlay */
.eternal-content-wrapper {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 340px;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

/* Sequential Staggered Text Reveal */
.eternal-text-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.section-eternal.revealed .eternal-item-1,
.eternal-content-wrapper.revealed .eternal-item-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.section-eternal.revealed .eternal-item-2,
.eternal-content-wrapper.revealed .eternal-item-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.section-eternal.revealed .eternal-item-3,
.eternal-content-wrapper.revealed .eternal-item-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.section-eternal.revealed .eternal-item-4,
.eternal-content-wrapper.revealed .eternal-item-4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.75s;
}

.section-eternal.revealed .eternal-item-5,
.eternal-content-wrapper.revealed .eternal-item-5 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.95s;
}

/* Item 1: Date Header ("DEC | 12 | 2026") */
.eternal-date-block {
  margin-bottom: 4px;
}

.eternal-date-text {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 600;
  letter-spacing: 3.5px;
  color: #E5BE72;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(229, 190, 114, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.9);
  display: inline-block;
}

/* Item 2: Ceremony Title */
.eternal-title {
  font-family: var(--font-event-title);
  font-size: clamp(20px, 5.4vw, 25px);
  font-weight: 700;
  color: #FA85AA;
  letter-spacing: 1.5px;
  margin: 10px 0 6px 0;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(250, 133, 170, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.95);
}

/* Item 3: Poetic Vedic Tagline */
.eternal-tagline {
  font-family: 'Cormorant Garamond', 'Alex Brush', serif;
  font-style: italic;
  font-size: clamp(16.5px, 4.5vw, 19.5px);
  color: #DFC185;
  line-height: 1.25;
  margin: 0 0 16px 0;
  text-shadow: 0 0 10px rgba(223, 193, 133, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Item 4 & 5: Time & Venue */
.eternal-time-block {
  margin-bottom: 4px;
}

.eternal-venue-block {
  margin-top: 0;
}

.eternal-time,
.eternal-venue {
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 700;
  color: #FA85AA;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.35;
  text-shadow: 0 0 12px rgba(250, 133, 170, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

/* Rich Drifting Rose Petal Shower Layer */
.eternal-petal-shower {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 12;
}

.eternal-rose-petal {
  position: absolute;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: fallRosePetal var(--fall-dur, 5s) linear forwards;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes fallRosePetal {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.6) translateZ(0);
    opacity: 0;
  }

  15% {
    opacity: 0.95;
    transform: translate3d(calc(var(--sway-x) * 0.35), 15vh, 0) rotate(60deg) scale(1) translateZ(0);
  }

  50% {
    opacity: 0.9;
    transform: translate3d(calc(var(--sway-x) * -0.5), 50vh, 0) rotate(180deg) scale(1.05) translateZ(0);
  }

  85% {
    opacity: 0.8;
    transform: translate3d(var(--sway-x), 85vh, 0) rotate(320deg) scale(0.95) translateZ(0);
  }

  100% {
    transform: translate3d(calc(var(--sway-x) * 1.2), 108vh, 0) rotate(var(--rot-end, 520deg)) scale(0.7) translateZ(0);
    opacity: 0;
  }
}

/* ==========================================================================
   SECTION 8 - WEDDING VENUE & LOCATION (Google Maps Navigation)
   ========================================================================== */
.section-location {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #dceaf7;
  background-image: url('../images/Section1/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 20px 45px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.section-location.visible {
  opacity: 1;
  transform: translateY(0);
}

.location-inner-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

/* Header Typography */
.location-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-kicker {
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  font-size: clamp(12px, 3.2vw, 13.5px);
  font-weight: 700;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: #1c527e;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.venue-name {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(21px, 5.8vw, 26px);
  font-weight: 700;
  color: #0b2d4c;
  letter-spacing: 1px;
  margin: 4px 0 4px 0;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.venue-city {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12.5px, 3.4vw, 14px);
  font-weight: 600;
  color: #2f5a80;
  letter-spacing: 1.2px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Gilded Map Frame */
.map-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(28, 82, 126, 0.3);
  box-shadow: 0 14px 34px rgba(18, 52, 86, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.06);
  background: #e8f3fc;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: contrast(1.05) saturate(1.1);
}

/* Interactive Tap to Open Layer */
.map-tap-layer {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 40, 71, 0.75) 100%);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.map-action-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(28, 82, 126, 0.4);
  color: #0b2d4c;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(13, 40, 71, 0.25),
    0 0 10px rgba(255, 255, 255, 0.6);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.25s ease,
    border-color 0.25s ease;
}

.map-tap-layer:hover .map-action-pill,
.map-tap-layer:focus .map-action-pill {
  transform: translateY(-2px) scale(1.03);
  background: #ffffff;
  border-color: #0b2d4c;
  box-shadow: 0 12px 28px rgba(13, 40, 71, 0.35);
}

.map-tap-layer:active .map-action-pill {
  transform: scale(0.97);
}

.map-pin-icon {
  width: 16px;
  height: 16px;
  stroke: #1c527e;
  flex-shrink: 0;
}

.pill-label {
  display: inline-block;
  white-space: nowrap;
}

/* Footer Blessing Note */
.location-footer-note {
  margin-top: 22px;
}

.footer-blessing {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
  color: #1c527e;
  letter-spacing: 0.3px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SECTION 9 - AWAITING YOUR PRESENCE (Family Names & RSVP)
   ========================================================================== */
.section-presence {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 900px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  background-color: #F8E8DC;
  padding-bottom: 70px;
}

/* Background Scenic Sunset Cloudscape */
.presence-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.presence-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Top Hanging White Wisteria Floral Canopy (Layer 8 copy.png) */
.presence-canopy-layer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mobile-max-width);
  z-index: 8;
  pointer-events: none;
}

.presence-canopy-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
  animation: presenceCanopySway 6s ease-in-out infinite alternate;
  transform-origin: 50% 0%;
}

@keyframes presenceCanopySway {
  0% {
    transform: rotate(-0.6deg);
  }

  100% {
    transform: rotate(0.6deg);
  }
}

/* Requestors Top Header */
.presence-top-header {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 12;
  margin-bottom: clamp(16px, 2.2vh, 22px);
}

.presence-requestors-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 700;
  color: #8E214D;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Airplane & "Awaiting your Presence" Banner (Flies from Left -> Sticks on Middle) */
.presence-plane-wrapper {
  position: absolute;
  top: clamp(68px, 8.8vh, 88px);
  left: 50%;
  width: 78%;
  max-width: 320px;
  z-index: 15;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transform: translateX(-150vw) rotate(-4deg);
  opacity: 0;
  transition: transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease;
  will-change: transform, opacity;
}

.presence-plane-wrapper.fly-in {
  transform: translateX(-50%) rotate(0deg);
  opacity: 1;
}

.presence-plane-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
  animation: planeCruisingFlight 4.5s ease-in-out infinite alternate;
  transform-origin: 80% 50%;
}

@keyframes planeCruisingFlight {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(0.8deg);
  }

  100% {
    transform: translateY(2px) rotate(-0.6deg);
  }
}

/* Interactive Barrel Roll / Flight Wobble on Tap */
.presence-plane-wrapper.tapped-wobble .presence-plane-img {
  animation: planeTapWobble 0.85s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes planeTapWobble {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(-8px) rotate(-5deg) scale(1.04);
  }

  50% {
    transform: translateY(4px) rotate(4deg) scale(1.02);
  }

  75% {
    transform: translateY(-2px) rotate(-2deg) scale(1.01);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* Main Content Wrapper (Family Names, Blessings) */
.presence-content-wrapper {
  position: absolute;
  top: clamp(146px, 18.5vh, 172px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 96%;
  max-width: 425px;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  transition: opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.presence-content-wrapper.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 50/50 Two-Column Family Names Grid */
.presence-family-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 425px;
  margin-bottom: clamp(14px, 1.8vh, 20px);
  gap: clamp(12px, 3.2vw, 20px);
  padding: 0 6px;
  box-sizing: border-box;
}

/* Each family column: 50% width */
.family-column {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 50%;
  box-sizing: border-box;
}

/* Left Column (Somani's): Right-aligned text */
.family-col-somanis {
  align-items: flex-end;
  text-align: right;
}

.family-col-somanis .family-section-label {
  text-align: right;
  padding-right: 2px;
}

.family-col-somanis .family-member-name {
  text-align: right;
}

/* Right Column (Sarda's): Left-aligned text */
.family-col-sardas {
  align-items: flex-start;
  text-align: left;
}

.family-col-sardas .family-section-label {
  text-align: left;
  padding-left: 2px;
}

.family-col-sardas .family-member-name {
  text-align: left;
}

/* Family section label ("SOMANI'S" / "SARDA'S") */
.family-section-label {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 4.1vw, 18.5px);
  font-weight: 700;
  color: #2E5E35;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: clamp(8px, 1.2vh, 12px);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  display: block;
  width: 100%;
}

/* Decorative divider — hidden in side-by-side layout */
.family-section-divider {
  display: none;
}

/* Family member names list */
.family-member-name {
  font-family: 'Cormorant Garamond', 'Philosopher', Georgia, serif;
  font-style: italic;
  font-size: clamp(11.5px, 3vw, 13.5px);
  font-weight: 600;
  color: #943859;
  line-height: 1.35;
  white-space: normal;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
  display: block;
  width: 100%;
}

.font-family-closing {
  font-size: clamp(11.5px, 3vw, 13.5px);
  font-weight: 700;
  color: #943859;
  margin-top: 1px;
}

/* Closing Blessing Note */
.presence-closing-blessing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  margin-top: clamp(16px, 2.2vh, 24px);
}

.closing-text-line {
  font-family: 'Cinzel', 'Montserrat', serif;
  font-size: clamp(12px, 3.2vw, 14.5px);
  font-weight: 700;
  color: #2E5E35;
  letter-spacing: 1.8px;
  line-height: 1.45;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   SECTION 10 - RSVP ONLINE FORM (WhatsApp Confirmation)
   ========================================================================== */
.section-rsvp {
  position: relative;
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 580px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #dceaf7;
  background-image: url('../images/Section1/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 18px 30px 18px;
}

/* Ambient Radial Glow */
.rsvp-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Luxury Gilded Glass RSVP Card */
.rsvp-card-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(28, 82, 126, 0.35);
  border-radius: 20px;
  padding: 34px 22px 28px 22px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(18, 52, 86, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  box-sizing: border-box;
}

.rsvp-card-container.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header Typography */
.rsvp-header {
  margin-bottom: 20px;
}

.rsvp-kicker {
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #1c527e;
  margin-bottom: 4px;
  font-weight: 700;
  display: block;
}

.rsvp-main-title {
  font-family: 'Pinyon Script', 'Alex Brush', cursive;
  font-weight: 400;
  font-size: clamp(34px, 9.2vw, 42px);
  margin: 0 0 4px;
  color: #0b2d4c;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.rsvp-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14.5px;
  color: #2f5a80;
  margin: 0;
  font-style: italic;
  line-height: 1.35;
}

/* Form Groups & Inputs */
.rsvp-form {
  width: 100%;
}

.rsvp-field-group {
  margin-bottom: 16px;
  text-align: left;
  width: 100%;
}

.rsvp-field-label {
  display: block;
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #1c527e;
  margin-bottom: 6px;
}

.rsvp-input-wrapper {
  position: relative;
  width: 100%;
}

.rsvp-text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #c2d8eb;
  border-radius: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16.5px;
  font-weight: 600;
  background: #FFFFFF;
  color: #0b2d4c;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-text-input:focus {
  border-color: #1c527e;
  box-shadow: 0 0 0 3px rgba(28, 82, 126, 0.15);
}

.rsvp-text-input:disabled {
  background: #eaf1f7;
  color: #8da4b8;
  cursor: not-allowed;
  border-color: #d0e0ed;
}

/* Attendance Options Grid */
.rsvp-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.rsvp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid #c2d8eb;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #0b2d4c;
  background: #FFFFFF;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.rsvp-option:hover {
  border-color: #1c527e;
  background: #f4f8fc;
  transform: translateY(-1px);
}

.rsvp-option.selected {
  background: #e6f0fa;
  border-color: #1c527e;
  box-shadow: 0 4px 12px rgba(28, 82, 126, 0.15);
}

.rsvp-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #8ba8c2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.rsvp-option.selected .rsvp-radio-custom {
  border-color: #1c527e;
}

.rsvp-option.selected .rsvp-radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1c527e;
  display: block;
}

.rsvp-option-text {
  flex: 1;
}

/* Submit Button */
.rsvp-send-btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.rsvp-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.rsvp-send-btn:active {
  transform: scale(0.98);
}

.whatsapp-btn-icon {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

/* Error Notice */
.rsvp-error-notice {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #D32F2F;
  margin-top: 10px;
  margin-bottom: 0;
  display: none;
  text-align: center;
}

.rsvp-error-notice.show {
  display: block;
  animation: errorNoticeShake 0.4s ease;
}

@keyframes errorNoticeShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* Copyright & Website Credits (Centered, Small & Delicate) */
.app-footer-credits {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 24px;
  padding: 4px 12px 10px 12px;
  text-align: center;
  box-sizing: border-box;
}

.credits-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #456d90;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.credits-author {
  font-weight: 700;
  color: #12385c;
  letter-spacing: 0.7px;
}

/* ==========================================================================
   DRIFTING CLOUDS ANIMATION (Section 2 & Section 9)
   ========================================================================== */
.cloud-drift-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  /* Isolate cloud animations into their own compositing layer */
  contain: strict;
  will-change: auto;
}

.cloud-drift-piece {
  position: absolute;
  width: 130px;
  height: 46px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 244, 0.85) 75%, rgba(255, 242, 235, 0.7) 100%);
  border-radius: 50px;
  /* Removed filter:drop-shadow + blur — expensive on animated elements; causes per-frame GPU repaint */
  animation-name: cloudDriftMove;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  pointer-events: none;
  opacity: var(--cloud-opacity, 0.85);
  transform: scale(var(--cloud-scale, 1)) translateZ(0);
}

.cloud-drift-piece::before,
.cloud-drift-piece::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-drift-piece::before {
  width: 58px;
  height: 58px;
  top: -28px;
  left: 14px;
}

.cloud-drift-piece::after {
  width: 48px;
  height: 48px;
  top: -22px;
  left: 60px;
}

/* Cloud Variation: Soft & Dreamy */
.cloud-drift-piece.cloud-type-soft {
  width: 160px;
  height: 52px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 245, 240, 0.65) 100%);
  /* Removed filter:blur — too expensive on animated elements */
}

.cloud-drift-piece.cloud-type-soft::before {
  width: 70px;
  height: 70px;
  top: -34px;
  left: 20px;
}

.cloud-drift-piece.cloud-type-soft::after {
  width: 56px;
  height: 56px;
  top: -26px;
  left: 78px;
}

/* Cloud Variation: Large Cumulus */
.cloud-drift-piece.cloud-type-large {
  width: 190px;
  height: 60px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.75) 85%, transparent 100%);
}

.cloud-drift-piece.cloud-type-large::before {
  width: 82px;
  height: 82px;
  top: -42px;
  left: 24px;
}

.cloud-drift-piece.cloud-type-large::after {
  width: 68px;
  height: 68px;
  top: -32px;
  left: 92px;
}

/* Cloud Variation: Ambient Mist */
.cloud-drift-piece.cloud-type-mist {
  width: 220px;
  height: 38px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 245, 240, 0.4) 70%, transparent 100%);
  /* Removed filter:blur — costly on animated element; use border-radius opacity fade instead */
  border-radius: 60px;
  opacity: 0.55;
}

.cloud-drift-piece.cloud-type-mist::before,
.cloud-drift-piece.cloud-type-mist::after {
  opacity: 0.7;
}

@keyframes cloudDriftMove {
  0% {
    transform: translateX(-220px) scale(var(--cloud-scale, 1));
  }

  100% {
    transform: translateX(120vw) scale(var(--cloud-scale, 1));
  }
}

/* ==========================================================================
   FLOATING CD / VINYL MUSIC CONTROLLER (Bottom-Left Floating Widget)
   ========================================================================== */
.music-controller-wrapper {
  position: fixed;
  bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  left: max(18px, calc(50vw - 215px + 18px));
  top: auto;
  right: auto;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

@media (max-width: 430px) {
  .music-controller-wrapper {
    left: 16px;
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
    top: auto;
    right: auto;
  }
}

.vinyl-disk-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vinyl-disk-btn:hover {
  transform: scale(1.1);
}

.vinyl-disk-btn:active {
  transform: scale(0.94);
}

/* Vinyl Disc Main Body */
.vinyl-disk {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 25%, #111 26%, #333 40%, #1a1a1a 60%, #3a3a3a 80%, #111 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 0 12px rgba(233, 105, 161, 0.4);
  overflow: hidden;
  animation: spinCD 3.5s linear infinite;
  animation-play-state: paused;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  will-change: transform;
}

/* Concentric Vinyl Grooves Layer */
.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
}

/* Metallic Conic Radial Shine */
.vinyl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      rgba(255, 255, 255, 0.15) 0deg,
      transparent 60deg,
      rgba(255, 255, 255, 0.15) 120deg,
      transparent 180deg,
      rgba(255, 255, 255, 0.15) 240deg,
      transparent 300deg,
      rgba(255, 255, 255, 0.15) 360deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Center Hole & Label */
.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #E969A1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.vinyl-label-text {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 5px;
  font-weight: 700;
  color: #B83A74;
  letter-spacing: -0.5px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Center Punch Hole */
.vinyl-center-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111111;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.9);
  z-index: 4;
}

/* Miniature Stylus / Tone Arm */
.vinyl-tonearm {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 20px;
  pointer-events: none;
  z-index: 10;
  transform-origin: top right;
  transform: rotate(-32deg);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vinyl-tonearm::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  border: 1px solid #997B24;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vinyl-tonearm::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 2.5px;
  width: 2px;
  height: 14px;
  background: linear-gradient(to bottom, #D4AF37, #E969A1);
  border-radius: 1px;
  transform: rotate(18deg);
  transform-origin: top center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Initial / Paused State: Subtle Hint Pulse */
.vinyl-disk-btn:not(.playing) .vinyl-disk {
  animation: spinCD 3.5s linear infinite, vinylPulseHint 3s ease-in-out infinite alternate;
  animation-play-state: paused, running;
}

@keyframes vinylPulseHint {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(233, 105, 161, 0.4);
  }

  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 6px rgba(233, 105, 161, 0);
  }

  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(233, 105, 161, 0);
  }
}

/* Playing State */
.vinyl-disk-btn.playing .vinyl-disk {
  animation-play-state: running;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(233, 105, 161, 0.45);
}

.vinyl-disk-btn.playing .vinyl-tonearm {
  transform: rotate(6deg);
}

/* Subtle Mini Wave Equalizer Indicator */
.vinyl-waves {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.vinyl-disk-btn.playing .vinyl-waves {
  opacity: 1;
}

.wave-bar {
  width: 2px;
  background: #E969A1;
  border-radius: 1px;
  height: 3px;
}

.vinyl-disk-btn.playing .wave-bar:nth-child(1) {
  animation: waveBounce 0.9s ease-in-out infinite alternate;
}

.vinyl-disk-btn.playing .wave-bar:nth-child(2) {
  animation: waveBounce 0.9s ease-in-out infinite alternate 0.3s;
}

.vinyl-disk-btn.playing .wave-bar:nth-child(3) {
  animation: waveBounce 0.9s ease-in-out infinite alternate 0.6s;
}

@keyframes waveBounce {
  0% {
    height: 2px;
  }

  100% {
    height: 8px;
  }
}

/* Spinning Vinyl Animation */
@keyframes spinCD {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}