/* ==========================================================================
   Bhawana's Birthday Website - Stylesheet
   Theme: Light Blue, Cloud White & Royal Sapphire Aesthetic
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  /* Palette - Light Blue & White */
  --bg-cream: #F0F9FF;
  --bg-blush: #E0F2FE;
  --bg-section-alt: #F8FAFC;
  
  --sky-blue: #38BDF8;
  --royal-blue: #2563EB;
  --sapphire-deep: #0369A1;
  --ice-blue: #BAE6FD;
  
  --tulip-pink: #38BDF8;
  --tulip-deep: #0284C7;
  --tulip-coral: #60A5FA;
  
  --leaf-green: #38BDF8;
  --leaf-light: #BAE6FD;
  
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-light: #64748B;
  
  --gold-accent: #F59E0B;
  --parchment: #FFFFFF;
  
  --card-shadow: rgba(2, 132, 199, 0.12);
  --shadow-lg: 0 15px 35px -5px var(--card-shadow), 0 8px 15px -6px var(--card-shadow);
  --shadow-inner: inset 0 2px 15px rgba(2, 132, 199, 0.04);
}

/* --- Base & Resets --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--sky-blue);
  color: #fff;
}

/* --- Typography Utilities --- */
.font-script {
  font-family: 'Great Vibes', cursive;
}

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

.text-body { color: var(--text-body); }
.text-light { color: var(--text-light); }
.text-tulip { color: var(--tulip-deep); }

.section-title {
  font-size: 3rem;
  color: var(--tulip-deep);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
  display: block;
}

.section-padding {
  padding: 5rem 1.5rem;
}

/* --- Alternating Backgrounds --- */
.bg-alt { background-color: var(--bg-section-alt); }
.bg-blush { background-color: var(--bg-blush); }
.bg-cream { background-color: var(--bg-cream); }

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Intro Section (Realistic 3D Envelope & Postage Stamp Reveal) --- */
#intro-section {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #E0F2FE 45%, #BAE6FD 80%, #7DD3FC 100%);
  background-color: #E0F2FE;
  z-index: 50;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#intro-section.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* Subtle dreamy blue lighting effect */
#intro-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* Envelope Container */
.envelope-wrapper {
  position: relative;
  width: 420px;
  height: 280px;
  max-width: 92vw;
  perspective: 1400px;
  margin-top: 1rem;
  transition: transform 0.4s ease;
}

.envelope-wrapper:hover {
  transform: translateY(-4px);
}

/* Envelope Back & Liner */
/* =======================================================
   Envelope Base & Realistic Inner Shadow
   ======================================================= */
.envelope-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
  border-radius: 16px;
  border: 1.5px solid #BAE6FD;
  box-shadow: 0 30px 60px -15px rgba(2, 132, 199, 0.25), 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  z-index: 1;
}

.envelope-interior-liner {
  position: absolute;
  inset: 4px;
  background: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 50%, #F0F9FF 100%);
  border-radius: 12px;
  box-shadow: inset 0 12px 25px rgba(2, 132, 199, 0.15);
}

/* =======================================================
   Top Flap (Folds open upward in 3D)
   ======================================================= */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 145px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E0F2FE 85%, #BAE6FD 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s ease 0.4s;
  z-index: 8;
  filter: drop-shadow(0 8px 16px rgba(2, 132, 199, 0.2));
  border-radius: 16px 16px 0 0;
  cursor: pointer;
}

.envelope-wrapper.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* =======================================================
   Postage Stamp Photo Card (Emerges from INSIDE envelope pocket)
   ======================================================= */
.stamp-photo-card {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 270px;
  max-width: 82vw;
  transform: translateX(-50%) translateY(0) scale(0.95);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: transform 1s cubic-bezier(0.34, 1.25, 0.64, 1) 0.2s, opacity 0.4s ease 0.2s;
  filter: drop-shadow(0 15px 30px rgba(2, 132, 199, 0.2));
  cursor: pointer;
}

/* Open State - Card Emerges & Floats, with bottom remaining inside the pocket */
.envelope-wrapper.open .stamp-photo-card {
  transform: translateX(-50%) translateY(-145px) rotate(-3.5deg) scale(1);
  opacity: 1;
  z-index: 3; /* Crucial: stays behind pocket so it's physically INSIDE the envelope! */
  pointer-events: auto;
  animation: stampFloat 4s ease-in-out infinite 1.2s;
}

