/* ==========================================================================
   STYLE.CSS - Royal Prestige Wedding Invitation
   Inspired by Luxury Cinematic Wedding Cards (Zareqia Style)
   Palette: Burgundy, Rose, Blush, Champagne, Ivory & Antique Gold
   ========================================================================== */

/* 1. GOOGLE FONTS & IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Italianno&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* 2. ROOT CSS VARIABLES & PALETTE */
:root {
  /* Color Palette */
  --burgundy: #7A1E32;
  --burgundy-dark: #541120;
  --burgundy-glow: rgba(122, 30, 50, 0.35);
  --rose: #B45D72;
  --rose-light: #C97A8D;
  --blush: #F3DCE2;
  --soft-pink: #FAEEF1;
  --ivory: #FFF9F4;
  --ivory-pure: #FFFFFF;
  --champagne: #E8C991;
  --gold-antique: #D4AF37;
  --gold-gradient: linear-gradient(135deg, #FFF6D6 0%, #E8C991 40%, #D4AF37 75%, #9E7D23 100%);
  --rose-gradient: linear-gradient(135deg, #B45D72 0%, #7A1E32 100%);
  --dark-text: #4A2730;
  --muted-text: #73535C;

  /* Typography */
  --font-script: 'Great Vibes', cursive;
  --font-script-alt: 'Italianno', cursive;
  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(122, 30, 50, 0.08);
  --shadow-md: 0 10px 30px rgba(122, 30, 50, 0.12);
  --shadow-lg: 0 20px 50px rgba(84, 17, 32, 0.22);
  --shadow-gold: 0 0 25px rgba(232, 201, 145, 0.45);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--dark-text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.locked-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(var(--blush) 1px, transparent 1px),
    radial-gradient(var(--blush) 1px, var(--ivory) 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

/* Typography Utility Classes */
.font-script { font-family: var(--font-script); }
.font-heading { font-family: var(--font-heading); }
.font-serif { font-family: var(--font-serif); }
.font-body { font-family: var(--font-body); }
.font-sans { font-family: var(--font-sans); }

.text-burgundy { color: var(--burgundy) !important; }
.text-rose { color: var(--rose) !important; }
.text-champagne { color: var(--champagne) !important; }
.text-gold { color: var(--gold-antique) !important; }
.text-dark { color: var(--dark-text) !important; }
.text-muted-custom { color: var(--muted-text) !important; }

/* 4. SECTION STRUCTURAL HELPERS */
.section-padding {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--rose);
  display: block;
  margin-bottom: -10px;
  line-height: 1.2;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--gold-gradient);
}

.section-divider i {
  color: var(--gold-antique);
  font-size: 1rem;
}

/* Luxury Card Styling */
.luxury-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(232, 201, 145, 0.55);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-smooth);
}

.luxury-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--champagne);
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(180, 93, 114, 0.35);
  border-radius: calc(var(--radius-md) - 4px);
  pointer-events: none;
}

/* ==========================================================================
   5. FULLSCREEN VIDEO LOADER (STARTS ONLY AFTER TAP TO VIEW)
   ========================================================================== */
#wedding-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

#wedding-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.video-loader-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-loader-controls {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tap-to-view-circle-btn {
  position: relative;
  width: clamp(130px, 24vw, 155px);
  height: clamp(130px, 24vw, 155px);
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #541120;
  border: 3px solid #FFF6D6;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(232, 201, 145, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: var(--transition-smooth);
  animation: pulseTapCircle 2.4s infinite ease-in-out;
}

.tap-circle-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tap-circle-icon {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  line-height: 1;
  color: var(--burgundy);
  transition: transform 0.3s ease;
}

.tap-circle-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.25;
  color: #4A101D;
}

.tap-circle-sparkle {
  font-size: 0.8rem;
  line-height: 1;
  opacity: 0.85;
}

/* Pulsing Ripple Rings */
.tap-circle-ripple {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 1.5px solid rgba(232, 201, 145, 0.7);
  border-radius: 50%;
  pointer-events: none;
  animation: rippleRing 2.4s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

.tap-circle-ripple.ripple-2 {
  animation-delay: 0.8s;
}

@keyframes rippleRing {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes pulseTapCircle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(232, 201, 145, 0.8);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 45px rgba(232, 201, 145, 1);
  }
}

.tap-to-view-circle-btn:hover {
  transform: scale(1.12);
  background: #FFFFFF;
  border-color: #FFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 55px rgba(232, 201, 145, 1);
}

