/* ========================================================
   MADAM SAHIBA (AMBER NAZIR) BIRTHDAY LANDING PAGE
   Boutique Floral Cream & Vintage Teal Aesthetic
   Crafted with Eternal Love by Usman ❤️
   ======================================================== */

:root {
  /* Boutique Poster Theme Palette */
  --bg-cream: #faf6f0;
  --bg-cream-tint: #f5eee4;
  --bg-card: rgba(255, 255, 255, 0.86);
  --bg-card-border: rgba(217, 107, 130, 0.18);
  
  /* Vintage Teal (from "HAPPY BIRTHDAY" on reference poster) */
  --teal-dark: #1b4549;
  --teal-primary: #23575b;
  --teal-mid: #2d6a6e;
  --teal-light: #44898e;
  --teal-tint: rgba(45, 106, 110, 0.08);

  /* Soft Blush & Rose Accents */
  --rose-primary: #d96b82;
  --rose-deep: #b84b63;
  --rose-soft: #f4a2b2;
  --rose-light: #fdf2f4;
  --rose-gradient: linear-gradient(135deg, #e27b92 0%, #c4526c 100%);
  --teal-gradient: linear-gradient(135deg, #2d6a6e 0%, #1b4549 100%);

  /* Warm Gold & Champagne */
  --gold-accent: #c59b27;
  --gold-light: #f7e7c4;
  --gold-border: rgba(197, 155, 39, 0.35);

  /* Typography Colors */
  --text-main: #233438;
  --text-sub: #54686e;
  --text-muted: #80969d;

  /* Typography Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --font-script: 'Dancing Script', cursive;
  --font-cursive: 'Great Vibes', cursive;
  --font-royal: 'Cinzel', serif;

  /* Spacing & Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body.boutique-theme {
  background-color: var(--bg-cream);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(244, 162, 178, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(45, 106, 110, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(250, 246, 240, 0.85) 0%, rgba(245, 238, 228, 0.95) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Canvas Ambient Particle Animation */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ========================================================
   TOP FLOATING GLASSMORPHIC HEADER
   ======================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 106, 110, 0.12);
  box-shadow: 0 4px 20px rgba(35, 52, 56, 0.05);
  padding: 10px 24px;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.brand-angel {
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 700;
  color: var(--rose-deep);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(217, 107, 130, 0.25);
  transition: var(--transition);
}

.brand-angel:hover {
  color: var(--rose-primary);
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-primary);
  background: var(--teal-tint);
}

/* Audio Widget (Compact & Cleanly Adjusted) */
.audio-widget {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(45, 106, 110, 0.08);
  border: 1px solid rgba(45, 106, 110, 0.22);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--teal-dark);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  max-width: 125px;
}

.audio-btn:hover {
  background: rgba(45, 106, 110, 0.16);
  transform: translateY(-1px);
}

.audio-disc {
  font-size: 0.9rem;
}

.audio-disc.spinning {
  display: inline-block;
  animation: spinDisc 3s linear infinite;
}

@keyframes spinDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.audio-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75px;
}

.track-switch-btn {
  background: var(--rose-light);
  border: 1px solid rgba(217, 107, 130, 0.35);
  color: var(--rose-deep);
  padding: 5px 9px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.track-switch-btn:hover {
  background: rgba(217, 107, 130, 0.22);
  transform: translateY(-1px);
}

.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.volume-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(45, 106, 110, 0.25);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal-primary);
  cursor: pointer;
}

.volume-percent {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-primary);
  min-width: 25px;
  text-align: right;
}

/* ========================================================
   LANDING SECTIONS COMMON WRAPPERS
   ======================================================== */
.landing-main {
  position: relative;
  z-index: 10;
  padding-top: 70px;
}

.landing-section {
  padding: 70px 20px;
  position: relative;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.full-width-container {
  max-width: 100%;
  padding: 0;
}

.section-badge {
  display: inline-block;
  background: var(--rose-light);
  border: 1px solid rgba(217, 107, 130, 0.35);
  color: var(--rose-deep);
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(217, 107, 130, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(217, 107, 130, 0.22);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--teal-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

/* Button Component Styles */
.primary-btn {
  background: var(--rose-gradient);
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 13px 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(217, 107, 130, 0.35);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(217, 107, 130, 0.5);
  color: #fff;
}

.secondary-btn {
  background: #fff;
  color: var(--teal-primary);
  text-decoration: none;
  border: 1.5px solid rgba(45, 106, 110, 0.3);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(35, 52, 56, 0.05);
}

.secondary-btn:hover {
  background: var(--teal-primary);
  color: #fff;
  border-color: var(--teal-primary);
  transform: translateY(-2px);
}

.pulse-anim {
  animation: gentlePulse 2.5s infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 22px rgba(217, 107, 130, 0.35); }
  50% { transform: scale(1.03); box-shadow: 0 10px 30px rgba(217, 107, 130, 0.55); }
}

.hidden {
  display: none !important;
}

/* ========================================================
   GLOBAL SCROLL-DRIVEN REVEAL ANIMATIONS
   ======================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

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


/* ========================================================
   1. HERO SECTION: BOUTIQUE FLORAL POSTER SHOWCASE
   ======================================================== */
.hero-section {
  padding-top: 50px;
  padding-bottom: 60px;
}

.top-aesthetic-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-royal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--teal-primary);
  margin-bottom: 16px;
  opacity: 0.9;
}

