/* ==========================================================================
   ROYAL RASM - LUXURY HINDU WEDDING INVITATION
   Mobile-First Responsive Stylesheet (Vanilla CSS)
   ========================================================================== */

/* ==========================================================================
   1. COLOR PALETTE & DESIGN TOKENS
   Derived directly from section background artwork:
   - Primary Crimson: Sindoori Red & Wedding Mandap Velvet
   - Secondary Amber: Auspicious Haldi & Festive Marigold
   - Accent Gold: Royal Zari Embroidery & Foil Shimmer
   - Deep Text: Rich Espresso Burgundy for high WCAG AA/AAA contrast
   - Light Text: Warm Pearl Ivory for glowing titles and badges
   ========================================================================== */
:root {
  /* Primary: Auspicious Royal Crimson / Sindoor (from bg-wedding & hero arch) */
  --primary: #7c1826;
  /* HEX: Auspicious Royal Crimson */
  --primary-deep: #4e0d16;
  /* HEX: Deep Sindoori Velvet */
  --primary-light: #9e283b;
  /* HEX: Warm Rose Vermilion */
  --primary-rgb: 124, 24, 38;

  /* Secondary: Haldi Amber / Saffron Marigold (from bg-haldi-mehndi) */
  --secondary: #b85c18;
  /* HEX: Festive Haldi Ochre */
  --secondary-light: #d67425;
  /* HEX: Bright Marigold Amber */
  --secondary-deep: #8f400a;
  /* HEX: Deep Terracotta Turmeric */
  --secondary-rgb: 184, 92, 24;

  /* Accent: Antique Royal Zari Gold (from foil accents, chandeliers, and borders) */
  --accent: #d4af37;
  /* HEX: Metallic Antique Gold */
  --accent-light: #f7e096;
  /* HEX: Luminous Champagne Gold */
  --accent-dark: #9e7d23;
  /* HEX: Burnished Gold Bronze */
  --accent-rgb: 212, 175, 55;
  --gold-gradient: linear-gradient(135deg, #fae5a2 0%, #d4af37 50%, #9e7d23 100%);
  --gold-gradient-glow: linear-gradient(135deg, #fff2be 0%, #e8bc4a 50%, #b88b20 100%);
  --crimson-gradient: linear-gradient(135deg, #8f1c2d 0%, #68101c 100%);

  /* Deep Text Color: High Contrast on Ivory Panels (> 10:1 Contrast Ratio) */
  --text-dark: #240f12;
  /* HEX: Deep Royal Espresso Burgundy */
  --text-muted: #573337;
  /* HEX: Refined Warm Charcoal Burgundy */

  /* Light Text Color: Crisp and Luminous on Dark Badges / Buttons */
  --text-light: #fffbf5;
  /* HEX: Auspicious Pearl Ivory */
  --text-gold: #f8df9e;
  /* HEX: Gilded Warm Gold */

  /* Translucent Glass Panels: Soft Blur so Artwork Remains Intact */
  --glass-bg: rgba(255, 252, 246, 0.86);
  /* Soft Ivory Glass */
  --glass-bg-subtle: rgba(255, 252, 246, 0.70);
  /* Ultra-sheer Ivory wash */
  --glass-bg-dark: rgba(36, 15, 18, 0.75);
  /* Deep Velvet Glass */
  --glass-border: rgba(212, 175, 55, 0.45);
  /* Delicate Gold Border */
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 10px 35px rgba(60, 16, 20, 0.12);
  --card-blur: blur(10px);
  --panel-radius: clamp(14px, 3.5cqw, 24px);

  /* Festive Glow & Highlights */
  --glow: 0 0 24px rgba(212, 175, 55, 0.55);
  --glow-soft: 0 0 14px rgba(212, 175, 55, 0.35);
  --glow-crimson: 0 0 20px rgba(124, 24, 38, 0.40);

  /* Background Image Aspect Ratio (1228px width / 2201px height = ~0.5579) */
  --ratio: 1228 / 2201;

  /* Typography */
  --font-serif: 'Cinzel', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-script: 'Rouge Script', 'Great Vibes', cursive;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-devanagari: 'Tiro Devanagari Hindi', 'Rozha One', serif;

  /* App Dimensions */
  --app-max-width: 480px;
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: #120507;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: #120507;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Regal Page Backdrop on Desktop (Centered Vignette) - desktop only to prevent mobile scroll repaints */
@media (min-width: 769px) {
  body {
    background-image:
      radial-gradient(circle at 50% 15%, rgba(124, 24, 38, 0.42) 0%, transparent 65%),
      radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.18) 0%, transparent 55%),
      radial-gradient(circle at 15% 65%, rgba(184, 92, 24, 0.22) 0%, transparent 55%);
    background-attachment: fixed;
  }
}

/* Scroll locked during entrance screen */
body.scroll-locked {
  overflow: hidden !important;
  height: 100vh;
  height: 100dvh;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   3. AMBIENT PARTICLES CANVAS & FLOATING AUDIO CONTROLLER
   ========================================================================== */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 999;
}

/* Floating Audio Toggle Button */
.floating-audio-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: max(16px, env(safe-area-inset-right, 16px));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(36, 15, 18, 0.82);
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), var(--glow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, opacity 0.3s ease, border-color 0.25s ease;
}

.floating-audio-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent-light);
}

.floating-audio-btn:active {
  transform: scale(0.94);
}

.floating-audio-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.audio-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: bottom;
  animation: waveAnimation 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 35%;
}

.wave-bar:nth-child(2) {
  animation-delay: 0.3s;
  height: 85%;
}

.wave-bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 60%;
}

.wave-bar:nth-child(4) {
  animation-delay: 0.4s;
  height: 100%;
}

.floating-audio-btn.muted .audio-waves {
  display: none;
}

.floating-audio-btn.muted .audio-icon-muted {
  display: block;
}

.audio-icon-muted {
  display: none;
  font-size: 1.2rem;
}

@keyframes waveAnimation {
  0% {
    transform: scaleY(0.25);
  }

  100% {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   4. ENTRANCE SCREEN (100dvh Fullscreen Overlay)
   ========================================================================== */
.entrance-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  background-color: #1a090c;
  /* Matches entrance video edge tone */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.95s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Smooth cross-fade + scale dissolve transition */
.entrance-screen.entrance-dissolve {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.entrance-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a090c;
}

.entrance-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Full mobile screen height */
  object-position: center center;
  background-color: #1a090c;
}

/* Pulsing "Tap to Open Invite" Gold Button (Adjusted 60px above screen center) */
.open-invite-btn {
  position: absolute;
  top: calc(50% - 60px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(84%, 320px);
  min-height: 52px;
  padding: 14px 28px;
  background: var(--gold-gradient);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #240f12;
  text-align: center;
  overflow: hidden;
  animation: pulseButton 2.4s ease-in-out infinite;
  transition: transform 0.3s ease, opacity 0.4s ease, filter 0.3s ease;
  z-index: 10;
}

.open-invite-btn:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.open-invite-btn.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  pointer-events: none;
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.65) 50%,
      transparent 100%);
  transform: skewX(-25deg);
  animation: shimmerMove 3.5s infinite;
  pointer-events: none;
}