.tap-to-view-circle-btn:hover .tap-circle-icon {
  transform: scale(1.18);
  color: var(--burgundy-dark);
}

.tap-to-view-circle-btn:hover .tap-circle-text {
  color: var(--burgundy);
}

/* Skip Button during Video Playback */
.loader-skip-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(232, 201, 145, 0.45);
  color: var(--champagne);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.3s ease;
}

.loader-skip-btn.visible {
  opacity: 0.85;
  pointer-events: auto;
}

.loader-skip-btn:hover {
  opacity: 1;
  background: rgba(122, 30, 50, 0.75);
}

/* ==========================================================================
   6. FIXED FLOATING CONTROLS (SHOWN ONLY AFTER ENTERING HOME SCREEN)
   ========================================================================== */
.fixed-control-btn {
  position: fixed;
  z-index: 990;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--champagne);
  backdrop-filter: blur(10px);
  color: var(--burgundy);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Show floating buttons only when home screen is unlocked */
body.home-entered .fixed-control-btn:not(#back-to-top-btn) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fixed-control-btn:hover {
  background: var(--burgundy);
  color: var(--champagne);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Music Control Button (Top Right) */
#music-toggle-btn {
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
}

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

.eq-bar {
  width: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
}

.eq-bar:nth-child(1) { animation: eqAnim1 0.7s infinite ease-in-out; }
.eq-bar:nth-child(2) { animation: eqAnim2 0.55s infinite ease-in-out; }
.eq-bar:nth-child(3) { animation: eqAnim3 0.85s infinite ease-in-out; }

@keyframes eqAnim1 { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@keyframes eqAnim2 { 0%, 100% { height: 14px; } 50% { height: 6px; } }
@keyframes eqAnim3 { 0%, 100% { height: 8px; } 50% { height: 15px; } }

#music-toggle-btn.paused .eq-bar {
  animation-play-state: paused;
  height: 4px !important;
}

/* Language Button Placeholder (Bottom Left) */
#lang-toggle-btn {
  bottom: 20px;
  left: 20px;
  padding: 8px 16px;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Back to Top (Bottom Right) */
#back-to-top-btn {
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

body.home-entered #back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   7. HERO SECTION (Cinematic Viewport Height)
   ========================================================================== */
.wedding-hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--burgundy-dark);
  background-image: url('../images/couple-hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--ivory);
  overflow: hidden;
  padding: 100px 20px 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(122, 30, 50, 0.45) 0%, rgba(84, 17, 32, 0.82) 70%, rgba(33, 8, 17, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-heart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232, 201, 145, 0.15);
  border: 1.5px solid var(--champagne);
  color: var(--champagne);
  font-size: 1.3rem;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(232, 201, 145, 0.4);
}

.hero-invitation-intro {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero-groom-name,
.hero-bride-name {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 8.5vw, 5.8rem);
  color: var(--ivory);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 35px rgba(232, 201, 145, 0.4);
  line-height: 1.05;
  margin: 0;
}

.hero-parents-line {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--blush);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 12px;
}

.hero-ampersand {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--champagne);
  font-weight: 300;
  display: block;
  margin: 8px 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--champagne);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.hero-scroll-indicator i {
  animation: bounceDown 1.8s infinite ease-in-out;
  font-size: 1.2rem;
}

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

/* ==========================================================================
   8. INVITATION MESSAGE SECTION
   ========================================================================== */
.invitation-message-section {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--soft-pink) 50%, var(--ivory) 100%);
  text-align: center;
}

.invitation-card-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 36px;
}

.invitation-body-text {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--dark-text);
  line-height: 1.9;
  margin-bottom: 24px;
}

.invitation-couple-badge {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--burgundy);
  display: block;
}

/* ==========================================================================
   9. HEART-SHAPED SCRATCH-TO-REVEAL SECTION (REAL METALLIC FOIL & SHAVINGS)
   ========================================================================== */
.scratch-reveal-section {
  background-color: var(--ivory);
  text-align: center;
}

.scratch-card-container {
  position: relative;
  width: 380px;
  height: 380px;
  max-width: 92vw;
  max-height: 92vw;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23E8C991' stroke='%23B45D72' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='11' fill='%23FFDF96' stroke='%23D4AF37' stroke-width='1.5'/%3E%3Ctext x='16' y='21' font-size='14' text-anchor='middle' fill='%237A1E32' font-family='serif' font-weight='bold'%3E%E2%9C%A7%3C/text%3E%3C/svg%3E") 16 16, grab;
  touch-action: none;
  user-select: none;
}

