/* ============================================================
   ANJANA'S BIRTHDAY — style.css
   Dreamy Romantic Pink Theme · Mobile-First · Fully Animated
   ============================================================ */

/* ───────── Google Fonts are loaded via <link> in HTML ───────── */

/* ══════════════════════════════════════════
   0.  CSS VARIABLES — theme palette
══════════════════════════════════════════ */
:root {
  /* Pinks */
  --pink-50:  #fff0f5;
  --pink-100: #ffe0ec;
  --pink-200: #ffb3cc;
  --pink-300: #ff80aa;
  --pink-400: #ff4d88;
  --pink-500: #e8336d;
  --pink-600: #c0185a;

  /* Roses / deep reds */
  --rose-500: #d63060;
  --rose-700: #9b1942;

  /* Warm neutral */
  --cream:    #fff8f0;
  --blush:    #fde8ef;

  /* Gold accent */
  --gold:     #f7c948;
  --gold-dark:#d4a017;

  /* Text */
  --text-dark:  #2d0a1a;
  --text-mid:   #6b2140;
  --text-light: #c06080;

  /* Gradients */
  --grad-main:  linear-gradient(135deg, #fff0f5 0%, #ffd6e7 50%, #ffe4f0 100%);
  --grad-deep:  linear-gradient(135deg, #2d0a1a 0%, #6b1832 50%, #9b2048 100%);
  --grad-gold:  linear-gradient(90deg, #f7c948, #ffed8a, #f7c948);

  /* Shadows */
  --shadow-soft: 0 8px 32px rgba(214, 48, 96, 0.15);
  --shadow-card: 0 4px 20px rgba(214, 48, 96, 0.12);

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script:  'Dancing Script', cursive;
  --font-body:    'Lato', sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════════
   1.  RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--grad-main);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════
   2.  GLOBAL FLOATING PARTICLES
══════════════════════════════════════════ */
#particles-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0;
  animation: floatUp var(--dur, 8s) var(--delay, 0s) infinite ease-in;
  user-select: none;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.9; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(-15vh) rotate(360deg); opacity: 0; }
}

/* ══════════════════════════════════════════
   3.  BEAUTIFUL FLOATING MUSIC PLAYER & ROTATING VINYL
══════════════════════════════════════════ */
.floating-music-player {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--pink-200);
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(214, 48, 96, 0.22);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.floating-music-player:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(214, 48, 96, 0.32);
}

.floating-music-player.is-playing {
  border-color: var(--pink-400);
  box-shadow: 0 0 20px rgba(232, 51, 109, 0.35);
}

/* Vinyl Disc Wrapper */
.vinyl-disc-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Vinyl Disc with Smooth Rotation */
.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2d0a1a 0%, #15020c 60%, #000 100%);
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: vinylSpin 4s linear infinite;
  animation-play-state: paused;
  transition: transform 0.3s ease;
}

.floating-music-player.is-playing .vinyl-disc {
  animation-play-state: running;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Vinyl Grooves Texture */
.vinyl-grooves {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Center Record Label */
.vinyl-label {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-400), var(--rose-500));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  z-index: 1;
}

.vinyl-heart {
  font-size: 0.6rem;
  line-height: 1;
}

/* Vinyl Needle/Arm Indicator */
.vinyl-needle {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 14px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform-origin: right center;
  transform: rotate(-25deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.floating-music-player.is-playing .vinyl-needle {
  transform: rotate(8deg);
}

/* Track Info */
.player-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.track-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--rose-700);
  white-space: nowrap;
}

.track-artist {
  font-family: var(--font-script);
  font-size: 0.8rem;
  color: var(--text-mid);
  white-space: nowrap;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pink-200);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--rose-700);
  cursor: pointer;
  transition: all 0.25s var(--spring);
}

.player-btn:hover {
  background: #fff;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(214, 48, 96, 0.25);
  border-color: var(--pink-400);
}

/* Mobile Responsive Optimization for Floating Player */
@media (max-width: 480px) {
  .floating-music-player {
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.35rem 0.6rem 0.35rem 0.45rem;
    gap: 0.45rem;
  }
  .track-artist { display: none; }
  .track-title { font-size: 0.78rem; }
  .player-btn { width: 28px; height: 28px; font-size: 0.8rem; }
  .vinyl-disc-wrap { width: 38px; height: 38px; }
}

/* ══════════════════════════════════════════
   4.  SHARED SECTION STYLES
══════════════════════════════════════════ */
.section {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.6rem;
  animation: iconBounce 2s ease-in-out infinite;
}

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--rose-700);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-family: var(--font-script);
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-light);
}