.top-aesthetic-tagline .heart-symbol {
  color: var(--rose-primary);
  font-size: 0.9rem;
}

/* Big Vintage Teal Heading with Cinematic Blur-in Entrance */
.poster-main-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 800;
  color: var(--teal-primary);
  letter-spacing: 4px;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(35, 87, 91, 0.12);
  position: relative;
}

.hero-line {
  display: block;
  will-change: filter, opacity, transform;
}

/* Cinematic Blur Characters (Letter-by-Letter / Word-by-Word Reveal) */
.blur-char {
  display: inline-block;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(14px) scale(0.9);
  animation: blurCharIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: filter, opacity, transform;
}

.blur-char.space-char {
  width: 0.3em;
}

@keyframes blurCharIn {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(16px) scale(0.85);
  }
  50% {
    opacity: 0.75;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }
}

/* Fallback line blur entrance if JS is delayed */
.hero-line-fallback {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(22px) scale(0.95);
  animation: lineBlurIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line-happy.hero-line-fallback { animation-delay: 0.2s; }
.hero-line-birthday.hero-line-fallback { animation-delay: 0.75s; }
.hero-line-madam.hero-line-fallback { animation-delay: 1.35s; }

@keyframes lineBlurIn {
  0% {
    opacity: 0;
    filter: blur(22px);
    transform: translateY(22px) scale(0.94);
  }
  60% {
    opacity: 0.85;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }
}

.poster-main-title .birthday-line {
  display: block;
  letter-spacing: 8px;
  color: var(--teal-mid);
}

.poster-main-title .title-sub-cursive {
  font-family: var(--font-cursive);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--rose-primary);
  text-transform: none;
  display: block;
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 400;
}

/* Centerpiece Poster Showcase with Cinematic Blur-to-Clear Entrance */
.poster-showcase-wrap {
  position: relative;
  max-width: 460px;
  margin: 0 auto 35px;
}

/* Soft blooming aura behind poster */
.poster-glow-aura {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(circle, rgba(244, 162, 178, 0.4) 0%, rgba(45, 106, 110, 0.2) 60%, transparent 80%);
  border-radius: var(--radius-lg);
  filter: blur(16px);
  z-index: 1;
  opacity: 0;
  transform: scale(0.82);
  animation: auraBloom 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  will-change: opacity, transform;
}

@keyframes auraBloom {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Poster Card Frame: Starts blurred & gently zooms in to crystal clear */
.poster-card-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: visible;
  background: #fff;
  padding: 10px;
  box-shadow: 
    0 20px 45px rgba(35, 52, 56, 0.15),
    0 4px 16px rgba(217, 107, 130, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.4s ease, box-shadow 0.4s ease;

  /* Blur-in to Clear Animation on Load */
  opacity: 0;
  filter: blur(28px);
  transform: scale(0.88) translateY(24px);
  animation: posterBlurZoomClear 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  will-change: filter, opacity, transform;
}

.poster-card-frame:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 26px 55px rgba(35, 52, 56, 0.2),
    0 6px 20px rgba(217, 107, 130, 0.25);
}

@keyframes posterBlurZoomClear {
  0% {
    opacity: 0;
    filter: blur(28px);
    transform: scale(0.86) translateY(26px);
  }
  30% {
    opacity: 0.7;
    filter: blur(15px);
  }
  70% {
    opacity: 0.95;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) translateY(0);
  }
}

.poster-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
}

/* Floating Badges on Poster Corners: Pop in right as image clears */
.floating-badge-note {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--rose-deep);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(217, 107, 130, 0.25);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.65);
  animation: badgePopIn 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28) 2.2s forwards;
}

@keyframes badgePopIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.note-top-left {
  top: -16px;
  left: -20px;
  transform: rotate(-4deg);
}

.note-bottom-right {
  bottom: -16px;
  right: -20px;
  transform: rotate(3deg);
}

.floating-butterfly-icon {
  position: absolute;
  font-size: 1.8rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  opacity: 0;
  animation: butterflyPopIn 0.8s ease-out 2.4s forwards, floatButterfly 3.5s ease-in-out 3.2s infinite alternate;
}

@keyframes butterflyPopIn {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}

.b-1 { top: 12px; right: -25px; animation-delay: 2.2s, 0s; }
.b-2 { bottom: 30px; left: -25px; animation-delay: 2.4s, 1.2s; }
.b-3 { top: 45%; right: -20px; animation-delay: 2.6s, 2s; font-size: 1.4rem; }

@keyframes floatButterfly {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(6deg); }
}

/* Subtle entrance fade-up for Tagline, Dua, and Poem */
.hero-fade-item {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  animation: heroItemFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: filter, opacity, transform;
}

.top-aesthetic-tagline.hero-fade-item {
  animation-delay: 0.1s;
}

.hero-dua-box.hero-fade-item {
  animation-delay: 1.8s;
}

.english-poem-box.hero-fade-item {
  animation-delay: 2.1s;
}

@keyframes heroItemFadeIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(16px);
  }
  60% {
    opacity: 0.8;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

/* Dua Box */
.hero-dua-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.14);
  padding: 12px 30px;
  border-radius: var(--radius-full);
  margin: 0 auto 26px;
  max-width: 90%;
  transition: var(--transition);
}

.hero-dua-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(197, 155, 39, 0.22);
  border-color: var(--gold-accent);
}