/* Scalable Vector Heart Clip Path */
.heart-vector-clip {
  clip-path: url(#heart-clip-svg);
  -webkit-clip-path: url(#heart-clip-svg);
}

/* Underneath Revealed Content - Clean Velvet Heart with High Text Position */
.scratch-under-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #7A142B 0%, #4D0A1A 65%, #2B040D 100%);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 75px;
  box-shadow: 0 15px 45px rgba(122, 30, 50, 0.5);
  user-select: none;
  text-align: center;
}

.scratch-date-content-inner {
  transform: translateY(-18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scratch-day-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--champagne);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.scratch-day-number {
  font-family: var(--font-heading);
  font-size: clamp(4.4rem, 11.5vw, 5.6rem);
  font-weight: 800;
  line-height: 0.9;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 35px rgba(232, 201, 145, 0.8);
  margin: 0;
}

.scratch-month-year {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFDE9E;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-top: 2px;
  margin-bottom: 8px;
}

.scratch-time-badge {
  background: #FFFFFF;
  color: #631224;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

/* Scratch Canvas Layer */
#scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: inherit;
  touch-action: none;
  z-index: 2;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 10px 25px rgba(122, 30, 50, 0.35));
}

#scratch-canvas:active {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23D4AF37' stroke='%237A1E32' stroke-width='2.5'/%3E%3Ctext x='16' y='21' font-size='14' text-anchor='middle' fill='%23FFFFFF' font-family='serif' font-weight='bold'%3E%E2%9C%A7%3C/text%3E%3C/svg%3E") 16 16, grabbing;
}

/* Foil Shavings Falling Particles Canvas */
#scratch-shavings-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.reveal-keyboard-btn {
  background: transparent;
  border: 1px solid var(--rose);
  color: var(--rose);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.reveal-keyboard-btn:hover {
  background: var(--rose);
  color: var(--ivory);
}

/* ==========================================================================
   10. ADD TO GOOGLE CALENDAR BUTTON (DIRECT LINK - NO FILE DOWNLOAD)
   ========================================================================== */
.btn-google-calendar-pill {
  background: linear-gradient(135deg, #7A1E32 0%, #541120 100%);
  color: #FFFFFF !important;
  border: 2px solid var(--champagne);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(122, 30, 50, 0.4), 0 0 20px rgba(232, 201, 145, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-google-calendar-pill:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--burgundy-dark);
  color: var(--champagne) !important;
  box-shadow: 0 15px 40px rgba(122, 30, 50, 0.6), 0 0 35px rgba(232, 201, 145, 0.7);
}

/* ==========================================================================
   11. COUNTDOWN TIMER
   ========================================================================== */
.countdown-section {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--soft-pink) 100%);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.countdown-card-unit {
  flex: 1 1 120px;
  max-width: 140px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--champagne);
  border-radius: var(--radius-md);
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
}

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

.countdown-digit {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
  display: block;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 6px;
  display: block;
}

.countdown-passed-message {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--burgundy);
}

/* ==========================================================================
   12. COUPLE GALLERY SECTION (DRAG & SWIPE CAPABLE)
   ========================================================================== */
.gallery-section {
  background-color: var(--ivory);
}

.gallery-carousel-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  user-select: none;
}

.gallery-slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: grab;
  touch-action: pan-y;
  position: relative;
}

.gallery-slider-viewport:active,
.gallery-slider-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.gallery-slide-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  padding: 4px;
}

.gallery-slide-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--ivory);
  box-shadow: var(--shadow-md);
  position: relative;
  background-color: var(--soft-pink);
  aspect-ratio: 4 / 3;
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
}

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

/* Pagination Indicator Dots */
.gallery-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.gallery-dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(180, 93, 114, 0.3);
  border: 1.5px solid var(--champagne);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.gallery-dot-btn.active {
  width: 32px;
  border-radius: var(--radius-pill);
  background: var(--burgundy);
  border-color: var(--champagne);
  box-shadow: 0 0 12px rgba(122, 30, 50, 0.4);
}

.gallery-drag-hint {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Carousel Nav Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--champagne);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-smooth);
}

.gallery-nav-btn:hover {
  background: var(--burgundy);
  color: var(--champagne);
}

.gallery-nav-prev { left: -22px; }
.gallery-nav-next { right: -22px; }