.envelope-wrapper.open .stamp-photo-card:hover {
  transform: translateX(-50%) translateY(-160px) rotate(-1deg) scale(1.03) !important;
  filter: drop-shadow(0 25px 40px rgba(56, 189, 248, 0.45)) drop-shadow(0 12px 25px rgba(0,0,0,0.15));
}

@keyframes stampFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(-145px) rotate(-3.5deg) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-155px) rotate(-1.5deg) scale(1.02);
  }
}

/* Stamp Perforated Edges (Classic Postage Stamp look from reference) */
.stamp-card-frame {
  position: relative;
  background-color: #ffffff;
  padding: 12px 12px 16px 12px;
  border-radius: 2px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  
  /* Classic Perforated Stamp Cutout Mask */
  --radius: 5px;
  --size: 18px;
  -webkit-mask: 
    radial-gradient(circle var(--radius) at 50% 0, transparent 98%, #000 100%) 0 0/var(--size) 100% repeat-x,
    radial-gradient(circle var(--radius) at 50% 100%, transparent 98%, #000 100%) 0 100%/var(--size) 100% repeat-x,
    radial-gradient(circle var(--radius) at 0 50%, transparent 98%, #000 100%) 0 0/100% var(--size) repeat-y,
    radial-gradient(circle var(--radius) at 100% 50%, transparent 98%, #000 100%) 100% 0/100% var(--size) repeat-y;
  -webkit-mask-composite: source-in, source-in, source-in;
  mask: 
    radial-gradient(circle var(--radius) at 50% 0, transparent 98%, #000 100%) 0 0/var(--size) 100% repeat-x,
    radial-gradient(circle var(--radius) at 50% 100%, transparent 98%, #000 100%) 0 100%/var(--size) 100% repeat-x,
    radial-gradient(circle var(--radius) at 0 50%, transparent 98%, #000 100%) 0 0/100% var(--size) repeat-y,
    radial-gradient(circle var(--radius) at 100% 50%, transparent 98%, #000 100%) 100% 0/100% var(--size) repeat-y;
  mask-composite: intersect;
}

.stamp-photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3.8;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.08);
  background: #F0F9FF;
}

.stamp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s ease;
}

.stamp-card-frame:hover .stamp-img {
  transform: scale(1.04);
}

/* Vintage Postmark Stamp Watermark */
.postmark-seal {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 72px;
  height: 72px;
  border: 2px dashed rgba(2, 132, 199, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(1px);
}

.postmark-text {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(2, 132, 199, 0.9);
  text-transform: uppercase;
}

.postmark-date {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(3, 105, 161, 0.95);
  margin-top: 2px;
}

.stamp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 4px;
}

.stamp-tap-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #38BDF8, #2563EB);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  animation: pulse-slow 2s infinite;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

/* =======================================================
   Front Envelope Pocket (Left, Right, Bottom Triangles)
   ======================================================= */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.envelope-fold-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 100%);
  clip-path: polygon(0 0, 0 100%, 53% 53%);
  filter: drop-shadow(3px 0 6px rgba(2, 132, 199, 0.08));
  border-radius: 16px 0 0 16px;
}

.envelope-fold-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, #F8FAFC 0%, #DDF4FF 100%);
  clip-path: polygon(100% 0, 100% 100%, 47% 53%);
  filter: drop-shadow(-3px 0 6px rgba(2, 132, 199, 0.08));
  border-radius: 0 16px 16px 0;
}

.envelope-fold-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #FFFFFF 0%, #E0F2FE 100%);
  clip-path: polygon(0 100%, 100% 100%, 50% 48%);
  filter: drop-shadow(0 -5px 10px rgba(2, 132, 199, 0.1));
  border-radius: 0 0 16px 16px;
}

/* =======================================================
   Wax Seal (Sits ON TOP of closed envelope at flap tip)
   ======================================================= */
.wax-seal {
  position: absolute;
  top: 145px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  background: radial-gradient(circle at 35% 35%, #60A5FA 0%, #3B82F6 40%, #1D4ED8 85%, #1E3A8A 100%);
  border-radius: 50%;
  z-index: 25;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.6), inset 0 -4px 7px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(253, 224, 71, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: sealGlow 2.5s infinite ease-in-out;
}

.wax-seal-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-letter {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4), 0 0 12px rgba(186, 230, 253, 0.8);
  line-height: 1;
}

.seal-sparkle {
  position: absolute;
  top: -4px;
  right: -8px;
  font-size: 11px;
  color: #ffd700;
  animation: spin-slow 8s linear infinite;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.7);
}

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