.dua-icon-wrap {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dua-content {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.urdu-script {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  font-size: 1.3rem;
  line-height: 2.2;
  font-weight: 600;
  color: var(--teal-dark);
  direction: rtl;
  text-align: center;
}

/* Deep English Romantic Poetry */
.english-poem-box {
  background: #ffffff;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 28px 34px;
  max-width: 640px;
  margin: 0 auto 35px;
  box-shadow: 0 12px 32px rgba(35, 52, 56, 0.07);
  position: relative;
  transition: var(--transition);
}

.english-poem-box:hover {
  box-shadow: 0 16px 40px rgba(217, 107, 130, 0.15);
  border-color: rgba(217, 107, 130, 0.35);
}

.poem-deco {
  margin-bottom: 12px;
  color: var(--rose-primary);
  font-size: 0.95rem;
  letter-spacing: 4px;
}

.poem-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--teal-primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(35, 87, 91, 0.1);
}

.poem-body {
  margin-bottom: 16px;
}

.poem-line {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.95;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Romantic Highlighted Words: Slightly larger, Italic font, Pink color */
.poem-highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18em;
  font-weight: 700;
  color: var(--rose-primary);
  text-shadow: 0 1px 4px rgba(217, 107, 130, 0.25);
  display: inline-block;
  padding: 0 3px;
  transition: var(--transition);
}

.poem-highlight:hover {
  transform: scale(1.06);
  color: var(--rose-deep);
}

.poem-highlight-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22em;
  font-weight: 700;
  color: var(--rose-deep);
  text-shadow: 0 1px 6px rgba(184, 75, 99, 0.3);
  display: inline-block;
  padding: 0 4px;
  border-bottom: 1.5px dashed rgba(217, 107, 130, 0.5);
  transition: var(--transition);
}

.poem-highlight-lead:hover {
  transform: scale(1.05);
  color: var(--rose-primary);
  border-bottom-color: var(--rose-primary);
}

.poem-footer {
  text-align: right;
  margin-top: 10px;
}

.poem-author {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--teal-primary);
  font-weight: 700;
}

/* ========================================================
   2. ROYAL WAX-SEALED LOVE LETTER
   ======================================================== */
.letter-section {
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.envelope-scene {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 35px;
  position: relative;
  min-height: 400px;
}

/* Ambient Golden-Rose Glow Aura behind Envelope */
.envelope-light-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: 480px;
  background: radial-gradient(circle, rgba(230, 161, 43, 0.28) 0%, rgba(217, 107, 130, 0.18) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(32px);
  z-index: 1;
  pointer-events: none;
  animation: envAuraPulse 4s ease-in-out infinite alternate;
}

@keyframes envAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.95; }
}

/* Floating Ethereal Sparkles around Envelope */
.envelope-sparkle-field {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
}

.env-sparkle {
  position: absolute;
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 8px rgba(230, 161, 43, 0.5));
  animation: sparkleDrift 3.5s ease-in-out infinite alternate;
}

.s-1 { top: -10px; left: 15%; animation-delay: 0s; }
.s-2 { top: 30px; right: 12%; animation-delay: 1s; font-size: 1.6rem; }
.s-3 { bottom: 25px; left: 10%; animation-delay: 1.8s; font-size: 1.2rem; }
.s-4 { bottom: -10px; right: 16%; animation-delay: 2.4s; }
.s-5 { top: 45%; left: 3%; animation-delay: 0.6s; font-size: 1.1rem; }

@keyframes sparkleDrift {
  0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0.4; }
  50% { opacity: 1; transform: translateY(-10px) scale(1.15) rotate(12deg); }
  100% { transform: translateY(-18px) scale(0.85) rotate(-10deg); opacity: 0.5; }
}

/* Envelope Container */
.envelope-box {
  position: relative;
  width: 550px;
  height: 350px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(35, 52, 56, 0.15), 0 0 0 1px rgba(197, 155, 39, 0.3);
  cursor: pointer;
  z-index: 5;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-box:hover:not(.opened) {
  transform: translateY(-5px);
  box-shadow: 0 28px 65px rgba(35, 52, 56, 0.22), 0 0 0 1.5px rgba(197, 155, 39, 0.5);
}

/* When opened, envelope-box expands and lets letter sit on scene */
.envelope-box.opened {
  cursor: default;
  height: auto;
  min-height: auto;
  box-shadow: none;
  border: none;
  background: transparent;
}

/* Envelope Back Wall */
.envelope-back-wall {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  background: linear-gradient(180deg, #eadecd 0%, #dbcbba 100%);
  border-radius: var(--radius-md);
  z-index: 1;
  transition: opacity 0.6s ease;
}

.envelope-box.opened .envelope-back-wall {
  display: none;
}

/* Envelope Top Triangular Flap */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, #fcf8f2 0%, #eedecb 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 6;
  transform-origin: top center;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.1s 0.35s;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
}

.envelope-box.opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
  filter: none;
  opacity: 0.15;
}

