/* ==========================================================================
   BABY SHOWER CELEBRATION - EXACT REFERENCE STYLING (FULL WIDTH & PARALLAX)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Great+Vibes&family=Noto+Serif+Gujarati:wght@600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --gold-text-grad: linear-gradient(180deg, #A67C52 0%, #8C6239 55%, #6B4826 100%);
  --maroon-crest: radial-gradient(circle at 50% 35%, #8E223D 0%, #631327 100%);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fbf3cd 45%, #aa771c 100%);
  --ivory-bg: #FDF8F0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ivory-bg);
  color: #4A3723;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* Soft-folded ivory silk drape sheen */
  background-image:
    radial-gradient(ellipse at 20% 12%, rgba(255, 255, 255, 0.85) 0%, transparent 45%),
    radial-gradient(ellipse at 82% 28%, rgba(235, 214, 178, 0.35) 0%, transparent 50%),
    linear-gradient(115deg, rgba(255, 252, 246, 0.7) 0%, rgba(242, 227, 201, 0.32) 32%, rgba(255, 253, 249, 0.8) 58%, rgba(234, 213, 176, 0.36) 85%, rgba(253, 248, 240, 0.9) 100%);
}

/* Typography Classes */
.font-serifTitle {
  font-family: 'Cinzel Decorative', 'Playfair Display', Georgia, serif;
}

