/* ==========================================================================
   PURPLE AND TULIP DESIGN THEME - STYLESHEET
   Website: "My Baby" - Romantic Purple Tulip Garden
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME DEFINITIONS
   -------------------------------------------------------------------------- */
:root {
  /* Core Color Palette */
  --primary-lavender: #B57EDC;
  --secondary-lilac: #D8B4F8;
  --accent-deep-purple: #7B2CBF;
  --bg-lavender-white: #FAF7FF;
  --soft-pink: #F5D9F2;
  --pure-white: #FFFFFF;

  /* Extended Depth & Tones */
  --purple-rich: #5A189A;
  --purple-royal: #3C096C;
  --purple-midnight: #240046;
  --purple-glow: rgba(123, 44, 191, 0.28);
  --purple-tint-50: #F3E8FF;
  --purple-tint-100: #EDE9FE;
  --purple-tint-200: #E9D5FF;
  --text-dark: #2A0845;
  --text-medium: #4A154B;
  --text-muted: #6B4E71;
  --text-light: #8E7C93;

  /* Leaf & Botanical Accents */
  --stem-green: #588157;
  --leaf-soft: #74A57F;
  --leaf-light: #A3C9A8;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #FAF7FF 0%, #F5D9F2 30%, #D8B4F8 70%, #B57EDC 100%);
  --grad-hero-overlay: radial-gradient(circle at 80% 20%, rgba(216, 180, 248, 0.4) 0%, transparent 60%);
  --grad-section-light: linear-gradient(180deg, #FAF7FF 0%, #F8F2FC 50%, #FAF7FF 100%);
  --grad-section-alt: linear-gradient(135deg, #FAF7FF 0%, #F5D9F2 50%, #EDE9FE 100%);
  --grad-button: linear-gradient(135deg, #7B2CBF 0%, #9D4EDD 50%, #B57EDC 100%);
  --grad-button-hover: linear-gradient(135deg, #5A189A 0%, #7B2CBF 50%, #9D4EDD 100%);
  --grad-button-soft: linear-gradient(135deg, #D8B4F8 0%, #B57EDC 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 247, 255, 0.75) 100%);
  --grad-card-lilac: linear-gradient(145deg, rgba(245, 217, 242, 0.4) 0%, rgba(216, 180, 248, 0.25) 100%);
  --grad-image-overlay: linear-gradient(to top, rgba(36, 0, 70, 0.85) 0%, rgba(123, 44, 191, 0.35) 50%, rgba(216, 180, 248, 0.05) 100%);
  --grad-footer: linear-gradient(145deg, #240046 0%, #3C096C 55%, #5A189A 100%);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(123, 44, 191, 0.08);
  --shadow-md: 0 8px 24px rgba(123, 44, 191, 0.12);
  --shadow-lg: 0 16px 40px rgba(123, 44, 191, 0.16);
  --shadow-hover: 0 20px 48px rgba(123, 44, 191, 0.22);
  --glow-purple: 0 0 25px rgba(181, 126, 220, 0.5);
  --glow-accent: 0 0 30px rgba(123, 44, 191, 0.4);

  /* Borders & Glassmorphism */
  --border-glass: 1px solid rgba(216, 180, 248, 0.45);
  --border-glass-strong: 1.5px solid rgba(181, 126, 220, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-bg-subtle: rgba(250, 247, 255, 0.65);
  --blur-glass: blur(14px);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-script: 'Alex Brush', 'Dancing Script', cursive;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-lavender-white);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image: url('../images/decorations/tulip-pattern.svg');
  background-repeat: repeat;
  background-size: 120px 120px;
}

/* Canvas for falling petals */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

body.intro-active {
  overflow: hidden;
}

body.photo-animation-open {
  overflow: hidden;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.9), transparent 54%),
    linear-gradient(145deg, #FAF7FF, #F5D9F2 55%, #D8B4F8);
  text-align: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.welcome-screen[hidden] {
  display: none;
}

.welcome-screen::before,
.welcome-screen::after {
  position: absolute;
  content: "";
  width: min(42vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(123, 44, 191, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-screen::before {
  transform: translate(-42%, 32%);
}

.welcome-screen::after {
  transform: translate(42%, 32%) scale(0.72);
}

.welcome-content {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  animation: welcomeFadeIn 0.8s ease both;
}

.welcome-eyebrow {
  margin-bottom: 6px;
  color: var(--purple-rich);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-title {
  margin-bottom: 8px;
  color: var(--purple-royal);
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.welcome-message {
  margin-bottom: 24px;
  color: var(--text-medium);
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.3;
}

.welcome-envelope {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: var(--purple-royal);
}

.welcome-envelope:focus-visible {
  outline: 3px solid var(--accent-deep-purple);
  outline-offset: 10px;
  border-radius: 16px;
}

.welcome-envelope-visual {
  position: relative;
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1.55;
  margin: 0 auto 18px;
  filter: drop-shadow(0 22px 24px rgba(60, 9, 108, 0.2));
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.welcome-envelope:hover .welcome-envelope-visual {
  transform: translateY(-5px) rotate(-1deg);
}

.welcome-envelope-back,
.welcome-envelope-front,
.welcome-envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.welcome-envelope-back {
  background: linear-gradient(145deg, #E9D5FF, #B57EDC);
  border: 1px solid rgba(90, 24, 154, 0.2);
}

.welcome-letter-preview {
  position: absolute;
  z-index: 1;
  top: 8%;
  left: 12%;
  display: grid;
  width: 76%;
  height: 82%;
  place-items: start center;
  padding-top: 12%;
  border-radius: 8px;
  background: #FFFCFF;
  color: var(--accent-deep-purple);
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5vw, 2rem);
  box-shadow: 0 2px 8px rgba(60, 9, 108, 0.12);
  transition: transform 0.75s 0.15s ease;
}

.welcome-envelope-front {
  z-index: 2;
  background: linear-gradient(155deg, #D8B4F8, #B57EDC);
  clip-path: polygon(0 42%, 50% 76%, 100% 42%, 100% 100%, 0 100%);
}

.welcome-envelope-flap {
  z-index: 3;
  background: linear-gradient(145deg, #E9D5FF, #C084E8);
  clip-path: polygon(0 0, 100% 0, 50% 57%);
  transform-origin: 50% 0;
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.welcome-envelope-seal {
  position: absolute;
  z-index: 4;
  top: 42%;
  left: 50%;
  width: clamp(54px, 16vw, 72px);
  height: auto;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.welcome-open-prompt {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.welcome-screen.is-opening .welcome-envelope-visual {
  transform: scale(0.94);
}

.welcome-screen.is-opening .welcome-envelope-flap {
  transform: rotateX(180deg);
}

.welcome-screen.is-opening .welcome-envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
}

.welcome-screen.is-opening .welcome-letter-preview {
  transform: translateY(-18%);
}

.welcome-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-petal-burst {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.welcome-burst-tulip,
.welcome-burst-petal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--burst-size);
  height: var(--burst-size);
  opacity: 0;
  pointer-events: none;
  animation: welcomePetalBurst 1.9s cubic-bezier(0.12, 0.65, 0.25, 1) forwards;
}

.welcome-burst-tulip {
  object-fit: contain;
}

.welcome-burst-petal {
  height: calc(var(--burst-size) * 1.4);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #F5D9F2, #B57EDC 65%, #7B2CBF);
  box-shadow: 0 4px 12px rgba(90, 24, 154, 0.16);
}

@keyframes welcomePetalBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12) rotate(0);
  }
  12% {
    opacity: 0.98;
  }
  72% {
    opacity: 0.94;
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--burst-x)),
      calc(-50% + var(--burst-y))
    ) scale(1) rotate(var(--burst-rotation));
  }
}

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

body.home-revealing .navbar {
  animation: homepageNavbarIn 0.75s 0.08s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.home-revealing .hero-content > * {
  opacity: 0;
  animation: homepageContentIn 0.85s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.home-revealing .hero-content > :nth-child(1) { animation-delay: 0.08s; }
body.home-revealing .hero-content > :nth-child(2) { animation-delay: 0.18s; }
body.home-revealing .hero-content > :nth-child(3) { animation-delay: 0.28s; }
body.home-revealing .hero-content > :nth-child(4) { animation-delay: 0.38s; }
body.home-revealing .hero-content > :nth-child(5) { animation-delay: 0.48s; }

body.home-revealing .hero-visual {
  animation: homepageBouquetIn 1.1s 0.16s cubic-bezier(0.18, 0.8, 0.25, 1) both;
}

body.home-revealing .music-widget {
  animation: homepageMusicIn 0.8s 0.36s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes homepageNavbarIn {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homepageContentIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes homepageBouquetIn {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.82) rotate(-5deg);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.03) rotate(1deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
    filter: blur(0);
  }
}

@keyframes homepageMusicIn {
  from {
    opacity: 0;
    transform: translate(18px, 16px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

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

a {
  color: var(--accent-deep-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & COMMON DECORATIONS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--purple-royal);
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p, li, button, a, .nickname-pill, .timeline-date, .carousel-date-badge {
  overflow-wrap: anywhere;
}

.script-font {
  font-family: var(--font-script);
  font-weight: 400;
}

/* Section Header Motif */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 18px;
  background: rgba(216, 180, 248, 0.25);
  border: 1px solid var(--secondary-lilac);
  border-radius: 9999px;
  color: var(--purple-rich);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: var(--blur-glass);
}

.section-tag img, .section-tag svg {
  width: 16px;
  height: 16px;
}

.section-title {
  font-size: 2.6rem;
  color: var(--purple-royal);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

/* Tulip heading flourishes flanking title */
.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url('../images/decorations/purple-tulip.svg');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  opacity: 0.75;
  transition: transform var(--transition-normal);
}

.section-title::before {
  margin-right: 14px;
  transform: rotate(-15deg);
}

.section-title::after {
  margin-left: 14px;
  transform: rotate(15deg) scaleX(-1);
}

.section-title:hover::before {
  transform: rotate(-25deg) scale(1.1);
}
.section-title:hover::after {
  transform: rotate(25deg) scaleX(-1) scale(1.1);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto;
}

.tulip-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 0 auto;
}

.tulip-divider .line {
  height: 1.5px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--primary-lavender), transparent);
}

.tulip-divider .tulip-icon {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR (Glassmorphism & Purple Glow)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition-normal), padding var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(250, 247, 255, 0.88);
  backdrop-filter: var(--blur-glass);
  box-shadow: 0 6px 20px rgba(123, 44, 191, 0.1);
  border-bottom: var(--border-glass);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.2vw + 0.9rem, 1.5rem);
  font-weight: 700;
  color: var(--purple-royal);
}

.nav-brand .brand-tulip {
  width: 28px;
  height: 28px;
  animation: gentleSway 3s ease-in-out infinite alternate;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-button);
  transition: width var(--transition-fast), left var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-deep-purple);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-widget {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 1100;
  transition: transform var(--transition-normal);
  touch-action: pan-y;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 9999px;
  background: var(--grad-button);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--pure-white);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), width var(--transition-fast);
}

.music-toggle:hover {
  background: var(--grad-button-hover);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.music-toggle:focus-visible {
  outline: 3px solid var(--secondary-lilac);
  outline-offset: 3px;
}

.music-widget.collapsed .music-toggle {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
}

.music-widget.collapsed .music-label {
  display: none;
}

.music-error:not(:empty) {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(80vw, 320px);
  padding: 10px 14px;
  border: var(--border-glass-strong);
  border-radius: 12px;
  background: var(--pure-white);
  color: #8A1C4A;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--purple-royal);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (Purple Gradient & Blooming Tulips)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding: 130px 0 80px 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad-hero-overlay);
  pointer-events: none;
}

/* Glowing background spheres */
.hero-glow-1 {
  position: absolute;
  top: 15%;
  left: 5%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 248, 0.6) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 217, 242, 0.7) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: var(--border-glass-strong);
  color: var(--purple-royal);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--blur-glass);
  margin-bottom: 24px;
}

.hero-badge img {
  width: 20px;
  height: 20px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.18;
  color: var(--purple-royal);
  margin-bottom: 20px;
}

.hero-title .highlight-purple {
  background: linear-gradient(135deg, #7B2CBF 0%, #B57EDC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-title .script-accent {
  font-family: var(--font-script);
  font-size: 4rem;
  font-weight: 400;
  display: block;
  color: var(--primary-lavender);
  -webkit-text-fill-color: var(--primary-lavender);
  margin-top: 4px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Live Love Counter */
.hero-counter {
  background: rgba(255, 255, 255, 0.85);
  border: var(--border-glass-strong);
  backdrop-filter: var(--blur-glass);
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  max-width: 520px;
}

.counter-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple-rich);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.counter-units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.counter-box {
  background: linear-gradient(145deg, #FAF7FF 0%, #EDE9FE 100%);
  border: 1px solid var(--secondary-lilac);
  border-radius: 12px;
  padding: 10px 4px;
}

.counter-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple-royal);
  line-height: 1;
}

.counter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--grad-button);
  color: var(--pure-white);
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(123, 44, 191, 0.35);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  background: var(--grad-button-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(123, 44, 191, 0.45);
  color: var(--pure-white);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--purple-royal);
  border: var(--border-glass-strong);
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: var(--pure-white);
  border-color: var(--primary-lavender);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--accent-deep-purple);
}

/* Hero Tulip Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bouquet-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  transform-origin: center 65%;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-bouquet-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(123, 44, 191, 0.25));
  animation: floatBouquet 5s ease-in-out infinite;
  transition: filter 450ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bouquet-frame:hover {
    transform: translateY(-10px) rotate(1.5deg) scale(1.035);
  }

  .hero-bouquet-frame:hover .hero-bouquet-img {
    filter: drop-shadow(0 28px 38px rgba(123, 44, 191, 0.38));
  }
}

.floating-tulip-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: var(--border-glass-strong);
  backdrop-filter: var(--blur-glass);
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: pulseBadge 4s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 10%;
  right: -10px;
}

.badge-bottom-left {
  bottom: 12%;
  left: -20px;
}

.floating-tulip-badge span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple-royal);
}

.floating-tulip-badge svg, .floating-tulip-badge img {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   6. ABOUT HER SECTION (Light Lavender & Profile Layout)
   -------------------------------------------------------------------------- */
.about-section {
  padding: 100px 0;
  background: var(--grad-section-light);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* Profile Photo Frame with Tulip Corner Decorations */
.profile-card-wrapper {
  position: relative;
  padding: 24px;
}

.profile-card {
  position: relative;
  background: var(--pure-white);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--secondary-lilac);
  overflow: visible;
  transition: transform var(--transition-normal);
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.profile-img-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #FAF7FF, #EDE9FE);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.profile-card:hover .profile-img {
  transform: scale(1.03);
}

/* Tulip Corner Accents */
.corner-tulip {
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: 5;
  transition: transform var(--transition-normal);
}

.corner-tulip.top-left {
  top: -12px;
  left: -12px;
}

.corner-tulip.top-right {
  top: -12px;
  right: -12px;
  transform: scaleX(-1);
}

.corner-tulip.bottom-left {
  bottom: -12px;
  left: -12px;
  transform: scaleY(-1);
}

.corner-tulip.bottom-right {
  bottom: -12px;
  right: -12px;
  transform: scale(-1);
}

.profile-card:hover .corner-tulip.top-left {
  transform: translate(-3px, -3px);
}
.profile-card:hover .corner-tulip.top-right {
  transform: translate(3px, -3px) scaleX(-1);
}

.profile-card-caption {
  text-align: center;
  padding-top: 18px;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--purple-royal);
  margin-bottom: 4px;
}