/* Golden Wax Seal */
.wax-seal {
  position: absolute;
  top: 155px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: radial-gradient(circle, #e9a52e 0%, #b87b14 70%, #8f5c09 100%);
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(184, 123, 20, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s ease, opacity 0.5s ease;
  animation: sealPulse 2.8s ease-in-out infinite alternate;
}

@keyframes sealPulse {
  0% { box-shadow: 0 6px 20px rgba(184, 123, 20, 0.45), 0 0 0 0 rgba(230, 161, 43, 0.4); }
  100% { box-shadow: 0 10px 30px rgba(184, 123, 20, 0.65), 0 0 0 10px rgba(230, 161, 43, 0); }
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.envelope-box.opened .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  pointer-events: none;
}

.wax-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-family: var(--font-royal);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.wax-crown {
  font-size: 1.15rem;
}

.seal-glow-ring {
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(230, 161, 43, 0.6);
  animation: sealRingRotate 12s linear infinite;
  pointer-events: none;
}

@keyframes sealRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Envelope Pocket (Holds letter inside until opened) */
.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, #f7efe4 0%, #eddcc8 100%);
  clip-path: polygon(0 42%, 50% 0, 100% 42%, 100% 100%, 0 100%);
  z-index: 5;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(197, 155, 39, 0.25);
  transition: opacity 0.5s ease;
}

.envelope-box.opened .envelope-pocket {
  display: none;
}

/* Parchment Letter Inside (Completely Hidden Until Opened) */
.love-letter {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-box.opened .love-letter {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  z-index: 8;
  max-width: 620px;
  margin: 0 auto;
  background: #fffdfa;
  border: 1.5px solid rgba(197, 155, 39, 0.35);
  border-radius: var(--radius-md);
  padding: 42px 38px 30px;
  text-align: left;
  box-shadow: 0 25px 65px rgba(35, 52, 56, 0.18), 0 4px 20px rgba(217, 107, 130, 0.15);
  animation: letterGlideOut 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes letterGlideOut {
  0% {
    opacity: 0;
    transform: translateY(70px) scale(0.9);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.letter-header {
  border-bottom: 1px dashed rgba(217, 107, 130, 0.35);
  padding-bottom: 14px;
  margin-bottom: 20px;
  position: relative;
}

.letter-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-royal);
  font-size: 0.85rem;
  color: var(--teal-primary);
  font-weight: 600;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--teal-dark);
}

.letter-sub {
  font-size: 0.88rem;
  color: var(--rose-primary);
  font-weight: 500;
}

.letter-body p {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 16px;
}

.urdu-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rose-deep);
  border-left: 3px solid var(--rose-primary);
  padding-left: 14px;
  margin: 18px 0 !important;
}

.letter-sign {
  margin-top: 24px;
  text-align: right;
  font-family: var(--font-serif);
  color: var(--text-main);
}

.letter-sign .sign-name {
  display: block;
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--rose-deep);
  font-weight: 700;
}

.letter-footer-action {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(197, 155, 39, 0.25);
  text-align: center;
}

.reseal-letter-btn {
  background: rgba(217, 107, 130, 0.08);
  border: 1px solid rgba(217, 107, 130, 0.35);
  color: var(--rose-deep);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.reseal-letter-btn:hover {
  background: var(--rose-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(217, 107, 130, 0.35);
}

/* ========================================================
   3. DUAL-DIRECTION INFINITE MOVING MARQUEE MEMORIES
   - Upper Track: LEFT TO RIGHT
   - Lower Track: RIGHT TO LEFT
   ======================================================== */
.memories-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(250, 246, 240, 0.4) 0%, rgba(245, 238, 228, 0.8) 50%, rgba(250, 246, 240, 0.4) 100%);
  overflow: hidden;
}

.memories-header-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.marquee-hint-chip {
  display: inline-block;
  background: #ffffff;
  border: 1px solid rgba(45, 106, 110, 0.18);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--teal-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(35, 52, 56, 0.04);
}

.memories-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.download-all-btn {
  padding: 9px 22px;
  font-size: 0.88rem;
  background: linear-gradient(135deg, #2d6a6e 0%, #1f4f53 100%);
  border: 1.5px solid rgba(197, 155, 39, 0.4);
  box-shadow: 0 6px 20px rgba(35, 87, 91, 0.3);
  transition: var(--transition);
}

.download-all-btn:hover {
  background: linear-gradient(135deg, #23575b 0%, #15393c 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(35, 87, 91, 0.45);
}

.download-all-btn.downloading {
  opacity: 0.8;
  cursor: wait;
}

.download-progress-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.2);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-primary);
  animation: revealPop 0.35s ease;
}

.progress-spinner {
  display: inline-block;
  animation: spinSlow 2s linear infinite;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================================
   3. 3D DRIFTWALL COMPONENT (REACT BITS INTEGRATION)
   ======================================================== */
.drift-wall-container {
  position: relative;
  width: 100%;
  height: 640px;
  margin: 15px auto 35px;
  overflow: hidden;
}

.drift-wall {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: var(--dw-perspective, 1200px);
  perspective-origin: 50% 50%;
  --dw-tile-w: 168px;
  --dw-tile-h: 252px;
  --dw-gap: 18px;
  --dw-radius: 14px;
  --dw-lift: 64px;
  --dw-dim: 0.84;
  --dw-gray: 0;
  --dw-overlay: rgba(25, 45, 48, 0.22);
  --dw-edge: 40%;
  -webkit-mask-image:
    radial-gradient(ellipse 80% 84% at 50% 48%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 80% 84% at 50% 48%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  mask-composite: intersect;
}

.drift-wall__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
  transform-style: preserve-3d;
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform;
}

.drift-wall__col {
  position: relative;
  width: calc(var(--dw-tile-w) + var(--dw-gap));
  transform-style: preserve-3d;
}

.drift-wall__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-style: preserve-3d;
}

