/* ==========================================================================
   PRASANTH & KARTHESHA WEDDING INVITATION WEBSITE (#PraKar)
   Premium Modern Indian Wedding Invitation Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Ivory & Royal Indian Wedding Tones */
  --bg-ivory: #FAF7F2;
  --bg-cream: #FFFDF9;
  --bg-cream-card: #FFFFFF;
  --bg-cream-alt: #F4EFEA;
  --bg-dark-wine: #380710;
  --bg-crimson: #630F1C;
  --bg-emerald: #143224;

  /* Gold Gradients & Accents */
  --gold-primary: #C59B27;
  --gold-light: #F9E7B3;
  --gold-bright: #FFD54F;
  --gold-dark: #8C6B1B;
  --gold-metallic: linear-gradient(135deg, #FFF0C2 0%, #D4AF37 50%, #9A7415 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(249, 231, 179, 0.3) 100%);
  --gold-border: rgba(197, 155, 39, 0.45);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.35);

  /* Typography Colors */
  --text-primary: #1A2836;
  --text-secondary: #485968;
  --text-muted: #738496;
  --text-gold: #AA771C;
  --text-wine: #7A1224;
  --text-ocean-deep: #081d2d;
  --text-ocean-azure: #13557F;
  --text-light: #FFFDF9;

  /* Fonts - Clean regal serifs with zero merged ligatures */
  --font-serif-display: 'Cinzel', 'Marcellus', 'Playfair Display', Georgia, serif;
  --font-serif-editorial: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', 'Alex Brush', cursive;
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-telugu: 'Noto Serif Telugu', 'Gautami', 'Suranna', serif;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(43, 24, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 24, 16, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 24, 16, 0.12);
  --shadow-gold: 0 8px 30px rgba(197, 155, 39, 0.25);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Spacing */
  --container-max-w: 1120px;
  --section-pad-y: 80px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-ivory);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-ivory);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(122, 18, 36, 0.03) 0%, transparent 40%);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND PARTICLES CANVAS
   -------------------------------------------------------------------------- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   4. WELCOME & ENVELOPE OPENING OVERLAY (Luminous Light Aesthetic)
   -------------------------------------------------------------------------- */
#welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #F8F5EE;
  background-image: 
    radial-gradient(ellipse at 50% 15%, rgba(206, 235, 252, 0.75) 0%, rgba(235, 246, 253, 0.5) 40%, transparent 75%),
    radial-gradient(circle at 90% 85%, rgba(247, 232, 203, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 10% 85%, rgba(244, 226, 192, 0.55) 0%, transparent 50%),
    linear-gradient(180deg, #E2F2FC 0%, #F4F9FD 20%, #FAF6EF 60%, #F5EDE2 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c59b27' fill-opacity='0.045' fill-rule='evenodd'%3E%3Cpath d='M30 30L15 15L0 30L15 45L30 30zM45 45L30 30L45 15L60 30L45 45z'/%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.9s ease;
}

#welcome-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Envelope Container */
.envelope-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  perspective: 1200px;
  margin: auto;
}

.envelope-card {
  position: relative;
  background: linear-gradient(
    180deg,
    #FFFDF7 0%,
    #F8F6EE 50%,
    #EEF7FB 100%
  );
  border-radius: var(--radius-lg);
  padding: 24px 20px 28px;
  box-shadow:
    0 20px 50px rgba(50, 75, 100, 0.12),
    0 4px 15px rgba(197, 155, 39, 0.12);
  text-align: center;
  border: 2px solid #D4AF37;
  background-clip: padding-box;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.envelope-card::before {
  display: none;
}

.envelope-inner-border {
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(197, 155, 39, 0.45);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.envelope-inner-border::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(197, 155, 39, 0.35);
  border-radius: calc(var(--radius-lg) - 10px);
}

/* Monogram Seal & Header */
.envelope-top-crest {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.envelope-seal-img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(197, 155, 39, 0.3));
  animation: pulseSeal 3s infinite ease-in-out;
}

@keyframes pulseSeal {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.envelope-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-gold);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Couple Illustration in Envelope - 100% FULL PHOTO WITHOUT CROPPING */
.envelope-image-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(40, 75, 110, 0.12);
  border: 2.5px solid var(--gold-primary);
  background: #F4FAFD;
}

