/* ==========================================================================
   REYNSH & AAROHI ROYAL WEDDING INVITATION — MASTER LUXURY STYLES
   Colors: Royal Mountain Blue (#2c4a6f), Regal Gold (#c9953a), Sand / Ivory (#FAF8F5)
   ========================================================================== */

:root {
  --color-mountain-blue: #2c4a6f;
  --color-slate-blue: #3a5a80;
  --color-snow-white: #f4f8fa;
  --color-gold: #c9953a;
  --color-gold-light: #e6c587;
  --color-text: #2c4a6f;
  --color-maroon: #7a1f3d;
  --color-canvas: #FAF8F5;
  --color-accent-gold: #c9953a;
  --font-poppins: 'Poppins', sans-serif;
  --font-playfair: 'Playfair Display', serif;
  --font-cinzel: 'Cinzel', serif;
  --font-cormorant: 'Cormorant Garamond', serif;
  --font-great-vibes: 'Great Vibes', cursive;
}

/* Base Document & Mobile Viewport Hygiene */
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #e8edf2; /* Ambient soft gutter tone for widescreen */
  touch-action: pan-y !important;
  -webkit-text-size-adjust: 100% !important;
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: var(--font-poppins);
  color: var(--color-text);
  background-color: #e8edf2;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Scroll Lock during Preloader & Active Envelope Animation */
html.is-locked,
html.is-locked body {
  overflow: hidden !important;
  overflow-y: hidden !important;
  touch-action: none !important;
  height: 100% !important;
  max-height: 100vh !important;
}

/* Desktop / Tablet 450px Responsive Mobile-Viewport Frame */
#app-viewport {
  max-width: 450px;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  background-color: var(--color-canvas);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 0, 0, 0.04);
  overflow-x: hidden !important;
}

/* Tri-Layer Asset Shield: Anti-Long-Press & Anti-Download Context Menu */
*, *::before, *::after {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  box-sizing: border-box;
}

img, video, canvas, svg, picture, [data-asset] {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important;
}

button, a, input, select, textarea, [role="button"], #loveinvite-sound-btn, #yuvi-sound-btn, .clickable, #countdown-scratch-canvas, .scratch-canvas {
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

#countdown-scratch-canvas, .scratch-canvas {
  touch-action: none !important;
  cursor: crosshair !important;
}

/* ==========================================================================
   THEME-CONGRUENT ABOVE-THE-FOLD PRELOADER SCREEN (#yuvi-preloader)
   ========================================================================== */
#yuvi-preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background-color: #FAF8F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none !important;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  user-select: none;
}

.yuvi-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.yuvi-loader-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(44, 74, 111, 0.16);
  border-top-color: #2c4a6f;
  margin-bottom: 14px;
  animation: yuvi-spin 0.85s linear infinite;
}

@keyframes yuvi-spin {
  to { transform: rotate(360deg); }
}

.yuvi-loader-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #2c4a6f;
  margin: 0;
  text-transform: none;
}

.yuvi-loader-pct {
  font-family: 'Antic Didone', Didot, 'Bodoni MT', Georgia, serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c9953a;
  margin-top: 4px;
}

.yuvi-loader-bar-bg {
  width: 150px;
  height: 1.5px;
  background: rgba(44, 74, 111, 0.14);
  border-radius: 999px;
  margin-top: 13px;
  overflow: hidden;
  position: relative;
}

.yuvi-loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #2c4a6f;
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

/* Warm-Cache Zero-Flash Bypass */
html.is-preloaded #yuvi-preloader,
html.is-preloaded #loveinvite-preloader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   UNIVERSAL THEME-CONGRUENT 38px TRANSLUCENT GLASS SOUND CONTROLLER
   ========================================================================== */
#loveinvite-sound-btn,
#yuvi-sound-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: max(16px, calc((100vw - 450px) / 2 + 16px)) !important;
  z-index: 99990 !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 9999px !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, opacity 0.5s ease, visibility 0.5s !important;
}

@media (max-width: 480px) {
  #loveinvite-sound-btn,
  #yuvi-sound-btn {
    right: 18px !important;
    bottom: 20px !important;
  }
}

#loveinvite-sound-btn:hover,
#yuvi-sound-btn:hover {
  background: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

#loveinvite-sound-btn:active,
#yuvi-sound-btn:active {
  transform: scale(0.92) !important;
}

