/* ==========================================================================
   ROYAL WEDDING INVITATION - CSS DESIGN SYSTEM
   Theme: Indian Royal Wedding Luxury (Burgundy, Gold Foil, Warm Ivory, Champagne)
   ========================================================================== */

:root {
  /* Royal Palette */
  --burgundy: #4A0E17;
  --burgundy-deep: #2B050B;
  --burgundy-light: #6E1A27;
  --burgundy-soft: #8B2635;
  --wine: #5A1320;

  --gold-primary: #C59341;
  --gold-light: #F3DE9E;
  --gold-bright: #DFBA67;
  --gold-dark: #8F621D;
  --gold-foil: linear-gradient(135deg, #FBF0B9 0%, #DFBA67 28%, #C59341 55%, #E7C979 78%, #996822 100%);
  --gold-foil-subtle: linear-gradient(135deg, #f5ebd0 0%, #d4b26f 50%, #b88628 100%);

  --ivory: #FDFBF7;
  --ivory-warm: #FAF5EC;
  --beige-cream: #F4ECE1;
  --beige-soft: #EFE6D8;
  --sand: #E5DAC9;

  --text-dark: #3A2E2B;
  --text-muted: #7E6F68;
  --text-burgundy: #52161E;
  --text-gold: #B8860B;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-royal: 'Cinzel', serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Depth */
  --shadow-sm: 0 4px 12px rgba(74, 14, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 14, 23, 0.12);
  --shadow-lg: 0 16px 36px rgba(74, 14, 23, 0.18);
  --shadow-gold: 0 6px 20px rgba(197, 147, 65, 0.35);

  /* Layout */
  --app-max-width: 460px;
  --border-radius-card: 20px;
  --border-radius-pill: 9999px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #170306;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: radial-gradient(circle at 50% 30%, #2e080e 0%, #170306 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* App Wrapper */
.invitation-app {
  width: 100%;
  max-width: var(--app-max-width);
  background-color: var(--ivory);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 186, 103, 0.2);
  overflow-x: hidden;
  z-index: 10;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Canvas Layers */
#petalCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 999;
}

#fireworksCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 1001;
}

/* Floating Music Control */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-foil);
  border: 2px solid #FFF5D1;
  box-shadow: var(--shadow-gold), 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.music-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

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

.music-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy-deep);
  position: relative;
}

.music-icon {
  display: block;
}

.music-bars {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.music-btn.playing .music-icon {
  display: none;
}

.music-btn.playing .music-bars {
  display: flex;
}

.music-bars .bar {
  width: 3px;
  background-color: var(--burgundy-deep);
  border-radius: 2px;
  animation: equalize 1s infinite alternate ease-in-out;
}

.music-bars .bar-1 { height: 6px; animation-delay: 0.1s; }
.music-bars .bar-2 { height: 14px; animation-delay: 0.3s; }
.music-bars .bar-3 { height: 10px; animation-delay: 0.2s; }
.music-bars .bar-4 { height: 16px; animation-delay: 0.4s; }

@keyframes equalize {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* ==========================================================================
   FLORAL ENVELOPE (MOBILE TAP OPTIMIZED)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #2e080e 0%, #120204 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  perspective: 1200px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.envelope-overlay.opened {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.envelope-stage {
  position: relative;
  width: 90%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

.envelope-ambient-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(223, 186, 103, 0.3) 0%, rgba(223, 186, 103, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.envelope-outer {
  position: relative;
  width: 100%;
  height: 240px;
  background: #ECE0D0;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 24px rgba(223, 186, 103, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  border: 1px solid rgba(223, 186, 103, 0.4);
  cursor: pointer;
  pointer-events: auto;
}

.envelope-corner-flora {
  position: absolute;
  width: 65px;
  height: 65px;
  z-index: 8;
  pointer-events: none;
}

.floral-corner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  pointer-events: none;
}

.corner-flora-tl { top: -4px; left: -4px; }
.corner-flora-tr { top: -4px; right: -4px; transform: scaleX(-1); }
.corner-flora-bl { bottom: -4px; left: -4px; transform: scaleY(-1); }
.corner-flora-br { bottom: -4px; right: -4px; transform: scale(-1); }

.envelope-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #D9C8B2;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
}

.envelope-gold-liner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #DFBA67 0%, #C59341 50%, #996822 100%);
  opacity: 0.35;
  pointer-events: none;
}