.envelope-image-frame img,
.envelope-image-frame .welcome-couple-img {
  width: 100%;
  height: auto;
  max-height: none !important; /* CRITICAL: Never crop or cut photo height */
  object-fit: contain !important; /* CRITICAL: Keep complete photo intact */
  display: block;
  border-radius: calc(var(--radius-md) - 2px);
  transition: transform 0.6s ease;
}

.envelope-card:hover .envelope-image-frame img {
  transform: scale(1.015);
}

/* Telugu Wedding Phrase - EXACT */
.envelope-telugu-text {
  font-family: var(--font-telugu);
  font-size: 1.3rem;
  line-height: 1.55;
  font-weight: 700;
  color: #0F3B5F;
  margin: 12px 0 6px;
  text-shadow: 0 1px 2px rgba(15, 59, 95, 0.08);
}

.envelope-names-preview {
  font-family: var(--font-serif-display);
  font-size: 1.2rem;
  color: #1A2836;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.envelope-names-preview span.couple-ampersand,
.envelope-names-preview span {
  color: var(--gold-dark);
  font-family: var(--font-serif-editorial);
  font-style: italic;
  margin: 0 6px;
}

/* Ensure names are crisp, regal, and 'h' & 'e' never merge */
.couple-name,
.bride-name,
.hero-divine-names,
.envelope-names-preview,
.divine-names-reveal h2 {
  font-family: 'Cinzel', 'Marcellus', Georgia, serif !important;
  font-variant-ligatures: none !important;
  -webkit-font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0, "calt" 0 !important;
  letter-spacing: 0.08em !important;
  text-rendering: optimizeLegibility;
}

/* Targeted clear breathing room for Karthesha */
.bride-name {
  letter-spacing: 0.09em !important;
  display: inline-block;
}

.envelope-names-preview span {
  color: var(--gold-dark);
  font-family: var(--font-serif-editorial);
  font-style: italic;
  margin: 0 4px;
}

/* Open Invitation Button */
.btn-open-invitation {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 16px 28px;
  background: var(--gold-metallic);
  color: #380710;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.8) inset;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.btn-open-invitation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: goldShine 2.8s infinite;
}

@keyframes goldShine {
  0% { left: -100%; }
  40%, 100% { left: 100%; }
}

.btn-open-invitation:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.55), 0 0 0 2px #fff inset;
}

.btn-open-invitation:active {
  transform: translateY(1px) scale(0.98);
}

.btn-open-invitation svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-open-invitation:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. DIVINE RAMA & SITA OPENING ANIMATION OVERLAY
   -------------------------------------------------------------------------- */
#divine-opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(ellipse at 50% 48%, #2e0813 0%, #150207 65%, #080003 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#divine-opening-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#divine-opening-overlay.state-fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ambient Sacred Atmosphere */
.divine-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.divine-light-beam {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 120vw);
  height: 90vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 223, 133, 0.25) 0%, rgba(212, 175, 55, 0.08) 45%, transparent 75%);
  filter: blur(20px);
  animation: divineBeamPulse 6s ease-in-out infinite alternate;
}

@keyframes divineBeamPulse {
  0% { opacity: 0.7; transform: translateX(-50%) scaleX(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scaleX(1.05); }
}

.divine-shimmer-ring {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.03) 50%, transparent 70%);
  filter: blur(15px);
  pointer-events: none;
}

/* Skip Button */
.btn-skip-divine {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFE082;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  opacity: 0.85;
}

.btn-skip-divine:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #D4AF37;
  opacity: 1;
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   HANDS STAGE (Steps 1, 2, 3, 4, 5)
   -------------------------------------------------------------------------- */
.divine-anim-stage {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 560px);
  height: 400px;
  pointer-events: none;
  display: block;
  z-index: 10;
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}

/* When revealing image, stage fades out smoothly */
#divine-opening-overlay.step-reveal-image .divine-anim-stage {
  opacity: 0;
  transform: translate(-50%, -54%) scale(0.96);
  filter: blur(8px);
  pointer-events: none;
}

/* Lord Rama Hand Wrapper */
.divine-hand-wrapper.divine-hand-rama {
  position: absolute;
  left: 2%;
  top: 22%;
  width: 68%;
  aspect-ratio: 1131 / 798;
  transform: translate(-140%, 35%) rotate(-8deg);
  opacity: 0;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 15px rgba(100, 160, 255, 0.2));
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
  will-change: transform, opacity;
  z-index: 10;
}

