/* ============================================================
   styles.css — Premium Birthday Design System
   Theme: Romantic Pink / Purple / Rose Gold
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Core palette */
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --blush: #fecfef;
  --deep-rose: #8b3a3a;
  --deep-rose-light: #a0504f;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --violet-500: #8b5cf6;
  --gold: #fbbf24;
  --gold-light: #fde68a;

  /* Semantic */
  --bg-primary: #fff5f7;
  --bg-section-alt: #fef7f7;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-heading: var(--deep-rose);
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);

  /* Typography */
  --font-display: 'Dancing Script', cursive;
  --font-body: 'Poppins', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(139, 58, 58, 0.08);
  --shadow-medium: 0 10px 40px rgba(139, 58, 58, 0.12);
  --shadow-heavy: 0 20px 60px rgba(139, 58, 58, 0.15);
  --shadow-glow-pink: 0 0 40px rgba(244, 63, 94, 0.2);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

button:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utility: Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Scroll Reveal System ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Section Title ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Decorative Divider ── */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  font-size: 1.2rem;
  opacity: 0.5;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--deep-rose), transparent);
}

/* ============================================================
   NAVIGATION DOTS (side)
   ============================================================ */
.nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(139, 58, 58, 0.25);
  border: 2px solid rgba(139, 58, 58, 0.3);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.nav-dot:hover,
.nav-dot.active {
  background: var(--rose-400);
  border-color: var(--rose-400);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--deep-rose);
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-soft);
}

.nav-dot:hover::before {
  opacity: 1;
}

/* ============================================================
   MUSIC PLAYER
   ============================================================ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-400), var(--purple-500));
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium), 0 0 20px rgba(244, 63, 94, 0.3);
  transition: all 0.3s var(--ease-smooth);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-heavy), 0 0 30px rgba(244, 63, 94, 0.4);
}

.music-toggle.playing {
  animation: musicPulse 1.5s ease-in-out infinite;
}

.music-toggle.playing::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--rose-400);
  animation: musicRing 1.5s ease-out infinite;
}

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

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(251, 113, 133, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(192, 132, 252, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(254, 207, 239, 0.4) 0%, transparent 70%),
    linear-gradient(135deg, #ff9a9e 0%, #fecfef 40%, #d4a5ff 80%, #fecfef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-section-alt), transparent);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 0 20px;
  max-width: 800px;
}

/* JS-driven typewriter */
#hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--deep-rose);
  margin-bottom: 20px;
  min-height: 1.2em;
  line-height: 1.2;
}

.typewriter-active::after {
  content: '|';
  animation: cursorBlink 0.7s step-end infinite;
  color: var(--deep-rose);
  font-weight: 300;
}

.typewriter-done::after {
  content: '';
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

#hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--deep-rose-light);
  margin-bottom: 30px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out-expo);
}

#hero-subtitle.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Floating hearts in hero */
.hero-hearts {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 30px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out-expo) 0.2s;
}

.hero-hearts.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-heart {
  font-size: 2rem;
  animation: heartFloat 3s ease-in-out infinite;
  display: inline-block;
}

.hero-heart:nth-child(1) { animation-delay: 0s; }
.hero-heart:nth-child(2) { animation-delay: 0.3s; }
.hero-heart:nth-child(3) { animation-delay: 0.6s; }
.hero-heart:nth-child(4) { animation-delay: 0.9s; }
.hero-heart:nth-child(5) { animation-delay: 1.2s; }

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

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500), var(--purple-500));
  background-size: 200% 200%;
  color: white;
  padding: 16px 40px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.35);
  opacity: 0;
  transform: translateY(20px);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.cta-button.revealed {
  opacity: 1;
  transform: translateY(0);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 40px rgba(244, 63, 94, 0.45);
  background-position: 100% 100%;
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo);
}

.scroll-indicator.revealed {
  opacity: 1;
}

.scroll-arrow {
  width: 28px;
  height: 46px;
  border: 2px solid rgba(139, 58, 58, 0.4);
  border-radius: 25px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--deep-rose);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0% { top: 8px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--rose-50) 50%, var(--bg-section-alt) 100%);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 10px 0;
}

.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.5s var(--ease-smooth);
  background: white;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy), var(--shadow-glow-pink);
}

