/* ==========================================================================
   ANHAD & KANISHKA — CINEMATIC WEDDING INVITATION
   Royal Indian Luxury Wedding Experience | Surajkund (20–21 Nov 2026)
   ========================================================================== */

/* ==========================================================================
   1. ROOT / VARIABLES & THEME
   ========================================================================== */
:root {
  /* Royal Palette */
  --burgundy: #741820;
  --crimson: #8B1522;
  --wine: #4B1118;
  --wine-dark: #2A090E;
  --gold: #C79A4A;
  --gold-light: #E1BF76;
  --gold-pale: #F3E5C8;
  --ivory: #F8F0E3;
  --ivory-warm: #FAF4EB;
  --sandstone: #D8B98C;
  --dark-brown: #38251F;
  --ink: #1F1410;
  --muted-gold: rgba(199, 154, 74, 0.4);

  /* Glassmorphism & Translucencies */
  --glass-wine: rgba(75, 17, 24, 0.78);
  --glass-burgundy: rgba(116, 24, 32, 0.82);
  --glass-ivory: rgba(248, 240, 227, 0.88);
  --glass-border: rgba(199, 154, 74, 0.35);
  --glass-border-light: rgba(225, 191, 118, 0.45);
  --shadow-royal: 0 16px 48px rgba(42, 9, 14, 0.35);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-royal: "Cinzel", "Playfair Display", serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--wine-dark);
  color: var(--ivory);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ivory);
  background-color: var(--wine-dark);
  overflow-x: hidden;
  position: relative;
}

body.intro-locked {
  overflow: hidden !important;
  height: 100svh !important;
  touch-action: none;
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--gold);
}

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

/* Selection */
::selection {
  background: var(--gold);
  color: var(--wine-dark);
}

/* Typography Base Classes */
.font-script { font-family: var(--font-script); }
.font-heading { font-family: var(--font-heading); }
.font-royal { font-family: var(--font-royal); }
.font-body { font-family: var(--font-body); }

.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-ivory { color: var(--ivory) !important; }
.text-sandstone { color: var(--sandstone) !important; }

/* Section Base */
section {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.5rem) 1.5rem;
}

.section-label {
  font-family: var(--font-royal);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  display: inline-block;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--gold-pale);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--sandstone);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

.royal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 320px;
}
.royal-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.royal-divider .symbol {
  color: var(--gold-light);
  font-size: 0.9rem;
}

/* ==========================================================================
   3. SCENE 1 — INTRO / SURAJKUND GATE (ZERO LOADER OPENING)
   ========================================================================== */
#intro {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
  background-color: #120406;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.intro-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#introVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.001);
  will-change: transform;
}

/* Soft cinematic gradient overlays over video */
.intro-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 6, 10, 0.25) 0%, rgba(18, 4, 6, 0.75) 85%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 1.2s ease;
}

.intro-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 5, 8, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-dark-overlay.active {
  opacity: 1;
}

/* Center AK Wax Seal Button */
.ak-seal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ak-seal-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
}

.ak-seal-img {
  width: clamp(130px, 22vw, 190px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 20px rgba(199, 154, 74, 0.45));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  animation: sealGentleGlow 3.5s ease-in-out infinite alternate;
}

.ak-seal-wrapper:hover .ak-seal-img {
  transform: scale(1.05);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 32px rgba(225, 191, 118, 0.7));
}

.ak-seal-text {
  font-family: var(--font-royal);
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-top: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: textShimmer 2.8s ease-in-out infinite;
}

.ak-seal-text::before,
.ak-seal-text::after {
  content: "❖";
  font-size: 0.65rem;
  color: var(--gold);
}

@keyframes sealGentleGlow {
  0% { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(199, 154, 74, 0.35)); }
  100% { filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 30px rgba(225, 191, 118, 0.65)); }
}

@keyframes textShimmer {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); color: #FFF3D6; }
}

/* AK Badge Physical Press Reaction */
.ak-seal-wrapper.is-pressed .ak-seal-img {
  transform: scale(0.91);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(225, 191, 118, 0.9));
}

.ak-seal-wrapper.is-hidden {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(1.18);
  pointer-events: none !important;
}

/* ==========================================================================
   HERO REVEAL OVER FROZEN VIDEO FRAME
   ========================================================================== */