/* Goddess Sita Hand Wrapper */
.divine-hand-wrapper.divine-hand-sita {
  position: absolute;
  left: 34%;
  top: 2%;
  width: 58%;
  aspect-ratio: 951 / 931;
  transform: translate(140%, -35%) rotate(8deg);
  opacity: 0;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.25));
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
  will-change: transform, opacity;
  z-index: 20; /* Sita hand rests ON TOP of Rama palm */
}

.divine-hand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* STEP 2 & 3: HANDS ENTER - Extended naturally on opposite sides */
#divine-opening-overlay.step-hands-enter .divine-hand-wrapper.divine-hand-rama {
  transform: translate(-42%, 12%) rotate(-3deg);
  opacity: 1;
}

#divine-opening-overlay.step-hands-enter .divine-hand-wrapper.divine-hand-sita {
  transform: translate(42%, -12%) rotate(3deg);
  opacity: 1;
}

/* STEP 4: REALISTIC HAND JOINING - Slowly glide toward each other */
#divine-opening-overlay.step-hands-join .divine-hand-wrapper.divine-hand-rama {
  transform: translate(0, 0) rotate(0deg);
  opacity: 1;
  transition: transform 2.4s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.8s ease;
}

#divine-opening-overlay.step-hands-join .divine-hand-wrapper.divine-hand-sita {
  transform: translate(0, 0) rotate(0deg);
  opacity: 1;
  transition: transform 2.4s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.8s ease;
}

/* STEP 5: HANDS JOINED - Hold with gentle divine breathing motion */
#divine-opening-overlay.step-hands-meet .divine-hand-wrapper.divine-hand-rama {
  transform: translate(0, 0) rotate(0deg);
  opacity: 1;
  animation: joinedRamaHold 3s ease-in-out infinite alternate;
}

#divine-opening-overlay.step-hands-meet .divine-hand-wrapper.divine-hand-sita {
  transform: translate(0, 0) rotate(0deg);
  opacity: 1;
  animation: joinedSitaHold 3s ease-in-out infinite alternate;
}

@keyframes joinedRamaHold {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2px, -3px) rotate(-0.5deg); }
}

@keyframes joinedSitaHold {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2px, -3px) rotate(-0.5deg); }
}

/* Sacred Contact Glow at Hand Junction */
.divine-contact-glow {
  position: absolute;
  left: 42%;
  top: 55%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #FFF3B0 25%, #FFD700 50%, rgba(212, 175, 55, 0.3) 75%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}

#divine-opening-overlay.step-hands-meet .divine-contact-glow {
  transform: translate(-50%, -50%) scale(2.2);
  opacity: 0.95;
  filter: blur(8px);
}

/* --------------------------------------------------------------------------
   REVEALED CONTENT (Steps 6 & 7)
   -------------------------------------------------------------------------- */
.divine-revealed-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 30;
}

#divine-opening-overlay.step-reveal-image .divine-revealed-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.divine-painting-frame {
  width: 100%;
  max-width: 310px;
  max-height: 48vh;
  border-radius: 18px;
  padding: 6px;
  background: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #996515 100%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 175, 55, 0.45);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: divineFrameShine 4s ease-in-out infinite alternate;
}

@keyframes divineFrameShine {
  0% { box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.35); }
  100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85), 0 0 45px rgba(255, 215, 0, 0.6); }
}

.divine-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divine-portrait-img {
  width: 100%;
  max-height: 46vh;
  object-fit: contain;
  display: block;
}