.envelope-wrapper.open .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
  transition: all 0.35s ease;
}

@keyframes sealGlow {
  0%, 100% {
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45), 0 0 15px rgba(96, 165, 250, 0.3);
  }
  50% {
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.7), 0 0 25px rgba(96, 165, 250, 0.6);
  }
}

/* =======================================================
   Hero Section (Cinematic Reveal matching CapCut reference)
   ======================================================= */
#hero-section {
  position: relative;
  min-height: 100vh;
  background-color: #0c1424;
}

.hero-backdrop-img {
  background-image: url('assets/birthday_backdrop.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.68) contrast(1.06);
  transform: scale(1.04);
}

.hero-backdrop-overlay {
  background: radial-gradient(circle at 60% 45%, rgba(20, 45, 85, 0.3) 0%, rgba(10, 15, 28, 0.65) 60%, rgba(5, 8, 16, 0.88) 100%);
}

/* Tilted Polaroid Photo Card (Slightly larger for clear presence) */
.hero-polaroid-wrapper {
  perspective: 1000px;
}

.hero-polaroid-card {
  width: 260px;
  background: #ffffff;
  padding: 12px 12px 20px 12px;
  border-radius: 4px;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 0, 0, 0.4);
  transform: rotate(-6deg);
  transition: all 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-polaroid-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 28px 55px -6px rgba(37, 99, 235, 0.45), 0 0 30px rgba(0, 0, 0, 0.6);
}

.polaroid-photo-frame {
  width: 100%;
  aspect-ratio: 4/4.8;
  border-radius: 2px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-polaroid-card:hover .polaroid-img {
  transform: scale(1.04);
}

.polaroid-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 2px;
}

/* Typography styles matching reference */
.hero-title-bold {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.hero-name-script {
  font-family: 'Great Vibes', cursive;
  color: #3b82f6; /* Vivid royal blue matching reference 'My Love' */
  text-shadow: 0 0 35px rgba(59, 130, 246, 0.6), 0 2px 10px rgba(0, 0, 0, 0.5);
  display: block;
}

.hero-cta-btn:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.25);
}

/* --- Countdown Timer --- */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-item {
  background-color: #fff;
  min-width: 90px;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(212, 67, 106, 0.05);
}

.countdown-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--tulip-pink);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

/* =======================================================
   3D Mechanical Folding Scrapbook & Book-Open Engine
   ======================================================= */
.scrapbook-book-wrapper {
  position: relative;
  perspective: 2500px;
  max-width: 880px;
  margin: 0 auto;
  transition: transform 0.95s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* --- State 0: Front Cover Folded View (Shifted so right half is centered) --- */
.scrapbook-book-wrapper.state-cover-front {
  transform: translateX(-25%);
}

/* --- States 1-4: Open 2-Page Spreads (Centered) --- */
.scrapbook-book-wrapper.state-open {
  transform: translateX(0%);
}

/* --- State 5: Final Back Cover Folded View (Shifted so left half is centered) --- */
.scrapbook-book-wrapper.state-cover-back {
  transform: translateX(25%);
}

/* =======================================================
   3D Open Two-Page Spread Book Container
   ======================================================= */
.book-3d-container {
  position: relative;
  width: 100%;
  height: 520px;
  background: transparent;
  transform-style: preserve-3d;
  perspective: 2500px;
}

/* Center Spine Crease & Realistic Deep Shadow */
.book-spine-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  transform: translateX(-50%);
  background: linear-gradient(to right, 
    rgba(0,0,0,0.01) 0%, 
    rgba(0,0,0,0.06) 42%, 
    rgba(0,0,0,0.2) 50%, 
    rgba(0,0,0,0.06) 58%, 
    rgba(0,0,0,0.01) 100%);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scrapbook-book-wrapper.state-open .book-spine-divider {
  opacity: 1;
}

/* 3D Flippable Sheets */
.book-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.95s ease;
  cursor: pointer;
  user-select: none;
}