@media (max-width: 768px) {
  .gallery-nav-prev { left: 10px; }
  .gallery-nav-next { right: 10px; }
}

/* ==========================================================================
   13. WEDDING PROGRAM TIMELINE
   ========================================================================== */
.timeline-section {
  background: linear-gradient(180deg, var(--soft-pink) 0%, var(--ivory) 100%);
}

.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--champagne) 0%, var(--burgundy) 50%, var(--champagne) 100%);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-wrapper::before {
    left: 30px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 2px solid var(--champagne);
  color: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 15px rgba(122, 30, 50, 0.4);
}

@media (max-width: 768px) {
  .timeline-icon-dot {
    left: 30px;
  }
}

.timeline-card-content {
  width: 44%;
  padding: 26px 24px;
}

.timeline-item:nth-child(odd) .timeline-card-content {
  margin-left: auto;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-card-content {
  margin-right: auto;
  text-align: right;
}

@media (max-width: 768px) {
  .timeline-card-content,
  .timeline-item:nth-child(odd) .timeline-card-content,
  .timeline-item:nth-child(even) .timeline-card-content {
    width: calc(100% - 70px);
    margin-left: 70px;
    text-align: left;
  }
}

.timeline-event-time {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: var(--rose);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.timeline-event-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ==========================================================================
   14. VENUE & LOCATION SECTION
   ========================================================================== */
.location-section {
  background-color: var(--ivory);
}

.venue-master-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 32px;
}

.venue-icon-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(122, 30, 50, 0.08);
  border: 1.5px solid var(--champagne);
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.venue-name-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 8px;
}

.venue-address-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto 24px;
}

.btn-venue-action {
  background: transparent;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-venue-action:hover {
  background: var(--burgundy);
  color: var(--ivory);
}

.btn-venue-primary {
  background: var(--burgundy);
  color: var(--ivory);
  border-color: var(--burgundy);
}

.btn-venue-primary:hover {
  background: var(--burgundy-dark);
  color: var(--champagne);
}

/* ==========================================================================
   15. RSVP SECTION
   ========================================================================== */
.rsvp-section {
  background: linear-gradient(180deg, var(--soft-pink) 0%, var(--ivory) 100%);
  position: relative;
  z-index: 5;
}

.rsvp-form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 45px 36px;
}

.form-label-custom {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  background-color: #FFFFFF;
  border: 1px solid rgba(180, 93, 114, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--dark-text);
  transition: var(--transition-smooth);
}

.form-control-custom:focus {
  background-color: #FFFFFF;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(122, 30, 50, 0.15);
  outline: none;
}

.radio-pill-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-pill-label {
  flex: 1;
  min-width: 140px;
  border: 1px solid rgba(180, 93, 114, 0.4);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--dark-text);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.radio-pill-input {
  display: none;
}

.radio-pill-input:checked + .radio-pill-label {
  background: var(--burgundy);
  color: var(--ivory);
  border-color: var(--burgundy);
}

.btn-rsvp-submit {
  background: var(--burgundy);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--champagne);
  box-shadow: 0 8px 25px var(--burgundy-glow);
  width: 100%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-rsvp-submit:hover {
  background: var(--burgundy-dark);
  color: var(--champagne);
  transform: translateY(-2px);
}

/* ==========================================================================
   16. CLOSING & FOOTER
   ========================================================================== */
.closing-section {
  background: linear-gradient(180deg, var(--ivory) 0%, #3B0A18 45%, #1F030C 100%);
  color: var(--ivory);
  text-align: center;
  padding: 110px 20px 80px;
  position: relative;
  z-index: 6;
}

.closing-couple-signature {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  color: var(--champagne);
  margin: 16px 0;
  text-shadow: 0 0 25px rgba(232, 201, 145, 0.4);
}

.minimal-footer {
  background-color: #140207;
  color: rgba(255, 249, 244, 0.7);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  padding: 35px 15px;
  text-align: center;
  border-top: 1px solid rgba(232, 201, 145, 0.25);
  position: relative;
  z-index: 6;
}

/* ==========================================================================
   17. LIGHTBOX & MODALS
   ========================================================================== */
.custom-modal-backdrop {
  background: rgba(33, 8, 17, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content-luxury {
  background: var(--ivory);
  border: 2px solid var(--champagne);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  text-align: center;
}

/* Floating Hearts & Marigold Canvas - shown only after entering home screen */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 980;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.home-entered #particles-canvas {
  opacity: 1;
}