.divine-names-reveal {
  text-align: center;
  color: var(--text-light, #FFF);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#divine-opening-overlay.step-reveal-names .divine-names-reveal {
  opacity: 1;
  transform: translateY(0);
}

.divine-eyebrow {
  font-family: var(--font-serif-editorial, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: #FFE082;
  margin-bottom: 8px;
}

.divine-couple-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.divine-names-reveal h2.couple-name {
  display: inline-block;
  font-family: var(--font-serif-display, 'Cinzel', 'Marcellus', Georgia, serif);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #FFF2C6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.3);
  margin: 0;
  line-height: 1.2;
}

.divine-names-reveal .ampersand {
  display: inline-block;
  font-family: var(--font-serif-editorial, 'Playfair Display', serif);
  font-style: italic;
  font-size: 1.9rem;
  color: #D4AF37;
  margin: 0 4px;
}

.divine-date-pill {
  margin-top: 10px;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E8D49E;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   6. FLOATING MUSIC CONTROLLER
   -------------------------------------------------------------------------- */
.music-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(43, 24, 16, 0.15), 0 0 15px rgba(212, 175, 55, 0.25);
  color: var(--text-wine);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  user-select: none;
}

.music-floating-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(43, 24, 16, 0.2), 0 0 20px rgba(212, 175, 55, 0.4);
}

.music-floating-btn:active {
  transform: translateY(1px) scale(0.97);
}

.music-icon-wrap {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Animated Sound Wave Bars */
.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.eq-bar {
  width: 3px;
  height: 4px;
  background-color: var(--gold-dark);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.music-floating-btn.playing .eq-bar:nth-child(1) {
  animation: eqBounce 1.1s ease-in-out infinite alternate;
}
.music-floating-btn.playing .eq-bar:nth-child(2) {
  animation: eqBounce 0.8s ease-in-out 0.2s infinite alternate;
}
.music-floating-btn.playing .eq-bar:nth-child(3) {
  animation: eqBounce 1.3s ease-in-out 0.4s infinite alternate;
}

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

/* --------------------------------------------------------------------------
   7. MAIN WEBSITE LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
#main-website {
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#main-website.visible {
  opacity: 1;
}

.site-container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-pad {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

/* Common Section Header Styles */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif-display);
  font-size: 2.2rem;
  color: var(--text-wine);
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px auto 0;
}

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

.section-divider-motif {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C59B27'%3E%3Cpath d='M12 2L15 9L22 12L15 15L12 22L9 15L2 12L9 9L12 2Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   8. HERO / DIVINE BANNER SECTION (Post-Opening)
   -------------------------------------------------------------------------- */
.hero-divine-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
  background: radial-gradient(ellipse at top, #FFF9EB 0%, transparent 70%);
}

.hero-divine-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-divine-img-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 175, 55, 0.3);
  border: 2px solid var(--gold-primary);
}

.hero-divine-names {
  font-family: var(--font-serif-display);
  font-size: 2.8rem;
  color: var(--text-wine);
  line-height: 1.15;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-ampersand {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold-dark);
  display: block;
  margin: 4px 0;
}

.hero-hashtag-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-gold);
  background: var(--gold-gradient-soft);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-border);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   9. OUR FAMILIES SECTION
   -------------------------------------------------------------------------- */
.families-section {
  background-color: var(--bg-cream);
  position: relative;
}

/* Prominent Parents Cards Grid */
.parents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.family-card-parent {
  position: relative;
  background: var(--bg-cream-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1.5px solid var(--gold-border);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 255, 255, 0.8) inset;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.family-card-parent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold-metallic);
}

.family-card-parent:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.parent-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-gold);
  background: var(--gold-gradient-soft);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-border);
  margin-bottom: 20px;
}

.parent-kalash-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 12px;
}

.parent-name {
  font-family: var(--font-serif-editorial);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-wine);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.parent-connector {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold-dark);
  line-height: 1;
  margin: 6px 0;
}