.hero-reveal-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-reveal-content.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-together {
  font-family: var(--font-royal);
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-couple-names {
  margin: 0.5rem 0;
}

.hero-name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8.5vw, 6.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: #FFF6E5;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 0 40px rgba(199, 154, 74, 0.3);
  opacity: 0;
  transform: translateY(30px);
}

.hero-ampersand {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  color: var(--gold-light);
  margin: -0.2rem 0;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
}

.hero-divider {
  width: min(260px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
  opacity: 0;
  transform: scaleX(0);
}

.hero-dates {
  font-family: var(--font-royal);
  font-size: clamp(0.95rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-location {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sandstone);
  opacity: 0;
  transform: translateY(20px);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: rgba(248, 240, 227, 0.85);
  margin-top: 1rem;
  opacity: 0;
}

.hero-scroll-prompt {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-family: var(--font-royal);
  font-size: clamp(0.68rem, 1.2vw, 0.8rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.hero-scroll-prompt i {
  font-size: 1.1rem;
  animation: scrollArrowBounce 2s ease-in-out infinite;
}

@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ==========================================================================
   4. ROYAL FLOATING PILL NAVIGATION (MATCHING SCREENSHOT)
   ========================================================================== */
.floating-nav-container {
  position: fixed;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 1000;
  width: min(1140px, 94vw);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.floating-nav-container.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.royal-pill-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #3A0C14 0%, #1F0508 100%);
  border: 1px solid rgba(199, 154, 74, 0.45);
  border-radius: 9999px;
  padding: 0.35rem 1.6rem 0.35rem 0.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(199, 154, 74, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 2;
}

/* Left Clean AK Wax Badge Logo */
.nav-logo-badge {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 0.2rem;
}

.nav-clean-badge-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(199, 154, 74, 0.3));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.nav-logo-badge:hover .nav-clean-badge-img {
  transform: scale(1.12) rotate(4deg);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 16px rgba(225, 191, 118, 0.65));
}

/* Nav Links Pill */
.nav-links-pill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.6rem, 1.8vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0 0.6rem;
  flex-grow: 1;
}

.nav-pill-link {
  font-family: var(--font-royal);
  font-size: clamp(0.72rem, 1.05vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sandstone);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0.2rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-pill-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transition: transform 0.3s ease;
}

.nav-pill-link:hover,
.nav-pill-link.is-active {
  color: #FFF6E5;
  text-shadow: 0 0 12px rgba(225, 191, 118, 0.7);
}

.nav-pill-link:hover::after,
.nav-pill-link.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  outline: none;
}

/* Mobile Drawer */
.nav-mobile-drawer {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  background: rgba(36, 7, 11, 0.97);
  border: 1px solid rgba(199, 154, 74, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.nav-mobile-item {
  display: block;
  font-family: var(--font-royal);
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sandstone);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-mobile-item:hover,
.nav-mobile-item.is-active {
  color: #FFF;
  background: rgba(199, 154, 74, 0.2);
  border: 1px solid rgba(199, 154, 74, 0.35);
}

/* ==========================================================================
   FLOATING ROYAL MUSIC CONTROLLER
   ========================================================================== */
.floating-music-widget {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(42, 9, 14, 0.92);
  border: 1px solid rgba(199, 154, 74, 0.5);
  border-radius: 40px;
  padding: 0.4rem 1.1rem 0.4rem 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(199, 154, 74, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.floating-music-widget.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-music-widget:hover {
  border-color: var(--gold-light);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(225, 191, 118, 0.4);
}

.music-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--wine-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(199, 154, 74, 0.4);
  flex-shrink: 0;
}

.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

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

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

@keyframes eqAnimation {
  0% { height: 3px; }
  100% { height: 16px; }
}

.music-label {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sandstone);
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .floating-music-widget {
    bottom: 1rem;
    left: 1rem;
    padding: 0.35rem 0.8rem 0.35rem 0.45rem;
  }
  .music-label {
    display: none;
  }
}

/* ==========================================================================
   5. SCENE 2 — PARENTS WELCOME
   ========================================================================== */
#parents {
  background: radial-gradient(circle at 50% 30%, #4B1118 0%, #2A090E 100%);
  color: var(--ivory);
  text-align: center;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.parents-card-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(56, 14, 20, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-royal);
  backdrop-filter: blur(6px);
  position: relative;
}

.parents-portraits-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2rem;
}

.parent-portrait-frame {
  position: relative;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(199, 154, 74, 0.6) 0%, rgba(75, 17, 24, 0.3) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.parent-portrait-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 14px;
  filter: brightness(0.96) contrast(1.04);
}

.parent-frame-caption {
  font-family: var(--font-royal);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.8rem;
}

.parents-welcome-copy {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.7;
  color: var(--ivory-warm);
  font-style: italic;
}

/* ==========================================================================
   6. SCENE 3 — COUPLE INTRODUCTION (TWO FAMILIES, ONE BEAUTIFUL BEGINNING)
   ========================================================================== */
#couple {
  background: linear-gradient(180deg, #2A090E 0%, #3B0E15 50%, #2A090E 100%);
  text-align: center;
}

.couple-editorial-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  max-width: 1200px;
  margin: 3rem auto 0;
}

.couple-side-card {
  background: rgba(56, 14, 20, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.2rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-royal);
  text-align: center;
  transition: transform var(--transition-smooth);
}

.couple-portrait-wrapper {
  width: min(240px, 80%);
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, rgba(116, 24, 32, 0.5) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.couple-portrait-wrapper img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
}

.person-role {
  font-family: var(--font-royal);
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.person-fullname {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 600;
  color: #FFF5E1;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.lineage-block {
  border-top: 1px dashed var(--muted-gold);
  padding-top: 1.2rem;
  margin-top: 1rem;
}

.lineage-title {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sandstone);
  margin-bottom: 0.3rem;
}

.lineage-names {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ivory);
  line-height: 1.45;
  margin-bottom: 0.8rem;
}