.drift-wall__tile {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--dw-tile-h) + var(--dw-gap));
  flex: 0 0 auto;
  outline: none;
  transform-style: preserve-3d;
  cursor: pointer;
}

.drift-wall__inner {
  position: absolute;
  inset: calc(var(--dw-gap) / 2);
  display: block;
  border-radius: var(--dw-radius);
  overflow: hidden;
  background: #f0e6d8;
  opacity: var(--dw-dim);
  transform: translateZ(0);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(35, 52, 56, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s ease;
}

.drift-wall__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(var(--dw-gray)) saturate(0.96);
  transition: filter 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.drift-wall__overlay {
  position: absolute;
  inset: 0;
  background: var(--dw-overlay);
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drift-wall__tile.is-active .drift-wall__inner,
.drift-wall__tile:hover .drift-wall__inner,
.drift-wall__tile:focus-visible .drift-wall__inner {
  opacity: 1;
  transform: translateZ(var(--dw-lift));
  box-shadow: 0 26px 65px -12px rgba(217, 107, 130, 0.45), 0 8px 25px rgba(35, 52, 56, 0.2);
  border-color: rgba(217, 107, 130, 0.7);
}

.drift-wall__tile.is-active img,
.drift-wall__tile:hover img,
.drift-wall__tile:focus-visible img {
  filter: grayscale(0) saturate(1.08);
  transform: scale(1.04);
}

.drift-wall__tile.is-active .drift-wall__overlay,
.drift-wall__tile:hover .drift-wall__overlay,
.drift-wall__tile:focus-visible .drift-wall__overlay {
  opacity: 0;
}

.drift-wall__tile:focus-visible .drift-wall__inner {
  box-shadow:
    0 24px 60px -14px rgba(217, 107, 130, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .drift-wall__plane,
  .drift-wall__track {
    will-change: auto;
  }
}

/* ========================================================
   4. INTERACTIVE SURPRISES SECTION
   ======================================================== */
.surprises-section {
  background: rgba(255, 255, 255, 0.5);
}

.surprise-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  margin-bottom: 45px;
  box-shadow: 0 12px 35px rgba(35, 52, 56, 0.06);
  border: 1px solid rgba(217, 107, 130, 0.16);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

.surprise-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(217, 107, 130, 0.14), 0 4px 18px rgba(35, 52, 56, 0.04);
  border-color: rgba(217, 107, 130, 0.32);
}

.block-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--teal-dark);
  margin-bottom: 18px;
}

/* Balloons Arena */
.special-phrase-ribbon {
  background: var(--rose-light);
  border: 1px solid rgba(217, 107, 130, 0.3);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 25px;
  display: inline-block;
}

.phrase-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rose-deep);
  display: block;
  margin-bottom: 6px;
}

.phrase-slots {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.phrase-slot {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-primary);
  min-width: 45px;
  transition: all 0.4s ease;
}

.phrase-slot.revealed {
  color: var(--rose-deep);
  transform: scale(1.1);
  text-shadow: 0 0 12px rgba(217, 107, 130, 0.45);
  animation: slotPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slotPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.25); }
  100% { transform: scale(1.1); opacity: 1; }
}

.balloons-arena {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.balloon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.balloon-wrapper {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.balloon-wrapper:hover {
  transform: translateY(-8px) scale(1.05);
}

.balloon-wrapper.popped {
  display: none;
}

.balloon-body {
  width: 95px;
  height: 125px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset -6px -6px 14px rgba(0, 0, 0, 0.15), 0 12px 26px rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 6px 14px rgba(217, 107, 130, 0.3));
}

.balloon-item:nth-child(1) .balloon-body { animation: floatBalloon1 3.2s ease-in-out infinite alternate; }
.balloon-item:nth-child(2) .balloon-body { animation: floatBalloon2 3.8s ease-in-out 0.4s infinite alternate; }
.balloon-item:nth-child(3) .balloon-body { animation: floatBalloon3 3.5s ease-in-out 0.8s infinite alternate; }
.balloon-item:nth-child(4) .balloon-body { animation: floatBalloon4 4.1s ease-in-out 1.2s infinite alternate; }

@keyframes floatBalloon1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes floatBalloon2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(-3deg); }
}
@keyframes floatBalloon3 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2.5deg); }
}
@keyframes floatBalloon4 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-13px) rotate(-3.5deg); }
}