/* Secondary Relatives Grid */
.relatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.family-card-relative {
  background: var(--bg-cream-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.family-card-relative:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.relative-role-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 12px;
}

.relative-name {
  font-family: var(--font-serif-editorial);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.relative-name + .relative-name {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   10. OUR SPECIAL DAYS (WEDDING & RECEPTION)
   -------------------------------------------------------------------------- */
.special-days-section {
  background-color: var(--bg-ivory);
}

.events-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.event-card {
  position: relative;
  background: var(--bg-cream-card);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gold-border);
  text-align: center;
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

/* Distinct card accents */
.event-card.card-wedding {
  border-top: 6px solid var(--bg-crimson);
}

.event-card.card-reception {
  border-top: 6px solid var(--bg-emerald);
}

.event-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.card-wedding .event-badge {
  background: #FBECEE;
  color: var(--bg-crimson);
  border: 1px solid rgba(99, 15, 28, 0.2);
}

.card-reception .event-badge {
  background: #E8F5E9;
  color: var(--bg-emerald);
  border: 1px solid rgba(20, 50, 36, 0.2);
}

.event-title {
  font-family: var(--font-serif-display);
  font-size: 2.1rem;
  color: var(--text-wine);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.event-date-wrap {
  margin: 18px 0;
  padding: 16px;
  background: var(--bg-ivory);
  border-radius: var(--radius-md);
  border: 1px dashed var(--gold-border);
}

.event-date-main {
  font-family: var(--font-serif-editorial);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.event-time-highlight {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-top: 4px;
}

.event-sub-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.event-loc-preview {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 14px 0 6px;
}

.event-venue-preview {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   11. VENUES & DETAILS SECTION + GOOGLE MAPS + CALENDAR
   -------------------------------------------------------------------------- */
.venues-section {
  background-color: var(--bg-cream);
}

.venue-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.venue-box {
  background: var(--bg-cream-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1.5px solid var(--gold-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.venue-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.venue-box-header {
  margin-bottom: 20px;
}

.venue-type-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 8px;
}

.venue-title {
  font-family: var(--font-serif-editorial);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-wine);
  margin-bottom: 12px;
}

.venue-address-block {
  margin: 14px 0 24px;
  padding: 16px;
  background: var(--bg-ivory);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

.venue-place-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.venue-place-city {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.venue-status-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #B26A00;
  font-weight: 600;
  margin-top: 8px;
}

/* Venue Action Buttons */
.venue-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.btn-venue-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--text-wine);
  color: #FFFDF9;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(122, 18, 36, 0.25);
  transition: var(--transition-smooth);
}

.btn-venue-maps:hover {
  background: #500A15;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 18, 36, 0.35);
}

.btn-venue-maps.disabled-btn {
  background: #E0D7D0;
  color: #8C7C75;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-venue-maps.disabled-btn:hover {
  transform: none;
}

.btn-add-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--bg-cream-card);
  color: var(--text-wine);
  border: 1.5px solid var(--gold-border);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.btn-add-calendar:hover {
  background: var(--gold-gradient-soft);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-add-calendar svg,
.btn-venue-maps svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. OUR BEAUTIFUL MOMENTS (GALLERY CAROUSEL)
   -------------------------------------------------------------------------- */
.gallery-section {
  background-color: var(--bg-ivory);
  overflow: hidden;
}

.carousel-outer-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.carousel-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 8px 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  user-select: none;
  cursor: grab;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-container.grabbing {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  max-width: 380px;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gold-border);
  background: var(--bg-cream-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.carousel-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.gallery-card-img-wrap {
  width: 100%;
  height: 380px;
  position: relative;
  overflow: hidden;
  background: #FFFDF9;
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-slide:hover .gallery-card-img-wrap img {
  transform: scale(1.05);
}

.gallery-card-info {
  padding: 20px;
  text-align: center;
  background: var(--bg-cream-card);
  border-top: 1px solid rgba(197, 155, 39, 0.2);
}

.gallery-card-title {
  font-family: var(--font-serif-editorial);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-wine);
  margin-bottom: 4px;
}

.gallery-card-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Carousel Nav Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-cream-card);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-wine);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--gold-metallic);
  color: #380710;
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.carousel-pagination-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D8CCC3;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 6px;
  background: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   13. OUR JOURNEY SECTION
   -------------------------------------------------------------------------- */
.journey-section {
  background-color: var(--bg-cream);
  position: relative;
}

.journey-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-cream-card);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  border: 2px solid var(--gold-border);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, 0.9) inset;
  position: relative;
  overflow: hidden;
}

.journey-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 30px;
  font-family: var(--font-serif-editorial);
  font-size: 8rem;
  color: rgba(197, 155, 39, 0.12);
  line-height: 1;
  pointer-events: none;
}

.journey-quote-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  fill: var(--gold-primary);
  opacity: 0.85;
}

.journey-paragraph-text {
  font-family: var(--font-serif-editorial);
  font-size: 1.45rem;
  line-height: 1.85;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.journey-signature {
  font-family: 'Cinzel', 'Marcellus', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-wine);
  margin-top: 20px;
  text-transform: uppercase;
}

.journey-signature .sig-ampersand {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-dark);
  text-transform: none;
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   14. WEDDING COUNTDOWN SECTION
   -------------------------------------------------------------------------- */
