/* ═══════════════════════════════════════════
   CUTE PASTEL BIRTHDAY WEB PAGE - style.css
   ═══════════════════════════════════════════ */

:root {
  /* Color Palette */
  --bg-cream: #FFF9F4;
  --blush-pink: #FCE8E4;
  --dusty-rose: #D98F8C;
  --sage-green: #879276;
  --warm-beige: #E9DDD2;
  --text-brown: #665D58;
  --white: #FFFFFF;
  
  --font-handwritten: 'Caveat', cursive;
  --font-body: 'Quicksand', sans-serif;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-brown);
  font-family: var(--font-body);
  font-weight: 500;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Custom Typography */
.font-handwritten {
  font-family: var(--font-handwritten);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════
   SCROLL SECTIONS & WRAPPERS
   ═══════════════════════════════════════════ */
.scroll-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* Section dividers: curved wave details */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.section-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════
   FLOATING HEARTS
   ═══════════════════════════════════════════ */
.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -20px;
  fill: var(--dusty-rose);
  opacity: 0.6;
  animation: floatUp 6s linear infinite;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-105vh) translateX(var(--drift-x, 30px)) scale(1.2) rotate(var(--rotation, 15deg));
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   CONFETTI CANVAS
   ═══════════════════════════════════════════ */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ═══════════════════════════════════════════
   MUSIC BUTTON
   ═══════════════════════════════════════════ */
.music-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  background-color: var(--white);
  border: 2px solid var(--blush-pink);
  color: var(--dusty-rose);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 143, 140, 0.15);
  z-index: 1000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-btn:hover {
  transform: scale(1.05);
  background-color: var(--blush-pink);
  box-shadow: 0 6px 16px rgba(217, 143, 140, 0.25);
}

.music-btn:active {
  transform: scale(0.95);
}

.music-icon {
  width: 18px;
  height: 18px;
  stroke: var(--dusty-rose);
}

/* ═══════════════════════════════════════════
   SECTION 1: HERO SECTION
   ═══════════════════════════════════════════ */
#hero-section {
  padding-bottom: 9rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-cream) 100%);
}

.top-deco {
  margin-bottom: 1rem;
  animation: pulse 3s ease-in-out infinite;
}

.heart-deco {
  width: 32px;
  height: 32px;
  fill: var(--dusty-rose);
}

.title-container {
  text-align: center;
  margin-bottom: 2.5rem;
}

.main-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-happy {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-brown);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.3rem;
}

.title-birthday {
  font-size: 5.5rem;
  color: var(--dusty-rose);
  margin-bottom: -0.2rem;
}

.title-mamma {
  font-size: 6rem;
  color: var(--dusty-rose);
  transform: rotate(-2deg);
  display: inline-block;
}

.sub-title {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-brown);
  font-weight: 500;
  margin-top: 1rem;
}

.start-btn {
  background-color: var(--dusty-rose);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(217, 143, 140, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.start-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 22px rgba(217, 143, 140, 0.35);
  background-color: var(--white);
  color: var(--dusty-rose);
  border-color: var(--dusty-rose);
}

.start-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Corner flowers sway */
.flower-corner {
  position: absolute;
  bottom: 80px;
  left: 40px;
  width: 150px;
  height: 150px;
  z-index: 8;
  pointer-events: none;
}

.svg-flower {
  width: 100%;
  height: 100%;
}

.sway-flower-1 {
  transform-origin: 52px 74px;
  animation: swayCommon 6s ease-in-out infinite alternate;
}

.sway-flower-2 {
  transform-origin: 80px 103px;
  animation: swayCommon 4.5s ease-in-out infinite alternate-reverse;
}

.sway-leaf-1 {
  transform-origin: 20px 100px;
  animation: swayLeaf 5.5s ease-in-out infinite alternate;
}

.sway-leaf-2 {
  transform-origin: 20px 100px;
  animation: swayLeaf 4.8s ease-in-out infinite alternate-reverse;
}

@keyframes swayCommon {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

@keyframes swayLeaf {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

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

/* ═══════════════════════════════════════════
   SECTION 2: MOTHER + DAUGHTER ILLUSTRATION
   ═══════════════════════════════════════════ */
#illustration-section {
  background-color: var(--blush-pink);
  padding-bottom: 9rem;
}

.illustration-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 550px;
  margin: 0 auto;
  z-index: 5;
}

.sketch-wrapper {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(102, 93, 88, 0.08);
  border: 6px solid var(--warm-beige);
  width: 100%;
  max-width: 360px;
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
  position: relative;
}

.sketch-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 70px;
  height: 22px;
  background: rgba(233, 221, 210, 0.6);
  z-index: 10;
}