.book-sheet.flipped {
  transform: rotateY(-180deg);
}

/* Sheet Faces */
.sheet-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 2rem 1.75rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.sheet-front {
  background: radial-gradient(circle at 70% 30%, #FFFDF9 0%, #FAF5EE 100%);
  border-radius: 0 14px 14px 0;
  transform: rotateY(0deg);
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 50px -10px rgba(212, 67, 106, 0.15), -3px 0 12px rgba(0,0,0,0.06), inset 0 0 30px rgba(0,0,0,0.02);
  border: 1px solid #F0E6D8;
}

.sheet-back {
  background: radial-gradient(circle at 30% 30%, #FFFDF9 0%, #FAF5EE 100%);
  border-radius: 14px 0 0 14px;
  transform: rotateY(180deg);
  justify-content: space-between;
  box-shadow: 0 20px 50px -10px rgba(212, 67, 106, 0.15), 3px 0 12px rgba(0,0,0,0.06), inset 0 0 30px rgba(0,0,0,0.02);
  border: 1px solid #F0E6D8;
}

/* Subtle Hover Page Lift */
.book-sheet:hover:not(.flipped) {
  transform: rotateY(-7deg);
}
.book-sheet.flipped:hover {
  transform: rotateY(-173deg);
}

/* Hardcover Styles on Front & Back Sheets (Sapphire Blue & Gold) */
.sheet-hardcover-front {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%) !important;
  border-radius: 0 18px 18px 0 !important;
  box-shadow: -8px 0 30px rgba(37, 99, 235, 0.4), inset 0 0 20px rgba(255,255,255,0.3) !important;
  border: 1.5px solid #FDE047 !important;
  padding: 1.5rem !important;
}

.sheet-hardcover-back {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%) !important;
  border-radius: 18px 0 0 18px !important;
  box-shadow: 8px 0 30px rgba(37, 99, 235, 0.4), inset 0 0 20px rgba(255,255,255,0.3) !important;
  border: 1.5px solid #FDE047 !important;
  padding: 1.5rem !important;
}

.cover-emboss-frame {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 25px rgba(0,0,0,0.15);
  border: 2px solid rgba(254, 240, 138, 0.6);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.cover-emboss-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(254, 240, 138, 0.4);
  border-radius: 8px;
  pointer-events: none;
}

.cover-hard-spine-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(90deg, #680D21 0%, #9E1A38 35%, #D4436A 75%, rgba(255,255,255,0.2) 100%);
  border-radius: 4px 0 0 4px;
  box-shadow: inset -2px 0 6px rgba(0,0,0,0.35);
  z-index: 10;
  pointer-events: none;
}

.cover-hard-spine-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(270deg, #680D21 0%, #9E1A38 35%, #D4436A 75%, rgba(255,255,255,0.2) 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: inset 2px 0 6px rgba(0,0,0,0.35);
  z-index: 10;
  pointer-events: none;
}

/* 3D Paper Stack Edge Depth Effect */
.book-edge-stack-right {
  position: absolute;
  right: -8px;
  top: 8px;
  bottom: 8px;
  width: 8px;
  background: repeating-linear-gradient(
    to right,
    #FAF5EE 0px,
    #FAF5EE 2px,
    #D9CEBE 3px,
    #FAF5EE 4px
  );
  border-radius: 0 4px 4px 0;
  box-shadow: 3px 0 8px rgba(0,0,0,0.2);
  pointer-events: none;
}

.book-edge-stack-left {
  position: absolute;
  left: -8px;
  top: 8px;
  bottom: 8px;
  width: 8px;
  background: repeating-linear-gradient(
    to right,
    #FAF5EE 0px,
    #FAF5EE 2px,
    #D9CEBE 3px,
    #FAF5EE 4px
  );
  border-radius: 4px 0 0 4px;
  box-shadow: -3px 0 8px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* Sticker Camera Badge */
.sticker-camera-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2rem;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  transform: rotate(8deg);
  transition: transform 0.3s ease;
}

.sticker-camera-badge:hover {
  transform: rotate(0deg) scale(1.15);
}