.envelope-letter {
  position: absolute;
  width: 90%;
  height: 90%;
  background: #FAF6EE;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  top: 5%;
  left: 5%;
  z-index: 2;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #DFBA67;
  pointer-events: none;
}

.letter-inner-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.letter-ganesh-mini {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}

.letter-mini-text {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--burgundy);
  font-weight: 700;
  pointer-events: none;
}

.letter-mini-sub {
  font-family: var(--font-royal);
  font-size: 0.5rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
  pointer-events: none;
}

.envelope-left-fold {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 120px 0 120px 170px;
  border-color: transparent transparent transparent #E4D5C2;
  z-index: 3;
  pointer-events: none;
}

.envelope-right-fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 120px 170px 120px 0;
  border-color: transparent #DFD0BC transparent transparent;
  z-index: 3;
  pointer-events: none;
}

.envelope-bottom-fold {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 170px 130px 170px;
  border-color: transparent transparent #D5C5B0 transparent;
  z-index: 4;
  pointer-events: none;
}

.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 140px 170px 0 170px;
  border-color: #ECE0D0 transparent transparent transparent;
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s 0.3s;
  z-index: 5;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.flap-floral-crest {
  position: absolute;
  top: -130px;
  left: -40px;
  width: 80px;
  height: 32px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.envelope-stage.opening .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-stage.opening .envelope-letter {
  transform: translateY(-80px) scale(1.08);
  z-index: 6;
}

.envelope-stage.zoom-in-final {
  transform: scale(2.8) translateY(-40px);
  opacity: 0;
}

.wax-seal-wrapper {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.wax-seal-wrapper:hover {
  transform: translateX(-50%) scale(1.08);
}

.wax-seal-wrapper:active {
  transform: translateX(-50%) scale(0.96);
}

.wax-seal-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 186, 103, 0.5) 0%, transparent 70%);
  animation: sealPulse 2.5s infinite;
  pointer-events: none;
}

@keyframes sealPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0.1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.wax-seal-heart-container {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.heart-seal-interactive-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.seal-specular-shimmer {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  animation: shimmerSweep 3.5s infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { transform: translate(-30%, -30%); }
  40%, 100% { transform: translate(30%, 30%); }
}

.seal-tap-prompt {
  position: absolute;
  bottom: -68px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}

.prompt-hand-pulse {
  font-size: 1.2rem;
  animation: bounceHand 1.6s infinite ease-in-out;
}

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

.prompt-text {
  font-family: var(--font-royal);
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #FFF2C6;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.prompt-sub {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--gold-bright);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ==========================================================================
   SHARED TYPOGRAPHY & SCROLL REVEALS
   ========================================================================== */
.invitation-section {
  padding: 44px 24px;
  position: relative;
  background-color: var(--ivory);
}

.section-kicker {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--burgundy);
  line-height: 1.2;
}

.script-gold {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: normal;
  color: var(--gold-dark);
  background: var(--gold-foil);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
  filter: drop-shadow(0 1px 1px rgba(74, 14, 23, 0.15));
}

.date-ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 24px;
  max-width: 180px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.divider-gem {
  color: var(--gold-bright);
  font-size: 0.85rem;
}

/* Scroll Animation System */
.reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  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;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Typing Cursor Effect */
.type-animate {
  min-height: 1.2em;
}

.type-animate.typing::after {
  content: '|';
  color: var(--gold-bright);
  animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   PAGE 1: GANESHA BLESSINGS (FIRST OPENING PAGE)
   ========================================================================== */
.section-blessings {
  padding-top: 36px;
  padding-bottom: 40px;
  background: radial-gradient(circle at 50% 20%, #FAF6EE 0%, #F5ECE0 100%);
  text-align: center;
}

.ganesha-emblem-large {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
  filter: drop-shadow(0 8px 20px rgba(197, 147, 65, 0.45));
}

.ganesha-hero-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}

.shree-ganesh-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.sanskrit-shloka {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--burgundy-light);
  max-width: 340px;
  margin: 0 auto 24px;
  font-style: italic;
  white-space: pre-line;
}

.heavenly-blessings-box {
  background-color: var(--ivory);
  border: 1px solid rgba(197, 147, 65, 0.35);
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.blessings-ornament {
  font-family: var(--font-royal);
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 4px;
}

.blessing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.couple-grand-names {
  margin: 24px 0 16px;
}

.couple-firstname {
  font-size: 3.4rem;
  line-height: 1;
}

/* Profession Badges */
.profession-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-foil);
  color: var(--burgundy-deep);
  font-family: var(--font-royal);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--border-radius-pill);
  margin: 6px 0;
  box-shadow: 0 2px 8px rgba(197, 147, 65, 0.35);
  text-transform: uppercase;
}