.sketch-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.mother-daughter-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Illustration branch framing */
.floral-frame-left,
.floral-frame-right {
  position: absolute;
  width: 120px;
  height: 240px;
  pointer-events: none;
  z-index: 4;
}

.floral-frame-left {
  left: -90px;
  top: 10px;
}

.floral-frame-right {
  right: -90px;
  top: 10px;
}

.branch-sway-1 {
  transform-origin: bottom center;
  animation: swayLeaf 6.5s ease-in-out infinite alternate;
}

.branch-sway-2 {
  transform-origin: bottom center;
  animation: swayLeaf 8s ease-in-out infinite alternate-reverse;
}

.text-cozy {
  font-size: 1.6rem;
  color: var(--text-brown);
  margin-top: 1.2rem;
  text-align: center;
}

/* Mother and Daughter animations */
.characters-group {
  transform-origin: bottom center;
  animation: breathing 4.5s ease-in-out infinite alternate;
}

.mamma-head-group {
  transform-origin: 142px 163px;
  animation: headSwayMamma 8s ease-in-out infinite alternate;
}

.israa-head-group {
  transform-origin: 188px 178px;
  animation: headSwayIsraa 7s ease-in-out infinite alternate-reverse;
}

/* Eye Blinking */
.mamma-eye-left,
.mamma-eye-right {
  animation: blink 5s infinite;
}

@keyframes breathing {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.025) scaleX(1.005); }
}

@keyframes headSwayMamma {
  0% { transform: rotate(-1deg); }
  100% { transform: rotate(1deg); }
}

@keyframes headSwayIsraa {
  0% { transform: rotate(-1.5deg); }
  100% { transform: rotate(1deg); }
}

@keyframes blink {
  0%, 96%, 100% { transform: scaleY(1); }
  98% { transform: scaleY(0.1); }
}

/* SVG Hearts floating anim */
.float-heart-1 {
  animation: heartFloatSVG 4s ease-in-out infinite;
  transform-origin: center;
}

.float-heart-2 {
  animation: heartFloatSVG 5s ease-in-out infinite;
  animation-delay: 1.5s;
  transform-origin: center;
}

@keyframes heartFloatSVG {
  0% {
    transform: translateY(10px) scale(0.6);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-25px) scale(1.1);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   SECTION 3: BIRTHDAY LETTER SECTION
   ═══════════════════════════════════════════ */
#letter-section {
  background-color: var(--bg-cream);
  padding-bottom: 9rem;
}

.letter-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 2.5rem;
  align-items: start;
}

.letter-left-decor,
.letter-right-decor {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
}

.letter-card-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.letter-paper {
  background-color: var(--white);
  border-radius: 24px;
  border: 6px solid var(--blush-pink);
  box-shadow: 0 10px 30px rgba(102, 93, 88, 0.05);
  width: 100%;
  max-width: 520px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.5s ease;
  z-index: 5;
}

.letter-paper::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1.5px dashed var(--warm-beige);
  border-radius: 16px;
  pointer-events: none;
}

.letter-envelope-deco {
  width: 100px;
  margin: 0 auto 1.5rem auto;
}

.svg-envelope {
  width: 100%;
  height: auto;
}

.letter-title {
  font-size: 2.4rem;
  color: var(--dusty-rose);
  margin-bottom: 1rem;
}