/* Glitter / shimmer text */
.glitter-text {
  background: linear-gradient(
    90deg,
    var(--rose-700) 0%,
    var(--pink-400) 25%,
    var(--gold) 50%,
    var(--pink-400) 75%,
    var(--rose-700) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ══════════════════════════════════════════
   5.  SECTION 1 — WELCOME
══════════════════════════════════════════ */
.welcome-section {
  background: var(--grad-deep);
  overflow: hidden;
}

.welcome-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(255, 100, 150, 0.25) 0%,
    rgba(155, 25, 66, 0.1)   50%,
    transparent              100%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.rose-left,
.rose-right {
  position: absolute;
  font-size: clamp(5rem, 15vw, 10rem);
  opacity: 0.15;
  top: 10%;
  animation: roseSway 6s ease-in-out infinite;
}

.rose-left  { left: -2rem; animation-delay: 0s; }
.rose-right { right: -2rem; animation-delay: -3s; transform-origin: bottom center; }

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

.welcome-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  animation: fadeInUp 1s var(--ease) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.crown-emoji {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  display: block;
  margin-bottom: 0.5rem;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-10px) rotate(3deg); }
}

.welcome-name {
  font-family: var(--font-script);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.welcome-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.birthday-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 0.5rem 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(247,201,72,0); }
  50%       { box-shadow: 0 0 20px rgba(247,201,72,0.5); }
}

.welcome-date {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.begin-btn {
  background: linear-gradient(135deg, var(--pink-400), var(--rose-500));
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.2rem);
  padding: 1rem 2.4rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(214, 48, 96, 0.5);
  transition: all 0.3s var(--spring);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

.begin-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 36px rgba(214, 48, 96, 0.65);
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  cursor: pointer;
}

.arrow-bounce {
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ══════════════════════════════════════════
   6.  SECTION 2 — LOVE LETTER
══════════════════════════════════════════ */
.letter-section {
  background: linear-gradient(160deg, #fff0f5 0%, #fde8ef 60%, #fff5f8 100%);
}

.envelope-wrapper {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Envelope ── */
.envelope {
  position: relative;
  width: min(320px, 90vw);
  height: min(220px, 60vw);
  cursor: pointer;
  transition: transform 0.3s var(--spring);
  user-select: none;
}

.envelope:hover { transform: scale(1.04) rotate(-1deg); }

.env-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #fff5f8 0%, #ffd6e8 100%);
  border-radius: 8px;
  border: 2px solid var(--pink-200);
  box-shadow: 0 8px 32px rgba(214, 48, 96, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  clip-path: polygon(0 0, 50% 70%, 100% 0);
  background: linear-gradient(170deg, #ffc2d8 0%, #ffaac8 100%);
  border-radius: 8px 8px 0 0;
  z-index: 2;
  transform-origin: top center;
  transition: transform 0.6s var(--ease);
}

.envelope.opening .env-flap {
  transform: rotateX(180deg);
}

.env-seal {
  font-size: 2.8rem;
  animation: sealPulse 2s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

.env-hint {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--pink-500);
}

/* ── Letter Paper ── */
.letter-paper {
  display: none;
  width: 100%;
  background: linear-gradient(170deg, #fffdf9 0%, #fff5f8 100%);
  border-radius: 12px;
  border: 1px solid var(--pink-100);
  box-shadow: 0 12px 48px rgba(214, 48, 96, 0.15);
  padding: 2.5rem 2rem;
  animation: letterReveal 0.8s var(--spring) both;
  position: relative;
}

.letter-paper::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--pink-100);
}

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

.letter-inner {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.9;
  color: var(--text-dark);
  position: relative;
}

.letter-greeting {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--rose-700);
  margin-bottom: 1.2rem;
}

.letter-line {
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.letter-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.letter-sign {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  color: var(--rose-500);
  margin-top: 1.5rem;
  line-height: 1.6;
}

.sign-name {
  font-size: 1.2em;
  color: var(--rose-700);
}

/* ══════════════════════════════════════════
   7.  SECTION 3 — PHOTO GALLERY
══════════════════════════════════════════ */
.gallery-section {
  background: linear-gradient(170deg, #fff5f8 0%, #ffe8f2 60%, #fdf0f5 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
}

.photo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--spring), box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}

.photo-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(214, 48, 96, 0.22);
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--blush);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover .gallery-img {
  transform: scale(1.07);
}

/* Placeholder state (before photo is added) */
.photo-placeholder-icon {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--pink-200);
}