.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  height: 320px;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.photo-container:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, rgba(26, 26, 46, 0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.photo-container:hover .photo-overlay {
  opacity: 1;
}

.photo-caption {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  transform: translateY(15px);
  transition: transform 0.4s var(--ease-out-expo);
}

.photo-container:hover .photo-caption {
  transform: translateY(0);
}

.like-btn {
  color: white;
  font-size: 1.5rem;
  align-self: flex-end;
  transition: transform 0.3s var(--ease-bounce);
  padding: 4px;
}

.like-btn:hover {
  transform: scale(1.25);
}

.like-btn.liked .heart-icon {
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 85vw;
  max-height: 80vh;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-smooth);
  object-fit: contain;
}

.lightbox.active .lightbox-img {
  animation: lightboxEnter 0.4s var(--ease-out-expo);
}

@keyframes lightboxEnter {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-top: 16px;
  font-style: italic;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  z-index: 2;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 3;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  transition: all 0.3s var(--ease-smooth);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   THINGS I LOVE ABOUT YOU
   ============================================================ */
.love-section {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(251, 113, 133, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(192, 132, 252, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.love-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.love-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s var(--ease-smooth);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.love-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.1), rgba(192, 132, 252, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
}

.love-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-medium), var(--shadow-glow-pink);
  border-color: var(--rose-200);
}

.love-card:hover::before {
  opacity: 1;
}

.love-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.4s var(--ease-bounce);
}

.love-card:hover .love-icon {
  transform: scale(1.15) rotate(5deg);
}

.love-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.love-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================================
   MEMORY TIMELINE
   ============================================================ */
.timeline-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--bg-section-alt), var(--rose-50), var(--bg-section-alt));
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--rose-200), var(--purple-300), var(--rose-200));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 30px);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--rose-400), var(--purple-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--bg-section-alt), var(--shadow-soft);
  z-index: 2;
  transition: all 0.4s var(--ease-bounce);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 0 6px var(--bg-section-alt), var(--shadow-glow-pink);
}

.timeline-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.timeline-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rose-500);
  background: rgba(244, 63, 94, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   OPEN WHEN LETTERS
   ============================================================ */
.letters-section {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(192, 132, 252, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.envelope {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.envelope:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.envelope-front {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.envelope-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-bounce);
}

.envelope:hover .envelope-seal {
  transform: rotate(15deg) scale(1.1);
}

.envelope-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-heading);
}

.envelope-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.envelope-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.3s var(--ease-smooth);
}

.envelope.open .envelope-arrow {
  transform: rotate(180deg);
}

.letter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-smooth), padding 0.5s var(--ease-smooth);
  padding: 0 24px;
}

.envelope.open .letter-content {
  max-height: 300px;
  padding: 0 24px 28px;
}

.letter-content-inner {
  padding-top: 16px;
  border-top: 1px dashed rgba(139, 58, 58, 0.15);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================================
   BIRTHDAY LETTER
   ============================================================ */
.letter-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.letter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.letter-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 60px) clamp(24px, 5vw, 50px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.letter-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 36px;
  color: #fff;
}

.letter-paragraph {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s var(--ease-out-expo);
}

.letter-paragraph.revealed {
  opacity: 1;
  transform: translateY(0);
}

.letter-signature {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 30px;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s var(--ease-out-expo) 0.3s;
}

.letter-signature.revealed {
  opacity: 1;
  transform: translateY(0);
}

.letter-hearts {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.letter-heart-anim {
  font-size: 2rem;
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}

.letter-heart-anim:nth-child(1) { animation-delay: 0s; }
.letter-heart-anim:nth-child(2) { animation-delay: 0.3s; }
.letter-heart-anim:nth-child(3) { animation-delay: 0.6s; }

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

/* ============================================================
   MINI-GAME
   ============================================================ */
.game-section {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(251, 113, 133, 0.08) 0%, transparent 60%),
    var(--bg-section-alt);
}

.game-wrapper {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.game-area {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.game-stat {
  text-align: center;
}

.game-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 500;
}

.game-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font-display);
}

.game-start-btn {
  background: linear-gradient(135deg, var(--rose-400), var(--purple-500));
  color: white;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s var(--ease-smooth);
}

.game-start-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.game-canvas {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.5), rgba(254, 207, 239, 0.3));
  border: 2px solid var(--rose-200);
  max-width: 100%;
  cursor: pointer;
  touch-action: manipulation;
}

.game-result {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.game-result-emoji {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.game-result-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.game-result-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.game-play-again {
  background: linear-gradient(135deg, var(--rose-400), var(--purple-500));
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease-smooth);
}

.game-play-again:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-section {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(192, 132, 252, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.quiz-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

#quiz-container {
  position: relative;
  min-height: 300px;
}

.quiz-progress {
  height: 4px;
  background: var(--rose-100);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-400), var(--purple-400));
  border-radius: 2px;
  transition: width 0.5s var(--ease-smooth);
}