.font-editorial {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-script {
  font-family: 'Great Vibes', cursive;
}

.font-gujarati {
  font-family: 'Noto Serif Gujarati', serif;
}

/* Antique Bronze-Gold Foil Heading */
.gold-foil-text {
  background: var(--gold-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(140, 98, 57, 0.14));
}

/* Brushed-Gold Pill Button (#D8B467 with dark bronze border) */
.btn-gold-metallic {
  background: linear-gradient(180deg, #E8CC88 0%, #D8B467 52%, #BC9344 100%);
  border: 1.5px solid #7C5824;
  box-shadow:
    0 6px 18px rgba(124, 88, 36, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.btn-gold-metallic:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 24px rgba(124, 88, 36, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

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

/* Ornate Scalloped Bracket Button for "Submit Vote" matching video */
.btn-cartouche {
  background: linear-gradient(180deg, #ECD599 0%, #D8B467 50%, #B88B35 100%);
  border: 2px solid #825B20;
  border-radius: 9999px;
  box-shadow:
    0 10px 25px -4px rgba(130, 91, 32, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.85);
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cartouche:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 30px -4px rgba(130, 91, 32, 0.5),
    inset 0 2px 3px rgba(255, 255, 255, 0.95);
}

.btn-cartouche:active {
  transform: scale(0.98);
}

/* Gentle Mandala Slow Spin */
@keyframes mandalaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-mandala-slow {
  animation: mandalaSpin 95s linear infinite;
  will-change: transform;
}

.animate-mandala-reverse {
  animation: mandalaSpin 110s linear infinite reverse;
  will-change: transform;
}

/* Marigold Garland Breeze Sway */
@keyframes garlandSway {
  0%, 100% { transform: rotate(-1.5deg) translateY(0px); }
  50% { transform: rotate(1.5deg) translateY(2px); }
}

.animate-garland {
  transform-origin: top center;
  animation: garlandSway 4.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes sideGarlandSway {
  0%, 100% { transform: rotate(-1.1deg); }
  50% { transform: rotate(1.1deg); }
}

.animate-side-garland {
  transform-origin: top center;
  animation: sideGarlandSway 4.8s ease-in-out infinite;
}

/* Floating Rose Petals & Bokeh Sparkles */
@keyframes petalDrift {
  0% {
    transform: translate3d(0, -10px, 0) rotate(0deg);
    opacity: 0;
  }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% {
    transform: translate3d(35px, 320px, 0) rotate(240deg);
    opacity: 0;
  }
}

.petal-particle {
  animation: petalDrift linear infinite;
  will-change: transform, opacity;
}

@keyframes twinkleGlow {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.95; transform: scale(1.25); }
}

.sparkle-dot {
  animation: twinkleGlow 3s ease-in-out infinite;
}

/* Subtle Ken Burns Zoom for Venue Photo */
@keyframes kenBurnsSoft {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.05) translate3d(-1%, -1%, 0); }
}

.animate-ken-burns {
  animation: kenBurnsSoft 16s ease-in-out infinite;
  will-change: transform;
}

/* Gentle Floating Hover for Isometric Map */
@keyframes mapFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.animate-map-float {
  animation: mapFloat 3.8s ease-in-out infinite;
  will-change: transform;
}

/* Scroll Reveal Utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* "Time Par" Spring Stamp & Sparkle */
.time-par-word {
  display: inline-block;
  opacity: 0;
  transform: scale(0.35) translateY(24px) rotate(-6deg);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

.time-par-word.active {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(0deg);
}

/* Pose Crossfade & Pop Transition for Dada-Dadi & Chachu-Chachi */
.pose-layer {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

.pose-hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.pose-visible {
  opacity: 1;
  transform: scale(1);
}

/* Double-Wire Golden Frame for Family Cards (Matching video!) */
.gold-double-wire-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(212, 175, 55, 0.8);
  border-radius: 20px;
  padding: 8px;
  transition: all 0.35s ease;
}

.gold-double-wire-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(166, 124, 82, 0.45);
  border-radius: 14px;
  pointer-events: none;
}

.gold-double-wire-frame:hover {
  border-color: #D4AF37;
  box-shadow: 0 14px 34px rgba(166, 124, 82, 0.22);
}

.gold-double-wire-frame.time-par-glow {
  border-color: #D4AF37 !important;
  box-shadow: 0 16px 38px rgba(166, 124, 82, 0.3), 0 0 0 2px rgba(212, 175, 55, 0.4) !important;
}

/* Poll Card 3D Frosted Pastel Surfaces */
.poll-boy-card {
  background: linear-gradient(155deg, #DCEEFF 0%, #C4E0FF 100%);
  border: 1.5px solid rgba(147, 197, 253, 0.75);
  box-shadow:
    0 14px 28px -8px rgba(59, 130, 246, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-girl-card {
  background: linear-gradient(155deg, #FCE2EA 0%, #F8C8D8 100%);
  border: 1.5px solid rgba(244, 114, 182, 0.65);
  box-shadow:
    0 14px 28px -8px rgba(236, 72, 153, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-card-selected {
  transform: translateY(-6px) scale(1.025);
  box-shadow:
    0 20px 36px -8px rgba(166, 124, 82, 0.38),
    0 0 0 3px #D4AF37,
    inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

/* Scalloped Notched Parchment Card for Save the Date (Matching video!) */
.parchment-notched-card {
  background: #FFFDF9;
  border: 1.5px solid rgba(184, 142, 74, 0.5);
  border-radius: 20px;
  position: relative;
  box-shadow:
    0 16px 36px -10px rgba(140, 98, 57, 0.18),
    0 0 0 4px rgba(255, 253, 248, 0.9);
}

/* Sound Wave Visualizer */
.sound-wave-bar {
  width: 3px;
  background-color: #8C6239;
  border-radius: 2px;
  animation: bounceBar 1.2s ease-in-out infinite alternate;
}

.sound-wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-wave-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.sound-wave-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.sound-wave-bar:nth-child(4) { height: 16px; animation-delay: 0.4s; }
.sound-wave-bar:nth-child(5) { height: 8px; animation-delay: 0.15s; }

.paused .sound-wave-bar {
  animation-play-state: paused;
  height: 4px !important;
}

@keyframes bounceBar {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

/* Modal Dialog per Modern Web Guidance */
dialog:modal {
  overscroll-behavior: contain;
  border: none;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  width: 520px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(30, 20, 10, 0.65);
  backdrop-filter: blur(6px);
}

/* Customizer Drawer */
#customizer-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#customizer-drawer.closed {
  transform: translateX(105%);
}

/* Parallax Layer Utility */
.parallax-smooth {
  will-change: transform;
}

/* Feature Detection & Reduced Motion per Modern Web Guidance */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .parallax-smooth {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-mandala-slow,
  .animate-mandala-reverse,
  .animate-garland,
  .animate-side-garland,
  .petal-particle,
  .sparkle-dot,
  .animate-ken-burns,
  .animate-map-float,
  .sound-wave-bar {
    animation: none !important;
  }
  .time-par-word,
  .pose-layer {
    transition: none !important;
  }
  #venueParallaxImg,
  #mapParallaxContainer {
    transform: none !important;
  }
}