.countdown-section {
  background: radial-gradient(circle at 50% 50%, #4D0917 0%, #20040A 100%);
  color: #FFFDF9;
  position: relative;
  overflow: hidden;
}

.countdown-section .section-title {
  color: #FFE599;
}

.countdown-section .section-eyebrow {
  color: var(--gold-bright);
}

.countdown-section .section-desc {
  color: #E2CFB8;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.countdown-box {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 24px 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
}

.countdown-num {
  font-family: var(--font-serif-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFFDF9;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 213, 79, 0.4);
  margin-bottom: 8px;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.countdown-finished-msg {
  display: none;
  font-family: var(--font-serif-editorial);
  font-size: 2rem;
  font-weight: 700;
  color: #FFE599;
  text-align: center;
  padding: 30px;
  animation: fadeIn 1s ease;
}

/* --------------------------------------------------------------------------
   15. WHATSAPP SHARE SECTION
   -------------------------------------------------------------------------- */
.share-section {
  background-color: var(--bg-cream);
  text-align: center;
}

.share-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-cream-card);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  border: 1.5px solid var(--gold-border);
  box-shadow: var(--shadow-md);
}

.share-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-whatsapp-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  background: #25D366;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-whatsapp-share:hover {
  background: #1EBE5B;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-share:active {
  transform: translateY(1px);
}

.btn-whatsapp-share svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   16. FINAL FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #26050C;
  color: #FFFDF9;
  text-align: center;
  padding: 70px 20px 60px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--gold-primary);
}

.footer-motif {
  width: 36px;
  height: 36px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.footer-emotional-message {
  font-family: var(--font-serif-editorial);
  font-size: 1.45rem;
  font-weight: 600;
  color: #FFE599;
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 16px;
  letter-spacing: 0.5px;
}

.footer-signoff {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-top: 10px;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   17. MODAL STYLES (Venue Details Coming Soon / Calendar modal)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(18, 4, 7, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.modal-title {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  color: var(--text-wine);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-modal-close {
  padding: 12px 28px;
  background: var(--gold-metallic);
  color: #380710;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.btn-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
}

/* --------------------------------------------------------------------------
   18. SCROLL ANIMATION UTILITIES (IntersectionObserver)
   -------------------------------------------------------------------------- */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-fade-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE BREAKPOINTS (Mobile-First Polish)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --section-pad-y: 64px;
  }

  .parents-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .relatives-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .events-dual-grid,
  .venue-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carousel-slide {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad-y: 52px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .envelope-telugu-text {
    font-size: 1.2rem;
  }

  .hero-divine-names {
    font-size: 2.2rem;
  }

  .hero-ampersand {
    font-size: 1.8rem;
  }

  .divine-anim-stage {
    width: min(94vw, 360px);
    height: 280px;
    top: 46%;
  }

  .divine-hand-wrapper.divine-hand-rama {
    left: 2%;
    top: 22%;
    width: 68%;
  }

  .divine-hand-wrapper.divine-hand-sita {
    left: 34%;
    top: 2%;
    width: 58%;
  }

  .divine-contact-glow {
    width: 100px;
    height: 100px;
  }

  .divine-painting-frame {
    max-width: 250px;
    max-height: 42vh;
    margin-bottom: 14px;
    border-radius: 14px;
    padding: 4px;
  }

  .divine-portrait-img {
    max-height: 40vh;
  }

  .divine-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .divine-names-reveal h2.couple-name {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }

  .divine-names-reveal .ampersand {
    font-size: 1.4rem;
    margin: 0 4px;
  }

  .divine-date-pill {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 6px;
  }

  .btn-skip-divine {
    top: 16px;
    right: 16px;
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .carousel-slide {
    flex: 0 0 85%;
    min-width: 250px;
  }

  .journey-card {
    padding: 36px 20px;
  }

  .journey-paragraph-text {
    font-size: 1.15rem;
    line-height: 1.75;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .countdown-num {
    font-size: 2.3rem;
  }

  .music-floating-btn {
    bottom: 18px;
    right: 18px;
    padding: 8px 14px;
  }

  .music-floating-btn span {
    display: none; /* Icon & equalizer only on small mobile */
  }

  .footer-emotional-message {
    font-size: 1.25rem;
  }

  .footer-signoff {
    font-size: 1.9rem;
  }
}