.letter-divider {
  width: 60px;
  height: 2px;
  background-color: var(--warm-beige);
  margin: 0 auto 2rem auto;
}

.letter-body {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-brown);
  text-align: left;
}

.letter-body p {
  margin-bottom: 1.4rem;
}

.letter-body p:last-child {
  font-weight: 700;
  color: var(--dusty-rose);
  text-align: center;
  font-size: 1.3rem;
  margin-top: 1.8rem;
  margin-bottom: 0;
}

.letter-footer {
  text-align: right;
  margin-top: 1.8rem;
}

.sig-title {
  font-size: 1.05rem;
  color: var(--text-brown);
  opacity: 0.8;
}

.sig-name {
  font-size: 2.2rem;
  color: var(--dusty-rose);
}

.letter-seal-deco {
  width: 48px;
  height: 48px;
  margin: 2rem auto 0 auto;
}

.svg-seal {
  width: 100%;
  height: 100%;
}

/* ─── SCRAPBOOK NOTES (sticky notes) ─── */
.scrapbook-note {
  background: var(--white);
  padding: 1.2rem;
  width: 180px;
  box-shadow: 0 4px 15px rgba(102, 93, 88, 0.06);
  border-radius: 4px;
  position: relative;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid var(--blush-pink);
  z-index: 5;
}

.scrapbook-note p {
  font-size: 1.4rem;
  color: var(--text-brown);
  line-height: 1.3;
  text-align: center;
}

.scrapbook-note:hover {
  transform: translateY(-5px) scale(1.03) !important;
  box-shadow: 0 8px 20px rgba(102, 93, 88, 0.12);
}

/* Sticky notes decorative tape elements */
.tape-top::before,
.tape-angle::before,
.tape-pink,
.tape-sage,
.tape-beige {
  content: '';
  position: absolute;
  height: 18px;
  width: 55px;
  opacity: 0.7;
}

.tape-pink {
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blush-pink);
}

.tape-sage {
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: #C4D3BE;
}

.tape-beige {
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  background: var(--warm-beige);
}

.clip-top::before,
.paper-clip {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 25px;
  background: var(--warm-beige);
  border: 1px solid var(--text-brown);
  border-radius: 4px;
  opacity: 0.9;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}

/* Layout tilt classes */
.note-tilt-left { transform: rotate(-2deg); }
.note-tilt-right { transform: rotate(3deg); }

/* ─── POLAROID PHOTO ─── */
.polaroid-wrapper {
  background: var(--white);
  padding: 0.8rem 0.8rem 1.8rem 0.8rem;
  box-shadow: 0 8px 20px rgba(102, 93, 88, 0.08);
  border-radius: 2px;
  border: 1px solid rgba(102, 93, 88, 0.05);
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 5;
}

.polaroid-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 50px;
  height: 18px;
  background: rgba(244, 211, 207, 0.7);
  z-index: 6;
}

.polaroid-wrapper.tilt-left { transform: rotate(-3deg); }
.polaroid-wrapper.tilt-right { transform: rotate(2.5deg); }

.polaroid-wrapper:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 12px 25px rgba(102, 93, 88, 0.15);
}

.polaroid-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #E9DDD2;
  border: 1px solid rgba(102, 93, 88, 0.1);
  margin-bottom: 0.7rem;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  font-size: 1.45rem;
  color: var(--text-brown);
  margin: 0;
  line-height: 1;
}

/* Card variations & general styles */
.scrapbook-img, .scrapbook-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── TAPED STYLE ─── */
.style-taped {
  background: var(--white);
  padding: 0.8rem 0.8rem 1.4rem 0.8rem;
  box-shadow: 0 6px 15px rgba(102, 93, 88, 0.08);
  border-radius: 4px;
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 5;
}

.style-taped:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 12px 25px rgba(102, 93, 88, 0.15);
}

.style-taped .tape-pink {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(4deg);
  height: 20px;
  width: 60px;
  background: var(--blush-pink);
  opacity: 0.85;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 6;
}