.family-lineage {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-style: italic;
}

.name-connector-script {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-dark);
  margin: 6px 0;
}

/* 3R Logo placed in bottom of first page */
.section-monogram-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 10px;
}

.emblem-heart-frame {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(197, 147, 65, 0.4));
}

.emblem-heart-center-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Romantic Quote */
.invitation-poetic-quote {
  max-width: 320px;
  margin: 8px auto 20px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--burgundy);
  font-style: italic;
}

/* Minimal Scroll Down Arrow Indicator */
.scroll-indicator-pure {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  animation: bouncePure 2s infinite ease-in-out;
}

.scroll-arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-bright);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(197, 147, 65, 0.25);
}

.scroll-arrow-icon {
  font-size: 1.2rem;
  color: var(--gold-dark);
  font-weight: 700;
}

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

/* ==========================================================================
   PAGE 2: COUPLE ARTWORK WITH CLEAN ARCH & ROUNDED FOREVER BOX
   ========================================================================== */
.section-hero {
  padding-top: 36px;
  padding-bottom: 44px;
  background: radial-gradient(circle at 50% 20%, #FAF6EE 0%, #F5ECE0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 92vh;
  justify-content: space-between;
}

.hero-portrait-container {
  width: 100%;
  max-width: 320px;
  margin: 10px 0 16px;
  position: relative;
  z-index: 2;
}

.portrait-arch-gateway {
  position: relative;
  width: 100%;
  border-radius: 160px 160px 24px 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(74, 14, 23, 0.16), 0 0 0 4px #FAF5EC, 0 0 0 6px var(--gold-bright);
  background-color: var(--beige-soft);
}

.portrait-img-mask {
  width: 100%;
  aspect-ratio: 3/4.2;
  overflow: hidden;
  position: relative;
}

.couple-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.portrait-arch-gateway:hover .couple-hero-img {
  transform: scale(1.06);
}

.portrait-soft-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 35px rgba(245, 236, 224, 0.5), inset 0 -40px 40px rgba(74, 14, 23, 0.3);
  pointer-events: none;
}

/* Rounded Box for 'Our Forever Begins' */
.forever-rounded-card {
  width: 100%;
  max-width: 320px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px 20px;
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 8px 24px rgba(74, 14, 23, 0.1), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.hero-heart-seal-wrapper {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(197, 147, 65, 0.4));
  margin-bottom: 4px;
}

.hero-heart-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.forever-tagline {
  text-align: center;
}

.script-accent {
  font-family: var(--font-royal);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.together-title {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--burgundy);
  line-height: 0.9;
  font-weight: normal;
}

/* ==========================================================================
   PAGE 3: SAVE THE DATE (ONLY 21 NOV 2026 + CRACKERS EFFECT)
   ========================================================================== */
.section-savethedate {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5EC 50%, #F5ECE0 100%);
  text-align: center;
}

.wedding-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ivory);
  border: 1.5px solid var(--gold-bright);
  padding: 6px 18px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--burgundy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.scratch-card-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 180px;
  margin: 0 auto 10px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(74, 14, 23, 0.12), 0 0 0 3px var(--gold-bright);
  overflow: hidden;
  background: linear-gradient(135deg, #FFF9ED 0%, #F4E8D4 100%);
}

.scratch-reveal-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #FFF8EE 0%, #F3E6D0 100%);
}