.btn-om {
  font-family: var(--font-devanagari);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--primary-deep);
  font-weight: 700;
}

.btn-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-subtitle {
  font-family: var(--font-devanagari);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: #4a220d;
}

/* Skip link (Fail-safe) */
.skip-entrance-btn {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: 20px;
  color: var(--accent-light);
  font-size: 0.82rem;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  padding: 6px 12px;
  background: rgba(36, 15, 18, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 10;
}

.skip-entrance-btn:hover {
  background: rgba(36, 15, 18, 0.9);
  color: #fff;
}

@keyframes pulseButton {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.45);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 32px rgba(212, 175, 55, 0.75);
  }
}

@keyframes shimmerMove {
  0% {
    left: -120%;
  }

  35%,
  100% {
    left: 180%;
  }
}

/* ==========================================================================
   5. APP WRAPPER & BACKGROUND IMAGE CONTAINER ARCHITECTURE
   CRITICAL REQUIREMENT:
   - Full section background image is ALWAYS visible. NO crop, NO zoom.
   - Each section wrapper has aspect-ratio: var(--ratio, 1228 / 2201).
   - Real <img> layered at absolute inset:0 with object-fit: fill/contain.
   - ALL content inside positioned proportionally using container query units (cqw).
   - Centered phone-style card presentation on desktop.
   ========================================================================== */
.app-wrapper {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  position: relative;
  background-color: var(--primary-deep);
}

@media (min-width: 481px) {
  .app-wrapper {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.75), 0 0 100px rgba(212, 175, 55, 0.12);
  }
}

/* Section Wrapper Frame */
.section-card {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 1228 / 2201);
  container-type: inline-size;
  /* Enables cqw unit scaling for all content */
  overflow: hidden;
  display: block;
}


/* Full Background Picture Layer */
.section-bg-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.section-bg-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* Exactly matches section aspect ratio so 100% of image is visible */
  display: block;
}

/* Section Content Layer */
.section-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 4.5cqw 5cqw;
  pointer-events: auto;
}

/* ==========================================================================
   6. COMMON ORNAMENTS & GLASS PANEL STYLING
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Golden Divider */
.golden-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 2cqw 0;
}

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

.divider-gem {
  color: var(--accent);
  font-size: clamp(0.7rem, 2.5cqw, 1rem);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Section Headings */
.section-heading-wrap {
  text-align: center;
  margin-bottom: 2.5cqw;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-devanagari);
  font-size: clamp(0.8rem, 3.2cqw, 1.1rem);
  color: var(--secondary-deep);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.5cqw;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 5.2cqw, 1.85rem);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.section-subtext {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.8cqw, 0.92rem);
  color: var(--text-muted);
  margin-top: 0.8cqw;
}

/* ==========================================================================
   7. HERO SECTION (Logo, Invite, Scratch Card, Radha-Krishna)
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  aspect-ratio: auto;
  overflow: hidden;
  background-color: #1a090c;
  /* Matches entrance video edge tone so no white or abrupt flash happens */
}

.hero-section .section-bg-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-section .section-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 2.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-section.hero-bg-revealed .section-bg-img {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-section .section-bg-img {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Hero section specific scroll reveal easing (Slow, dignified, royal) */
#heroSection .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

#heroSection .reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(6px, 1.4vh, 14px);
  padding: max(28px, env(safe-area-inset-top, 28px)) 5cqw max(20px, env(safe-area-inset-bottom, 20px)) 5cqw;
  transform: translateY(110px);
}

@media (max-height: 800px) {
  .hero-content {
    gap: clamp(4px, 1.2vh, 10px);
    transform: translateY(95px) scale(0.96);
    transform-origin: center center;
  }
}

@media (max-height: 700px) {
  .hero-content {
    gap: clamp(2px, 0.8vh, 8px);
    transform: translateY(100px) scale(0.92);
    transform-origin: center center;
  }
}

/* Top Logo */
.scratch-top-logo,
.hero-top {
  margin-top: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-wrapper {
  position: relative;
  width: min(26cqw, 120px);
  aspect-ratio: 1004 / 835;
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.15));
  animation: logoFadeDown 1.4s var(--transition-smooth) both;
}

.logo-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: logoGlowPulse 3.5s ease-in-out infinite;
  z-index: -1;
}

/* Center Invitation Card (Styled precisely to reference image) */
.hero-center {
  margin-top: 0;
  width: 100%;
  max-width: 90cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-shloka {
  font-family: var(--font-devanagari);
  font-size: clamp(0.82rem, 3.4cqw, 1.05rem);
  color: #4a121a;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 clamp(8px, 1.5vh, 14px) 0;
}

.hero-invite-pre {
  font-family: var(--font-serif);
  font-size: clamp(0.64rem, 2.4cqw, 0.80rem);
  font-weight: 600;
  color: #8f6a32;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0 0 clamp(6px, 1.2vh, 10px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-names-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: clamp(2px, 0.6vh, 6px) 0;
  overflow: visible;
}

.hero-name {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 11.5cqw, 4rem);
  line-height: 1.28;
  padding: 0.18em 0.12em 0.06em;
  background: linear-gradient(135deg, #9e1c2e 0%, #7c1826 50%, #4e0d16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7c1826;
  -webkit-text-stroke: 0.50px #7c1826;
  text-stroke: 0.50px #7c1826;
  filter: drop-shadow(0 2px 8px rgba(124, 24, 38, 0.25));
  letter-spacing: 0.02em;
  overflow: visible;
}

.hero-names-amp {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5.5cqw, 2.1rem);
  color: #9e7d23;
  -webkit-text-stroke: 0.50px #9e7d23;
  text-stroke: 0.50px #9e7d23;
  line-height: 1.2;
  margin: -6px 0;
  padding: 0.1em;
  filter: drop-shadow(0 1px 4px rgba(158, 125, 35, 0.35));
  overflow: visible;
}

.hero-families-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(0.76rem, 2.9cqw, 0.96rem);
  color: #4e3218;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.85), 0 1px 3px rgba(255, 255, 255, 0.9);
  margin: clamp(4px, 1vh, 8px) 0 0 0;
}

/* ==========================================================================
   7.5. DATE REVEAL & COUNTDOWN SECTION (Heart-Shaped Scratch Card)
   ========================================================================== */
.date-reveal-section {
  position: relative;
  min-height: auto;
  aspect-ratio: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 45%, rgba(255, 248, 225, 0.8) 0%, rgba(250, 237, 225, 0.4) 50%, transparent 75%),
    radial-gradient(ellipse at 50% 100%, rgba(124, 24, 38, 0.18) 0%, transparent 60%),
    linear-gradient(165deg, #fffcf5 0%, #fbf0e4 30%, #f6dfca 65%, #edd2b8 100%);
  padding: 46px 0 52px 0;
}

.date-reveal-content {
  position: relative;
  inset: auto;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5cqw;
  gap: clamp(8px, 1.5vh, 14px);
}