/* Center Weds Emblem */
.couple-center-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.couple-seal-img {
  width: clamp(90px, 14vw, 130px);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(199, 154, 74, 0.4));
  animation: sealGentleGlow 4s ease-in-out infinite alternate;
}

.weds-script {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--gold-light);
  line-height: 1;
  margin: 0.5rem 0;
}

/* ==========================================================================
   7. SCENE 4 — SAVE THE DATE & CANVAS SCRATCH CARD & COUNTDOWN
   ========================================================================== */
#save-the-date {
  background: radial-gradient(circle at 50% 40%, #4B1118 0%, #1F070B 100%);
  text-align: center;
}

.scratch-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.5rem auto 3.5rem;
}

.scratch-card-container {
  position: relative;
  width: min(540px, 92vw);
  height: clamp(360px, 52vw, 430px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 0 1.5px rgba(225, 191, 118, 0.45);
  background: #25070C;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}

/* Hidden revealed layer underneath (Luxury Velvet & Gold) */
.scratch-revealed-content {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #5C121D 0%, #2A080E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--ivory);
  text-align: center;
  border-radius: 28px;
}

.revealed-inner-frame {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(225, 191, 118, 0.45);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at center, rgba(116, 24, 32, 0.4) 0%, rgba(30, 6, 10, 0.6) 100%);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

.revealed-badge-icon {
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.revealed-tagline {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.revealed-date-num {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  color: #FFF8E7;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 25px rgba(225, 191, 118, 0.35);
}

.revealed-month {
  font-family: var(--font-royal);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0.3rem 0;
}

.revealed-divider-line {
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 0.6rem auto;
}

.revealed-names {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  color: #FFF;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.revealed-location {
  font-family: var(--font-royal);
  font-size: clamp(0.72rem, 1.3vw, 0.88rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sandstone);
}

/* Canvas Metallic Foil Scratch Layer */
#scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  z-index: 2;
  border-radius: 28px;
  transition: opacity 0.7s ease;
}

/* Flying Gold Flakes Container */
.scratch-flakes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

.scratch-flake {
  position: absolute;
  background: linear-gradient(135deg, #FFF1B8 0%, #D4AF37 60%, #8C6219 100%);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255, 230, 130, 0.8);
  pointer-events: none;
}

/* 3D Realistic Coin Scratch Cursor Follower */
.scratch-coin-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(16deg);
  transition: opacity 0.25s ease, transform 0.1s ease;
}

.scratch-card-container:hover .scratch-coin-cursor {
  opacity: 1;
}

.scratch-coin-cursor.is-scratching {
  transform: translate(-50%, -50%) rotate(34deg) scale(0.92);
}

.coin-body {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF5D0 0%, #E6C265 40%, #B88B2A 75%, #6B490E 100%);
  border: 2px solid #FFF8DC;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), inset 0 2px 5px rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-emblem {
  font-size: 1.1rem;
  color: #5C3D08;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  line-height: 1;
}

/* Instruction Pill Below Card */
.scratch-instruction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.45rem 1.2rem;
  background: rgba(42, 9, 14, 0.85);
  border: 1px solid rgba(199, 154, 74, 0.4);
  border-radius: 30px;
  font-family: var(--font-royal);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sandstone);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  animation: pulsePill 3s ease-in-out infinite;
}

@keyframes pulsePill {
  0%, 100% { transform: translateY(0); border-color: rgba(199, 154, 74, 0.4); }
  50% { transform: translateY(-2px); border-color: rgba(225, 191, 118, 0.75); color: #FFF; }
}

/* Sparkle Canvas Burst Container */
.sparkle-burst-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */
.countdown-section-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.countdown-heading {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  color: var(--gold-pale);
  margin-bottom: 2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

.countdown-box {
  background: rgba(56, 14, 20, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: clamp(1.2rem, 2.5vw, 2rem) clamp(0.5rem, 1vw, 1rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
  backdrop-filter: blur(6px);
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  color: #FFF6E5;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.countdown-label {
  font-family: var(--font-royal);
  font-size: clamp(0.68rem, 1.2vw, 0.84rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ==========================================================================
   8. SCENE 5 — OUR STORY (EDITORIAL COUPLE GALLERY)
   ========================================================================== */
#story {
  background: linear-gradient(180deg, #1F070B 0%, #31080E 50%, #1F070B 100%);
  text-align: center;
}

.story-editorial-stream {
  max-width: 1140px;
  margin: 3.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 6rem);
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  text-align: left;
}

.story-row.reversed {
  direction: rtl;
}
.story-row.reversed .story-text-col {
  direction: ltr;
}

.story-media-col {
  position: relative;
}

.story-main-frame {
  position: relative;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(199, 154, 74, 0.5) 0%, rgba(116, 24, 32, 0.2) 100%);
  box-shadow: var(--shadow-royal);
  overflow: hidden;
}

.story-main-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
  transition: transform var(--transition-slow);
}

.story-main-frame:hover img {
  transform: scale(1.04);
}

.story-overlap-badge {
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  width: clamp(70px, 12vw, 100px);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}

.story-text-col {
  padding: 1rem;
}

.story-chapter-tag {
  font-family: var(--font-royal);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.story-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  color: #FFF5E1;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.story-paragraph {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: var(--sandstone);
  font-style: italic;
}

/* ==========================================================================
   SAVE THE DATE REVEAL POPOVER MODAL
   ========================================================================== */
.date-popover-backdrop {
  z-index: 10000;
}

.date-popover-box {
  max-width: 520px;
  width: min(520px, 94vw);
  background: radial-gradient(circle at 50% 30%, #4E121B 0%, #200508 100%);
  border: 1.5px solid rgba(225, 191, 118, 0.6);
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(199, 154, 74, 0.25);
  padding: clamp(2rem, 4.5vw, 3rem) clamp(1.4rem, 3vw, 2.5rem);
  position: relative;
  text-align: center;
}

.date-popover-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(116, 24, 32, 0.4);
  border: 1px solid rgba(199, 154, 74, 0.4);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.date-popover-close-btn:hover {
  background: rgba(199, 154, 74, 0.3);
  color: #FFF;
  transform: rotate(90deg);
}

.popover-ak-seal {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
}

.popover-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  color: #FFF6E5;
  margin-bottom: 1rem;
}

.popover-date-banner {
  background: rgba(36, 7, 11, 0.85);
  border: 1px solid rgba(199, 154, 74, 0.4);
  border-radius: 20px;
  padding: 1.2rem 1rem;
  margin: 1.2rem 0;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.5);
}

.popover-big-date {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 700;
  color: #FFF8EB;
  line-height: 1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(225, 191, 118, 0.4);
}

.popover-big-month {
  font-family: var(--font-royal);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.3rem;
}

.popover-venue {
  font-family: var(--font-royal);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--sandstone);
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.popover-names {
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: #FFF;
  margin-bottom: 0.5rem;
}

.popover-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sandstone);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-cal-action {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  padding: 0.8rem 1.4rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-royal-outline {
  background: transparent;
  border: 1px solid rgba(199, 154, 74, 0.5);
  border-radius: 30px;
  color: var(--sandstone);
  font-family: var(--font-royal);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-royal-outline:hover {
  border-color: var(--gold-light);
  color: #FFF;
  background: rgba(199, 154, 74, 0.2);
}

/* ==========================================================================
   SCENE 5.5 — DUAL 3D CARD STACK GALLERY (GROOM & BRIDE)
   ========================================================================== */
#gallery {
  background: linear-gradient(180deg, #1F070B 0%, #360D14 50%, #1F070B 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dual-gallery-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 4rem);
  max-width: 1240px;
  margin: 3.5rem auto 0;
}

.gallery-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gallery-person-header {
  margin-bottom: 1.8rem;
  text-align: center;
}

.gallery-role-tag {
  display: inline-block;
  font-family: var(--font-royal);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.gallery-person-name {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: #FFF5E1;
  font-weight: 600;
  margin: 0;
}

/* Center Emblem Vertical Divider */
.gallery-center-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.gallery-vertical-line {
  width: 1.5px;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(199, 154, 74, 0.5), transparent);
}

.gallery-seal-icon {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.gallery-center-amp {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* 3D Stack Carousel Container */
.stack-carousel-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  perspective: 1200px;
}

.stack-cards-viewport {
  position: relative;
  width: 100%;
  height: clamp(380px, 48vw, 470px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Individual 3D Stack Photo Card */
.stack-photo-card {
  position: absolute;
  width: min(310px, 78vw);
  aspect-ratio: 3/4;
  border-radius: 24px;
  cursor: pointer;
  transform-origin: center bottom;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s ease,
              filter 0.6s ease,
              box-shadow 0.6s ease;
}

.stack-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  padding: 7px;
  background: linear-gradient(135deg, rgba(225, 191, 118, 0.75) 0%, rgba(116, 24, 32, 0.4) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.stack-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  display: block;
}

/* 3D Stack States */
.stack-photo-card.card-active {
  transform: translateX(0) scale(1) rotate(0deg);
  z-index: 10;
  opacity: 1;
  filter: none;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(225, 191, 118, 0.7);
}

.stack-photo-card.card-prev {
  transform: translateX(-36%) scale(0.86) rotate(-7deg);
  z-index: 5;
  opacity: 0.62;
  filter: blur(0.5px) brightness(0.8);
}

.stack-photo-card.card-next {
  transform: translateX(36%) scale(0.86) rotate(7deg);
  z-index: 5;
  opacity: 0.62;
  filter: blur(0.5px) brightness(0.8);
}

.stack-photo-card.card-hidden {
  transform: translateX(0) scale(0.7) rotate(0deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Controls (Prev/Next buttons & dots) */
.stack-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.btn-stack-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(56, 14, 20, 0.85);
  border: 1px solid rgba(199, 154, 74, 0.5);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.btn-stack-nav:hover {
  background: rgba(199, 154, 74, 0.35);
  color: #FFF;
  border-color: var(--gold-light);
  transform: scale(1.08);
}

.stack-indicators {
  display: flex;
  gap: 6px;
}

.stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(199, 154, 74, 0.3);
  border: 1px solid rgba(199, 154, 74, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.stack-dot.is-active {
  width: 22px;
  border-radius: 10px;
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(225, 191, 118, 0.6);
}

/* Responsive Dual Gallery */
@media (max-width: 991.98px) {
  .dual-gallery-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .gallery-center-emblem {
    display: none;
  }
}

/* ==========================================================================
   9. SCENE 6 — CELEBRATIONS INTRO & 5 CINEMATIC EVENT SECTIONS
   ========================================================================== */
#celebrations-intro {
  background: radial-gradient(circle at 50% 50%, #4B1118 0%, #1A0508 100%);
  text-align: center;
  padding: clamp(5rem, 9vw, 8rem) 1.5rem;
}

.celebrations-timeline-motif {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  background: rgba(56, 14, 20, 0.6);
  border: 1px solid var(--glass-border);
}

.timeline-date {
  font-family: var(--font-royal);
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.timeline-arrow {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Individual Full Cinematic Function Sections */
.function-section {
  min-height: 95svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: clamp(4.5rem, 8vw, 7rem) 1.5rem;
  overflow: hidden;
}

/* Function Specific Background Images */
#lagun-sagai {
  background-image: url("../media/lagun_sagai.png");
}

#engagement-sangeet {
  background-image: url("../media/engagement_sangeet.png");
}

#dj-night {
  background-image: url("../media/dj.png");
}

#haldi {
  background-image: url("../media/haldi.png");
}

#baraat {
  background-image: url("../media/baraat.png");
}

/* Readability Glass Overlay Cards */
.function-overlay-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 6, 10, 0.45) 0%, rgba(18, 4, 6, 0.82) 100%);
  z-index: 1;
}

.function-content-card {
  position: relative;
  z-index: 2;
  width: min(720px, 94vw);
  margin: 0 auto;
  background: rgba(42, 9, 14, 0.82);
  border: 1px solid var(--glass-border-light);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.function-tag {
  font-family: var(--font-royal);
  font-size: clamp(0.72rem, 1.3vw, 0.88rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.function-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #FFF6E5;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.function-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: left;
  border-top: 1px solid var(--muted-gold);
  border-bottom: 1px solid var(--muted-gold);
  padding: 1.5rem 0;
}

.function-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.function-meta-item i {
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0.2rem;
}

.meta-label {
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sandstone);
  display: block;
}

.meta-value {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: #FFF;
  font-weight: 500;
}

.function-dress-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  background: rgba(199, 154, 74, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-pale);
  font-family: var(--font-royal);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ==========================================================================
   10. SCENE 7 — OUR FAMILIES
   ========================================================================== */
#families {
  background: radial-gradient(circle at 50% 30%, #3B0E15 0%, #1A0508 100%);
  text-align: center;
}

.families-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1100px;
  margin: 3rem auto 0;
}

.family-pillar-card {
  background: rgba(56, 14, 20, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(2.5rem, 4vw, 3.8rem) clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-royal);
  backdrop-filter: blur(8px);
}

.family-pillar-title {
  font-family: var(--font-royal);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.family-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.family-member-item {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ivory);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

/* ==========================================================================
   11. SCENE 8 & 9 — RSVP INTRO & BESPOKE CONFIRMATION FORM
   ========================================================================== */
#rsvp-intro {
  background: linear-gradient(180deg, #1A0508 0%, #3B0E15 100%);
  text-align: center;
  padding: clamp(4.5rem, 7vw, 6.5rem) 1.5rem;
}

.btn-royal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--wine-dark);
  font-family: var(--font-royal);
  font-size: clamp(0.82rem, 1.5vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  border-radius: 40px;
  box-shadow: 0 10px 28px rgba(199, 154, 74, 0.4);
  transition: all var(--transition-smooth);
}

.btn-royal-primary:hover {
  color: var(--wine-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(225, 191, 118, 0.6);
}

#rsvp {
  background: radial-gradient(circle at 50% 30%, #4B1118 0%, #1F070B 100%);
  text-align: center;
}

.rsvp-form-card {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(42, 9, 14, 0.88);
  border: 1px solid var(--glass-border-light);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-royal);
  backdrop-filter: blur(10px);
  text-align: left;
}

.form-group-custom {
  margin-bottom: 1.8rem;
}

.form-label-custom {
  font-family: var(--font-royal);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  display: block;
}

.form-control-custom,
.form-select-custom {
  width: 100%;
  background: rgba(248, 240, 227, 0.08);
  border: 1.5px solid rgba(199, 154, 74, 0.4);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #FFF8EB;
  outline: none;
  transition: all var(--transition-fast);
}

.form-select-custom {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23E1BF76' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 14px;
  padding-right: 2.8rem;
  cursor: pointer;
}

.form-select-custom option {
  background-color: #2D090E !important;
  color: #FFF6E5 !important;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
}

.form-control-custom:focus,
.form-select-custom:focus {
  background-color: rgba(42, 9, 14, 0.95);
  border-color: var(--gold-light);
  box-shadow: 0 0 18px rgba(225, 191, 118, 0.4);
}

.form-control-custom::placeholder {
  color: rgba(216, 185, 140, 0.5);
}

/* Radio Choices for Attendance */
.attendance-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.attendance-radio-card {
  position: relative;
}

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

.attendance-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: rgba(248, 240, 227, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-family: var(--font-royal);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sandstone);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.attendance-radio-card input:checked + .attendance-radio-label {
  background: rgba(199, 154, 74, 0.2);
  border-color: var(--gold);
  color: #FFF;
  box-shadow: 0 4px 18px rgba(199, 154, 74, 0.3);
}

/* Event Checkboxes */
.events-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.checkbox-custom-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(248, 240, 227, 0.04);
  border: 1px solid rgba(199, 154, 74, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-custom-item:hover {
  background: rgba(248, 240, 227, 0.08);
}

.checkbox-custom-item input[type="checkbox"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-custom-item span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ivory);
}

/* Custom Royal Confirmation Modal */
.royal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 4, 6, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 1.5rem;
}

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

.royal-modal-box {
  width: min(540px, 94vw);
  background: linear-gradient(135deg, #45131C 0%, #20060A 100%);
  border: 1px solid var(--gold);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.royal-modal-backdrop.is-active .royal-modal-box {
  transform: scale(1);
}

.modal-ak-seal {
  width: 100px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 20px rgba(199, 154, 74, 0.5));
}

/* ==========================================================================
   12. SCENE 10 — LOCATION & SURAJKUND VENUES
   ========================================================================== */
#location {
  background: radial-gradient(circle at 50% 30%, #3B0E15 0%, #1A0508 100%);
  text-align: center;
}

.venues-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  max-width: 1180px;
  margin: 3rem auto;
}

.venue-item-card {
  background: rgba(56, 14, 20, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
}

.venue-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.venue-icon-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(199, 154, 74, 0.15);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.4rem;
}

.venue-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: #FFF6E5;
  margin-bottom: 0.5rem;
}

.venue-card-city {
  font-family: var(--font-royal);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sandstone);
  margin-bottom: 1.5rem;
}

.btn-venue-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-royal);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  transition: all var(--transition-fast);
}