.cal-month {
  font-family: var(--font-royal);
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--burgundy);
}

.cal-days-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.sparkle-gem {
  color: var(--gold-bright);
  font-size: 1.2rem;
}

.big-date-number {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}

.cal-year {
  font-family: var(--font-royal);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold-dark);
  font-weight: 600;
}

.cal-location-tag {
  font-family: var(--font-royal);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 8px;
}

.scratch-foil-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  z-index: 2;
  transition: opacity 0.6s ease;
}

.scratch-hint-note {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-style: italic;
  margin-top: 14px;
}

/* ==========================================================================
   PAGE 4: FESTIVITIES / EVENT CARDS
   ========================================================================== */
.section-festivities {
  background: linear-gradient(180deg, var(--ivory-warm) 0%, #FFFFFF 100%);
  text-align: center;
}

.two-days-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ivory);
  border: 1px solid var(--gold-bright);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-royal);
  font-size: 0.68rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--burgundy);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
  margin-bottom: 12px;
}

.event-card {
  background: #FFFFFF;
  border: 1px solid rgba(197, 147, 65, 0.25);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-card-royal {
  background: linear-gradient(145deg, #FAF4E8 0%, #FFFDF9 100%);
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 10px 28px rgba(197, 147, 65, 0.2);
}

.venue-location-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin: 6px auto 10px;
}

.venue-location-badge.groom-loc {
  background: #F4EBE1;
  color: var(--burgundy);
  border: 1px solid #E0CEBE;
}

.venue-location-badge.separate-loc {
  background: #FFF8D6;
  color: #7A5500;
  border: 1px solid #F3DB78;
}

.venue-location-badge.banquet-loc {
  background: #FDF0D5;
  color: var(--burgundy-deep);
  border: 1px solid var(--gold-bright);
}

.haldi-special-card {
  padding-top: 18px;
}

.haldi-art-banner {
  width: 100%;
  max-width: 160px;
  margin: 4px auto 10px;
  display: flex;
  justify-content: center;
}

.haldi-banner-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

.event-badge-pill {
  display: inline-block;
  background-color: var(--beige-soft);
  color: var(--burgundy);
  font-family: var(--font-royal);
  font-size: 0.6rem;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 12px;
}

.event-badge-pill.highlight-pill {
  background: var(--gold-foil);
  color: var(--burgundy-deep);
  box-shadow: 0 2px 8px rgba(197, 147, 65, 0.3);
}

.event-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--beige-cream);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: 1px solid var(--gold-light);
}

.event-icon-circle.gold-circle {
  background: var(--gold-foil);
  box-shadow: 0 4px 12px rgba(197, 147, 65, 0.3);
}

.event-icon-circle.yellow-circle {
  background: linear-gradient(135deg, #FFF2A1 0%, #FAD02C 100%);
  box-shadow: 0 4px 12px rgba(250, 208, 44, 0.35);
}

.event-icon-circle.royal-circle {
  background: var(--burgundy);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 14px rgba(74, 14, 23, 0.4);
}

.event-custom-emoji {
  font-size: 1.6rem;
}

.event-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.royal-event-title {
  font-size: 1.6rem;
}

.event-tagline {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.wedding-timeline-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.itinerary-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--ivory);
  border: 1px solid var(--gold-bright);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--burgundy);
}

.itin-icon {
  font-size: 0.9rem;
}

.placeholder-tag {
  color: #B26A00;
  font-style: italic;
  font-size: 0.8rem;
}

.event-meta {
  border-top: 1px dashed rgba(197, 147, 65, 0.35);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--burgundy);
  font-weight: 500;
}

.meta-icon {
  font-size: 1rem;
}

/* ==========================================================================
   PAGE 5: VENUE & LOCATIONS
   ========================================================================== */
.section-venue {
  background: var(--ivory-warm);
  text-align: center;
}

.venue-showcase-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(197, 147, 65, 0.3);
  margin-bottom: 24px;
}

.venue-banquet-img-banner {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.luxury-banquet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-details-body {
  padding: 24px 20px;
}

.venue-pin-badge {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--burgundy);
}