.profile-tagline {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--primary-lavender);
}

/* About Her Content Details */
.about-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nicknames-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.nickname-pill {
  padding: 6px 16px;
  background: var(--purple-tint-50);
  border: 1px solid var(--secondary-lilac);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple-rich);
  transition: all var(--transition-fast);
}

.nickname-pill:hover {
  background: var(--grad-button);
  color: var(--pure-white);
  border-color: transparent;
  transform: translateY(-2px);
}

.about-quote-box {
  background: rgba(255, 255, 255, 0.85);
  border-left: 4px solid var(--primary-lavender);
  border-radius: 0 16px 16px 0;
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  color: var(--text-medium);
  font-size: 1.05rem;
}

/* Favorite things grid */
.fav-things-title {
  font-size: 1.25rem;
  color: var(--purple-royal);
  margin-top: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fav-things-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.fav-card {
  background: var(--pure-white);
  border: var(--border-glass);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.fav-card:hover {
  border-color: var(--primary-lavender);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.fav-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--purple-tint-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fav-card-icon img, .fav-card-icon svg {
  width: 22px;
  height: 22px;
}

.fav-card-info h4 {
  font-size: 0.95rem;
  color: var(--purple-royal);
  margin-bottom: 2px;
}

.fav-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. PHOTO CAROUSEL SECTION
   -------------------------------------------------------------------------- */
.carousel-section {
  padding: 100px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(216, 180, 248, 0.22), transparent 48%),
    linear-gradient(180deg, #fff 0%, #fbf7ff 55%, #f7efff 100%);
  position: relative;
}

.carousel-outer {
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 calc(50% - 50vw);
}

.carousel-track-container {
  position: relative;
  overflow: hidden;
  padding-block: 14px;
  min-height: 0;
  height: clamp(230px, 32vw, 340px);
  border-block: 1px solid rgba(123, 44, 191, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(235, 218, 250, 0.52));
  box-shadow: 0 18px 48px rgba(60, 9, 108, 0.1), inset 0 1px rgba(255, 255, 255, 0.9);
}

.carousel-track-container::before,
.carousel-track-container::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(24px, 5vw, 80px);
  content: '';
  pointer-events: none;
}

.carousel-track-container::before {
  left: 0;
  background: linear-gradient(90deg, #fbf7ff, transparent);
}

.carousel-track-container::after {
  right: 0;
  background: linear-gradient(270deg, #f7efff, transparent);
}

.carousel-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: carousel-marquee 55s linear infinite;
}

.carousel-track-container:focus-within .carousel-track {
  animation-play-state: paused;
}

.carousel-set {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
  gap: clamp(14px, 1.8vw, 24px);
  padding-right: clamp(14px, 1.8vw, 24px);
}

@keyframes carousel-marquee {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.carousel-slide {
  width: clamp(190px, 23vw, 290px);
  flex: 0 0 clamp(190px, 23vw, 290px);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: zoom-in;
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(60, 9, 108, 0.2);
  transition: transform 320ms ease, box-shadow 320ms ease;
  background:
    radial-gradient(circle at 75% 20%, rgba(216, 180, 248, 0.85), transparent 32%),
    linear-gradient(135deg, #3c096c, #7b2cbf 55%, #b57edc);
}

.carousel-slide:nth-child(4n + 1) {
  transform: rotate(-1.5deg) scale(0.96);
}

.carousel-slide:nth-child(4n + 2) {
  transform: rotate(1deg) scale(0.98);
}

.carousel-slide:hover {
  z-index: 3;
  transform: translateY(-8px) rotate(0) scale(1.02);
  box-shadow: 0 22px 48px rgba(60, 9, 108, 0.3);
}

.carousel-slide::after {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 1;
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(60, 9, 108, 0.58);
  box-shadow: 0 5px 16px rgba(34, 9, 54, 0.24);
  color: #fff;
  content: attr(data-photo-index);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.carousel-slide img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  border-radius: 17px;
  visibility: hidden;
}

.carousel-slide.has-photo img {
  visibility: visible;
}

.carousel-slide--missing {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #3c096c 0%, #7b2cbf 54%, #b57edc 100%);
}

.carousel-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 17px;
  color: #fff;
  text-align: center;
}

.carousel-placeholder-mark {
  display: grid;
  width: clamp(72px, 11vw, 128px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 15px 40px rgba(34, 9, 54, 0.24);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  animation: placeholderFloat 2.8s ease-in-out infinite alternate;
}

.carousel-placeholder strong {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
}

.carousel-placeholder span:last-child {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.82);
}

/* Purple Gradient Overlay */
.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 28px 32px;
  background: var(--grad-image-overlay);
  color: var(--pure-white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.carousel-caption-content {
  max-width: 600px;
}

.carousel-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
}

.carousel-title {
  font-size: 1.6rem;
  color: var(--pure-white);
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-desc {
  font-size: 0.95rem;
  color: var(--purple-tint-100);
  line-height: 1.4;
}

.carousel-controls {
  display: flex;
  margin-top: 32px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.carousel-play-toggle {
  display: inline-flex;
  min-height: 54px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9999px;
  background: var(--grad-button);
  box-shadow: 0 12px 30px rgba(123, 44, 191, 0.3);
  color: var(--pure-white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.carousel-play-toggle:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}

.carousel-play-toggle:focus-visible {
  outline: 3px solid var(--accent-deep-purple);
  outline-offset: 4px;
}

.carousel-play-symbol {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
}

.carousel-assets-note {
  max-width: 640px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(123, 44, 191, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

/* Animated 20-photo collage */
.photo-animation-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.4vw, 28px);
}

.photo-animation-modal.is-open {
  display: flex;
}

.photo-animation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 8, 53, 0.48);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.photo-animation-dialog {
  position: relative;
  display: flex;
  width: min(100%, 1120px);
  height: min(86vh, 760px);
  height: min(86dvh, 760px);
  min-height: 300px;
  padding: clamp(14px, 2.4vw, 28px);
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 10%, rgba(216, 180, 248, 0.38), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(245, 230, 255, 0.96));
  box-shadow: 0 30px 90px rgba(22, 3, 43, 0.42);
  outline: none;
}

.photo-animation-header,
.photo-animation-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.photo-animation-eyebrow {
  margin: 0 0 4px;
  color: var(--purple-royal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-animation-header h2 {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.photo-animation-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(123, 44, 191, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--purple-royal);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.photo-animation-close:hover {
  transform: rotate(90deg);
  background: var(--purple-tint-50);
}

.photo-animation-close:focus-visible,
.photo-animation-motion-toggle:focus-visible {
  outline: 3px solid var(--accent-deep-purple);
  outline-offset: 3px;
}

.photo-animation-stage {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid rgba(123, 44, 191, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.82), transparent 58%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.78) 0 2px, transparent 4px),
    radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.72) 0 3px, transparent 5px),
    radial-gradient(circle at 72% 82%, rgba(123, 44, 191, 0.14), transparent 25%),
    linear-gradient(135deg, #ead8fb 0%, #f7edff 48%, #e4c9f8 100%);
}

.photo-animation-stage::before,
.photo-animation-stage::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.photo-animation-stage::before {
  top: 50%;
  left: 50%;
  width: min(56%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(123, 44, 191, 0.1);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.12),
    0 0 0 42px rgba(123, 44, 191, 0.035);
  transform: translate(-50%, -50%);
}

.photo-animation-stage::after {
  top: 12%;
  right: 7%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    -74vw 15vh 0 -2px rgba(255, 255, 255, 0.72),
    -18vw 54vh 0 -3px rgba(123, 44, 191, 0.24),
    -57vw 48vh 0 -1px rgba(255, 255, 255, 0.84);
}

.photo-animation-garden {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.photo-animation-tulip {
  position: absolute;
  width: clamp(44px, 7vw, 86px);
  height: auto;
  opacity: 0.38;
  filter: drop-shadow(0 8px 12px rgba(60, 9, 108, 0.16));
  transform-origin: 50% 90%;
  animation: floatingTulipSway 4.8s ease-in-out infinite;
}

.photo-animation-tulip-one {
  bottom: 1%;
  left: 3%;
  animation-delay: -1.6s;
}

.photo-animation-tulip-two {
  top: 2%;
  right: 3%;
  width: clamp(38px, 6vw, 70px);
  opacity: 0.3;
  animation-delay: -3.2s;
}

.photo-animation-tulip-three {
  right: 43%;
  bottom: -16%;
  width: clamp(50px, 8vw, 96px);
  opacity: 0.2;
  animation-delay: -0.8s;
}

.photo-animation-petal {
  position: absolute;
  top: -12%;
  left: var(--petal-left);
  width: clamp(9px, 1vw, 14px);
  height: clamp(13px, 1.4vw, 20px);
  border-radius: 82% 18% 72% 28%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(216, 180, 248, 0.92) 46%, rgba(123, 44, 191, 0.72));
  box-shadow: 0 3px 8px rgba(60, 9, 108, 0.15);
  opacity: 0;
  animation: photoAnimationPetalDrift var(--petal-duration) linear var(--petal-delay) infinite;
}

.photo-animation-petal:nth-of-type(1) { --petal-left: 7%; --petal-duration: 9s; --petal-delay: -5s; --petal-drift: 58px; --petal-spin: 480deg; }
.photo-animation-petal:nth-of-type(2) { --petal-left: 17%; --petal-duration: 11s; --petal-delay: -2s; --petal-drift: -42px; --petal-spin: -420deg; }
.photo-animation-petal:nth-of-type(3) { --petal-left: 28%; --petal-duration: 8s; --petal-delay: -6s; --petal-drift: 72px; --petal-spin: 540deg; }
.photo-animation-petal:nth-of-type(4) { --petal-left: 39%; --petal-duration: 10s; --petal-delay: -1s; --petal-drift: -55px; --petal-spin: -500deg; }
.photo-animation-petal:nth-of-type(5) { --petal-left: 51%; --petal-duration: 12s; --petal-delay: -8s; --petal-drift: 46px; --petal-spin: 460deg; }
.photo-animation-petal:nth-of-type(6) { --petal-left: 62%; --petal-duration: 9.5s; --petal-delay: -4s; --petal-drift: -68px; --petal-spin: -520deg; }
.photo-animation-petal:nth-of-type(7) { --petal-left: 73%; --petal-duration: 10.5s; --petal-delay: -7s; --petal-drift: 52px; --petal-spin: 500deg; }
.photo-animation-petal:nth-of-type(8) { --petal-left: 84%; --petal-duration: 8.5s; --petal-delay: -3s; --petal-drift: -48px; --petal-spin: -460deg; }
.photo-animation-petal:nth-of-type(9) { --petal-left: 94%; --petal-duration: 11.5s; --petal-delay: -9s; --petal-drift: 62px; --petal-spin: 520deg; }
.photo-animation-petal:nth-of-type(10) { --petal-left: 47%; --petal-duration: 13s; --petal-delay: -10s; --petal-drift: -60px; --petal-spin: -560deg; }

.photo-animation-item {
  position: absolute;
  z-index: 2;
  top: var(--photo-y);
  left: var(--photo-x);
  width: clamp(64px, var(--photo-size, 88px), 112px);
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(60, 9, 108, 0.24);
  animation: scatteredPhotoFloat 3.4s ease-in-out var(--float-delay, 0s) infinite;
  transform: translate(-50%, -50%) rotate(var(--photo-rotation, 0deg));
}

.photo-animation-item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.photo-animation-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #7b2cbf, #d8b4f8);
  color: #fff;
  font-size: clamp(0.55rem, 1.1vw, 0.8rem);
  font-weight: 700;
  text-align: center;
}

.photo-animation-item.is-missing .photo-animation-fallback {
  display: grid;
}

.photo-animation-stage.is-paused .photo-animation-item,
.photo-animation-stage.is-paused .photo-animation-tulip,
.photo-animation-stage.is-paused .photo-animation-petal {
  animation-play-state: paused;
}

.photo-animation-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.photo-animation-motion-toggle {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(123, 44, 191, 0.18);
  border-radius: 9999px;
  background: #fff;
  color: var(--purple-royal);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.photo-animation-motion-toggle:hover {
  background: var(--grad-button);
  color: #fff;
}

@keyframes scatteredPhotoFloat {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(var(--photo-rotation, 0deg));
  }
  50% {
    transform: translate(-50%, calc(-50% - 12px)) rotate(var(--photo-rotation, 0deg)) scale(1.05);
  }
}

@keyframes floatingTulipSway {
  0%, 100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-9px) rotate(6deg);
  }
}

@keyframes photoAnimationPetalDrift {
  0% {
    top: -12%;
    opacity: 0;
    transform: translateX(0) rotate(0deg) scale(0.8);
  }
  12%, 86% {
    opacity: 0.82;
  }
  100% {
    top: 112%;
    opacity: 0;
    transform: translateX(var(--petal-drift)) rotate(var(--petal-spin)) scale(1.05);
  }
}

@keyframes placeholderFloat {
  from {
    transform: translateY(5px) rotate(-4deg);
  }
  to {
    transform: translateY(-5px) rotate(4deg);
  }
}

/* --------------------------------------------------------------------------
   8. VIDEO SECTION (Soft Purple Gradient Container)
   -------------------------------------------------------------------------- */
.video-section {
  padding: 100px 0;
  background: var(--grad-section-alt);
  position: relative;
}

.video-container-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--pure-white);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: var(--border-glass-strong);
  position: relative;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #240046, #5A189A);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Placeholder / Fallback Canvas */
.video-placeholder-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: var(--pure-white);
  background: radial-gradient(circle at center, rgba(123, 44, 191, 0.6) 0%, rgba(36, 0, 70, 0.95) 100%);
}