/* Postmark Stamp Doodle */
.postmark-stamp-doodle {
  position: absolute;
  bottom: 80px;
  left: 18px;
  width: 55px;
  height: 55px;
  border: 1.5px dashed rgba(225, 29, 72, 0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-15deg);
}

.doodle-circle {
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(225, 29, 72, 0.25);
  border-radius: 50%;
}

.doodle-wavy-lines {
  position: absolute;
  right: -32px;
  top: 50%;
  width: 32px;
  height: 12px;
  border-top: 1.5px dashed rgba(225, 29, 72, 0.3);
  border-bottom: 1.5px dashed rgba(225, 29, 72, 0.3);
}

/* Photos Cluster (Left Page) */
.photos-cluster {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: 0.5rem;
}

.scrapbook-photo-item {
  position: absolute;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.photo-top-left {
  left: 10px;
  top: 0px;
  width: 160px;
  transform: rotate(-5deg);
  z-index: 2;
}

.photo-bottom-right {
  right: 12px;
  top: 75px;
  width: 170px;
  transform: rotate(6deg);
  z-index: 3;
}

.scrapbook-photo-item:hover {
  transform: rotate(0deg) scale(1.08);
  z-index: 10;
}

/* Scalloped / Pastel Photo Frames matching reference */
.scalloped-photo-frame {
  padding: 8px 8px 12px 8px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
}

.frame-pink {
  background-color: #FCE7F3;
  border: 2px dashed #F472B6;
}

.frame-mint {
  background-color: #ECFDF5;
  border: 2px dashed #34D399;
}

.frame-peach {
  background-color: #FFF7ED;
  border: 2px dashed #FB923C;
}

.scrapbook-inner-img {
  width: 100%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Washi Tape at Top */
.photo-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 16px;
  background: rgba(244, 114, 182, 0.6);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 5;
}

.tape-mint {
  background: rgba(52, 211, 153, 0.6);
}

.tape-yellow {
  background: rgba(251, 191, 36, 0.6);
}

/* Left Page Footer Notes */
.page-footer-notes {
  text-align: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Right Page: Mini Scrapbook Envelope & Letter Card */
.page-doodles-bg {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}

.doodle-item {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.75;
}

.top-left-bow { top: 10px; left: 15px; }
.top-right-star { top: 12px; right: 18px; color: #F59E0B; }
.bottom-left-sparkle { bottom: 15px; left: 20px; color: #EC4899; }
.bottom-right-bow { bottom: 12px; right: 15px; }

.mini-envelope-container {
  width: 100%;
  max-width: 320px;
  margin: auto;
  position: relative;
  z-index: 4;
}

.mini-envelope-body {
  background: linear-gradient(180deg, #FBF8F2 0%, #F3ECE0 100%);
  border: 1px solid #E6DBCB;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0,0,0,0.04);
  padding: 1.25rem 1.15rem 1.5rem 1.15rem;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-envelope-flap-open {
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(0deg, #F3ECE0 0%, #FAF5EE 100%);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  filter: drop-shadow(0 -3px 4px rgba(0,0,0,0.04));
  border-radius: 4px 4px 0 0;
  z-index: 1;
}

.mini-letter-card {
  background: #FFFFFF;
  border-radius: 6px;
  padding: 1.1rem 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #F5EFE6;
  position: relative;
  z-index: 2;
  margin-top: -10px;
}

.mini-letter-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #4A3B3B;
  font-style: italic;
  margin-bottom: 0.4rem;
}

.mini-letter-signature {
  font-size: 1.3rem;
  color: #D4436A;
  text-align: right;
  margin-top: 0.4rem;
}

.mini-wax-seal {
  position: absolute;
  bottom: -15px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 35% 35%, #F472B6 0%, #D83A56 70%, #9E1A32 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 1px 3px rgba(255,255,255,0.6);
  border: 2px solid #FCD34D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  z-index: 5;
}

/* Indicators */
.book-indicators .spread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(212, 67, 106, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.book-indicators .spread-dot:hover:not(.active) {
  background-color: rgba(212, 67, 106, 0.6);
  transform: scale(1.2);
}

.book-indicators .spread-dot.active {
  background-color: var(--tulip-pink);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(232, 86, 127, 0.5);
}

.letter-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  line-height: 1.85;
  color: var(--text-body);
  font-size: 1.1rem;
}

.letter-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: var(--tulip-deep);
  text-align: right;
  margin-top: 2rem;
}

/* --- Affirmations Section --- */
.affirmation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .affirmation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.affirmation-card {
  background-color: var(--bg-cream);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--tulip-pink);
  box-shadow: 0 8px 20px var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.affirmation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(212, 67, 106, 0.12);
}

.affirmation-card p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.affirmation-card::before {
  content: '✦';
  color: var(--tulip-coral);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* --- Video Section --- */
.video-wrapper {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 4px solid #fff;
  background-color: #000;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-blush), var(--bg-cream));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--text-light);
}

/* --- Music / Vinyl Section --- */
.music-card {
  background: #fff;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.vinyl-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.vinyl-wrapper {
  position: relative;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #111;
  background-image: repeating-radial-gradient(
    circle,
    #111,
    #111 2px,
    #1a1a1a 3px,
    #1a1a1a 4px
  );
  border: 4px solid #2a2a2a;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 0 10px rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.vinyl-disc.spinning {
  animation: spin-slow 6s linear infinite;
}

.vinyl-center {
  width: 46px;
  height: 46px;
  background-color: var(--tulip-pink);
  border-radius: 50%;
  position: relative;
  border: 2px solid #222;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl-center::after {
  content: '';
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Shine effect */
.vinyl-disc::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 60%
  );
  pointer-events: none;
}

.music-info {
  flex-grow: 1;
}

.music-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.music-artist {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 0 1.25rem 0;
}

.play-pause-btn {
  background-color: var(--tulip-pink);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.play-pause-btn:hover {
  background-color: var(--tulip-deep);
}

.music-progress {
  width: 100%;
  height: 4px;
  background-color: #eee;
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.music-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--tulip-pink);
  border-radius: 2px;
  transition: width 0.3s ease;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--bg-cream);
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid rgba(212, 67, 106, 0.1);
}

.site-footer .heart {
  color: var(--tulip-pink);
  font-size: 1.1rem;
  margin: 0 0.25rem;
}

/* --- Floating Petals / Particles --- */
.petal {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  border-radius: 50% 0 50% 50%;
  background-color: var(--tulip-pink);
  opacity: 0.4;
  z-index: 10;
}

/* Generate a few different petal sizes and colors purely via inline styles or extra classes, 
   the base shape is defined above. E.g. width: 10px; height: 10px; */


/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 640px) {
  .envelope-wrapper {
    width: 330px;
    height: 220px;
  }

  .envelope-flap {
    height: 115px;
  }
  
  .stamp-photo-card {
    width: 215px;
    top: 25px;
  }
  
  .envelope-wrapper.open .stamp-photo-card {
    transform: translateX(-50%) translateY(-145px) rotate(-3deg) scale(1);
  }
  
  .envelope-wrapper.open .stamp-photo-card:hover {
    transform: translateX(-50%) translateY(-155px) rotate(0deg) scale(1.03) !important;
  }
  
  @keyframes stampFloat {
    0%, 100% {
      transform: translateX(-50%) translateY(-145px) rotate(-3deg) scale(1);
    }
    50% {
      transform: translateX(-50%) translateY(-155px) rotate(-1.5deg) scale(1.02);
    }
  }
  
  .wax-seal {
    width: 64px;
    height: 64px;
    top: 115px;
  }
  
  .seal-letter {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
  
  .section-padding {
    padding: 3.5rem 1rem;
  }
  
  .hero-polaroid-card {
    width: 230px;
    margin: 0 auto;
  }

  .countdown-grid {
    gap: 1rem;
  }

  .countdown-item {
    min-width: 70px;
    padding: 1rem 0.5rem;
  }
  
  .countdown-number {
    font-size: 2.25rem;
  }

  .book-3d-container {
    height: 470px;
  }

  .scrapbook-book-wrapper {
    max-width: 95vw;
  }

  .scrapbook-book-wrapper.state-cover-front {
    transform: translateX(-25%) scale(0.96);
  }
  .scrapbook-book-wrapper.state-open {
    transform: translateX(0%) scale(0.96);
  }
  .scrapbook-book-wrapper.state-cover-back {
    transform: translateX(25%) scale(0.96);
  }

  .book-page-fixed,
  .sheet-face {
    padding: 1.25rem 0.85rem;
  }

  .photos-cluster {
    height: 250px;
  }

  .photo-top-left {
    width: 120px;
    left: 4px;
  }

  .photo-bottom-right {
    width: 125px;
    right: 4px;
    top: 55px;
  }

  .mini-envelope-body {
    min-height: 250px;
    padding: 1rem 0.75rem;
  }

  .mini-letter-text {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .mini-letter-signature {
    font-size: 1.1rem;
  }

  .mini-wax-seal {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    bottom: -12px;
    right: 12px;
  }

  .sticker-camera-badge {
    font-size: 1.5rem;
    top: 10px;
    right: 10px;
  }

  .page-footer-notes p {
    font-size: 1.3rem !important;
  }

  .footer-doodles {
    font-size: 9px !important;
  }
  
  .vinyl-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .vinyl-disc {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 400px) {
  .envelope-wrapper {
    width: 280px;
    height: 195px;
  }

  .envelope-flap {
    height: 100px;
  }

  .wax-seal {
    width: 56px;
    height: 56px;
    top: 100px;
  }

  .seal-letter {
    font-size: 1.7rem;
  }

  .stamp-photo-card {
    width: 190px;
  }

  .envelope-wrapper.open .stamp-photo-card {
    transform: translateX(-50%) translateY(-130px) rotate(-3deg) scale(1);
  }

  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-polaroid-card {
    width: 190px;
  }

  .book-3d-container {
    height: 440px;
  }

  .scrapbook-book-wrapper.state-cover-front {
    transform: translateX(-25%) scale(0.88);
  }
  .scrapbook-book-wrapper.state-open {
    transform: translateX(0%) scale(0.88);
  }
  .scrapbook-book-wrapper.state-cover-back {
    transform: translateX(25%) scale(0.88);
  }
}

/* =======================================================
   Single-Page Interactive App Views & Gift Menu Screen
   ======================================================= */
.screen-view {
  display: none !important;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.screen-view.active-view {
  display: flex !important;
  animation: screenFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gift Cards on Menu Screen (Realistic Image Cards) */
.gift-menu-card {
  transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gift-menu-card:hover {
  transform: translateY(-10px) scale(1.04);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 255, 255, 0.2);
}

.gift-card-img-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), inset 0 0 0 1.5px rgba(255,255,255,0.3);
  margin-bottom: 0.85rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.4s ease;
  background: #1A050A;
}

.gift-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gift-menu-card:hover .gift-card-img-wrapper {
  transform: scale(1.08);
  box-shadow: 0 16px 36px rgba(244, 114, 182, 0.5), inset 0 0 0 2px rgba(255,255,255,0.6);
}

.gift-menu-card:hover .gift-card-img {
  transform: scale(1.08);
}

/* =======================================================
   Interactive Birthday Candles & Cake Styles
   ======================================================= */
.candles-row {
  margin-bottom: 4px;
}

.interactive-candle {
  position: relative;
  width: 16px;
  height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}

.interactive-candle:hover {
  transform: scale(1.1);
}

.candle-stick {
  width: 14px;
  height: 48px;
  border-radius: 4px 4px 0 0;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.3);
}

.candle-wick {
  width: 2px;
  height: 8px;
  background: #333;
}

.candle-flame {
  position: absolute;
  top: 0px;
  width: 14px;
  height: 22px;
  background: radial-gradient(ellipse at bottom, #FFF 0%, #FBBF24 40%, #EF4444 80%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  box-shadow: 0 0 15px #F59E0B, 0 0 30px #EF4444;
  animation: flicker 0.15s infinite alternate ease-in-out;
  transform-origin: center bottom;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.flame-glow {
  position: absolute;
  top: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.5) 0%, rgba(239,68,68,0) 70%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@keyframes flicker {
  0% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.08, 0.95); }
  100% { transform: rotate(-1deg) scale(0.95, 1.05); }
}

/* Candle blown out state */
.interactive-candle.blown .candle-flame {
  opacity: 0 !important;
  transform: scale(0.1) translateY(-10px) !important;
}

.interactive-candle.blown .flame-glow {
  opacity: 0 !important;
}

/* Cake Stand and Tiers */
.cake-tier-top, .cake-tier-bottom {
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.8), 0 8px 20px rgba(0,0,0,0.15);
}

/* =======================================================
   Whole-Screen Tulip Bouquets & Photo Bouquets Exhibition
   ======================================================= */

/* Custom Delicate Scrollbar for Flower Screen */
.custom-tulip-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-tulip-scrollbar::-webkit-scrollbar-track {
  background: rgba(254, 226, 226, 0.4);
  border-radius: 8px;
}

.custom-tulip-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(244, 114, 182, 0.6);
  border-radius: 8px;
}

.custom-tulip-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(216, 58, 86, 0.8);
}

/* Filter Buttons */
.bouquet-filter-btn {
  color: #881337;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.bouquet-filter-btn:hover:not(.active) {
  background: rgba(254, 205, 211, 0.5);
  color: #9F1239;
}

.bouquet-filter-btn.active {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

/* Bouquet Cards */
.bouquet-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.25);
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.08), 0 4px 10px -3px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.bouquet-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 22px 40px -10px rgba(225, 29, 72, 0.22), 0 0 20px rgba(244, 114, 182, 0.2);
  border-color: rgba(244, 114, 182, 0.6);
}