.venue-subname {
  font-family: var(--font-royal);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.venue-desc {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: left;
}

.venue-specs-list {
  background-color: var(--beige-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.spec-row {
  font-size: 0.8rem;
  line-height: 1.4;
}

.spec-label {
  font-weight: 700;
  color: var(--burgundy);
  display: block;
}

.spec-val {
  color: var(--text-dark);
}

.btn-royal-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--burgundy);
  color: #FFF3CC;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-royal);
  font-size: 0.82rem;
  letter-spacing: 2px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(74, 14, 23, 0.3);
  transition: var(--transition-smooth);
  border: 1px solid var(--gold-bright);
  margin-bottom: 18px;
}

.btn-royal-directions:hover {
  background: var(--burgundy-light);
  transform: translateY(-2px);
}

.map-embed-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gold-light);
}

.map-open-link {
  display: block;
  background-color: var(--ivory);
  padding: 8px;
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 700;
  border-top: 1px solid #ECE3D4;
}

.residences-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.residence-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-bright);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.residence-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.residence-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.residence-icon {
  font-size: 1.3rem;
}

.residence-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy);
}

.address-link-card {
  text-decoration: none;
  display: block;
  color: inherit;
}

.address-content-block {
  background: var(--beige-soft);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(197, 147, 65, 0.5);
  transition: background-color 0.3s;
}

.address-link-card:hover .address-content-block {
  background-color: #F8EFE4;
}

.address-line-main {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 8px;
}

.address-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-royal);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--burgundy);
}

/* ==========================================================================
   PAGE 6: DEDICATED COUNTDOWN TIMER SECTION
   ========================================================================== */
.section-countdown-dedicated {
  background: radial-gradient(circle at 50% 30%, #380B12 0%, #200408 100%);
  color: var(--ivory);
  text-align: center;
  padding: 50px 24px;
}

.countdown-widget {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px 16px;
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  color: var(--ivory);
  max-width: 340px;
  margin: 18px auto 0;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.timer-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 186, 103, 0.35);
  border-radius: 10px;
  padding: 10px 8px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFF2C6;
  line-height: 1;
}

.timer-unit {
  font-family: var(--font-royal);
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-top: 4px;
}

.timer-sep {
  font-size: 1.3rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.countdown-tagline {
  font-size: 0.72rem;
  color: var(--sand);
  margin-top: 14px;
  font-style: italic;
}

/* ==========================================================================
   PAGE 7: DEEP BURGUNDY THANK YOU & CONTACT ONLY
   ========================================================================== */
.section-thankyou {
  background: radial-gradient(circle at 50% 20%, #4A0E17 0%, #200408 100%);
  color: var(--ivory);
  text-align: center;
  padding: 60px 24px 60px;
}

.thankyou-heart-emblem {
  font-size: 1.8rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.kicker-gold {
  color: var(--gold-light);
}

.thankyou-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
}

.thankyou-msg {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--sand);
  max-width: 330px;
  margin: 14px auto 20px;
  font-style: italic;
}

.script-names-gold {
  font-family: var(--font-script);
  font-size: 3.4rem;
  color: var(--gold-light);
  margin-bottom: 34px;
}

.contact-reach-block {
  margin-bottom: 40px;
}

.contact-kicker {
  font-family: var(--font-royal);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 16px;
}

.phone-buttons-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 300px;
  margin: 0 auto;
}

.phone-btn-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--gold-bright);
  color: #FFF2C6;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.phone-btn-large:hover {
  background: var(--gold-foil);
  color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.phone-role {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.phone-number {
  font-weight: 600;
  letter-spacing: 1px;
}

.phone-icon {
  font-size: 1.1rem;
}

.footer-final-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-heart-seal-wrapper {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  margin-bottom: 12px;
}

.final-heart-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.made-with-love {
  font-family: var(--font-royal);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 700;
}

.final-date {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--sand);
  margin-top: 4px;
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 480px) {
  .invitation-app {
    max-width: 100%;
    box-shadow: none;
  }

  .script-gold {
    font-size: 2.8rem;
  }

  .couple-firstname {
    font-size: 3rem;
  }

  .section-hero,
  .section-blessings {
    min-height: 96vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