.video-play-btn {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--grad-button);
  border: 3px solid var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  box-shadow: 0 10px 30px rgba(123, 44, 191, 0.5);
  transition: all var(--transition-normal);
}

.video-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(216, 180, 248, 0.75);
}

.video-placeholder-title {
  font-size: 1.8rem;
  color: var(--pure-white);
  margin-bottom: 8px;
}

.video-placeholder-desc {
  font-size: 1rem;
  color: var(--purple-tint-200);
  max-width: 500px;
}

.video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--bg-lavender-white);
  border-radius: 16px;
  border: 1px solid var(--purple-tint-200);
}

.video-quote {
  font-size: 0.95rem;
  color: var(--purple-royal);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-quote img, .video-quote svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   9. FAVORITE FOODS GALLERY
   -------------------------------------------------------------------------- */
.reasons-section {
  padding: 100px 0;
  background: var(--grad-section-light);
  position: relative;
}

.food-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(150px, 17vw, 220px));
  grid-template-areas:
    "macarons macarons mochi ramen"
    "macarons macarons cookies ramen"
    "fries cheesecake cheesecake ramen";
  gap: 18px;
}

.food-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: zoom-in;
}

.food-photo:focus-visible {
  outline: 3px solid var(--accent-deep-purple);
  outline-offset: 4px;
}