.date-reveal-title {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.title-reveal-pop {
  opacity: 0;
  transform: scale(0.9);
}

.title-revealed-active {
  animation: titleGlowPulse 3s ease-in-out infinite;
}

@keyframes titleGlowPulse {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  }

  50% {
    text-shadow: 0 0 18px rgba(225, 29, 72, 0.5), 0 0 28px rgba(212, 175, 55, 0.7);
  }
}

.title-heart {
  display: inline-block;
  animation: titleHeartBeat 1.4s ease-in-out infinite;
  margin-left: 4px;
}

@keyframes titleHeartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.25);
  }

  40% {
    transform: scale(1);
  }

  60% {
    transform: scale(1.15);
  }
}

/* Heart Scratch Outer & Container */
.heart-scratch-outer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.5cqw 0;
}

.heart-scratch-container {
  position: relative;
  width: min(78cqw, 290px);
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hardware-accelerated performant drop-shadow */
  filter: drop-shadow(0 10px 22px rgba(92, 16, 26, 0.16));
  transition: transform 0.5s var(--transition-smooth), filter 0.5s ease;
  will-change: transform;
  transform: translateZ(0);
}

.heart-scratch-container.heart-bloom {
  animation: heartBloomPulse 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes heartBloomPulse {
  0% {
    transform: scale(0.96);
  }

  45% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.9));
  }

  75% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

/* Thin Theme Border SVG tracing the heart perimeter */
.heart-thin-border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}

.heart-thin-border-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