/* Bouquet Image Wrapper */
.bouquet-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fdf2f8;
}

.bouquet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bouquet-card:hover .bouquet-img {
  transform: scale(1.08);
}

/* Badges on Bouquet Images */
.bouquet-badge-photo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(190, 18, 60, 0.95));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.bouquet-badge-pure {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #881337;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(244, 114, 182, 0.4);
  z-index: 2;
}

/* View Hint on Card Hover */
.bouquet-view-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 15px;
  white-space: nowrap;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.bouquet-card:hover .bouquet-view-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bouquet-overlay-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bouquet-card:hover .bouquet-overlay-glow {
  opacity: 1;
}

/* Card Body Content */
.bouquet-card-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.bouquet-variety-tag {
  font-size: 11px;
  font-weight: 700;
  color: #BE123C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* Lightbox Modal */
.bouquet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bouquet-modal-overlay.hidden {
  display: none !important;
}

.bouquet-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px rgba(244, 114, 182, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: zoomInModal 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.bouquet-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.bouquet-modal-close-btn:hover {
  background: #E11D48;
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
}

.bouquet-modal-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: #fff1f2;
}

.bouquet-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bouquet-modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #E11D48, #BE123C);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.modal-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(244, 114, 182, 0.4), transparent);
}

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

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