.food-photo--macarons {
  grid-area: macarons;
  border-radius: 40px 24px 64px 24px;
}

.food-photo--mochi {
  grid-area: mochi;
  border-radius: 50% 50% 24px 24px;
}

.food-photo--cookies {
  grid-area: cookies;
  border-radius: 24px 54px 24px 24px;
}

.food-photo--fries {
  grid-area: fries;
  border-radius: 54px 24px 24px 54px;
}

.food-photo--cheesecake {
  grid-area: cheesecake;
  border-radius: 24px 24px 54px 24px;
}

.food-photo--ramen {
  grid-area: ramen;
  border-radius: 48px 48px 24px 24px;
}

.food-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.food-photo--mochi > img {
  object-position: center 60%;
}

.food-photo:hover > img {
  transform: scale(1.06);
}

.food-photo:active > img {
  transform: scale(1.12);
}

.food-photo-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 48px 18px 18px;
  color: #fff;
  background: linear-gradient(transparent, rgba(38, 17, 54, 0.78));
}

.food-photo-icon {
  flex: 0 0 auto;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.food-photo-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(28, 10, 44, 0.55);
}

/* --------------------------------------------------------------------------
   10. OUR MEMORIES SECTION (Scrapbook Gallery & Polaroid Tilt)
   -------------------------------------------------------------------------- */
