/* ==========================================================================
   KAJAL & PUSHKAR — ROYAL WEDDING INVITATION STYLESHEET
   Aesthetics: Luxurious Indian Heritage, Golden Amber, Deep Mahogany, Silk
   ========================================================================== */

:root {
  /* Color Palette */
  --royal-mahogany-deep: #1c0e09;
  --royal-mahogany: #28140c;
  --royal-maroon: #4a1e16;
  --royal-gold-light: #fae4a8;
  --royal-gold: #e5b95f;
  --royal-gold-rich: #cda243;
  --royal-gold-dark: #8c6823;
  --royal-parchment: #fdf8ef;
  --royal-parchment-dark: #eee0c8;
  --royal-cream: #fff2db;
  --royal-amber-glow: rgba(229, 185, 95, 0.45);
  
  /* Fonts */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-cinzel: "Cinzel", "Cormorant Garamond", serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sizing and Layout */
  --invite-max-width: 760px;
  --transition-smooth: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--royal-mahogany-deep);
}

body.royal-theme {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #3a1c12 0%, #200f09 60%, #130805 100%);
  color: var(--royal-cream);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Decorative subtle background pattern on widescreen desktop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(229, 185, 95, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(229, 185, 95, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* Canvas for Particles & Falling Rose Petals */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   FLOATING HEADER & STATUS CONTROLS
   ========================================================================== */
.floating-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: var(--invite-max-width);
  z-index: 100;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(36, 17, 11, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 12px rgba(229, 185, 95, 0.2);
  transition: var(--transition-smooth);
}

.floating-header.scrolled .header-inner {
  background: rgba(26, 12, 8, 0.92);
  border-color: rgba(229, 185, 95, 0.5);
}

/* Monogram Logo */
.couple-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5b95f, #8c6823);
  color: #1a0c08;
  font-family: var(--font-cinzel);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.couple-monogram:hover {
  transform: scale(1.08);
}

/* Countdown Pill */
.countdown-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--royal-gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 6px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.countdown-label {
  display: none;
  font-weight: 400;
  opacity: 0.85;
}

@media (min-width: 580px) {
  .countdown-label {
    display: inline;
  }
}

.countdown-timer {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 185, 95, 0.12);
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--royal-gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-pill-btn:hover {
  background: rgba(229, 185, 95, 0.25);
  border-color: var(--royal-gold);
  color: #fff;
  transform: translateY(-1px);
}

/* Animated Sound Wave Bars */
.sound-wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-wave-bars span {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--royal-gold);
  border-radius: 1px;
  transform-origin: bottom;
  animation: equalize 1.2s infinite ease-in-out;
}

.sound-wave-bars span:nth-child(1) { animation-delay: 0.1s; height: 60%; }
.sound-wave-bars span:nth-child(2) { animation-delay: 0.3s; height: 100%; }
.sound-wave-bars span:nth-child(3) { animation-delay: 0.2s; height: 40%; }
.sound-wave-bars span:nth-child(4) { animation-delay: 0.4s; height: 80%; }

.music-btn.paused .sound-wave-bars span {
  animation-play-state: paused;
  opacity: 0.5;
  height: 3px !important;
}

@keyframes equalize {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.svg-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Nav Drawer */
.nav-drawer {
  display: none;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(26, 12, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 185, 95, 0.4);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 0.25s ease-out;
}

.nav-drawer.open {
  display: block;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--royal-parchment);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background: rgba(229, 185, 95, 0.2);
  color: var(--royal-gold-light);
}

/* ==========================================================================
   MAIN INVITATION WRAPPER
   ========================================================================== */
.invitation-scroll-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--invite-max-width);
  margin: 0 auto;
  padding-top: clamp(72px, 8vw, 96px);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 185, 95, 0.15);
  z-index: 1;
  background-color: var(--royal-mahogany);
}

/* Section Common Styles */
.parallax-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
  user-select: none;
}

/* Exact Aspect Ratios to match Photoshop 1920px Canvas */
.section-hero { aspect-ratio: 1920 / 2798; }
.section-mehendi { aspect-ratio: 1920 / 1197; }
.section-haldi-sangeet {
  aspect-ratio: 1920 / 1155;
  background-color: #eee0c8;
}
.section-wedding {
  aspect-ratio: 1920 / 2025;
  margin-top: -3px;
  background-color: #eee0c8;
}
.section-families {
  aspect-ratio: 1920 / 645;
  margin-top: -2px;
  background-color: #eee0c8;
}
.section-venue-dates {
  aspect-ratio: 1920 / 1015;
  margin-top: -2px;
  background-color: #eee0c8;
}