/* Sound Button Hidden during preloader and envelope */
#loveinvite-sound-btn.is-hidden,
#yuvi-sound-btn.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(0.9) !important;
}

/* Mute Icon (VolumeX) */
.yuvi-mute-icon {
  width: 17px !important;
  height: 17px !important;
  stroke: #2c4a6f !important;
  display: none;
}

#loveinvite-sound-btn.is-muted .yuvi-mute-icon,
#yuvi-sound-btn.is-muted .yuvi-mute-icon {
  display: block;
}

/* Dancing Equalizer Waves (CHALU) */
.yuvi-sound-waves {
  width: 16px !important;
  height: 14px !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5px !important;
}

#loveinvite-sound-btn.is-playing .yuvi-sound-waves,
#yuvi-sound-btn.is-playing .yuvi-sound-waves {
  display: flex !important;
}

.yuvi-wave-bar {
  width: 2px !important;
  height: 14px !important;
  background: #2c4a6f !important;
  border-radius: 999px !important;
  transform-origin: center !important;
}

#loveinvite-sound-btn.is-playing .yuvi-wave-bar:nth-child(1),
#yuvi-sound-btn.is-playing .yuvi-wave-bar:nth-child(1) {
  animation: yuvi-wave-bar-1 0.85s ease-in-out infinite alternate !important;
}
#loveinvite-sound-btn.is-playing .yuvi-wave-bar:nth-child(2),
#yuvi-sound-btn.is-playing .yuvi-wave-bar:nth-child(2) {
  animation: yuvi-wave-bar-2 0.65s ease-in-out infinite alternate !important;
}
#loveinvite-sound-btn.is-playing .yuvi-wave-bar:nth-child(3),
#yuvi-sound-btn.is-playing .yuvi-wave-bar:nth-child(3) {
  animation: yuvi-wave-bar-3 0.95s ease-in-out infinite alternate !important;
}
#loveinvite-sound-btn.is-playing .yuvi-wave-bar:nth-child(4),
#yuvi-sound-btn.is-playing .yuvi-wave-bar:nth-child(4) {
  animation: yuvi-wave-bar-4 0.75s ease-in-out infinite alternate !important;
}

@keyframes yuvi-wave-bar-1 { 0% { transform: scaleY(0.25); } 50% { transform: scaleY(0.85); } 100% { transform: scaleY(0.35); } }
@keyframes yuvi-wave-bar-2 { 0% { transform: scaleY(0.95); } 50% { transform: scaleY(0.30); } 100% { transform: scaleY(1.00); } }
@keyframes yuvi-wave-bar-3 { 0% { transform: scaleY(0.40); } 50% { transform: scaleY(1.00); } 100% { transform: scaleY(0.20); } }
@keyframes yuvi-wave-bar-4 { 0% { transform: scaleY(0.70); } 50% { transform: scaleY(0.20); } 100% { transform: scaleY(0.85); } }

/* ==========================================================================
   INTERACTIVE LUXURY ENVELOPE OPENING OVERLAY (IntroSection)
   ========================================================================== */
.IntroSection-overlay {
  z-index: 1000;
  background-color: #f6f8fc;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 450px !important;
  height: 100vh !important;
  height: 100svh !important;
  display: flex !important;
  overflow: hidden !important;
  touch-action: none !important;
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.3s ease;
}

.IntroSection-overlay.is-dissolving {
  opacity: 0 !important;
  pointer-events: none !important;
}