.memories-section {
  padding: 100px 0;
  background: var(--bg-lavender-white);
  position: relative;
}

.scrapbook-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 9999px;
  background: var(--pure-white);
  border: var(--border-glass-strong);
  color: var(--purple-rich);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--grad-button);
  color: var(--pure-white);
  border-color: transparent;
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* Polaroid Card Style */
.scrapbook-item {
  position: relative;
  transition: transform var(--transition-normal), z-index 0s;
}

.scrapbook-item:nth-child(3n+1) .polaroid-card {
  transform: rotate(-2deg);
}

.scrapbook-item:nth-child(3n+2) .polaroid-card {
  transform: rotate(1.8deg);
}

.scrapbook-item:nth-child(3n+3) .polaroid-card {
  transform: rotate(-1.5deg);
}

.scrapbook-item:hover {
  z-index: 10;
}

.scrapbook-item:hover .polaroid-card {
  transform: rotate(0) translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.polaroid-card {
  background: var(--pure-white);
  padding: 16px 16px 24px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(60, 9, 108, 0.12);
  border: 1px solid rgba(216, 180, 248, 0.35);
  transition: all var(--transition-normal);
  position: relative;
}

/* Decorative Washi Tape on top */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: rgba(216, 180, 248, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-left: 2px dashed rgba(255, 255, 255, 0.7);
  border-right: 2px dashed rgba(255, 255, 255, 0.7);
  opacity: 0.85;
  z-index: 4;
}

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--purple-tint-50);
  margin-bottom: 16px;
  cursor: pointer;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.polaroid-card:hover .polaroid-img-box img {
  transform: scale(1.05);
}