/* Clipped Heart Scratch Box - Cached on GPU composited layer */
.scratch-card-box.heart-shape-box {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-clip-path: url(#heartClipPath);
  clip-path: url(#heartClipPath);
  background: #fffdf8;
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

/* Underneath Revealed Content inside Heart */
.scratch-revealed-content.heart-revealed-content {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #fffdf8 0%, #faede1 60%, #f5dbbf 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14% 10% 16% 10%;
  z-index: 1;
}

.heart-revealed-content .revealed-invite-heading {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 3.2cqw, 0.98rem);
  font-weight: 700;
  color: var(--secondary-deep);
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.heart-revealed-content .revealed-date-title {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 4.8cqw, 1.62rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0;
}

.heart-revealed-content .revealed-day-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(0.68rem, 2.6cqw, 0.82rem);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 2px;
}

.heart-revealed-content .revealed-timings {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(0.64rem, 2.4cqw, 0.78rem);
  font-weight: 600;
  color: #5c101a;
  margin-top: 8px;
  padding: 2px 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Lord Shiva Divine Hand Blessing Banner (Full Width between Scratch Card & Countdown) */
.shiv-hand-banner {
  width: 100cqw;
  margin-left: -5cqw;
  margin-right: -5cqw;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
  margin-top: clamp(-4px, -0.8vh, 4px);
  margin-bottom: clamp(2px, 0.8vh, 8px);
}

.shiv-hand-banner picture {
  width: 100%;
  display: block;
}

.shiv-hand-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1625 / 882;
  object-fit: cover;
  display: block;
}

/* Countdown Block below Heart (Revealed after scratching heart card) */
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 25px 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, max-height;
}

.countdown-block.countdown-hidden {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(28px) scale(0.95);
}

.countdown-block.countdown-revealed {
  opacity: 1;
  visibility: visible;
  max-height: 450px;
  padding: 25px 0;
  overflow: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.countdown-block.countdown-revealed .countdown-section-title {
  animation: countdownTextReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.countdown-block.countdown-revealed .golden-divider {
  animation: countdownDividerReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.countdown-block.countdown-revealed .countdown-timer {
  animation: countdownTimerGlow 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.countdown-block.countdown-revealed .countdown-tile {
  animation: countdownTilePop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.countdown-block.countdown-revealed .countdown-tile:nth-child(1) {
  animation-delay: 0.2s;
}

.countdown-block.countdown-revealed .countdown-tile:nth-child(3) {
  animation-delay: 0.3s;
}

.countdown-block.countdown-revealed .countdown-tile:nth-child(5) {
  animation-delay: 0.4s;
}

.countdown-block.countdown-revealed .countdown-tile:nth-child(7) {
  animation-delay: 0.5s;
}

.countdown-block.countdown-revealed .countdown-sep {
  animation: countdownSepFade 0.6s ease 0.35s both;
}

@keyframes countdownTextReveal {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countdownDividerReveal {
  0% {
    opacity: 0;
    transform: scaleX(0.4);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes countdownTilePop {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.85);
  }

  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes countdownSepFade {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countdownTimerGlow {
  0% {
    filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.55)) drop-shadow(0 0 28px rgba(225, 29, 72, 0.3));
  }

  100% {
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.2));
  }
}

.countdown-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4.6cqw, 1.6rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: capitalize;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-block .golden-divider {
  max-width: min(65cqw, 240px);
  margin: clamp(6px, 1.2vh, 10px) auto clamp(10px, 1.8vh, 16px) auto;
}

/* Countdown Tiles (Increased by 25% again) */
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.9cqw, 12px);
}

.countdown-tile {
  background: linear-gradient(160deg, #871928 0%, #68101e 55%, #4a0913 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.75);
  border-radius: 12px;
  padding: clamp(6px, 1.6cqw, 10px) clamp(10px, 2.8cqw, 16px);
  min-width: clamp(56px, 14.5cqw, 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    0 6px 18px rgba(74, 9, 19, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 230, 160, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.countdown-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: 10px 10px 0 0;
}

.countdown-val {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.36rem, 5.4cqw, 1.85rem);
  color: #ffeb99;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 215, 0, 0.25);
  position: relative;
  z-index: 1;
}

.countdown-lbl {
  font-family: var(--font-sans);
  font-size: clamp(0.70rem, 2.7cqw, 0.92rem);
  font-weight: 600;
  text-transform: uppercase;
  color: #f7ddb2;
  letter-spacing: 0.08em;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.countdown-sep {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #9e7d23;
  font-size: clamp(1.25rem, 4.7cqw, 1.65rem);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Scratch Canvas */
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  touch-action: none;
  /* Prevents site scrolling while scratching so card scratches smoothly */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.6s ease;
  will-change: opacity;
}

.scratch-canvas:active {
  cursor: grabbing;
}


/* Radha-Krishna Floating Illustration (Flow Centered) */
.radha-krishna-container {
  position: relative;
  width: min(60cqw, 255px);
  aspect-ratio: 932 / 715;
  z-index: 8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(4px, 1.2vh, 12px) auto 0;
}

.radha-krishna-container.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.radha-krishna-container.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.rk-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rkFloatBreathing 6s ease-in-out infinite;
  /* Performant subtle shadow; glow halo is layered behind */
  filter: drop-shadow(0 2px 8px rgba(124, 24, 38, 0.22));
}

.rk-halo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
      rgba(255, 248, 220, 0.85) 0%,
      rgba(255, 223, 128, 0.65) 25%,
      rgba(212, 175, 55, 0.2) 65%,
      transparent 80%);
  filter: blur(12px);
  pointer-events: none;
  animation: rkGlowPulse 4s ease-in-out infinite;
  z-index: -1;
  will-change: transform, opacity;
}

@keyframes rkFloatBreathing {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes rkGlowPulse {

  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ==========================================================================
   Hero Section Layout & Minimal Scroll Indicator
   ========================================================================== */
.hero-scroll-cue-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: inherit;
}

/* Minimal Hero Scroll Down Indicator (Positioned above Radha-Krishna) */
.hero-scroll-indicator {
  position: relative;
  margin: clamp(8px, 1.6vh, 16px) auto clamp(2px, 0.6vh, 6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  color: var(--primary, #7c1826);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.6s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-scroll-indicator.revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* One-time gentle bounce cue during initial loading */
.hero-scroll-indicator.hint-bounce {
  animation: indicatorBounceCue 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes indicatorBounceCue {
  0% {
    transform: translateY(0);
  }

  38% {
    transform: translateY(8px);
  }

  70% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0);
  }
}

/* High-Contrast Royal Scroll Label Badge */
.scroll-indicator-label {
  font-family: var(--font-sans);
  font-size: clamp(10px, 2.7cqw, 11.5px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7c1826;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  padding: 3px 10px 3px 13px; /* Extra left padding centers tracked text */
  box-shadow: 0 2px 8px rgba(124, 24, 38, 0.14), 0 0 10px rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* High-Contrast Royal Crimson & Pearl Ivory Pill Mouse */
.scroll-indicator-pill {
  width: 22px;
  height: 35px;
  border: 2px solid #7c1826;
  border-radius: 999px;
  background: #fffdfa;
  outline: 1.5px solid rgba(212, 175, 55, 0.75);
  outline-offset: 1px;
  box-shadow: 0 4px 14px rgba(124, 24, 38, 0.22), 0 0 12px rgba(255, 245, 220, 0.85);
  display: flex;
  justify-content: center;
  padding-top: 5px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Rich Crimson Gliding Dot */
.scroll-indicator-dot {
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d4af37 0%, #7c1826 100%);
  box-shadow: 0 1px 4px rgba(124, 24, 38, 0.6);
  animation: scrollIndicatorDotTravel 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollIndicatorDotTravel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  20% {
    opacity: 1;
  }

  65% {
    opacity: 1;
    transform: translateY(12px);
  }

  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* High-Contrast Downward Chevron Arrow */
.scroll-indicator-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c1826;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.95));
  line-height: 1;
  margin-top: -1px;
}

.scroll-indicator-chevron {
  display: block;
  stroke: #7c1826;
  animation: scrollChevronPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollChevronPulse {

  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(3px);
  }
}

/* Hover & Active Interactions */
.hero-scroll-indicator:hover .scroll-indicator-pill {
  border-color: #4e0d16;
  box-shadow: 0 4px 16px rgba(124, 24, 38, 0.38), 0 0 0 2px rgba(212, 175, 55, 0.75);
  transform: translateY(1px);
}

.hero-scroll-indicator:hover .scroll-indicator-label {
  color: #4e0d16;
}

.hero-scroll-indicator:active {
  transform: translateY(2px) scale(0.96);
}

/* Fade out smoothly when user scrolls down */
.hero-scroll-indicator.scrolled-away {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}

/* Compact screens adjustments */
@media (max-height: 700px) {
  .hero-scroll-indicator {
    margin: clamp(4px, 1vh, 10px) auto clamp(2px, 0.5vh, 6px);
    transform: translateY(10px) scale(0.9);
  }

  .hero-scroll-indicator.revealed {
    transform: translateY(0) scale(0.9);
  }
}


@keyframes logoFadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGlowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

/* ==========================================================================
   8. INVITATION MESSAGE SECTION
   ========================================================================== */
.invite-content {
  justify-content: center;
  align-items: center;
  padding: 12cqw 8cqw 10cqw 8cqw;
  /* Carefully aligned within the background image margins */
  text-align: center;
}

.invite-card {
  width: 100%;
  max-width: 90cqw;
  padding: 0;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ganesh-vandana-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ganesh-icon-wrapper {
  position: relative;
  width: min(22cqw, 90px);
  aspect-ratio: 738 / 849;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ganesh-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.3));
}

.ganesh-shloka {
  font-family: var(--font-devanagari);
  font-size: clamp(0.74rem, 2.84cqw, 0.97rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 1.5cqw;
  font-style: italic;
}

.invite-card .golden-divider {
  margin: 2.8cqw auto;
}

.invite-preamble {
  font-family: var(--font-editorial), 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(0.96rem, 3.8cqw, 1.28rem);
  font-weight: 500;
  font-style: italic;
  color: #4a121a;
  line-height: 1.65;
  letter-spacing: 0.025em;
  margin: clamp(8px, 2.4cqw, 16px) auto clamp(14px, 3.2cqw, 22px) auto;
  max-width: min(88cqw, 390px);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  position: relative;
}

.couple-names-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.5cqw, 24px);
  margin: clamp(12px, 3cqw, 22px) 0;
  width: 100%;
}

.person-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.person-role {
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 2.2cqw, 0.76rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-deep);
  font-weight: 600;
  margin-bottom: 0.3cqw;
}

.person-name {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 8.5cqw, 3.1rem);
  line-height: 1.25;
  padding: 0.08em 0.12em 0.02em;
  background: linear-gradient(135deg, #9e1c2e 0%, #7c1826 50%, #4e0d16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7c1826;
  filter: drop-shadow(0 2px 8px rgba(124, 24, 38, 0.22));
  letter-spacing: 0.02em;
  overflow: visible;
}

.relation-label {
  display: inline;
  font-family: var(--font-editorial), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95em;
  font-style: italic;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.03em;
  margin-right: 5px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
}

.parents-line,
.grandparents-line {
  font-family: var(--font-editorial), 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.82rem, 3.1cqw, 1.04rem);
  font-weight: 600;
  color: #380d14;
  letter-spacing: 0.025em;
  line-height: 1.45;
  margin-top: clamp(4px, 1.3cqw, 8px);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
  max-width: min(94cqw, 390px);
}

.wedding-knot-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: clamp(4px, 1.2cqw, 10px) 0;
}

.knot-text {
  font-family: var(--font-script);
  font-size: clamp(1.47rem, 6.1cqw, 2.31rem);
  color: var(--accent-dark);
  line-height: 1;
}

.invite-blessing-closing {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.6cqw, 0.88rem);
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  padding: 0 25px;
}

/* ==========================================================================
   8.5 OUR LOVE STORY (FOUR CHAPTERS - ALTERNATING LAYOUT)
   ========================================================================== */
.story-section {
  position: relative;
  width: 100%;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  container-type: inline-size;
  /* Slight light theme: Warm Royal Ivory & Soft Champagne Silk */
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 85% 70%, rgba(197, 160, 89, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #fffcf7 0%, #fbf4e8 45%, #f4e8d3 100%);
  border-top: 1.5px solid rgba(212, 175, 55, 0.45);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
}

.story-section .section-content.story-content {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  padding: 10cqw 5cqw 12cqw 5cqw !important;
  box-sizing: border-box !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-content .section-heading-wrap {
  text-align: center;
  margin-bottom: 4cqw;
}

.story-content .section-lead-label {
  color: var(--secondary-deep, #8f400a);
  letter-spacing: 0.16em;
  font-weight: 700;
}

.story-content .section-title {
  color: var(--primary, #7c1826);
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  filter: none;
}

.story-content .golden-divider .divider-line {
  background: linear-gradient(90deg, transparent, rgba(184, 92, 24, 0.4), transparent);
}

.story-content .golden-divider .divider-gem {
  color: #8f400a;
  text-shadow: none;
}

.story-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  width: 100%;
  margin-top: 3cqw;
}

/* Base Chapter Row (Alternating side-by-side on both mobile & desktop without outer enclosed card) */
.story-chapter-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  width: 100%;
  padding: 1.5cqw 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

/* Chapter 1 & 3: Content Left, Image Right */
.story-chapter-row.row-content-left {
  flex-direction: row;
}

.story-chapter-row.row-content-left .chapter-content-side {
  text-align: left;
  align-items: flex-start;
}

/* Chapter 2 & 4: Image Left, Content Right */
.story-chapter-row.row-image-left {
  flex-direction: row;
}

.story-chapter-row.row-image-left .chapter-content-side {
  text-align: right;
  align-items: flex-end;
}

/* Content Side */
.chapter-content-side {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.chapter-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(0.58rem, 2.3cqw, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f400a;
  font-weight: 700;
  margin-bottom: 1cqw;
  background: rgba(184, 92, 24, 0.10);
  padding: 0.3cqw 1.8cqw;
  border-radius: 12px;
  border: 1px solid rgba(184, 92, 24, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  width: fit-content;
}

.chapter-heading {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 4.2cqw, 1.45rem);
  color: var(--primary, #7c1826);
  font-weight: 700;
  margin: 0 0 1cqw 0;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.chapter-excerpt {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.9cqw, 0.94rem);
  color: #4a3429;
  line-height: 1.5;
  margin: 0;
  text-shadow: none;
}

/* Image Side */
.chapter-image-side {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-frame {
  width: 100%;
  aspect-ratio: 672 / 900;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(197, 160, 89, 0.65);
  box-shadow: 0 6px 20px rgba(124, 24, 38, 0.12);
  background: transparent;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.chapter-frame:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #b88b20;
  box-shadow: 0 10px 28px rgba(124, 24, 38, 0.20);
}

.chapter-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.chapter-frame:hover .chapter-photo {
  transform: scale(1.05);
}

/* ==========================================================================
   9. HALDI & MEHNDI SECTION
   ========================================================================== */
.events-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12cqw 8cqw 12cqw 8cqw;
  /* Perfectly contained within background borders */
}

.event-cards-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 60px);
  /* Reduced outer empty spacing by 60px (30px each side) */
  max-width: calc(100% - 60px);
}

.event-card {
  width: 100%;
  padding: 5cqw 3cqw;
  background: rgba(255, 255, 255, 0.10);
  /* 10% opacity glass */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(12px, 3.2cqw, 20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.event-card .section-heading-wrap {
  margin-bottom: 1cqw;
}

.haldi-card,
.tilak-card,
.wedding-ceremony-card {
  background: rgba(255, 255, 255, 0.10);
  /* 10% opacity glass card */
}

.event-sub-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2cqw;
}

.event-mini-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.8cqw, 1.4rem);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1cqw;
}

.mini-divider {
  width: 45%;
  max-width: 120px;
  margin: 1.5cqw auto;
  opacity: 0.6;
}

.venue-meta-grid {
  margin-top: 1cqw;
  margin-bottom: 1cqw;
}

.mehndi-card {
  border-color: rgba(68, 140, 93, 0.45);
  background: linear-gradient(135deg, rgba(255, 253, 245, 0.9) 0%, rgba(240, 252, 244, 0.85) 100%);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.5cqw;
}

.event-icon {
  font-size: clamp(1.2rem, 4.6cqw, 1.7rem);
}

.event-badge {
  font-family: var(--font-serif);
  font-size: clamp(0.62rem, 2.4cqw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
}

.haldi-badge {
  background: rgba(184, 92, 24, 0.12);
  color: #8c3f08;
  border: 1px solid rgba(184, 92, 24, 0.35);
}

.mehndi-badge {
  background: rgba(46, 125, 50, 0.14);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.event-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 4.4cqw, 1.6rem);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1cqw;
  text-align: center;
}

.event-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.66rem, 2.5cqw, 0.86rem);
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 2.2cqw;
  text-align: center;
  max-width: 82cqw;
  margin-left: auto;
  margin-right: auto;
}

.event-meta-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8cqw;
  margin: 1.5cqw 0 2cqw 0;
  width: 100%;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.8cqw, 0.96rem);
  color: var(--text-dark);
}