/* Parallax Background Layer - Aligned 1:1 with foreground text layers */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 3px);
  z-index: 1;
  pointer-events: none;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* Foreground Artwork & Calligraphy Layer */
.text-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

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

/* Interactive Overlay Layer for Clickable Buttons */
.interactive-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* Golden Divider */
.gold-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cda243, #fae4a8, #cda243, transparent);
  opacity: 0.8;
  position: relative;
  z-index: 6;
}

/* ==========================================================================
   BUTTON STYLES & INTERACTION DESIGN
   ========================================================================== */
.gold-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(30, 14, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 185, 95, 0.65);
  border-radius: 999px;
  color: var(--royal-gold-light);
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 1.8vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.gold-pill-btn:hover {
  background: rgba(229, 185, 95, 0.32);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 185, 95, 0.4);
}

.gold-pill-btn:active {
  transform: translateY(0) scale(0.98);
}

.gold-pill-btn.primary {
  background: linear-gradient(135deg, rgba(205, 162, 67, 0.9), rgba(140, 104, 35, 0.92));
  color: #1a0a04;
  border-color: #fde68a;
  box-shadow: 0 4px 16px rgba(229, 185, 95, 0.45);
}

.gold-pill-btn.primary:hover {
  background: linear-gradient(135deg, #fae4a8, #e5b95f);
  color: #120602;
  box-shadow: 0 6px 24px rgba(229, 185, 95, 0.6);
}

.gold-pill-btn.primary-solid {
  background: linear-gradient(135deg, #e5b95f, #cda243);
  color: #180803;
  font-weight: 700;
  border-color: #fff;
}

.gold-pill-btn.highlight {
  background: linear-gradient(135deg, #be185d, #831843);
  color: #fff;
  border-color: #fbcfe8;
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.4);
}

.gold-pill-btn.highlight:hover {
  background: linear-gradient(135deg, #db2777, #9d174d);
  box-shadow: 0 6px 22px rgba(219, 39, 119, 0.55);
}

.gold-pill-btn.secondary {
  background: rgba(20, 8, 5, 0.7);
  border-color: rgba(229, 185, 95, 0.4);
}

.gold-pill-btn.mini-btn {
  padding: 5px 10px;
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
}

.gold-pill-btn.full-width {
  width: 100%;
}

/* Pulsing Glow Animation */
.pulse-glow {
  animation: pulse-glow-anim 2.5s infinite ease-in-out;
}

@keyframes pulse-glow-anim {
  0%, 100% {
    box-shadow: 0 0 10px rgba(229, 185, 95, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(229, 185, 95, 0.75);
  }
}

.pulse-btn {
  animation: pulse-btn-anim 2s infinite ease-in-out;
}

@keyframes pulse-btn-anim {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ==========================================================================
   SECTION-SPECIFIC OVERLAYS & BUTTON POSITIONING
   ========================================================================== */

/* Calligraphic Brush Stroke Reveal for 'Wedding' Script */
.hero-wedding-script-wrapper {
  position: absolute;
  top: 40.0286%;
  left: 18.2292%;
  width: 63.5417%;
  height: 17.8699%;
  z-index: 2;
  pointer-events: none;
}

.wedding-brush-reveal {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: brushRevealAnim 4.2s cubic-bezier(0.25, 0.9, 0.35, 1) 0.4s forwards;
  -webkit-animation: brushRevealAnim 4.2s cubic-bezier(0.25, 0.9, 0.35, 1) 0.4s forwards;
  will-change: mask-position, -webkit-mask-position;
}

.wedding-script-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

@-webkit-keyframes brushRevealAnim {
  0% {
    -webkit-mask-position: 100% 0;
    opacity: 0.1;
  }
  5% {
    opacity: 1;
  }
  100% {
    -webkit-mask-position: 0% 0;
    opacity: 1;
  }
}

@keyframes brushRevealAnim {
  0% {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    opacity: 0.1;
  }
  5% {
    opacity: 1;
  }
  100% {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
    opacity: 1;
  }
}

/* Hero Overlay */
.hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: calc(2.2% + 5px);
}

.gold-glow-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: rgba(26, 12, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 185, 95, 0.7);
  border-radius: 999px;
  color: var(--royal-gold-light);
  font-family: var(--font-cinzel);
  font-size: clamp(0.52rem, 1.1vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.gold-glow-btn .svg-icon {
  width: 9px;
  height: 9px;
}

.gold-glow-btn:hover {
  background: rgba(229, 185, 95, 0.3);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.bounce-arrow {
  animation: bounceDown 1.8s infinite ease-in-out;
}

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

/* Mehendi Overlay */
.mehendi-overlay {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Calligraphic Scroll-Mapped Brush Stroke Reveal for 'Mehendi' Script */
.mehendi-script-wrapper {
  position: absolute;
  top: 26.7335%;
  left: 17.9688%;
  width: 59.1146%;
  height: 37.1763%;
  z-index: 2;
  pointer-events: none;
}

.mehendi-brush-reveal {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: var(--mehendi-mask-pos, 100% 0);
  mask-position: var(--mehendi-mask-pos, 100% 0);
  will-change: mask-position, -webkit-mask-position;
  transition: -webkit-mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1), mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.mehendi-script-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.mehendi-actions {
  position: absolute;
  top: calc(72% + 10px);
  left: calc(50% + 60px);
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  pointer-events: auto;
}

/* Calligraphic Scroll-Mapped Simultaneous Brush Stroke Reveal for 'Haldi' & 'Sangeet' */
.haldi-script-wrapper {
  position: absolute;
  top: 30.9957%;
  left: 22.9688%;
  width: 23.3854%;
  height: 21.6450%;
  z-index: 2;
  pointer-events: none;
}

.sangeet-script-wrapper {
  position: absolute;
  top: 30.9091%;
  left: 53.1250%;
  width: 36.3021%;
  height: 21.8182%;
  z-index: 2;
  pointer-events: none;
}

.dual-brush-reveal {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: var(--hs-mask-pos, 100% 0);
  mask-position: var(--hs-mask-pos, 100% 0);
  will-change: mask-position, -webkit-mask-position;
  transition: -webkit-mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1), mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.dual-script-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Haldi & Sangeet Overlay */
.haldi-sangeet-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Poolside Arena Map: Right-aligned with right edge of 'Haldi' (X = 46.3%), directly below 'Poolside Arena' */
.haldi-actions {
  position: absolute;
  top: calc(65% + 20px);
  right: 53.7%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: auto;
}

/* Swagatam Lawn Map: Left-aligned with left edge of 'Sangeet' (X = 53.1%), directly below 'Swagatam Lawn' */
.sangeet-actions {
  position: absolute;
  top: calc(65% + 20px);
  left: 53.1%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  pointer-events: auto;
}

/* Calligraphic Scroll-Mapped Brush Stroke Reveal for 'Wedding Celebration' Script */
.wedding-celebration-script-wrapper {
  position: absolute;
  top: 8.7901%;
  left: 23.2292%;
  width: 53.5417%;
  height: 9.1852%;
  z-index: 2;
  pointer-events: none;
}

.wedding-celebration-brush-reveal {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: var(--wc-mask-pos, 100% 0);
  mask-position: var(--wc-mask-pos, 100% 0);
  will-change: mask-position, -webkit-mask-position;
  transition: -webkit-mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1), mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.wedding-celebration-script-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Calligraphic Scroll-Mapped Brush Stroke Reveal for 'Kajal & Pushkar' Script */
.kajal-pushkar-script-wrapper {
  position: absolute;
  top: 55.9012%;
  left: 43.9583%;
  width: 50.5729%;
  height: 10.3210%;
  z-index: 2;
  pointer-events: none;
}

.kajal-pushkar-brush-reveal {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  mask-image: linear-gradient(
    108deg,
    #000 41%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 49%,
    rgba(0, 0, 0, 0.2) 53%,
    transparent 56%
  );
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: var(--kp-mask-pos, 100% 0);
  mask-position: var(--kp-mask-pos, 100% 0);
  will-change: mask-position, -webkit-mask-position;
  transition: -webkit-mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1), mask-position 0.12s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.kajal-pushkar-script-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Wedding Overlay */
.wedding-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 7%;
  padding-bottom: 7%;
}

.wedding-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 80%;
}

@media (min-width: 580px) {
  .wedding-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Families Overlay */
.families-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3.5%;
}

/* Venue Overlay */
.venue-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.venue-action-buttons {
  position: absolute;
  top: calc(33% + 30px);
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dates-action-buttons {
  position: absolute;
  bottom: 2.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-top-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fae4a8;
  background: rgba(30, 14, 9, 0.75);
  border: 1px solid rgba(229, 185, 95, 0.4);
  font-size: clamp(0.62rem, 1.3vw, 0.72rem);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  pointer-events: auto;
  padding: 5px 12px;
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.jump-top-trigger:hover {
  background: rgba(229, 185, 95, 0.3);
  color: #fff;
  border-color: #fff;
}

/* ==========================================================================
   INTERACTIVE GOOGLE MAP & DESTINATION GUIDE SECTION
   ========================================================================== */
.luxury-map-section {
  position: relative;
  background: linear-gradient(180deg, #1f0e08 0%, #160a06 100%);
  padding: 48px 20px;
  border-top: 1px solid rgba(229, 185, 95, 0.3);
  border-bottom: 1px solid rgba(229, 185, 95, 0.3);
}

.map-card-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.royal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(229, 185, 95, 0.12);
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 999px;
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--royal-gold-light);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-cinzel);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  color: var(--royal-gold-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--royal-parchment-dark);
  font-style: italic;
}

/* Google Map Wrapper */
.google-map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(229, 185, 95, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 185, 95, 0.15);
}

#google-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(22, 10, 6, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 185, 95, 0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--royal-cream);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pulse-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-dot 1.5s infinite;
}

.map-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Travel Info Cards Grid */
.travel-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.travel-info-card {
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(229, 185, 95, 0.2);
  border-radius: 12px;
  text-align: left;
  transition: var(--transition-smooth);
}

.travel-info-card:hover {
  background: rgba(229, 185, 95, 0.08);
  border-color: rgba(229, 185, 95, 0.4);
  transform: translateY(-2px);
}

.travel-info-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.travel-info-card h3 {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  color: var(--royal-gold);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.travel-info-card p {
  font-size: 0.75rem;
  color: var(--royal-parchment-dark);
  line-height: 1.45;
}

/* ==========================================================================
   WISHES WALL & RSVP SECTION
   ========================================================================== */
.luxury-wishes-section {
  position: relative;
  background: linear-gradient(180deg, #160a06 0%, #24110b 100%);
  padding: 48px 20px;
}

.wishes-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.rsvp-cta-box {
  padding: 24px 20px;
  background: radial-gradient(circle at 50% 50%, rgba(229, 185, 95, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cta-message {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: var(--royal-cream);
  margin-bottom: 16px;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.blessings-wall-wrapper {
  margin-top: 10px;
}

.wall-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(229, 185, 95, 0.2);
}

.wall-title-bar h3 {
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  color: var(--royal-gold-light);
  letter-spacing: 0.05em;
}

.blessing-count {
  font-size: 0.72rem;
  color: var(--royal-parchment-dark);
  background: rgba(229, 185, 95, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.blessings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.blessing-card {
  padding: 18px;
  background: rgba(30, 14, 9, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 185, 95, 0.25);
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

.blessing-card:hover {
  border-color: rgba(229, 185, 95, 0.5);
  transform: translateY(-2px);
}

.blessing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.guest-name-badge {
  font-family: var(--font-cinzel);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--royal-gold-light);
}

.blessing-timestamp {
  font-size: 0.68rem;
  color: rgba(244, 235, 217, 0.6);
}

.blessing-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--royal-cream);
  line-height: 1.45;
  margin-bottom: 8px;
}

.events-attending-tag {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--royal-gold);
  background: rgba(229, 185, 95, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.luxury-footer {
  text-align: center;
  padding: 36px 20px 48px;
  background: #110604;
  border-top: 1px solid rgba(229, 185, 95, 0.2);
}

.footer-ornament {
  font-size: 0.85rem;
  color: var(--royal-gold);
  letter-spacing: 0.5em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-credit {
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--royal-cream);
  margin-bottom: 4px;
}

.footer-dates {
  font-size: 0.75rem;
  color: var(--royal-parchment-dark);
  margin-bottom: 18px;
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--royal-gold);
  text-decoration: none;
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  transition: var(--transition-smooth);
}

.footer-back-top:hover {
  background: rgba(229, 185, 95, 0.2);
  color: #fff;
}

/* ==========================================================================
   MODAL DIALOG (RSVP & BLESSINGS)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 6, 4, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #26110a 0%, #1a0b06 100%);
  border: 1px solid rgba(229, 185, 95, 0.5);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 24px rgba(229, 185, 95, 0.2);
  animation: modalPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 185, 95, 0.3);
  color: var(--royal-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(229, 185, 95, 0.25);
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  color: var(--royal-gold-light);
  margin-bottom: 4px;
}

.modal-header p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--royal-parchment-dark);
  font-style: italic;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--royal-gold-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(14, 6, 4, 0.65);
  border: 1px solid rgba(229, 185, 95, 0.35);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--royal-gold);
  box-shadow: 0 0 12px rgba(229, 185, 95, 0.35);
  background: rgba(20, 8, 5, 0.9);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 185, 95, 0.25);
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--royal-cream);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.check-pill:hover {
  background: rgba(229, 185, 95, 0.12);
}

.check-pill input {
  accent-color: var(--royal-gold);
}

.modal-actions {
  margin-top: 22px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(30, 14, 9, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--royal-gold);
  border-radius: 999px;
  color: var(--royal-gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 185, 95, 0.3);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ==========================================================================
   MEDIA QUERIES (FULL RESPONSIVENESS: MOBILE, TABLET & PC/LAPTOP)
   ========================================================================== */
@media (max-width: 600px) {
  .floating-header {
    top: 8px;
    width: calc(100% - 16px);
  }
  
  .header-inner {
    padding: 6px 10px;
    gap: 6px;
  }
  
  .countdown-pill {
    font-size: 0.72rem;
    gap: 5px;
    padding-left: 2px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .countdown-label {
    display: none !important;
  }

  .countdown-timer {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .icon-pill-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  /* Hero: Explore Celebrations Button mobile optimization */
  .hero-overlay {
    padding-bottom: calc(2.2% - 2px) !important;
  }

  .gold-glow-btn {
    padding: 3px 8px !important;
    font-size: 0.5rem !important;
    gap: 4px !important;
    transform: translateY(5px);
  }

  .gold-glow-btn .svg-icon {
    width: 8px !important;
    height: 8px !important;
  }

  /* Mehendi: Centered on mobile to prevent right-edge clipping */
  .mehendi-actions {
    left: 50% !important;
    top: calc(72% + 5px) !important;
    transform: translateX(-50%) !important;
    max-width: 92%;
  }

  .mehendi-actions .gold-pill-btn {
    font-size: clamp(0.68rem, 2.6vw, 0.78rem);
    padding: 6px 12px;
  }

  /* Haldi & Sangeet: Exact edge alignment on mobile */
  .haldi-actions {
    top: calc(65.5% + 20px) !important;
    right: 53.7% !important;
  }

  .sangeet-actions {
    top: calc(65.5% + 20px) !important;
    left: 53.1% !important;
  }

  .haldi-actions .gold-pill-btn,
  .sangeet-actions .gold-pill-btn {
    padding: 4px 6px;
    font-size: clamp(0.52rem, 1.8vw, 0.65rem);
    gap: 3px;
    white-space: nowrap;
  }

  .haldi-actions .svg-icon,
  .sangeet-actions .svg-icon {
    width: 10px;
    height: 10px;
  }

  /* Wedding Overlay */
  .wedding-overlay {
    justify-content: center;
    padding-right: 0;
    padding-bottom: 4%;
  }

  .wedding-actions {
    align-items: center;
    max-width: 92%;
    width: 100%;
    gap: 6px;
  }

  .wedding-actions .gold-pill-btn {
    font-size: clamp(0.66rem, 2.4vw, 0.76rem);
    padding: 6px 12px;
  }

  /* Venue & Dates Overlays */
  .venue-action-buttons {
    top: calc(31% + 30px);
    gap: 10px;
    width: 95%;
  }

  .venue-action-buttons .gold-pill-btn {
    padding: 5px 10px;
    font-size: clamp(0.6rem, 2.3vw, 0.72rem);
    gap: 5px;
  }

  .dates-action-buttons {
    bottom: 1.8%;
    gap: 5px;
    width: 98%;
  }

  .dates-action-buttons .gold-pill-btn,
  .jump-top-trigger {
    padding: 4px 8px;
    font-size: clamp(0.58rem, 2.2vw, 0.7rem);
    gap: 4px;
  }

  .gold-pill-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
    gap: 5px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 24px 16px;
    max-width: 95%;
  }
}
