/* ===================================================================
   MAIN STYLES: Variables, Typography, Layout, Reset (V3 AESTHETIC)
   Aesthetic: Dreamy Pastel, Linen Stationery, Warm Rose & Champagne
   =================================================================== */

:root {
  /* High Aesthetic Color Palette */
  --bg-cream: #fbf7f2;
  --bg-warm: #f7efe6;
  --bg-card: #ffffff;
  --text-dark: #322524;
  --text-muted: #73635f;
  --text-light: #9c8e8a;
  
  --blush-100: #fff2f5;
  --blush-200: #fce4eb;
  --blush-300: #f9bcc9;
  --blush-400: #f48fa4;
  --blush-500: #e85574;
  --blush-deep: #b02f48;

  --sage-100: #f2f7f1;
  --sage-300: #cadbc7;
  --sage-500: #7b9c77;
  --sage-700: #496345;

  --gold-300: #f9ebbe;
  --gold-500: #d4af37;
  --gold-700: #9e7e1f;

  --wax-red: #9e1f2b;
  --wax-dark: #73111b;
  --wax-shadow: rgba(115, 17, 27, 0.35);

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-cursive: 'Caveat', 'Dancing Script', cursive;
  --font-body: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 4px 14px rgba(60, 40, 45, 0.06);
  --shadow-md: 0 10px 28px rgba(60, 40, 45, 0.09);
  --shadow-lg: 0 18px 45px rgba(60, 40, 45, 0.13);
  --shadow-soft: 0 25px 60px rgba(232, 85, 116, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Dreamy multi-radial pastel glow */
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(255, 218, 226, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(242, 230, 255, 0.6) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.8) 0%, transparent 55%),
    radial-gradient(circle at 18% 75%, rgba(255, 228, 235, 0.5) 0%, transparent 48%),
    radial-gradient(circle at 82% 80%, rgba(232, 245, 235, 0.55) 0%, transparent 48%);
  background-attachment: fixed;
}

/* Subtle luxury linen paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.022'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Canvases for Petals and Confetti */
#petalsCanvas, #confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

#confettiCanvas {
  z-index: 999;
}

/* Container */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* Smooth Page Entry Animation for Main Experience */
#mainExperience {
  animation: pageFadeScale 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pageFadeScale {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(25px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Floating Audio Player Widget */
.audio-controller {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(251, 188, 201, 0.7);
  box-shadow: 0 6px 20px rgba(232, 85, 116, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.audio-controller:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(232, 85, 116, 0.25);
  border-color: var(--blush-400);
}

.audio-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blush-500);
}

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

.audio-equalizer span {
  width: 3px;
  height: 100%;
  background-color: var(--blush-400);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-equalizer.playing span:nth-child(1) { animation: soundwave 0.8s ease infinite alternate; }
.audio-equalizer.playing span:nth-child(2) { animation: soundwave 1.1s ease infinite alternate 0.2s; }
.audio-equalizer.playing span:nth-child(3) { animation: soundwave 0.9s ease infinite alternate 0.4s; }
.audio-equalizer.playing span:nth-child(4) { animation: soundwave 1.2s ease infinite alternate 0.1s; }

@keyframes soundwave {
  0% { height: 3px; }
  100% { height: 14px; }
}

.audio-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Badge styling */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  background: rgba(255, 242, 245, 0.95);
  color: var(--blush-deep);
  border: 1.5px solid var(--blush-300);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(232, 85, 116, 0.1);
  backdrop-filter: blur(8px);
}

/* Section titles */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.25;
  margin-bottom: 8px;
}

.bouquet-for-name {
  font-family: var(--font-cursive);
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
  color: var(--blush-deep);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 35px auto;
  line-height: 1.65;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 15, 18, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

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

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  position: relative;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1.5px solid var(--blush-200);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--sage-100);
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--blush-200);
  color: var(--blush-deep);
  transform: rotate(90deg);
}

/* Toast message notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(45, 34, 33, 0.94);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .audio-controller {
    top: 14px;
    right: 14px;
    padding: 6px 12px;
  }
  .audio-title {
    display: none;
  }
}