/* Event Meta Rows & Icons */

.meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(16px, 3.8cqw, 20px);
  height: clamp(16px, 3.8cqw, 20px);
  color: var(--primary, #8c1d40);
  line-height: 1;
}

.meta-icon .meta-svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  display: block;
}

.dress-code-row {
  background: rgba(255, 248, 235, 0.65);
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(212, 175, 55, 0.6);
  margin-top: 1cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dress-code-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.dress-code-title {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 2.7cqw, 0.92rem);
  font-weight: 700;
  color: #7a3a0e;
  letter-spacing: 0.04em;
  text-transform: none;
}

.dress-code-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 2.3cqw, 0.80rem);
  color: #5c3809;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

/* Calendar Button */
.cal-btn {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid var(--accent);
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 2.6cqw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(60, 16, 20, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cal-btn:hover {
  background: var(--gold-gradient);
  color: #240f12;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.cal-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   10. WEDDING CEREMONY TIMELINE SECTION
   ========================================================================== */
.wedding-content {
  justify-content: center;
  align-items: center;
  transform: translateY(40px);
  /* Shift entire wedding ceremony content downwards by 40px */
}

.timeline-container {
  width: 100%;
  padding: 5cqw 4cqw;
  position: relative;
  border-color: rgba(212, 175, 55, 0.45);
}

.timeline-rail {
  position: absolute;
  top: 7cqw;
  bottom: 7cqw;
  left: clamp(24px, 7.5cqw, 36px);
  width: 3px;
  background: rgba(212, 175, 55, 0.25);
  border-radius: 999px;
}

.timeline-progress-bar {
  width: 100%;
  height: 0%;
  background: var(--gold-gradient);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  transition: height 0.8s var(--transition-smooth);
}

.timeline-items-list {
  display: flex;
  flex-direction: column;
  gap: 3.5cqw;
  position: relative;
  z-index: 2;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 4cqw, 20px);
  padding-left: clamp(8px, 2.5cqw, 14px);
}

.timeline-node {
  width: clamp(24px, 6.8cqw, 32px);
  height: clamp(24px, 6.8cqw, 32px);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-node-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item.active .timeline-node {
  background: var(--gold-gradient);
  transform: scale(1.15);
}

.timeline-item.active .timeline-node-inner {
  background: #240f12;
}

.timeline-info {
  flex: 1;
}

.timeline-time-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 2.2cqw, 0.75rem);
  font-weight: 700;
  color: var(--secondary-deep);
  background: rgba(184, 92, 24, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 0.5cqw;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 3.4cqw, 1.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.timeline-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.64rem, 2.3cqw, 0.82rem);
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.4cqw;
}

/* ==========================================================================
   11. OUR VENUE SECTION
   ========================================================================== */
.venue-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 10cqw 8cqw 8cqw 8cqw;
  height: 100%;
  box-sizing: border-box;
}