.taped-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #E9DDD2;
  border-radius: 2px;
  margin-bottom: 0.7rem;
}

.taped-caption {
  font-size: 1.45rem;
  color: var(--text-brown);
  margin: 0;
  line-height: 1;
}

/* ─── FRAMED STYLE ─── */
.style-framed {
  background: var(--white);
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(102, 93, 88, 0.08);
  border-radius: 12px;
  border: 2px solid var(--sage-green);
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 5;
}

.style-framed:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 12px 25px rgba(102, 93, 88, 0.15);
}

.framed-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px dashed var(--sage-green);
  margin-bottom: 0.7rem;
}

.framed-caption {
  font-size: 1.45rem;
  color: var(--sage-green);
  margin: 0;
  line-height: 1;
}

/* ─── SCRAPBOOK STYLE ─── */
.style-scrapbook {
  background: var(--blush-pink);
  padding: 0.8rem;
  box-shadow: 0 8px 18px rgba(102, 93, 88, 0.07);
  border-radius: 16px;
  border: 2.5px dashed var(--dusty-rose);
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 5;
}

.style-scrapbook:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 12px 25px rgba(102, 93, 88, 0.15);
}

.scrapbook-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid rgba(102, 93, 88, 0.1);
  margin-bottom: 0.7rem;
}

.scrapbook-caption {
  font-size: 1.45rem;
  color: var(--dusty-rose);
  margin: 0;
  line-height: 1;
}

/* ─── CARD STYLE ─── */
.style-card {
  background: var(--white);
  padding: 0.8rem 0.8rem 1.6rem 0.8rem;
  box-shadow: 0 6px 18px rgba(102, 93, 88, 0.06);
  border-radius: 20px;
  border: 3px solid var(--warm-beige);
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 5;
}

.style-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 12px 25px rgba(102, 93, 88, 0.15);
}

.card-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #E9DDD2;
  margin-bottom: 0.7rem;
}

.card-caption {
  font-size: 1.45rem;
  color: var(--text-brown);
  margin: 0;
  line-height: 1;
}

/* Glass Jar corner decor */
.jar-flowers-corner {
  position: relative;
  width: 80px;
  height: 120px;
  margin-top: 3.5rem;
}

.svg-jar {
  width: 100%;
  height: auto;
}

.jar-heart-deco {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: var(--dusty-rose);
  line-height: 1;
}

.jar-flowers-sway {
  transform-origin: 40px 36px;
  animation: swayCommon 5s ease-in-out infinite alternate;
}

/* ═══════════════════════════════════════════
   SECTION 4: SCRAPBOOK MEMORIES / DETAILS
   ═══════════════════════════════════════════ */
#memories-section {
  background-color: var(--blush-pink);
  padding-bottom: 9rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 3rem;
  color: var(--dusty-rose);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-brown);
  font-weight: 500;
}

.scrapbook-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.scrapbook-element {
  position: relative;
  flex-shrink: 0;
}