/* =======================================================
   Featured 3D Interactive "For You My Cutie" Polaroid Card
   ======================================================= */
.featured-3d-flower-container {
  position: relative;
  overflow: hidden;
}

.flower-3d-card-wrapper {
  perspective: 1200px;
  width: 280px;
  max-width: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.flower-3d-card-wrapper:active {
  cursor: grabbing;
}

.flower-3d-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  padding: 14px 14px 18px 14px;
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(225, 29, 72, 0.22), 0 0 25px rgba(244, 114, 182, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(-4deg) scale3d(1, 1, 1);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.flower-3d-glare {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.flower-3d-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 332 / 480;
  border-radius: 12px;
  overflow: hidden;
  background: #fdf2f8;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.1);
}

.flower-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.flower-3d-card-wrapper:hover .flower-3d-img {
  transform: scale(1.03);
}

/* Floating Doodle Sparkles */
.doodle-sparkle {
  position: absolute;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 15px rgba(244, 114, 182, 0.8);
  pointer-events: none;
  animation: floatSparkle 3s ease-in-out infinite alternate;
  z-index: 5;
}

.sp-1 { top: 12%; right: 14%; font-size: 18px; animation-delay: 0s; }
.sp-2 { top: 38%; left: 8%; font-size: 16px; animation-delay: 0.8s; }
.sp-3 { bottom: 22%; right: 10%; font-size: 14px; animation-delay: 1.5s; }
.sp-4 { bottom: 12%; left: 14%; font-size: 20px; animation-delay: 2.2s; }

.doodle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: #BE123C;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 6;
}

.flower-3d-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-align: center;
  transform: translateZ(20px);
}

@keyframes floatSparkle {
  0% { transform: translateY(0) scale(0.9); opacity: 0.7; }
  100% { transform: translateY(-8px) scale(1.15); opacity: 1; text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 20px rgba(244, 114, 182, 1); }
}