.venue-top-block {
  width: calc(100% - 25px);
  /* Increased width by 35px (from calc(100% - 60px)) */
  max-width: calc(100% - 25px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2cqw;
  padding: 5cqw 4cqw;
  background: rgba(255, 255, 255, 0.10);
  /* 10% opacity glass card */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(12px, 3.2cqw, 20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.venue-bottom-block {
  width: calc(100% - 60px);
  max-width: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2cqw;
}

.venue-badge-icon {
  font-size: clamp(2rem, 7cqw, 2.8rem);
  margin-bottom: 1.5cqw;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 4.4cqw, 1.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1cqw;
}

.venue-address {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.7cqw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 80cqw;
  margin: 0 auto;
}

.venue-actions {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  width: 100%;
}

.venue-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 2.8cqw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-btn:active {
  transform: scale(0.97);
}

.primary-map-btn {
  background: var(--gold-gradient);
  color: #240f12;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.primary-map-btn:hover {
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
}

.secondary-directions-btn {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 14px rgba(60, 16, 20, 0.08);
}

.secondary-directions-btn:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Lazy Embedded Map */
.map-embed-wrapper {
  margin-top: 3.5cqw;
  width: 100%;
}

.load-map-btn {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.5cqw, 0.85rem);
  color: var(--secondary-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(184, 92, 24, 0.1);
  border: 1px solid rgba(184, 92, 24, 0.25);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.load-map-btn:hover {
  background: rgba(184, 92, 24, 0.18);
}

.map-iframe-holder {
  margin-top: 2cqw;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--accent);
  display: none;
}

.map-iframe-holder.active {
  display: block;
  aspect-ratio: 16 / 9;
}

.map-iframe-holder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   11.5 PHOTO GALLERY MEMORIES & LIGHTBOX
   ========================================================================== */
.gallery-section {
  position: relative;
  width: 100%;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  container-type: inline-size;
  /* Slight light theme: Warm Royal Ivory & Soft Champagne Silk */
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 85% 70%, rgba(197, 160, 89, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #fffcf7 0%, #fbf4e8 45%, #f4e8d3 100%);
  border-top: 1.5px solid rgba(212, 175, 55, 0.45);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
}

.gallery-section .section-content.gallery-content {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  padding: 10cqw 5cqw 12cqw 5cqw !important;
  box-sizing: border-box !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-content .section-heading-wrap {
  text-align: center;
  margin-bottom: 4cqw;
}

.gallery-content .section-lead-label {
  color: var(--secondary-deep, #8f400a);
  letter-spacing: 0.16em;
  font-weight: 700;
  text-shadow: none;
}

.gallery-content .section-title {
  color: var(--primary, #7c1826);
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  filter: none;
}

.gallery-content .golden-divider .divider-line {
  background: linear-gradient(90deg, transparent, rgba(184, 92, 24, 0.4), transparent);
}

.gallery-content .golden-divider .divider-gem {
  color: #8f400a;
  text-shadow: none;
}

/* --- Royal 3D Coverflow Slider --- */
.gallery-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 96cqw;
  height: clamp(350px, 78cqw, 490px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1cqw;
  perspective: 1000px;
  user-select: none;
  touch-action: pan-y;
}

.gallery-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-slide {
  position: absolute;
  width: clamp(220px, 56cqw, 310px);
  aspect-ratio: 672 / 900;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 10px 28px rgba(124, 24, 38, 0.14), 0 2px 10px rgba(0, 0, 0, 0.08);
  background: #fffdf9;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.55s ease,
    filter 0.55s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  will-change: transform, opacity;
  outline: none;
}

.slider-slide.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 5;
  filter: brightness(1);
  cursor: pointer;
  border-color: rgba(184, 92, 24, 0.9);
  box-shadow: 0 14px 36px rgba(124, 24, 38, 0.22), 0 0 20px rgba(212, 175, 55, 0.3);
}

.slider-slide.is-prev {
  transform: translateX(-52%) scale(0.84);
  opacity: 0.55;
  z-index: 3;
  filter: brightness(0.82);
  cursor: pointer;
}

.slider-slide.is-next {
  transform: translateX(52%) scale(0.84);
  opacity: 0.55;
  z-index: 3;
  filter: brightness(0.82);
  cursor: pointer;
}

.slider-slide.is-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.slider-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.slider-caption-pill {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  padding: 6px 14px;
  background: rgba(43, 6, 11, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #fffbf5;
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.7cqw, 0.84rem);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: opacity 0.35s ease;
}

.slider-slide:not(.is-active) .slider-caption-pill {
  opacity: 0;
}

/* Slider Arrow Buttons */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.95);
  border: 1.5px solid rgba(197, 160, 89, 0.85);
  color: var(--primary, #7c1826);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 14px rgba(124, 24, 38, 0.15);
}

.slider-arrow-btn:hover {
  background: var(--primary, #7c1826);
  color: #fff2be;
  border-color: var(--primary, #7c1826);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev-btn {
  left: 2px;
}

.slider-next-btn {
  right: 2px;
}

/* Slider Footer (Dots & Counter) */
.gallery-slider-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

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

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(184, 92, 24, 0.25);
  border: 1px solid rgba(184, 92, 24, 0.45);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease;
  padding: 0;
  outline: none;
}

.slider-dot.active {
  width: 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b85c18 0%, #7c1826 100%);
  border-color: #7c1826;
  box-shadow: 0 2px 8px rgba(124, 24, 38, 0.35);
}

.slider-counter {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 2.8cqw, 0.9rem);
  color: var(--secondary-deep, #8f400a);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-shadow: none;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 5, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 86vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(197, 160, 89, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-caption {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  color: #fff8ef;
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.03em;
  background: rgba(124, 24, 38, 0.65);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(197, 160, 89, 0.5);
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.6);
  color: #ffffff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close-btn:hover {
  background: rgba(124, 24, 38, 0.9);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 9, 12, 0.65);
  border: 1px solid rgba(197, 160, 89, 0.6);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 5;
}

.lightbox-prev-btn {
  left: -54px;
}

.lightbox-next-btn {
  right: -54px;
}

@media (max-width: 600px) {
  .lightbox-prev-btn {
    left: 8px;
  }

  .lightbox-next-btn {
    right: 8px;
  }
}

.lightbox-nav-btn:hover {
  background: rgba(124, 24, 38, 0.9);
  transform: translateY(-50%) scale(1.1);
}

body.lightbox-open {
  overflow: hidden !important;
}

/* ==========================================================================
   12. BLESSING FORM & RSVP SECTION
   ========================================================================== */
.blessing-content {
  justify-content: center;
  align-items: center;
  padding: 8cqw 6cqw;
  gap: 1.5cqw;
  transform: translateY(-60px);
  /* Shift downwards by 40px (from -100px to -60px) */
}

.blessing-content .section-heading-wrap {
  margin-bottom: 0.5cqw;
}

.blessing-top-quote {
  width: 100%;
  max-width: 86cqw;
  text-align: center;
  margin-bottom: 1cqw;
}

.blessing-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 3.1cqw, 1.08rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
}

.blessing-couple-highlight {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5.8cqw, 2rem);
  color: var(--secondary-deep);
  display: inline-block;
  margin-top: 0.2cqw;
  line-height: 1.2;
}

/* Blessing Card (Solid Opaque, No Glass) */
.blessing-minimal-card {
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 4cqw 4cqw;
  background: #ffffff;
  /* Solid opaque white - no glass */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: clamp(14px, 3.5cqw, 22px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blessing-input-wrap {
  position: relative;
  width: calc(100% - 40px);
  max-width: 380px;
  margin: 1.5cqw auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   UNIFIED BLESSING CARD CAPSULE
   Seamlessly integrates the Guest Name inside the Blessing Field
   ========================================================================== */
.blessing-card-capsule {
  position: relative;
  width: 100%;
  background: #ffffff;
  /* Solid opaque white */
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.blessing-card-capsule:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.35);
}

/* Integrated Name Row (Inside Top of Blessing Card) */
.blessing-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px 14px;
  background: rgba(253, 248, 240, 0.45);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.blessing-name-row:focus-within {
  background: #ffffff;
}

.blessing-name-row.input-error,
.blessing-name-input.input-error {
  animation: shakeError 0.4s ease;
  background: rgba(254, 226, 226, 0.4);
}

.blessing-name-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blessing-name-tag {
  font-family: var(--font-serif);
  font-size: clamp(0.68rem, 2.3cqw, 0.78rem);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  flex-shrink: 0;
}

.blessing-name-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.76rem, 2.7cqw, 0.9rem);
  font-weight: 500;
  color: var(--text-dark);
}

.blessing-name-input::placeholder {
  color: #8c827a;
  opacity: 0.85;
  font-weight: 400;
}

/* Delicate Golden Hairline Divider inside the Card */
.blessing-card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.5) 50%, rgba(212, 175, 55, 0.1) 100%);
}