.quiz-question-number {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s var(--ease-out-expo);
}

.quiz-question.revealed {
  opacity: 1;
  transform: translateY(0);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: all 0.3s var(--ease-smooth);
  opacity: 0;
  transform: translateX(-15px);
}

.quiz-option.revealed {
  opacity: 1;
  transform: translateX(0);
}

.quiz-option:hover {
  border-color: var(--rose-300);
  background: rgba(251, 113, 133, 0.06);
  transform: translateX(4px);
}

.quiz-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-100), var(--purple-300));
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-option-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.quiz-option.correct {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.quiz-option.correct .quiz-option-letter {
  background: #34d399;
  color: white;
}

.quiz-option.wrong {
  border-color: var(--rose-400);
  background: rgba(251, 113, 133, 0.08);
}

.quiz-option.wrong .quiz-option-letter {
  background: var(--rose-400);
  color: white;
}

.quiz-feedback {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
}

.quiz-feedback.revealed {
  opacity: 1;
  transform: translateY(0);
}

.quiz-results {
  text-align: center;
  padding: 20px 0;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s var(--ease-out-expo);
}

.quiz-results.revealed {
  opacity: 1;
  transform: scale(1);
}

.quiz-results-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

.quiz-results-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.quiz-results-stars {
  font-size: 1.8rem;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.quiz-results-message {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.quiz-retry-btn {
  background: linear-gradient(135deg, var(--rose-400), var(--purple-500));
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease-smooth);
}

.quiz-retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ============================================================
   SECRET MESSAGE
   ============================================================ */
.secret-section {
  padding: var(--section-padding) 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(251, 113, 133, 0.06) 0%, transparent 60%),
    var(--bg-section-alt);
}

.secret-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.secret-trigger {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 2px dashed var(--rose-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.secret-trigger:hover {
  border-color: var(--rose-300);
  box-shadow: var(--shadow-soft);
}

.secret-trigger:active {
  transform: scale(0.98);
}

.secret-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.secret-hint {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.secret-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-400), var(--purple-400));
  border-radius: 0 2px 0 0;
  transition: width 0.3s var(--ease-smooth);
  width: 0;
}

.secret-hidden {
  display: none;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s var(--ease-out-expo);
}

.secret-hidden.revealed {
  opacity: 1;
  transform: scale(1);
}

.secret-hidden h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.secret-hidden p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   FINAL SURPRISE
   ============================================================ */
.finale-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.finale-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 63, 94, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.finale-wrapper {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.finale-btn {
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500), var(--purple-500));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  padding: 20px 48px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.4), 0 0 60px rgba(244, 63, 94, 0.2);
  transition: all 0.4s var(--ease-smooth);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.finale-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--rose-400), var(--purple-400), var(--rose-400));
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite;
  border-radius: 50px;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.6;
}

.finale-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 40px rgba(244, 63, 94, 0.5), 0 0 80px rgba(244, 63, 94, 0.3);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.finale-message {
  display: none;
  opacity: 0;
  transform: scale(0.9);
  transition: all 1s var(--ease-out-expo);
}

.finale-message.revealed {
  opacity: 1;
  transform: scale(1);
}

.finale-big-heart {
  font-size: 5rem;
  margin-bottom: 24px;
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--rose-300), var(--purple-300), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.finale-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, var(--deep-rose), #6b2f3a);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 28px 0;
  font-size: 0.9rem;
}

.footer a {
  color: var(--gold-light);
  text-decoration: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 768px) {
  .nav-dots {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .photo-container {
    height: 260px;
  }

  /* Always show overlay on touch devices */
  .photo-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.7) 0%, transparent 60%);
  }

  .love-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .letters-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline: single column */
  .timeline::before {
    left: 22px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 22px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-content { max-width: 95vw; }

  .letter-card {
    margin: 0 10px;
  }

  .music-toggle {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================================
   RESPONSIVE — Small phone
   ============================================================ */
@media (max-width: 480px) {
  .hero-content {
    padding: 0 16px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .love-grid {
    grid-template-columns: 1fr;
  }

  .love-card {
    padding: 24px 20px;
  }

  .game-canvas {
    max-height: 300px;
  }

  .finale-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
  }

  .section-title {
    margin-bottom: 12px;
  }
}