.polaroid-caption {
  text-align: center;
}

.polaroid-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--purple-royal);
  margin-bottom: 4px;
}

.polaroid-date {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--primary-lavender);
}

/* Tulip Sticker on polaroid */
.polaroid-sticker {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 24px;
  height: 24px;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   11. TIMELINE SECTION (Heart-Shaped Markers & Purple Line)
   -------------------------------------------------------------------------- */
.timeline-section {
  padding: 100px 0;
  background: var(--grad-section-light);
  position: relative;
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0;
}

/* Central Purple Line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--secondary-lilac) 0%, var(--primary-lavender) 40%, var(--accent-deep-purple) 80%, var(--purple-midnight) 100%);
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-node {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  width: 100%;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

/* Alternating Left and Right */
.timeline-node.left {
  justify-content: flex-start;
}

.timeline-node.right {
  justify-content: flex-end;
}

.timeline-card {
  width: 44%;
  background: var(--pure-white);
  border-radius: 20px;
  padding: 24px 28px;
  border: var(--border-glass-strong);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-lavender);
}

/* Heart-Shaped Timeline Marker */
.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-button);
  border: 3px solid var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  box-shadow: 0 4px 16px rgba(123, 44, 191, 0.35);
  z-index: 5;
  transition: transform var(--transition-normal);
}

.timeline-node:hover .timeline-marker {
  transform: translateX(-50%) scale(1.2);
  box-shadow: var(--glow-accent);
}

.timeline-marker svg {
  width: 20px;
  height: 20px;
}

.timeline-date {
  display: inline-block;
  padding: 4px 14px;
  background: var(--purple-tint-100);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep-purple);
  margin-bottom: 10px;
}

.timeline-title {
  font-size: 1.35rem;
  color: var(--purple-royal);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. LOVE LETTER SECTION (Lavender Envelope & Tulip Wax Seal)
   -------------------------------------------------------------------------- */
.letter-section {
  padding: 100px 0 120px 0;
  background: var(--grad-section-alt);
  position: relative;
}

.envelope-stage {
  max-width: 760px;
  margin: 0 auto;
  perspective: 1200px;
}

/* Envelope Container */
.envelope-box {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: linear-gradient(145deg, #FAF7FF 0%, #EDE9FE 100%);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(60, 9, 108, 0.18);
  border: 2px solid var(--secondary-lilac);
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: visible;
}

.envelope-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(123, 44, 191, 0.25);
}

/* Envelope Flap Accent */
.envelope-header-graphic {
  width: 120px;
  margin: 0 auto 20px auto;
  position: relative;
}

.envelope-seal-btn {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-normal);
  position: relative;
  display: block;
}

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

.envelope-seal-btn img {
  width: 100%;
  height: 100%;
}

.envelope-prompt {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--purple-royal);
  margin-bottom: 8px;
}

.envelope-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.envelope-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--grad-button);
  color: var(--pure-white);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.envelope-click-hint:hover {
  background: var(--grad-button-hover);
  box-shadow: var(--glow-purple);
}

/* Unfolded Letter Content (Toggled on click) */
.letter-paper {
  display: none;
  position: relative;
  background: #FCFAFF;
  border: 1.5px solid var(--secondary-lilac);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: 0 25px 60px rgba(60, 9, 108, 0.2);
  text-align: left;
  margin-top: 24px;
  background-image: radial-gradient(circle at 95% 5%, rgba(216, 180, 248, 0.2) 0%, transparent 40%),
                    radial-gradient(circle at 5% 95%, rgba(245, 217, 242, 0.25) 0%, transparent 40%);
  animation: unfoldLetter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.letter-paper.open {
  display: block;
}

/* Letterhead corner tulip flourishes */
.letter-paper .corner-tulip.top-left {
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
}

.letter-paper .corner-tulip.top-right {
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
}

.letter-greeting {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--accent-deep-purple);
  margin-bottom: 24px;
}

.letter-body {
  font-size: 1.12rem;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: justify;
}

.letter-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

.letter-signoff {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--purple-rich);
  text-align: right;
  margin-bottom: 30px;
}

.letter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.btn-seal-back {
  padding: 10px 24px;
  border-radius: 9999px;
  background: var(--purple-tint-100);
  border: 1px solid var(--primary-lavender);
  color: var(--purple-royal);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-seal-back:hover {
  background: var(--primary-lavender);
  color: var(--pure-white);
}

/* --------------------------------------------------------------------------
   13. FOOTER (Deep Purple Gradient & Bouquet Emblem)
   -------------------------------------------------------------------------- */
.footer-section {
  background: var(--grad-footer);
  color: var(--pure-white);
  padding: 80px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary-lilac), var(--primary-lavender), var(--soft-pink));
}

.footer-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-bouquet-emblem {
  width: 90px;
  height: auto;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-normal);
}

.footer-bouquet-emblem:hover {
  transform: scale(1.12) rotate(6deg);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--pure-white);
  margin-bottom: 8px;
}

.footer-quote {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--secondary-lilac);
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-nav a {
  color: var(--purple-tint-200);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--pure-white);
  text-decoration: underline;
}

.footer-divider {
  height: 1px;
  background: rgba(216, 180, 248, 0.25);
  margin: 28px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--secondary-lilac);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(216, 180, 248, 0.3);
  border-radius: 9999px;
  color: var(--pure-white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: var(--pure-white);
}