.balloon-ruby { background: linear-gradient(135deg, #ff758c 0%, #ff5277 100%); }
.balloon-rose { background: linear-gradient(135deg, #f78ca0 0%, #fe9a8b 100%); }
.balloon-gold { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.balloon-purple { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.balloon-sparkle {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 0.9rem;
}

.balloon-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.balloon-knot {
  position: absolute;
  bottom: -6px;
  width: 12px;
  height: 8px;
  background: inherit;
  border-radius: 3px;
}

.balloon-string {
  position: absolute;
  bottom: -32px;
  width: 1.5px;
  height: 26px;
  background: rgba(0, 0, 0, 0.2);
}

.balloon-message-card {
  display: none;
  background: var(--bg-cream);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  animation: revealPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.balloon-message-card.show {
  display: block;
}

@keyframes revealPop {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

.balloon-secret-word {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-primary);
  margin-bottom: 4px;
}

.msg-text {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* Balloon Grand Celebration Card (Muted Kitten Video) */
.balloon-grand-celebration {
  margin-top: 32px;
  animation: celebrationSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes celebrationSlideUp {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.balloon-gif-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 242, 244, 0.95) 100%);
  border: 2px solid rgba(217, 107, 130, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 16px 45px rgba(217, 107, 130, 0.2), 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.balloon-gif-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.celebration-sparkle-stars {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
  animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)); }
}

.balloon-celebration-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--rose-deep);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.4;
}

.balloon-video-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 3px solid #fff;
  background: #fff;
}

.balloon-video-gif {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 3px);
  object-fit: cover;
  pointer-events: none; /* functions as silent autoplay gif */
}

.balloon-celebration-caption {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--teal-primary);
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}

/* Couple Puzzle */
.puzzle-instruction {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.puzzle-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.puzzle-board-wrap {
  position: relative;
}

.puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 115px);
  grid-template-rows: repeat(3, 160px);
  gap: 5px;
  background: #f0e6d8;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(197, 155, 39, 0.35);
  box-shadow: 0 14px 40px rgba(197, 155, 39, 0.18), 0 4px 16px rgba(35, 52, 56, 0.08);
  position: relative;
}

.puzzle-tile {
  width: 115px;
  height: 160px;
  background-image: url('assets/puzzle_fit.png');
  background-size: 345px 480px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.puzzle-tile:hover {
  transform: scale(1.04);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(217, 107, 130, 0.35);
}

.puzzle-tile.selected {
  outline: 3px solid var(--rose-primary);
  box-shadow: 0 0 20px rgba(217, 107, 130, 0.75);
  z-index: 5;
  animation: tileSelectedPulse 1.2s infinite alternate;
}

@keyframes tileSelectedPulse {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.06); }
}

.puzzle-tile.correct::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(35, 87, 91, 0.85);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puzzle-overlay-completed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 40px rgba(217, 107, 130, 0.4);
  animation: revealPop 0.5s ease forwards;
}

.puzzle-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.puzzle-preview-card {
  background: #fbf8f5;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 155, 39, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.puzzle-preview-card h4 {
  font-size: 0.88rem;
  color: var(--teal-primary);
  margin-bottom: 8px;
}

.puzzle-preview-img {
  width: 110px;
  height: 155px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.puzzle-stats {
  display: flex;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-sub);
}

/* Playful Proposal with Ambient Heartbeat Glow */
.proposal-surprise-block {
  position: relative;
  overflow: hidden;
}

.proposal-surprise-block::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(217, 107, 130, 0.22) 0%, rgba(244, 162, 178, 0.1) 50%, transparent 72%);
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: heartbeatAura 2.5s ease-in-out infinite;
}

@keyframes heartbeatAura {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.floating-ring-icon {
  font-size: 2.6rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(197, 155, 39, 0.4));
  animation: floatRing 3s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}

@keyframes floatRing {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-8px) rotate(6deg); }
}

.proposal-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.proposal-question {
  font-size: 1.25rem;
  color: var(--text-main);
  max-width: 500px;
  margin: 0 auto 25px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.runaway-toast-msg {
  display: none;
  background: var(--rose-light);
  border: 1px solid rgba(217, 107, 130, 0.3);
  color: var(--rose-deep);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto 20px;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.runaway-toast-msg.show {
  display: block;
  animation: revealPop 0.3s ease;
}

.proposal-buttons-area {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  z-index: 1;
}

.no-dodge-btn {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-sub);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.love-accepted-box {
  margin-top: 25px;
  padding: 24px;
  background: var(--rose-light);
  border: 1.5px solid rgba(217, 107, 130, 0.35);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(217, 107, 130, 0.2);
  animation: revealPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.accepted-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--rose-deep);
  margin: 8px 0;
}

.accepted-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ========================================================
   5. GRAND BIRTHDAY CAKE & FINALE
   ======================================================== */
.cake-display-area {
  position: relative;
  width: 280px;
  height: 250px;
  margin: 20px auto 35px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Candlelight Warm Glow Spill over Cake */
.cake-display-area::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 200, 80, 0.35) 0%, rgba(255, 120, 100, 0.15) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
  animation: candleGlowSpill 1.6s ease-in-out infinite alternate;
}