.IntroSection-vBeam {
  clip-path: polygon(10% 0, 90% 0, 50% 100%);
  opacity: 0.6;
  background: radial-gradient(at top, #3a5a8026 0%, #0000 70%);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  pointer-events: none;
}

.IntroSection-decorativeFlowers {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.IntroSection-flower1,
.IntroSection-flower2 {
  opacity: 0.28;
  background-repeat: no-repeat;
  background-size: contain;
  width: 440px;
  height: 440px;
  position: absolute;
  pointer-events: none;
}

.IntroSection-flower2 {
  background-image: url(/assets/white_floral_corner.png);
  top: -25px;
  right: -25px;
}

.IntroSection-flower1 {
  background-image: url(/assets/white_floral_corner.png);
  bottom: -25px;
  left: -25px;
  transform: rotate(180deg);
}

.IntroSection-envelopeWrapper {
  perspective: 2000px;
  z-index: 10;
  filter: drop-shadow(0 20px 40px rgba(44, 74, 111, 0.2));
  width: 85%;
  max-width: 360px;
  height: 260px;
  position: relative;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.IntroSection-envelopeWrapper.envelope-slide-out {
  transform: translateY(-80px) scale(0.96);
}

.IntroSection-envelope {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  position: relative;
}

.IntroSection-front,
.IntroSection-back {
  border-radius: 4px;
  position: absolute;
  inset: 0;
}

.IntroSection-front {
  z-index: 5;
  background: linear-gradient(145deg, #fff 0%, #eef4f9 100%);
  border: 1.5px solid rgba(58, 90, 128, 0.35);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  transition: opacity 0.8s, transform 0.8s;
  display: flex;
  box-shadow: inset 0 0 20px rgba(58, 90, 128, 0.08);
}

.IntroSection-front.front-fade {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.IntroSection-back {
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(201, 149, 58, 0.2);
  box-shadow: inset 0 0 60px rgba(58, 90, 128, 0.08);
}

.IntroSection-flap {
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  transform-origin: top;
  z-index: 6;
  filter: drop-shadow(0 6px 12px rgba(44, 74, 111, 0.15));
  background: linear-gradient(#fff 0%, #e6eff7 100%);
  width: 100%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.IntroSection-flap:after {
  content: "";
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  pointer-events: none;
  background: 0 0;
  border: 1px solid rgba(201, 149, 58, 0.3);
  position: absolute;
  inset: 0;
}

.IntroSection-flap.is-open {
  z-index: 2;
  filter: drop-shadow(0 -5px 15px rgba(0, 0, 0, 0.05));
  transform: rotateX(180deg);
}

.IntroSection-inviteCard {
  z-index: 3;
  background: #fff;
  border: 1px solid rgba(201, 149, 58, 0.3);
  border-radius: 2px;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 80%;
  padding: 15px;
  display: flex;
  position: absolute;
  top: 10%;
  left: 5%;
  box-shadow: 0 15px 35px rgba(44, 74, 111, 0.15);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.IntroSection-inviteCard.card-glides-up {
  transform: translateY(-90px) scale(1.02);
}

.IntroSection-cardContent {
  text-align: center;
  border: 1px solid rgba(201, 149, 58, 0.2);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
}

.IntroSection-cardContent h3 {
  color: #2c4a6f;
  margin: 0;
  font-family: var(--font-great-vibes), var(--font-playfair), serif;
  font-size: 1.85rem;
  line-height: 1.25;
}

.IntroSection-titleContainer {
  text-align: center;
  z-index: 5;
  width: 100%;
  padding: 0 15px;
  position: absolute;
  bottom: 16px;
  left: 0;
}

.IntroSection-mainTitle {
  color: #2c4a6f;
  white-space: nowrap;
  margin: 0;
  font-family: var(--font-great-vibes), var(--font-playfair), serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.IntroSection-buttonWrapper {
  z-index: 10;
  pointer-events: auto;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.IntroSection-verticalLine {
  opacity: 0.4;
  background: linear-gradient(transparent, #2c4a6f, transparent);
  width: 1px;
  height: 120px;
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translate(-50%);
}

.IntroSection-openButton {
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(201, 149, 58, 0.4);
  border-radius: 50%;
  outline: none;
  justify-content: center;
  align-items: center;
  width: 76px;
  height: 76px;
  display: flex;
  position: relative;
  box-shadow: 0 8px 25px rgba(44, 74, 111, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.IntroSection-openButton:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(44, 74, 111, 0.3);
}

.IntroSection-buttonInner {
  flex-direction: column;
  align-items: center;
  gap: 3px;
  display: flex;
}

.IntroSection-heartIcon {
  color: #2c4a6f;
  font-size: 1.2rem;
}

.IntroSection-openText {
  letter-spacing: 2px;
  color: #2c4a6f;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-poppins);
}

.IntroSection-pulse {
  pointer-events: none;
  border: 1px solid rgba(44, 74, 111, 0.4);
  border-radius: 50%;
  animation: 2s infinite IntroSection-pulseAnim;
  position: absolute;
  inset: -8px;
}

@keyframes IntroSection-pulseAnim {
  0% { opacity: 0.8; transform: scale(0.9); }
  to { opacity: 0; transform: scale(1.3); }
}

.IntroSection-insidePattern {
  opacity: 0.16;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.IntroSection-insideHeart {
  color: #2c4a6f;
  filter: drop-shadow(0 0 12px rgba(44, 74, 111, 0.4));
  font-size: 5rem;
  animation: 5s ease-in-out infinite alternate IntroSection-heartFloat;
}

.IntroSection-insideSparkle1,
.IntroSection-insideSparkle2 {
  color: #c9953a;
  opacity: 0.8;
  font-size: 1.2rem;
  animation: 4s ease-in-out infinite alternate IntroSection-sparkleFloat;
  position: absolute;
}
.IntroSection-insideSparkle1 { animation-delay: 0.5s; top: 30%; left: 32%; }
.IntroSection-insideSparkle2 { animation-delay: 1.2s; bottom: 30%; right: 32%; }

@keyframes IntroSection-heartFloat {
  0% { transform: translateY(0) scale(1) rotate(0); }
  to { transform: translateY(-8px) scale(1.08) rotate(3deg); }
}

@keyframes IntroSection-sparkleFloat {
  0% { opacity: 0.4; transform: translateY(0) scale(0.8) rotate(0); }
  to { opacity: 0.9; transform: translateY(-6px) scale(1.2) rotate(45deg); }
}

/* ==========================================================================
   PAGE SECTIONS & LUXURY CONTENT STYLES
   ========================================================================== */

/* Section 1: Hero Arch */
.hero-arch-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  background-color: #FAF8F5;
}

.hero-arch-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-arch-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, transparent 40%, rgba(246, 248, 252, 0.85) 90%, #f6f8fc 100%);
}

.hero-arch-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
}

.hero-arch-eyebrow {
  font-family: var(--font-poppins);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9953a;
  margin-bottom: 8px;
}

.hero-arch-names {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c4a6f;
  line-height: 1.15;
  margin: 6px 0;
}

.hero-arch-amp {
  font-family: var(--font-great-vibes);
  font-size: 2.2rem;
  color: #c9953a;
  margin: 0 8px;
}

.hero-arch-date {
  font-family: var(--font-cormorant);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: #5c3d2e;
  margin-top: 10px;
  font-weight: 600;
}

.hero-arch-venue {
  font-family: var(--font-poppins);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3a5a80;
  margin-top: 6px;
  font-weight: 500;
}

/* Section 2: Meet the Couple */
.couple-section {
  position: relative;
  padding: 70px 20px;
  background-color: #F6F8FC;
  overflow: hidden;
  border-top: 1px solid rgba(201, 149, 58, 0.25);
}

.palace-watermark-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.palace-watermark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
}

.palace-watermark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #F6F8FC 0%, transparent 30%, transparent 70%, #F6F8FC 100%);
}

.floral-corner-ornament {
  position: absolute;
  top: 10px;
  left: -40px;
  width: 220px;
  height: 220px;
  opacity: 0.18;
  transform: rotate(45deg);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9953a;
  display: block;
}

.section-title {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 2.1rem;
  color: #2d1b10;
  font-weight: 700;
  margin: 6px 0 10px 0;
  line-height: 1.2;
}

.section-divider {
  width: 70px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, #c9953a, transparent);
  margin: 0 auto;
}

.couple-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.couple-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 149, 58, 0.35);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(44, 74, 111, 0.08);
}

.couple-role {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9953a;
  margin-bottom: 4px;
}

.couple-person-name {
  font-family: var(--font-playfair);
  font-size: 1.65rem;
  font-weight: 700;
  color: #2c4a6f;
  margin: 4px 0 8px 0;
}

.couple-blessing {
  font-family: var(--font-cormorant);
  font-style: italic;
  font-size: 0.95rem;
  color: #5c3d2e;
  line-height: 1.4;
  margin: 0;
}

.couple-parents {
  font-family: var(--font-poppins);
  font-size: 0.8rem;
  font-weight: 500;
  color: #3a5a80;
  margin: 6px 0 2px 0;
}

.couple-city {
  font-size: 0.75rem;
  color: #8a7156;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.couple-ampersand-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #c9953a;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -10px auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(201, 149, 58, 0.2);
}

.couple-ampersand-text {
  font-family: var(--font-great-vibes);
  font-size: 1.8rem;
  color: #c9953a;
  line-height: 1;
}

.couple-quote-box {
  margin-top: 30px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(201, 149, 58, 0.4);
  text-align: center;
  position: relative;
  z-index: 1;
}

.couple-quote-text {
  font-family: var(--font-cormorant);
  font-style: italic;
  font-size: 1.1rem;
  color: #2d1b10;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Section 3: Countdown Timer & Interactive Scratch Card
   ========================================================================== */
.countdown-section {
  position: relative;
  padding: 60px 20px;
  background-color: #FAF8F5;
  border-top: 1px solid rgba(201, 149, 58, 0.25);
  text-align: center;
}

.countdown-wrapper {
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scratch-card-box {
  position: relative;
  width: 320px;
  height: 240px;
  border-radius: 16px;
  border: 1.5px solid #ebd8c3;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(122, 31, 61, 0.08);
  margin: 15px 0 10px 0;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Luxury Metallic Shimmer across scratch card surface */
.scratch-card-box::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: rotate(30deg);
  animation: foilShimmer 3.8s ease-in-out infinite;
  pointer-events: none !important;
  z-index: 12;
}

@keyframes foilShimmer {
  0% { transform: translateX(-120%) rotate(30deg); }
  45%, 100% { transform: translateX(120%) rotate(30deg); }
}

.scratch-underlay-content {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #fff 0%, #FAF8F5 100%);
  user-select: none !important;
}

.countdown-date-badge {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8a7156;
  font-weight: 700;
  margin-bottom: 4px;
}

.countdown-target-date {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c4a6f;
  margin-bottom: 14px;
}

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

.countdown-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ebd8c3;
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.countdown-val {
  font-family: var(--font-cinzel), serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #7a1f3d;
  line-height: 1;
}

.countdown-lbl {
  font-size: 8px;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a7156;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Scratch Canvas */
.scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: crosshair !important;
  touch-action: none !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  transition: opacity 0.6s ease;
}

.scratch-hint-text {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #7a5828;
  opacity: 0.85;
  margin-top: 6px;
}

/* Confetti Burst Canvas */
.confetti-canvas {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 280px;
  pointer-events: none !important;
  z-index: 20;
}

/* ==========================================================================
   Section 4: Photo Gallery
   ========================================================================== */
.gallery-section {
  position: relative;
  padding: 70px 20px;
  background-color: #F6F8FC;
  border-top: 1px solid rgba(201, 149, 58, 0.25);
  text-align: center;
}

.gallery-cards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(44, 74, 111, 0.12);
  border: 4px solid #fff;
  background: #FAF8F5;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(44, 74, 111, 0.18);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.04);
}

.gallery-card-caption-bar {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 16px 12px;
  background: linear-gradient(to top, rgba(44, 74, 111, 0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gallery-card-title {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Section 5: Wedding Events (The Celebration)
   ========================================================================== */
.events-section {
  position: relative;
  padding: 70px 20px;
  background-color: #FAF8F5;
  border-top: 1px solid rgba(201, 149, 58, 0.25);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.day-header-pill {
  display: inline-block;
  background: linear-gradient(135deg, #2c4a6f 0%, #3a5a80 100%);
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 15px rgba(44, 74, 111, 0.2);
}

.event-card {
  background: #fff;
  border: 1.5px solid rgba(201, 149, 58, 0.35);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(44, 74, 111, 0.06);
}

.event-num {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9953a;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-title {
  font-family: var(--font-cinzel), serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b4f2c;
  line-height: 1.2;
  margin: 4px 0 8px 0;
}

.event-desc {
  font-family: var(--font-cormorant);
  font-style: italic;
  font-size: 1rem;
  color: #5c3d2e;
  margin: 0 0 16px 0;
}

.event-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed rgba(201, 149, 58, 0.3);
}

.event-meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #2c4a6f;
  font-weight: 600;
}

.event-meta-icon {
  color: #c9953a;
}

.event-dress-code {
  margin-top: 10px;
  padding: 8px 12px;
  background: #F6F8FC;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #7a1f3d;
  font-weight: 600;
}

/* ==========================================================================
   Section 6: Location (Where & When)
   ========================================================================== */
.venue-section {
  position: relative;
  padding: 70px 20px;
  background-color: #F6F8FC;
  border-top: 1px solid rgba(201, 149, 58, 0.25);
}

.venue-card {
  max-width: 360px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid rgba(201, 149, 58, 0.35);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(122, 31, 61, 0.08);
}

.venue-image-box {
  width: 100%;
  height: 210px;
  position: relative;
  overflow: hidden;
}

.venue-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-content-box {
  padding: 24px 20px;
  text-align: center;
}

.venue-name {
  font-family: var(--font-cinzel), serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d1b10;
  line-height: 1.25;
  margin: 0 0 8px 0;
}

.venue-address {
  font-family: var(--font-playfair);
  font-size: 0.88rem;
  color: #5c3d2e;
  line-height: 1.5;
  margin: 0 0 20px 0;
  opacity: 0.85;
}

.venue-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.venue-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5c3d2e;
}

.map-btn {
  display: block;
  width: 100%;
  background-color: #2d1b10;
  color: #fff;
  border: 1px solid rgba(201, 149, 58, 0.4);
  border-radius: 50px;
  padding: 14px 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(45, 27, 16, 0.25);
  transition: all 0.3s ease;
}

.map-btn:hover {
  background-color: #4a2e1b;
  box-shadow: 0 6px 20px rgba(45, 27, 16, 0.35);
}

/* ==========================================================================
   Section 7: RSVP Form
   ========================================================================== */
.rsvp-section {
  position: relative;
  padding: 70px 20px;
  background-color: #FAF8F5;
  border-top: 1px solid rgba(201, 149, 58, 0.25);
}

.rsvp-form-card {
  max-width: 350px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 149, 58, 0.35);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 15px 35px rgba(44, 74, 111, 0.08);
}

.rsvp-group {
  margin-bottom: 18px;
  text-align: left;
}

.rsvp-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2c4a6f;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ebd8c3;
  border-radius: 12px;
  font-family: var(--font-poppins);
  font-size: 0.88rem;
  color: #2c4a6f;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
  border-color: #c9953a;
  box-shadow: 0 0 0 3px rgba(201, 149, 58, 0.15);
}

.rsvp-radio-options {
  display: flex;
  gap: 10px;
}

.rsvp-radio-pill {
  flex: 1;
  padding: 10px 8px;
  border: 1.5px solid #ebd8c3;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  background: #fff;
  color: #5c3d2e;
  transition: all 0.2s ease;
}

.rsvp-radio-pill.is-selected {
  border-color: #2c4a6f;
  background: #2c4a6f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(44, 74, 111, 0.2);
}

.rsvp-submit-btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #2c4a6f 0%, #3a5a80 100%);
  color: #fff;
  font-family: var(--font-poppins);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(44, 74, 111, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(44, 74, 111, 0.35);
}

/* Local RSVP Confirmation Card (in-place) */
.rsvp-success-card {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.rsvp-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef7ee;
  border: 2px solid #52a852;
  color: #52a852;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.rsvp-success-title {
  font-family: var(--font-playfair);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 700;
  color: #2c4a6f;
  margin-bottom: 8px;
}

.rsvp-success-text {
  font-size: 0.88rem;
  color: #5c3d2e;
  line-height: 1.5;
}

/* ==========================================================================
   Section 8: Thank You & Footer Attribution
   ========================================================================== */
.footer-section {
  position: relative;
  padding: 60px 20px 80px 20px;
  background: #F6F8FC url(/assets/footer-bg.png) no-repeat center bottom;
  background-size: cover;
  border-top: 1px solid rgba(201, 149, 58, 0.25);
  text-align: center;
}

.footer-monogram {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #c9953a;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 12px auto;
  box-shadow: 0 6px 20px rgba(201, 149, 58, 0.15);
}

.footer-monogram-text {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 1.7rem;
  color: #b8860b;
  font-weight: 700;
}

.footer-hashtag {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: 0.1em;
  margin: 18px 0 16px 0;
}

.footer-message {
  font-family: var(--font-cormorant);
  font-style: italic;
  font-size: 1.05rem;
  color: #5c3d2e;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 30px auto;
}

.footer-attribution {
  font-size: 0.78rem;
  color: #8a7156;
  font-weight: 500;
  margin-top: 25px;
}

.footer-attribution a {
  color: #2c4a6f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-attribution a:hover {
  color: #c9953a;
}

/* ==========================================================================
   MASTER LUXURY ANIMATIONS, PARALLAX & SCROLL REVEAL SUITE (SILKY SMOOTH DHEERE-DHEERE)
   ========================================================================== */

/* 1. Scroll-Driven Reveal Architecture — 1.4s Dreamy Floating Glide */
.anim-reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-reveal.is-inview {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Reveal Variants — Ultra-soft gentle offsets (No harsh pops) */
.anim-fade-up {
  transform: translate3d(0, 26px, 0);
}

.anim-slide-left {
  transform: translate3d(-28px, 0, 0);
}

.anim-slide-right {
  transform: translate3d(28px, 0, 0);
}

.anim-scale-in {
  transform: scale(0.94);
}

.anim-zoom-soft {
  transform: scale(0.96);
}

/* Stagger Delays — Gentle rhythmic progression */
.delay-1 { transition-delay: 0.16s; }
.delay-2 { transition-delay: 0.32s; }
.delay-3 { transition-delay: 0.48s; }
.delay-4 { transition-delay: 0.64s; }

/* 2. Parallax Optimizations — Velvety 0.6s momentum smoothing */
.hero-arch-bg {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-arch-content {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.palace-watermark-img {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Floral Corner Ornament Idle Sway & Parallax */
.floral-corner-ornament {
  animation: floralSway 8s ease-in-out infinite alternate;
  transform-origin: top right;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes floralSway {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-3px, 4px, 0) rotate(0.8deg); }
  100% { transform: translate3d(-1px, 7px, 0) rotate(-0.6deg); }
}

/* 3. Luxury Floating Monogram in Footer */
.footer-monogram {
  animation: monogramFloat 5.5s ease-in-out infinite alternate;
  will-change: transform, box-shadow;
}

@keyframes monogramFloat {
  0% { transform: translate3d(0, 0, 0); box-shadow: 0 6px 20px rgba(201, 149, 58, 0.15); }
  100% { transform: translate3d(0, -5px, 0); box-shadow: 0 12px 28px rgba(201, 149, 58, 0.32); }
}

/* 4. Couple Ampersand Golden Aura Pulse */
.couple-ampersand-circle {
  animation: ampersandAura 4.5s ease-in-out infinite alternate;
  will-change: transform, box-shadow;
}

@keyframes ampersandAura {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(201, 149, 58, 0.2); }
  100% { transform: scale(1.05); box-shadow: 0 8px 24px rgba(201, 149, 58, 0.42); }
}

/* 5. Section Divider Golden Shimmer Sweep */
.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: dividerShimmer 4.8s infinite ease-in-out;
}

@keyframes dividerShimmer {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

/* 6. Continuous RSVP Button Shimmer Sweep */
.rsvp-submit-btn {
  position: relative;
  overflow: hidden;
}

.rsvp-submit-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: btnSweep 4.2s infinite ease-in-out;
  pointer-events: none !important;
}

@keyframes btnSweep {
  0% { left: -100%; }
  45%, 100% { left: 200%; }
}

/* 7. Royal Wedding Vows Highlight Card Glow */
.event-card.event-vows-card {
  animation: royalVowsGlow 5.5s ease-in-out infinite alternate;
}

@keyframes royalVowsGlow {
  0% { box-shadow: 0 12px 30px rgba(122, 31, 61, 0.1); border-color: rgba(122, 31, 61, 0.4); }
  100% { box-shadow: 0 16px 36px rgba(122, 31, 61, 0.22); border-color: rgba(201, 149, 58, 0.7); }
}

/* 8. Gallery Card Hover/Touch Elevation */
.gallery-card {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.gallery-card:active,
.gallery-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 36px rgba(44, 74, 111, 0.18);
}

/* 9. Ambient Floating Golden Sparkles */
.ambient-sparkle {
  position: absolute;
  pointer-events: none !important;
  color: #c9953a;
  user-select: none;
  z-index: 2;
  opacity: 0.65;
  animation: floatTwinkle 7.5s ease-in-out infinite;
}

@keyframes floatTwinkle {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.8); opacity: 0.15; }
  50% { transform: translate3d(0, -28px, 0) rotate(180deg) scale(1.15); opacity: 0.8; }
  100% { transform: translate3d(0, -56px, 0) rotate(360deg) scale(0.8); opacity: 0.15; }
}

/* 10. Map Button Gold Glow Pulse */
.map-btn {
  animation: mapBtnPulse 4.5s ease-in-out infinite alternate;
}

@keyframes mapBtnPulse {
  0% { box-shadow: 0 4px 15px rgba(45, 27, 16, 0.25); border-color: rgba(201, 149, 58, 0.4); }
  100% { box-shadow: 0 6px 22px rgba(201, 149, 58, 0.45); border-color: rgba(201, 149, 58, 0.8); }
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  .anim-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .floral-corner-ornament,
  .footer-monogram,
  .couple-ampersand-circle,
  .event-card.event-vows-card,
  .map-btn,
  .ambient-sparkle {
    animation: none !important;
  }
}