.photo-frame.no-photo .gallery-img     { display: none; }
.photo-frame.no-photo .photo-placeholder-icon { display: flex; }

.photo-caption {
  padding: 0.9rem 1rem;
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--text-mid);
  text-align: center;
  background: linear-gradient(to bottom, #fff, #fff8fb);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 0, 15, 0.9);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 9001;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

#lightbox-caption {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 0 1rem;
}

/* ══════════════════════════════════════════
   8.  SECTION 4 — LOVE NOTES CAROUSEL
══════════════════════════════════════════ */
.notes-section {
  background: linear-gradient(160deg, #2d0a1a 0%, #6b1832 60%, #9b2048 100%);
}

.notes-section .section-header h2 { color: #fff; }
.notes-section .section-sub { color: rgba(255,255,255,0.7); }
.notes-section .section-icon { filter: drop-shadow(0 0 8px rgba(255,100,150,0.7)); }

.notes-carousel {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 260px;
  margin-bottom: 2rem;
}

.note-card {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  opacity: 0;
  transform: translateX(60px) scale(0.96);
  transition: all 0.5s var(--ease);
  pointer-events: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.note-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.note-card.prev {
  opacity: 0;
  transform: translateX(-60px) scale(0.96);
}

.note-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.note-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  margin-top: 0.5rem;
}

.note-heart {
  font-size: 2rem;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%       { transform: scale(1.2); }
  40%       { transform: scale(1); }
  60%       { transform: scale(1.1); }
}

/* Notes navigation */
.notes-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s var(--spring);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.nav-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.1);
}

.dots-wrapper {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ══════════════════════════════════════════
   9.  SECTION 5 — TIMELINE
══════════════════════════════════════════ */
.timeline-section {
  background: linear-gradient(170deg, #fff0f5 0%, #fde8ef 100%);
}

.timeline-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  padding: 1rem 0;
}

/* Vertical centre line */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--pink-300), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 48%;
  margin-bottom: 3rem;
}

.timeline-item.left  { left: 0; padding-right: 2.5rem; }
.timeline-item.right { left: 52%; padding-left: 2.5rem; }

/* Circle on the line */
.timeline-dot {
  position: absolute;
  top: 1.5rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rose-500);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px var(--pink-200), 0 4px 12px rgba(214,48,96,0.3);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--pink-200), 0 4px 12px rgba(214,48,96,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(255,80,120,0.1), 0 4px 12px rgba(214,48,96,0.3); }
}

.timeline-item.left  .timeline-dot { right: -9px; }
.timeline-item.right .timeline-dot { left:  -9px; }

.timeline-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--pink-300);
  transition: transform 0.35s var(--spring), box-shadow 0.35s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(214, 48, 96, 0.18);
}

.timeline-emoji {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--pink-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--rose-700);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-mid);
}

/* Mobile timeline — single column */
@media (max-width: 600px) {
  .timeline-container::before { left: 1.2rem; }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .timeline-item.left  .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 0.4rem;
    right: auto;
  }
}

/* ══════════════════════════════════════════
   10. SECTION 6 — BIRTHDAY CAKE
══════════════════════════════════════════ */
.cake-section {
  background: linear-gradient(170deg, #fde8ef 0%, #fff0f5 50%, #ffe4f0 100%);
}

.cake-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cake-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 20px 40px rgba(214, 48, 96, 0.2));
}

/* ── Candles ── */
.candles-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-end;
  margin-bottom: -4px;
}