@keyframes candleGlowSpill {
  0% { opacity: 0.65; transform: translateX(-50%) scale(0.94); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.birthday-cake {
  position: relative;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.cake-candles-container {
  display: flex;
  gap: 16px;
  margin-bottom: 2px;
}

.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flame {
  width: 14px;
  height: 24px;
  background: radial-gradient(circle, #fff 10%, #ffd166 40%, #ff5277 90%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 16px #ffd166;
  animation: flickerFlame 1.2s infinite alternate;
}

.flame.blown {
  display: none;
}

@keyframes flickerFlame {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.wick {
  width: 2px;
  height: 6px;
  background: #333;
}

.candle-stick {
  width: 22px;
  height: 38px;
  background: linear-gradient(180deg, #ff85a1 0%, #d96b82 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.cake-tier {
  width: 100%;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tier-top {
  width: 130px;
  height: 48px;
  background: #feeaed;
  border-top: 6px solid #f8c8d2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cake-strawberry {
  font-size: 1.2rem;
}

.tier-middle {
  width: 180px;
  height: 58px;
  background: #fad0d8;
  border-top: 6px solid #f4a2b2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cake-roses {
  font-size: 0.95rem;
}

.tier-bottom {
  width: 220px;
  height: 24px;
}

.cake-plate {
  width: 240px;
  height: 12px;
  background: #ecdcc8;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.knife-tool {
  position: absolute;
  top: 10px;
  right: calc(50% - 100px);
  font-size: 3.5rem;
  z-index: 15;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.knife-tool.slicing {
  animation: knifeSideSlice 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes knifeSideSlice {
  0% {
    transform: translate(55px, -50px) rotate(-45deg) scale(1.1);
    opacity: 0;
  }
  25% {
    transform: translate(25px, -10px) rotate(-30deg) scale(1);
    opacity: 1;
  }
  65% {
    transform: translate(0px, 65px) rotate(-15deg) scale(0.98);
    opacity: 1;
  }
  85% {
    transform: translate(-8px, 125px) rotate(5deg) scale(0.95);
    opacity: 1;
  }
  100% {
    transform: translate(-12px, 165px) rotate(20deg) scale(0.85);
    opacity: 0;
  }
}

/* Glowing golden laser cut down the SIDE of the cake */
.cake-slice-line {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 3px;
  height: 155px;
  background: linear-gradient(to bottom, #ffd700, #ff6b8b, #ffd700);
  box-shadow: 0 0 16px #ffd700, 0 0 30px rgba(255, 107, 139, 0.8);
  transform: scaleY(0);
  transform-origin: top center;
  z-index: 12;
  border-radius: 2px;
}

.cake-slice-line.active {
  animation: sliceLineLaser 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sliceLineLaser {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 1; box-shadow: 0 0 24px #ffd700, 0 0 40px #ff6b8b; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Cake Side Slice Cut Animation */
.birthday-cake {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-cut-slice {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, #ffd9df 0%, #ffb8c6 50%, #f78ca0 100%);
  border-left: 2px dashed rgba(197, 155, 39, 0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: inset 3px 0 6px rgba(196, 56, 90, 0.25);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  pointer-events: none;
}

.side-slice-top {
  width: 28px;
}

.side-slice-middle {
  width: 38px;
}

.birthday-cake.cake-sliced .side-cut-slice {
  transform: translateX(18px) translateY(4px) rotate(5deg);
  box-shadow: 5px 8px 18px rgba(196, 56, 90, 0.35), inset 3px 0 6px rgba(196, 56, 90, 0.4);
}

.cake-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
}

.candle-blow-btn {
  background: var(--teal-gradient);
}

.cake-cut-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.finale-wishes-box {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 16px 45px rgba(197, 155, 39, 0.15);
  animation: revealPop 0.8s ease;
}

.confetti-crown {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.wish-headline {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.wish-urdu-dua {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 20px;
}

.wish-signature {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--rose-deep);
  margin-bottom: 25px;
}

.wish-signature strong {
  display: block;
  font-size: 1.75rem;
  color: var(--teal-primary);
}

.finale-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ========================================================
   6. SACRED LOVE CONFESSION & DUA (REACT BITS SCROLLREVEAL)
   ======================================================== */
.confession-section {
  background: linear-gradient(180deg, rgba(250, 246, 240, 0.96) 0%, rgba(245, 238, 228, 0.98) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

.confession-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 55px 40px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(35, 52, 56, 0.08), 0 4px 20px rgba(197, 155, 39, 0.12);
  border: 1.5px solid rgba(217, 107, 130, 0.28);
  position: relative;
  overflow: hidden;
}

.confession-moon-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247, 231, 196, 0.55) 0%, rgba(217, 107, 130, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: moonPulse 6s ease-in-out infinite alternate;
}

@keyframes moonPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

.confession-deco-top {
  font-size: 1.4rem;
  letter-spacing: 6px;
  text-align: center;
  margin-bottom: 26px;
  color: var(--rose-primary);
}

/* React Bits ScrollReveal CSS Integration */
.scroll-reveal-container {
  position: relative;
  margin: 24px 0;
}

.scroll-reveal {
  margin: 18px 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.scroll-reveal-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.95;
  font-weight: 500;
  color: var(--teal-dark);
  text-align: center;
}

.word {
  display: inline-block;
  white-space: pre-wrap;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.confession-divider {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gold-accent);
  margin: 28px 0;
  opacity: 0.8;
}

/* Sacred Future Dua Card */
.future-dua-card {
  background: linear-gradient(135deg, #1b4549 0%, #23575b 100%);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-md);
  padding: 35px 28px;
  margin: 40px auto 25px;
  color: #fff;
  text-align: center;
  box-shadow: 0 14px 40px rgba(27, 69, 73, 0.35);
  position: relative;
  max-width: 720px;
}

.dua-crown-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.future-dua-title {
  font-family: 'Noto Nastaliq Urdu', var(--font-serif);
  font-size: 1.85rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.future-dua-arabic {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.35rem;
  line-height: 2.5;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.future-dua-english {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.75;
  color: #e5f1f2;
  font-style: italic;
  max-width: 650px;
  margin: 0 auto;
}

.confession-signature {
  text-align: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(217, 107, 130, 0.2);
}

.sign-label {
  display: block;
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.sign-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--rose-deep);
  font-weight: 700;
}

/* ========================================================
   GLOBAL SCROLL-DRIVEN REVEAL SYSTEM
   ======================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ========================================================
   FOOTER
   ======================================================== */
.boutique-footer {
  background: #fff;
  border-top: 1px solid rgba(45, 106, 110, 0.12);
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-flower {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.footer-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--teal-primary);
  margin-bottom: 4px;
}

.footer-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-royal);
  letter-spacing: 1.5px;
}

/* ========================================================
   FULLVIEW LIGHTBOX MODAL
   ======================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 30, 35, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 90vw;
  max-height: 90vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-sub);
  cursor: pointer;
}

.lightbox-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 72vh;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 20px 0 12px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.lightbox-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox-counter-badge {
  background: var(--rose-light);
  color: var(--rose-deep);
  border: 1px solid rgba(217, 107, 130, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--teal-primary);
  font-weight: 600;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-nav-btn {
  background: rgba(35, 87, 91, 0.08);
  border: 1px solid rgba(35, 87, 91, 0.2);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal-primary);
  transition: all 0.25s ease;
}

.lightbox-nav-btn:hover {
  background: var(--teal-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.lightbox-download-btn {
  background: var(--rose-gradient);
  color: #fff;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 107, 130, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lightbox-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 107, 130, 0.5);
}

/* ========================================================
   RESPONSIVE DESIGN / MOBILE OPTIMIZATION
   ======================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none; /* Keep header compact on mobile */
  }

  .poster-card-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .note-top-left {
    left: -10px;
    font-size: 0.95rem;
  }

  .note-bottom-right {
    right: -10px;
    font-size: 0.95rem;
  }

  .envelope-box {
    width: 95%;
  }

  .drift-wall-container {
    height: 550px;
  }

  .drift-wall {
    --dw-tile-w: 138px;
    --dw-tile-h: 208px;
    --dw-gap: 14px;
    --dw-lift: 48px;
  }

  .puzzle-board {
    grid-template-columns: repeat(3, 95px);
    grid-template-rows: repeat(3, 135px);
  }

  .puzzle-tile {
    width: 95px;
    height: 135px;
    background-size: 285px 405px;
  }
}

@media (max-width: 550px) {
  .top-nav {
    padding: 8px 12px;
  }

  .brand-badge {
    gap: 0;
  }

  .brand-angel {
    font-size: 1.15rem;
  }

  .audio-widget {
    gap: 4px;
  }

  .audio-btn {
    padding: 4px 7px;
    max-width: 95px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .audio-label {
    max-width: 55px;
  }

  .track-switch-btn {
    padding: 4px 6px;
    font-size: 0.75rem;
  }

  .volume-control-wrap {
    padding: 2px 5px;
    gap: 3px;
  }

  .volume-slider {
    width: 32px;
  }

  .volume-percent {
    display: none; /* Hide percent text on ultra small screens for perfect spacing */
  }

  .poster-card-frame {
    max-width: 300px;
  }

  .note-top-left,
  .note-bottom-right {
    display: none; /* Hide floating text on very small screens to avoid overflow */
  }

  .hero-dua-box {
    padding: 10px 18px;
    gap: 8px;
  }

  .urdu-script {
    font-size: 1.15rem;
    line-height: 2.1;
  }

  .english-poem-box {
    padding: 20px 16px;
  }

  .poem-title {
    font-size: 1.22rem;
  }

  .poem-line {
    font-size: 1.02rem;
    line-height: 1.8;
  }

  .poem-author {
    font-size: 1.25rem;
  }

  .envelope-box {
    width: 95%;
    max-width: 360px;
    height: 270px;
  }

  .envelope-flap {
    height: 140px;
  }

  .envelope-pocket {
    height: 165px;
  }

  .wax-seal {
    width: 64px;
    height: 64px;
    top: 120px;
  }

  .wax-crown {
    font-size: 1rem;
  }

  .envelope-box.opened .love-letter {
    padding: 26px 18px;
  }

  .envelope-light-aura {
    width: 360px;
    height: 320px;
  }

  .drift-wall-container {
    height: 480px;
  }

  .drift-wall {
    --dw-tile-w: 108px;
    --dw-tile-h: 165px;
    --dw-gap: 10px;
    --dw-lift: 36px;
    --dw-dim: 0.88;
  }

  .puzzle-board {
    grid-template-columns: repeat(3, 85px);
    grid-template-rows: repeat(3, 120px);
  }

  .puzzle-tile {
    width: 85px;
    height: 120px;
    background-size: 255px 360px;
  }

  /* Mobile View: 4 Balloons aligned in a single horizontal row */
  .balloons-arena {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-evenly !important;
    align-items: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 0 4px !important;
  }

  .balloon-item {
    flex: 1 1 0 !important;
    max-width: 25% !important;
    margin: 0 !important;
  }

  .balloon-body {
    width: 62px !important;
    height: 84px !important;
  }

  .balloon-num {
    font-size: 1.15rem !important;
  }

  .balloon-sparkle {
    font-size: 0.7rem !important;
    top: 6px !important;
    right: 8px !important;
  }

  .balloon-string {
    height: 35px !important;
  }

  .balloon-message-card {
    min-width: 54px !important;
    padding: 6px 2px !important;
  }

  .balloon-secret-word {
    font-size: 0.72rem !important;
    letter-spacing: 0px !important;
  }
}

@media (max-width: 375px) {
  .balloon-body {
    width: 50px !important;
    height: 68px !important;
  }
  .balloon-num {
    font-size: 0.95rem !important;
  }
  .balloon-string {
    height: 24px !important;
  }
}