/* Blessing Message Textarea Row (Inside Bottom of Blessing Card) */
.blessing-message-row {
  position: relative;
  width: 100%;
  padding: 8px 14px 10px 14px;
}

.blessing-text-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 68px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.76rem, 2.7cqw, 0.9rem);
  color: var(--text-dark);
  resize: none;
  line-height: 1.45;
  min-height: 58px;
  display: block;
}

.blessing-text-input::placeholder {
  color: #8c827a;
  opacity: 0.85;
}

.blessing-text-input.input-error {
  animation: shakeError 0.4s ease;
  color: #d32f2f;
}

/* Fallback & Legacy Styling */
.blessing-textarea-wrap {
  position: relative;
  width: 100%;
}

.minimal-blessing-textarea::placeholder {
  color: #8c827a;
  opacity: 0.85;
}

.minimal-blessing-textarea {
  width: 100%;
  background: #ffffff;
  /* Solid opaque white - no glass design */
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 14px;
  padding: 12px 64px 12px 14px;
  font-family: var(--font-sans);
  font-size: clamp(0.74rem, 2.8cqw, 0.92rem);
  color: var(--text-dark);
  resize: none;
  outline: none;
  line-height: 1.45;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.minimal-blessing-textarea:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.35);
}

.minimal-blessing-textarea.input-error {
  border-color: #d32f2f;
  animation: shakeError 0.4s ease;
}

.minimal-send-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 999px;
  color: #240f12;
  font-family: var(--font-serif);
  font-size: clamp(0.7rem, 2.4cqw, 0.82rem);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.minimal-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.6);
}

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

.minimal-send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.minimal-success-note {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 2.7cqw, 0.92rem);
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  margin: 0.5cqw 0 0;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  line-height: 1.45;
  animation: fadeIn 0.4s ease;
}

.form-card {
  width: 100%;
  padding: 5cqw 4.5cqw;
}

.blessing-form {
  display: flex;
  flex-direction: column;
  gap: 2.5cqw;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  text-align: left;
}

.form-label {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 2.4cqw, 0.82rem);
  font-weight: 600;
  color: var(--text-dark);
}

.req-star {
  color: var(--primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  padding: clamp(8px, 2.4cqw, 12px) 14px;
  font-size: clamp(0.72rem, 2.7cqw, 0.92rem);
  color: var(--text-dark);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-input.input-error {
  border-color: #d32f2f;
  animation: shakeError 0.4s ease;
}

.inline-error {
  display: none;
  font-size: clamp(0.58rem, 2.1cqw, 0.72rem);
  color: #d32f2f;
  font-weight: 500;
  margin-top: 2px;
}

.inline-error.visible {
  display: block;
}

/* Attendance Pills */
.attendance-pills {
  display: flex;
  gap: 2cqw;
  width: 100%;
}

.pill-label {
  flex: 1;
  cursor: pointer;
}

.pill-radio {
  display: none;
}

.pill-custom {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 2.3cqw, 0.8rem);
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.pill-radio:checked+.pill-custom {
  background: var(--gold-gradient);
  border-color: var(--accent-dark);
  color: #240f12;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* Submit Button */
.submit-btn {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold-gradient);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  color: #240f12;
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 3cqw, 1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  margin-top: 1.5cqw;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Loading Spinner */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(36, 15, 18, 0.25);
  border-top-color: #240f12;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-spinner.hidden {
  display: none;
}

/* WhatsApp Fallback */
.form-whatsapp-fallback {
  margin-top: 3cqw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5cqw;
}

.fallback-divider {
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 2.1cqw, 0.72rem);
  color: var(--text-muted);
}

.whatsapp-wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.5cqw, 0.85rem);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-wish-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

/* Success State */
.form-success-state {
  text-align: center;
  padding: 6cqw 3cqw;
}

.form-success-state.hidden {
  display: none;
}

.success-icon {
  font-size: clamp(2.2rem, 8cqw, 3.2rem);
  margin-bottom: 2cqw;
  animation: bounceSuccess 1s ease;
}

.success-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 4.4cqw, 1.55rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5cqw;
}

.success-message {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 2.6cqw, 0.88rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4cqw;
}

.send-another-btn {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.5cqw, 0.84rem);
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  padding: 6px 12px;
}

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

@keyframes bounceSuccess {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-16px);
  }

  60% {
    transform: translateY(-8px);
  }
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* ==========================================================================
   13. FOOTER END SECTION
   ========================================================================== */