.btn-venue-directions:hover {
  background: var(--gold);
  color: var(--wine-dark);
}

/* Map Embed Container */
.map-embed-wrapper {
  max-width: 1180px;
  margin: 2rem auto 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-royal);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: 0;
  filter: contrast(1.05) saturate(0.9);
}

/* ==========================================================================
   13. SCENE 11 — CINEMATIC CLOSING / FOOTER
   ========================================================================== */
#closing {
  background: radial-gradient(circle at 50% 40%, #4B1118 0%, #120406 100%);
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.closing-ak-seal {
  width: clamp(100px, 16vw, 150px);
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(199, 154, 74, 0.4));
  animation: sealGentleGlow 4s ease-in-out infinite alternate;
}

.closing-names {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 600;
  color: #FFF6E5;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.closing-dates {
  font-family: var(--font-royal);
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.closing-message {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--sandstone);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.closing-with-love {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--gold);
}

/* ==========================================================================
   14. PARTICLES & ATMOSPHERIC CANVAS
   ========================================================================== */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */
@media (max-width: 991.98px) {
  .parents-portraits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .parents-portraits-grid .parent-portrait-frame {
    max-width: 300px;
    margin: 0 auto;
  }

  .couple-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .couple-center-emblem {
    order: 2;
  }
  .couple-side-card:first-child {
    order: 1;
  }
  .couple-side-card:last-child {
    order: 3;
  }

  .story-row,
  .story-row.reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .venues-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

@media (max-width: 1024px) {
  .nav-pill-link {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    padding: 0.35rem 0.1rem;
  }
  .nav-links-pill {
    gap: 0.9rem;
  }
}

@media (max-width: 860px) {
  .nav-links-pill {
    display: none;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .royal-pill-navbar {
    padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  }
  .nav-oval-medallion {
    width: 44px;
    height: 54px;
  }
  .nav-medallion-monogram .mono-a,
  .nav-medallion-monogram .mono-k {
    font-size: 1.05rem;
  }
  .nav-medallion-monogram .mono-amp {
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .function-meta-grid {
    grid-template-columns: 1fr;
  }

  .events-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .attendance-radio-group {
    grid-template-columns: 1fr;
  }

  .floating-nav-container {
    top: 1rem;
    width: 94vw;
  }
}

/* ==========================================================================
   16. REDUCED MOTION SUPPORT
   ========================================================================== */
@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;
  }
}