/* --------------------------------------------------------------------------
   14. LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 0, 70, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  background: var(--pure-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--primary-lavender);
}

.lightbox-modal.photo-lightbox .lightbox-content {
  animation: foodLightboxEnter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.lightbox-modal.photo-lightbox .lightbox-img {
  background: #fff;
  animation: foodImageSettle 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lightbox-caption {
  padding: 16px 24px;
  background: var(--pure-white);
  text-align: center;
}

.lightbox-caption h4 {
  color: var(--purple-royal);
  font-size: 1.25rem;
}

.lightbox-caption p {
  color: var(--primary-lavender);
  font-family: var(--font-script);
  font-size: 1.3rem;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--accent-deep-purple);
  transform: rotate(90deg);
}

@keyframes foodLightboxEnter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.82) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes foodImageSettle {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   15. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes gentleSway {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

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

@keyframes pulseBadge {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@keyframes unfoldLetter {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE DESIGN (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(250, 247, 255, 0.97);
    backdrop-filter: var(--blur-glass);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    border-bottom: var(--border-glass-strong);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li,
  .nav-link {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 8px 4px;
  }

  .mobile-toggle {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 44px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 800px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .hero-content {
    margin: 0 auto;
    max-width: 680px;
  }

  .hero-counter {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-bouquet-frame {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-card-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }

  .food-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, clamp(145px, 22vw, 200px));
    grid-template-areas:
      "macarons macarons ramen"
      "macarons macarons ramen"
      "mochi cookies ramen"
      "fries cheesecake cheesecake";
  }

  .scrapbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-marker {
    left: 30px;
  }

  .timeline-card {
    width: calc(100% - 70px);
    margin-left: 70px;
  }

  .timeline-node.left, .timeline-node.right {
    justify-content: flex-start;
  }

  .video-controls-bar {
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar {
    padding: 10px 0;
  }

  .navbar.scrolled {
    padding: 7px 0;
  }

  .nav-container {
    gap: 12px;
  }

  .nav-brand {
    font-size: 1.3rem;
    gap: 7px;
    white-space: nowrap;
  }

  .nav-brand .brand-tulip {
    width: 24px;
    height: 24px;
  }

  .nav-actions {
    gap: 8px;
  }

  .hero-section {
    min-height: auto;
    padding: 112px 0 64px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 6vw, 2.6rem);
  }

  .hero-title .script-accent {
    font-size: clamp(2.5rem, 8vw, 3.2rem);
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero-counter {
    padding: 16px;
  }

  .counter-units {
    gap: 8px;
  }

  .counter-num {
    font-size: 1.35rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-cta > a {
    justify-content: center;
  }

  .floating-tulip-badge {
    padding: 8px 12px;
  }

  .floating-tulip-badge span {
    font-size: 0.78rem;
  }

  .badge-top-right {
    right: 0;
  }

  .badge-bottom-left {
    left: 0;
  }

  .about-section,
  .carousel-section,
  .video-section,
  .reasons-section,
  .memories-section,
  .timeline-section {
    padding: 72px 0;
  }

  .letter-section {
    padding: 72px 0 84px;
  }

  .section-title {
    font-size: clamp(1.7rem, 5.5vw, 2.1rem);
  }

  .section-title::before,
  .section-title::after {
    width: 20px;
    height: 20px;
  }

  .section-title::before {
    margin-right: 8px;
  }

  .section-title::after {
    margin-left: 8px;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .profile-card-wrapper {
    max-width: 340px;
    padding: 16px;
  }

  .fav-things-grid {
    grid-template-columns: 1fr;
  }

  .scrapbook-grid {
    gap: 28px;
  }

  .carousel-track-container {
    min-height: 0;
    border-radius: 0;
  }

  .carousel-overlay {
    padding: 48px 20px 20px;
  }

  .carousel-date-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .carousel-title {
    font-size: 1.25rem;
  }

  .carousel-desc {
    font-size: 0.85rem;
  }

  .carousel-controls {
    margin-top: 20px;
  }

  .carousel-play-toggle {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.88rem;
  }

  .carousel-placeholder {
    padding: 18px;
  }

  .carousel-placeholder-mark {
    width: 74px;
  }

  .video-container-card {
    padding: 16px;
    border-radius: 24px;
  }

  .video-wrapper {
    border-radius: 16px;
  }

  .video-placeholder-content {
    padding: 20px;
  }

  .video-placeholder-title {
    font-size: 1.4rem;
  }

  .video-placeholder-desc {
    font-size: 0.88rem;
  }

  .video-controls-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .video-quote {
    font-size: 0.88rem;
  }

  .timeline-wrapper {
    padding: 12px 0;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-card {
    width: calc(100% - 52px);
    margin-left: 52px;
    padding: 20px;
  }

  .timeline-title {
    font-size: 1.2rem;
  }

  .envelope-box {
    min-height: 0;
    padding: 32px 22px;
  }

  .envelope-prompt {
    font-size: 1.55rem;
  }

  .letter-paper {
    padding: 42px 28px;
  }

  .letter-greeting {
    font-size: 2.2rem;
  }

  .letter-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .letter-signoff {
    font-size: 2rem;
  }

  .footer-section {
    padding: 64px 0 32px;
  }

  .footer-title {
    font-size: 1.7rem;
  }

  .footer-quote {
    font-size: 1.55rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .lightbox-modal {
    padding: 16px;
  }

  .lightbox-caption {
    padding: 14px 18px;
  }

  .lightbox-caption h4 {
    font-size: 1.1rem;
  }

  .lightbox-caption p {
    font-size: 1.15rem;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-brand {
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  .nav-actions {
    gap: 6px;
  }

  .music-widget {
    left: max(12px, env(safe-area-inset-left, 12px));
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  .music-toggle {
    min-height: 46px;
    padding: 10px 15px;
    font-size: 0.82rem;
  }

  .music-widget.collapsed .music-toggle {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 1.35rem;
  }

  .nav-menu {
    padding: 14px 20px 20px;
  }

  .hero-section {
    padding-top: 100px;
  }

  .hero-grid {
    gap: 16px;
  }

  .hero-bouquet-frame {
    max-width: 250px;
  }

  .hero-badge {
    border-radius: 18px;
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
  }

  .hero-title .script-accent {
    font-size: clamp(2.25rem, 10vw, 2.8rem);
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .counter-title {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }

  .counter-units {
    gap: 6px;
  }

  .counter-box {
    padding: 9px 2px;
  }

  .counter-num {
    font-size: 1.15rem;
  }

  .counter-label {
    font-size: 0.62rem;
  }

  .hero-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta > a {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .floating-tulip-badge {
    gap: 6px;
    padding: 7px 9px;
    border-radius: 12px;
  }

  .floating-tulip-badge span {
    font-size: 0.68rem;
  }

  .floating-tulip-badge svg,
  .floating-tulip-badge img {
    width: 18px;
    height: 18px;
  }

  .about-section,
  .carousel-section,
  .video-section,
  .reasons-section,
  .memories-section,
  .timeline-section {
    padding: 56px 0;
  }

  .letter-section {
    padding: 56px 0 68px;
  }

  .section-tag {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    padding: 6px 12px;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .section-title::before,
  .section-title::after {
    width: 16px;
    height: 16px;
  }

  .section-title::before {
    margin-right: 5px;
  }

  .section-title::after {
    margin-left: 5px;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .profile-card {
    padding: 14px;
    border-radius: 22px;
  }

  .profile-img-container {
    border-radius: 16px;
  }

  .corner-tulip {
    width: 52px;
    height: 52px;
  }

  .profile-name {
    font-size: 1.4rem;
  }

  .about-quote-box {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .fav-card {
    padding: 14px;
  }

  .scrapbook-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .food-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, clamp(140px, 44vw, 190px));
    gap: 12px;
    grid-template-areas:
      "macarons macarons"
      "mochi cookies"
      "mochi fries"
      "cheesecake cheesecake"
      "ramen ramen";
  }

  .food-photo {
    border-radius: 24px;
  }

  .food-photo-caption {
    gap: 7px;
    padding: 38px 12px 12px;
  }

  .food-photo-icon {
    font-size: 1.15rem;
  }

  .food-photo-name {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .scrapbook-filters {
    gap: 8px;
    margin-bottom: 36px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .carousel-track-container {
    min-height: 0;
    border-radius: 0;
  }

  .carousel-overlay {
    padding: 48px 14px 14px;
  }

  .carousel-title {
    font-size: 1.05rem;
  }

  .carousel-desc {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .carousel-date-badge {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .photo-animation-dialog {
    height: min(88vh, 760px);
    height: min(88dvh, 760px);
    padding: 12px;
    gap: 10px;
    border-radius: 20px;
  }

  .photo-animation-header {
    gap: 8px;
  }

  .photo-animation-eyebrow {
    font-size: 0.64rem;
  }

  .photo-animation-header h2 {
    font-size: 1.05rem;
  }

  .photo-animation-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .photo-animation-stage {
    border-radius: 16px;
  }

  .photo-animation-item {
    width: clamp(42px, var(--photo-size, 52px), 64px);
    padding: 3px;
    border-radius: 10px;
  }

  .photo-animation-item img,
  .photo-animation-fallback {
    border-radius: 7px;
  }

  .photo-animation-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .photo-animation-footer p {
    font-size: 0.78rem;
    text-align: center;
  }

  .photo-animation-motion-toggle {
    min-height: 38px;
  }

  .video-container-card {
    padding: 10px;
    border-radius: 20px;
  }

  .video-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .video-play-btn {
    left: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .video-play-btn svg {
    width: 26px;
    height: 26px;
  }

  .video-placeholder-content {
    padding: 14px;
  }

  .video-placeholder-title {
    font-size: 1.15rem;
  }

  .video-placeholder-desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .video-controls-bar > div:last-child {
    font-size: 0.8rem !important;
  }

  .letter-paper {
    padding: 36px 20px;
    border-radius: 16px;
  }

  .letter-greeting {
    font-size: 1.9rem;
  }

  .letter-paper .corner-tulip.top-left,
  .letter-paper .corner-tulip.top-right {
    width: 38px;
    height: 38px;
  }

  .letter-body {
    font-size: 0.95rem;
  }

  .letter-signoff {
    font-size: 1.7rem;
    text-align: center;
  }

  .letter-signoff span {
    font-size: 1.45rem !important;
  }

  .letter-actions {
    justify-content: center;
  }

  .btn-seal-back {
    width: 100%;
    padding: 10px 16px;
  }

  .footer-title {
    font-size: 1.45rem;
  }

  .footer-quote {
    font-size: 1.35rem;
  }

  .footer-nav {
    gap: 12px 18px;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }

  .back-to-top {
    justify-content: center;
  }

  .lightbox-content {
    width: 100%;
    max-height: 85vh;
    border-radius: 14px;
  }

  .lightbox-img {
    max-height: 62vh;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 380px) {
  .nav-brand {
    font-size: clamp(0.9rem, 4.2vw, 1rem);
  }

  .nav-brand .brand-tulip {
    width: 21px;
    height: 21px;
  }

  .nav-actions {
    gap: 4px;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .hero-counter {
    padding: 12px;
  }

  .counter-units {
    gap: 4px;
  }

  .counter-num {
    font-size: 1rem;
  }

  .counter-label {
    font-size: 0.55rem;
  }

  .carousel-desc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .food-photo > img,
  .food-photo:hover > img,
  .food-photo:active > img,
  .hero-bouquet-frame,
  .hero-bouquet-img,
  .lightbox-modal.photo-lightbox .lightbox-content,
  .lightbox-modal.photo-lightbox .lightbox-img,
  .carousel-slide,
  .carousel-slide img,
  .carousel-placeholder-mark,
  .photo-animation-item,
  .photo-animation-tulip,
  .photo-animation-petal {
    animation: none;
    transition: none;
    transform: none;
  }

  .carousel-track {
    animation: none;
    transform: translateX(-50%);
  }

  .photo-animation-petal {
    top: 25%;
    opacity: 0.55;
  }

  .welcome-screen {
    transition-duration: 0.2s;
  }

  .welcome-envelope-visual,
  .welcome-envelope-flap,
  .welcome-envelope-seal,
  .welcome-letter-preview {
    transition-duration: 0.2s;
  }

  body.home-revealing .navbar,
  body.home-revealing .hero-content > *,
  body.home-revealing .hero-visual,
  body.home-revealing .music-widget {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.7rem, 6vw, 2.6rem);
    line-height: 1.16;
  }

  .hero-title .script-accent {
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1.15;
  }

  .hero-desc,
  .section-subtitle {
    font-size: clamp(0.92rem, 1.4vw + 0.55rem, 1.08rem);
    line-height: 1.65;
  }

  .section-title {
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    line-height: 1.25;
  }

  .reason-title,
  .timeline-title,
  .profile-name {
    font-size: clamp(1.1rem, 1.1vw + 0.8rem, 1.3rem);
    line-height: 1.3;
  }

  .reason-text,
  .timeline-desc,
  .fav-card-info p,
  .about-quote-box,
  .carousel-desc,
  .video-quote {
    font-size: clamp(0.84rem, 0.7vw + 0.65rem, 0.95rem);
    line-height: 1.6;
  }

  .letter-body {
    font-size: clamp(0.9rem, 0.9vw + 0.65rem, 1.02rem);
    line-height: 1.75;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(1.65rem, 7.2vw, 1.95rem);
  }

  .hero-title .script-accent {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .section-title {
    font-size: clamp(1.3rem, 5.8vw, 1.55rem);
    line-height: 1.28;
  }

  .section-title::before,
  .section-title::after {
    width: 12px;
    height: 12px;
  }

  .section-title::before {
    margin-right: 3px;
  }

  .section-title::after {
    margin-left: 3px;
  }

  .section-tag {
    max-width: 100%;
    font-size: clamp(0.62rem, 2.5vw, 0.72rem);
    line-height: 1.4;
    white-space: normal;
  }

  .profile-tagline,
  .polaroid-date {
    font-size: clamp(1.05rem, 5vw, 1.25rem);
    line-height: 1.35;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body.home-revealing .navbar {
    animation: none;
  }

  .navbar.scrolled {
    backdrop-filter: none;
  }

  .nav-menu {
    position: fixed;
    top: auto;
    left: max(12px, env(safe-area-inset-left, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: auto;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    background: rgba(250, 247, 255, 0.96);
    backdrop-filter: var(--blur-glass);
    border: var(--border-glass-strong);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu li,
  .nav-menu .nav-link {
    width: auto;
    flex: 0 0 auto;
  }

  .nav-menu .nav-link {
    padding: 10px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .mobile-toggle {
    display: none;
  }

  .music-widget {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