.footer-section {
  position: relative;
  background: linear-gradient(180deg, #fdfbf7 0%, #faf5ec 50%, #f6ede0 100%) !important;
  aspect-ratio: auto;
  min-height: auto;
  padding: clamp(38px, 10cqw, 64px) 0 clamp(72px, calc(12cqw + 30px), 102px) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  overflow: hidden;
}

.footer-content {
  position: relative;
  z-index: 2;
  justify-content: center;
  align-items: center;
  padding: 2cqw 5cqw;
}

.footer-card {
  width: 100%;
  max-width: min(92cqw, 480px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1. Leading Emotional Invitation Note */
.footer-lead-msg {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: clamp(1rem, 3.8cqw, 1.32rem);
  font-weight: 600;
  color: #8c6b1b;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin: 0 0 clamp(14px, 3.5cqw, 20px) 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  max-width: min(90cqw, 420px);
}

/* 2. Couple Name in Romantic Berry/Crimson Script */
.footer-couple-block {
  margin: 0 0 clamp(16px, 3.8cqw, 22px) 0;
  width: 100%;
}

.footer-couple-name {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 10cqw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  background: linear-gradient(135deg, #ad2654 0%, #8e183b 50%, #6f112b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8e183b;
  -webkit-text-stroke: 0.50px #8e183b;
  text-stroke: 0.50px #8e183b;
  filter: drop-shadow(0 1px 3px rgba(142, 24, 59, 0.18));
  margin: 0;
  padding: 0.1em 0.15em;
  display: inline-block;
}

.footer-heart-emoji {
  -webkit-text-fill-color: initial !important;
  color: initial !important;
  display: inline-block;
  font-style: normal;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.85em;
  vertical-align: middle;
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(220, 20, 60, 0.25));
}

.footer-hashtag-wrap {
  margin-top: clamp(6px, 1.8cqw, 10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  padding: clamp(4px, 1.2cqw, 6px) clamp(12px, 3.5cqw, 18px);
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 3.2cqw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(124, 24, 38, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.footer-hashtag-pill:hover {
  background: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.footer-hashtag-pill:active {
  transform: scale(0.97);
}

/* 3. Elegant Golden Divider */
.footer-golden-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: min(70cqw, 220px);
  margin: 0 auto clamp(18px, 4cqw, 24px) auto;
}

.footer-golden-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65), transparent);
}

.footer-golden-divider .divider-gem {
  color: #c59b27;
  font-size: 0.85rem;
  line-height: 1;
}

/* 4. RSVP Contact & Family Card */
.rsvp-contacts-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(18px, 4cqw, 24px);
  gap: 8px;
  position: relative;
  z-index: 2;
}

.rsvp-title {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: clamp(0.78rem, 2.9cqw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9e7d23;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.rsvp-family-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1.2px solid rgba(212, 175, 55, 0.65);
  border-radius: 999px;
  padding: clamp(7px, 1.8cqw, 10px) clamp(20px, 5cqw, 28px);
  box-shadow: 0 3px 14px rgba(184, 134, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rsvp-family-text {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: clamp(0.85rem, 3.2cqw, 1.05rem);
  font-weight: 600;
  color: #5c141d;
  letter-spacing: 0.04em;
}

/* 5. Closing Love, Prayers & Blessings */
.footer-blessing-closing {
  font-family: var(--font-serif), serif;
  font-style: italic;
  font-size: clamp(0.92rem, 3.5cqw, 1.15rem);
  font-weight: 500;
  color: #635245;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* Corner Botanical Floral Sprigs */
.footer-corner-decor {
  position: absolute;
  bottom: 0;
  width: min(30cqw, 140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.88;
  line-height: 0;
}

.footer-decor-left {
  left: 0;
}

.footer-decor-right {
  right: 0;
}

.footer-floral-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 6. Footer Credit */
.footer-credit {
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 2.2cqw, 0.74rem);
  color: var(--text-muted);
  margin-top: clamp(20px, 4.8cqw, 30px);
  letter-spacing: 0.05em;
  opacity: 0.88;
  position: relative;
  z-index: 2;
}

.footer-credit a,
.credit-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-credit a:hover,
.credit-link:hover {
  color: var(--secondary-deep);
  text-decoration-color: var(--secondary-deep);
}

/* ==========================================================================
   14. TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(36, 15, 18, 0.94);
  border: 1.5px solid var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), var(--glow);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--transition-smooth), opacity 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   15. SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--transition-smooth),
    transform 0.85s var(--transition-smooth);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.85s var(--transition-smooth),
    transform 0.85s var(--transition-smooth);
}

.reveal-slide-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.85s var(--transition-smooth),
    transform 0.85s var(--transition-smooth);
}

.reveal-slide-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   16. DOMAIN EXPIRY LOCK OVERLAY (workers.dev inactive on/after 28 Nov)
   ========================================================================== */
.domain-expiry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, #2e0811 0%, #150207 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.domain-expiry-overlay.hidden {
  display: none !important;
}

.expiry-card {
  position: relative;
  width: auto;
  min-width: 250px;
  max-width: 340px;
  background: #ffffff;
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.25);
  padding: 24px 36px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.expiry-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 5cqw, 1.65rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   17. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */
@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;
  }


  .open-invite-btn {
    animation: none !important;
  }

  .rk-image {
    animation: none !important;
  }

  .rk-halo-glow {
    animation: none !important;
  }

  .reveal-on-scroll,
  .reveal-slide-left,
  .reveal-slide-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .countdown-block {
    transition: none !important;
  }

  .countdown-block.countdown-revealed .countdown-tile,
  .countdown-block.countdown-revealed .countdown-sep,
  .countdown-block.countdown-revealed .countdown-section-title,
  .countdown-block.countdown-revealed .golden-divider,
  .countdown-block.countdown-revealed .countdown-timer {
    animation: none !important;
  }
}

/* ==========================================================================
   18. PERFORMANCE OPTIMIZATIONS FOR MOBILE & LOW-END DEVICES
   - Preserves 100% of the visual design, typography, layout, colors & content
   - Replaces multi-pass GPU blur passes with silky-smooth, visually matched glass
   - Prevents composite layer overflow on budget mobile GPUs (Mali / Adreno)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --glass-bg: rgba(255, 252, 246, 0.94);
    --glass-bg-dark: rgba(36, 15, 18, 0.92);
    --card-blur: none;
    --glass-shadow: 0 4px 16px rgba(60, 16, 20, 0.10);
  }

  .glass-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .event-card,
  .haldi-card,
  .tilak-card,
  .wedding-ceremony-card,
  .venue-card {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  }

  .floating-audio-btn {
    background: rgba(36, 15, 18, 0.94) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45) !important;
  }

  .scroll-indicator-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .slider-caption-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(43, 6, 11, 0.94) !important;
  }

  .venue-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .countdown-unit {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }


  .lightbox-backdrop,
  .toast-notification,
  .domain-expiry-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .app-wrapper {
    box-shadow: none !important;
  }
}