/* Pink flower vase element */
.flower-vase-wrapper {
  width: 90px;
  height: 140px;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.flower-vase-wrapper:hover {
  transform: scale(1.05) rotate(0deg);
}

.svg-vase {
  width: 100%;
  height: auto;
}

.vase-flowers-sway {
  transform-origin: 50px 60px;
  animation: swayCommon 4.5s ease-in-out infinite alternate;
}

/* Cute cup element */
.cute-cup-wrapper {
  width: 70px;
  height: 70px;
  align-self: flex-end;
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.cute-cup-wrapper:hover {
  transform: scale(1.06) rotate(0deg);
}

.svg-cup {
  width: 100%;
  height: auto;
}

/* Cup steam lines anim */
.cup-steam {
  position: absolute;
  top: -15px;
  left: 28px;
  display: flex;
  gap: 6px;
}

.steam-line-s {
  width: 2px;
  height: 10px;
  background: var(--dusty-rose);
  border-radius: 2px;
  opacity: 0.6;
  animation: steamRise 3s infinite ease-in-out;
}

.steam-line-s:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes steamRise {
  0% {
    transform: translateY(4px) scaleY(0.7);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-8px) scaleY(1.2);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   SECTION 5: FINAL BIRTHDAY MESSAGE
   ═══════════════════════════════════════════ */
#final-section {
  background-color: var(--bg-cream);
  padding: 7rem 1.5rem 4rem 1.5rem;
  text-align: center;
}

.final-banner {
  background-color: var(--white);
  border-radius: 30px;
  border: 4px dashed var(--dusty-rose);
  box-shadow: 0 8px 25px rgba(217, 143, 140, 0.08);
  padding: 3.5rem 2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.final-banner::before {
  content: "✿";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--dusty-rose);
  background-color: var(--bg-cream);
  padding: 0 8px;
}

.banner-quote {
  font-size: 2.2rem;
  color: var(--text-brown);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.banner-divider {
  width: 40px;
  height: 2px;
  background-color: var(--blush-pink);
  margin: 0 auto 1.5rem auto;
}

.banner-heading {
  font-size: 3rem;
  color: var(--dusty-rose);
  margin-bottom: 1.2rem;
}

.banner-signature {
  font-size: 1.15rem;
  color: var(--text-brown);
  line-height: 1.4;
}

.banner-signature .sig-name {
  font-size: 2.4rem;
  color: var(--dusty-rose);
  display: inline-block;
  margin-top: 0.3rem;
}

.footer-bottom {
  border-top: 1px dashed var(--warm-beige);
  padding-top: 1.5rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.footer-small {
  font-size: 0.85rem;
  color: var(--text-brown);
  opacity: 0.8;
}

/* ─── CUSTOM SCRAPBOOK ANIMATIONS & INTERACTIONS ─── */
.letter-paper {
  animation: floatPaper 6s ease-in-out infinite alternate;
}

@keyframes floatPaper {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.wiggle-hover {
  transition: transform 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.wiggle-hover:hover {
  animation: wiggleHeart 0.5s ease-in-out infinite;
}

@keyframes wiggleHeart {
  0%, 100% { transform: scale(1.1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-8deg); }
  75% { transform: scale(1.1) rotate(8deg); }
}

.israa-hair-wavy {
  transform-origin: 188px 150px;
  animation: swayHair 6s ease-in-out infinite alternate;
}

@keyframes swayHair {
  0% { transform: rotate(-1.5deg); }
  100% { transform: rotate(1.5deg); }
}

/* ═══════════════════════════════════════════
   VIEWPORT ENTRANCE EFFECTS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger transitions slightly */
.reveal:nth-child(even) {
  transition-delay: 0.1s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .letter-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .letter-left-decor,
  .letter-right-decor {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0;
  }
  
  .scrapbook-note,
  .polaroid-wrapper {
    margin-bottom: 0;
  }
  
  .jar-flowers-corner {
    margin-top: 0;
    align-self: center;
  }
  
  .scrapbook-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .scroll-section {
    padding: 4rem 1rem;
  }
  
  .title-happy {
    font-size: 1.8rem;
  }
  
  .title-birthday {
    font-size: 3.8rem;
  }
  
  .title-mamma {
    font-size: 4.2rem;
  }
  
  .sub-title {
    font-size: 1.1rem;
  }
  
  .start-btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
  }
  
  .letter-paper {
    padding: 2.5rem 1.5rem;
  }
  
  .letter-title {
    font-size: 1.8rem;
  }
  
  .letter-body {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  
  .banner-quote {
    font-size: 1.7rem;
  }
  
  .banner-heading {
    font-size: 2.4rem;
  }
  
  .music-btn {
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .music-icon {
    width: 14px;
    height: 14px;
  }
  
  .flower-corner {
    width: 100px;
    height: 100px;
    bottom: 50px;
    left: 15px;
  }
  
  .floral-frame-left,
  .floral-frame-right {
    display: none; /* Hide framing branches on narrow mobile screens to save space */
  }
}