.candle {
  position: relative;
  width: 18px;
  height: 60px;
  background: linear-gradient(180deg, #ff7eb3 0%, #ff4d8f 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.15);
}

.candle:nth-child(even) {
  background: linear-gradient(180deg, #ffd966 0%, #ffb300 100%);
}

.candle:nth-child(3) {
  background: linear-gradient(180deg, #b2f7ef 0%, #48d9c8 100%);
  height: 72px;
}

.flame {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  background: radial-gradient(ellipse at 50% 70%, #fff7a0, #ffcc00 40%, #ff6600 70%, transparent 100%);
  border-radius: 50% 50% 20% 20% / 70% 70% 30% 30%;
  animation: flameDance 0.4s ease-in-out infinite alternate;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-origin: bottom center;
}

@keyframes flameDance {
  0%   { transform: translateX(-50%) scaleX(1)   skewX(0deg); }
  100% { transform: translateX(-50%) scaleX(0.85) skewX(5deg); }
}

.flame.out {
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
}

/* ── Cake Layers ── */
.cake-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cake-layer {
  border-radius: 50%;
  position: relative;
}

.layer-top {
  width: 180px;
  height: 60px;
  background: linear-gradient(135deg, #ffb3d4, #ff80b0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 #e8336d, inset 0 2px 8px rgba(255,255,255,0.4);
}

.layer-mid {
  width: 240px;
  height: 70px;
  background: linear-gradient(135deg, #ffd6e8, #ffaad0);
  box-shadow: 0 8px 0 #c8205a, inset 0 2px 8px rgba(255,255,255,0.4);
  margin-top: 2px;
}

.layer-bot {
  width: 300px;
  height: 80px;
  background: linear-gradient(135deg, #fff0f5, #ffd6e8);
  box-shadow: 0 10px 0 #b01848, inset 0 2px 8px rgba(255,255,255,0.4);
  margin-top: 2px;
}

.cake-decoration {
  font-family: var(--font-script);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.cake-name-plate {
  margin-top: 0.5rem;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--rose-700);
  background: rgba(255,255,255,0.7);
  border-radius: 50px;
  padding: 0.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.cake-plate {
  width: 340px;
  height: 20px;
  background: linear-gradient(to bottom, #fff, #f0d0dc);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ── Controls ── */
.blow-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.blow-btn {
  background: linear-gradient(135deg, var(--pink-400), var(--rose-500));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(214,48,96,0.4);
  transition: all 0.3s var(--spring);
}

.blow-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(214,48,96,0.55);
}

.blow-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.candle-counter {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--rose-700);
}

.wish-revealed {
  text-align: center;
  animation: wishReveal 1s var(--spring) both;
}

@keyframes wishReveal {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.wish-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.wish-revealed h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--rose-700); margin-bottom: 0.5rem; }
.wish-revealed p { font-family: var(--font-script); font-size: 1.2rem; color: var(--text-mid); }

/* ══════════════════════════════════════════
   11. SECTION 7 — FINALE
══════════════════════════════════════════ */
.finale-section {
  background: var(--grad-deep);
  overflow: hidden;
  position: relative;
}

.finale-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(255, 100, 150, 0.3)  0%,
    rgba(155, 25,  66, 0.15) 50%,
    transparent              100%);
  animation: glowPulse 4s ease-in-out infinite;
}

.fireworks-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.finale-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}

.finale-emoji-row {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  animation: emojiDance 3s ease-in-out infinite;
}

@keyframes emojiDance {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.finale-name {
  font-family: var(--font-script);
  font-size: 1.3em;
  display: block;
}

.finale-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.finale-quote {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  color: var(--gold);
  border: 1px solid rgba(247,201,72,0.3);
  border-radius: 12px;
  padding: 1rem 2rem;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.05);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 2.5em;
  line-height: 0;
  vertical-align: middle;
  color: var(--gold);
  opacity: 0.6;
}

.finale-hearts {
  min-height: 60px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.final-heart {
  font-size: 1.5rem;
  animation: heartFloat var(--fh-dur, 3s) ease-in-out infinite;
  animation-delay: var(--fh-delay, 0s);
}

@keyframes heartFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.replay-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--spring);
  letter-spacing: 0.04em;
}

.replay-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* ══════════════════════════════════════════
   12. CONFETTI
══════════════════════════════════════════ */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 14px;
  top: -20px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confettiFall var(--cf-dur, 3s) var(--cf-delay, 0s) linear forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotateZ(0deg); opacity: 0.9; }
  80%  { opacity: 0.8; }
  100% { transform: translateY(110vh) rotateZ(720deg); opacity: 0; }
}

/* ══════════════════════════════════════════
   13. FIREWORK PARTICLES
══════════════════════════════════════════ */
.firework-spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: sparkOut var(--sk-dur, 1s) ease-out forwards;
}

@keyframes sparkOut {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sk-tx,0px), var(--sk-ty,0px)) scale(0.2); opacity: 0; }
}

/* ══════════════════════════════════════════
   14. SCROLL-REVEAL UTILITY
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ══════════════════════════════════════════
   15. RESPONSIVE OVERRIDES
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .section { padding: 4rem 1rem 3rem; }
  .layer-top  { width: 150px; }
  .layer-mid  { width: 200px; }
  .layer-bot  { width: 250px; }
  .cake-plate { width: 280px; }
  .candles-row { gap: 0.5rem; }
  .letter-paper { padding: 2rem 1.2rem; }
  .letter-paper::before { left: 1.2rem; }
  .notes-carousel { min-height: 300px; }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ══════════════════════════════════════════
   16. ACCESSIBILITY
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus outlines for keyboard navigation */
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
