/* ─── VARIABLES ─── */
:root {
  --pink-light: #FFF0F3;
  --pink-soft: #FDDDE6;
  --pink-medium: #F8A4B8;
  --pink-hot: #FF1493;
  --red-love: #DC143C;
  --red-deep: #C41E3A;
  --white: #FFFFFF;
  --gray-text: #6B5E62;
  --gray-dark: #3D3336;
  --gradient-cta: linear-gradient(135deg, #FF1493, #DC143C);
  --gradient-bg: linear-gradient(180deg, #FFF0F3 0%, #FFFFFF 50%, #FFF5F7 100%);
}

/* ─── RESET ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Lora', Georgia, serif;
  background: var(--white);
  color: var(--gray-dark);
}

::-webkit-scrollbar { display: none; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 20, 147, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand .heart-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(255, 20, 147, 0.3));
}

.navbar-brand span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--pink-hot);
  letter-spacing: -0.3px;
}

/* ─── MENU TOGGLE ─── */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 24px;
  height: 2.5px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  padding: 8px 16px 24px;
  transform: translateY(-110%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  display: block;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--gray-dark);
  padding: 16px 20px;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.mobile-menu a.active {
  color: var(--pink-hot);
  background: var(--pink-light);
}

.mobile-menu a:not(.active):hover {
  background: #FFF8FA;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 28px 60px;
  background: var(--gradient-bg);
  overflow: hidden;
  text-align: center;
}

/* ─── FLOATING HEARTS (shared) ─── */
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-hearts-bg {
  z-index: 0;
}

.floating-heart {
  position: absolute;
  opacity: 0;
  animation: floatHeart linear infinite;
}

@keyframes floatHeart {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.5);
  }
  10% { opacity: 0.15; }
  50% { opacity: 0.25; }
  90% { opacity: 0.1; }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(45deg) scale(1);
  }
}

/* ─── DECORATIVE HEARTS ─── */
.deco-heart {
  position: absolute;
  pointer-events: none;
}

.deco-heart-1 {
  top: 12%;
  left: 8%;
  width: 40px;
  height: 40px;
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

.deco-heart-2 {
  top: 18%;
  left: 30%;
  width: 24px;
  height: 24px;
  opacity: 0.12;
  animation: pulse 3.5s ease-in-out infinite 0.5s;
}

.deco-heart-3 {
  top: 10%;
  right: 8%;
  width: 32px;
  height: 32px;
  opacity: 0.18;
  animation: pulse 4s ease-in-out infinite 1s;
}

.deco-heart-4 {
  top: 55%;
  left: 25%;
  width: 20px;
  height: 20px;
  opacity: 0.1;
  animation: pulse 3.2s ease-in-out infinite 0.8s;
}

.deco-heart-5 {
  top: 52%;
  right: 20%;
  width: 28px;
  height: 28px;
  opacity: 0.14;
  animation: pulse 3.8s ease-in-out infinite 1.2s;
}

.deco-heart-6 {
  top: 30%;
  right: 5%;
  width: 18px;
  height: 18px;
  opacity: 0.1;
  animation: pulse 4.2s ease-in-out infinite 0.3s;
}

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

/* ─── HERO CONTENT ─── */
.hero-heart {
  width: 72px;
  height: 72px;
  margin-bottom: 32px;
  filter: drop-shadow(0 8px 24px rgba(220, 20, 60, 0.25));
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
  60% { transform: scale(1); }
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  max-width: 340px;
}

.hero-title .line-pink {
  color: var(--pink-hot);
}

.hero-title .line-red {
  color: var(--red-love);
}

.hero-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-text);
  max-width: 320px;
  margin-bottom: 48px;
}

/* ─── CTA BUTTON ─── */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background: var(--gradient-cta);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(255, 20, 147, 0.35), 0 2px 8px rgba(220, 20, 60, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(255, 20, 147, 0.3);
}

.cta-button:active::before {
  opacity: 1;
}

/* ═══════════════════════════════════ */
/* TIMER SECTION                       */
/* ═══════════════════════════════════ */
.timer-section {
  position: relative;
  padding: 80px 28px 90px;
  background: var(--gradient-bg);
  text-align: center;
  overflow: hidden;
}

.timer-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
}

.timer-icon svg {
  width: 100%;
  height: 100%;
}

.timer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  color: var(--gray-dark);
  margin-bottom: 12px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.timer-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 40px;
}

.timer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.timer-card {
  background: var(--pink-soft);
  border-radius: 20px;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.3s ease;
}

.timer-card:active {
  transform: scale(0.97);
}

.timer-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--red-love);
}

.timer-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-dark);
  opacity: 0.8;
}

/* ═══════════════════════════════════ */
/* REASONS SECTION                     */
/* ═══════════════════════════════════ */
.reasons-section {
  position: relative;
  padding: 80px 24px 60px;
  background: var(--gradient-bg);
  text-align: center;
  overflow: hidden;
}

.reasons-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.reasons-icon svg {
  width: 100%;
  height: 100%;
}

.reasons-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  color: var(--gray-dark);
  margin-bottom: 36px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.reason-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reason-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.reason-heart {
  width: 28px;
  height: 28px;
  min-width: 28px;
  filter: drop-shadow(0 2px 6px rgba(255, 20, 147, 0.25));
}

.reason-card span {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-dark);
}

/* ═══════════════════════════════════ */
/* FOOTER                              */
/* ═══════════════════════════════════ */
.love-footer {
  position: relative;
  padding: 24px 24px 32px;
  background: linear-gradient(135deg, #DC143C 0%, #FF1493 35%, #FF6B9D 65%, #E8436D 100%);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Small decorative background hearts */
.footer-deco-heart {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: footerHeartFloat 4s ease-in-out infinite;
}

@keyframes footerHeartFloat {
  0%, 100% { opacity: 0.08; transform: scale(1) translateY(0); }
  50% { opacity: 0.15; transform: scale(1.1) translateY(-8px); }
}

.fh-1 { width: 28px; top: 8%;  left: 6%;  animation-delay: 0s; }
.fh-2 { width: 20px; top: 15%; right: 10%; animation-delay: 0.6s; }
.fh-3 { width: 36px; top: 35%; left: 3%;  animation-delay: 1.2s; }
.fh-4 { width: 22px; top: 60%; right: 5%;  animation-delay: 0.3s; }
.fh-5 { width: 16px; top: 75%; left: 12%; animation-delay: 1.8s; }
.fh-6 { width: 32px; top: 85%; right: 8%;  animation-delay: 0.9s; }
.fh-7 { width: 18px; top: 25%; right: 22%; animation-delay: 1.5s; }
.fh-8 { width: 24px; top: 50%; left: 8%;  animation-delay: 2.1s; }

/* Large central heart container */
.footer-big-heart {
  position: relative;
  z-index: 1;
  width: 340px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-heart-bg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
}

.footer-heart-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.footer-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  color: var(--white);
  max-width: 280px;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--white);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.footer-cta:active {
  transform: scale(0.96);
}

.footer-cta span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--pink-hot);
}

.footer-cta-heart {
  width: 20px;
  height: 20px;
  animation: heartbeat 2s ease-in-out infinite;
}

/* ═══════════════════════════════════ */
/* VALENTINE REVEAL OVERLAY            */
/* ═══════════════════════════════════ */
.valentine-reveal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #DC143C 0%, #FF1493 35%, #FF6B9D 65%, #E8436D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.valentine-reveal.visible {
  opacity: 1;
}

.reveal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
}

.reveal-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.25;
  color: white;
  max-width: 320px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealFadeUp 0.8s ease 0.3s forwards;
}

.reveal-heart {
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
  opacity: 0;
  animation: revealHeartAppear 0.6s ease 0.6s forwards, revealHeartPulse 1.5s ease-in-out 1.2s infinite;
}

.reveal-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--pink-soft);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(15px);
  animation: revealFadeUp 0.8s ease 1s forwards;
}

@keyframes revealFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealHeartAppear {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealHeartPulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

/* ─── PAGE SECTIONS (Our Story, Memories) ─── */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* ═══════════════════════════════════ */
/* OUR STORY - HEADER                  */
/* ═══════════════════════════════════ */
.story-header {
  position: relative;
  padding: 100px 28px 40px;
  background: var(--pink-light);
  text-align: center;
  overflow: hidden;
}

.story-book-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: block;
}

.story-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
  color: var(--pink-hot);
  margin-bottom: 12px;
}

.story-main-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* ═══════════════════════════════════ */
/* OUR STORY - TIMELINE                */
/* ═══════════════════════════════════ */
.timeline-section {
  position: relative;
  padding: 40px 20px 40px 20px;
  background: var(--pink-light);
  overflow: hidden;
}

#page-story {
  background: var(--pink-light);
  padding-bottom: 40px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pink-hot), var(--pink-medium));
  border-radius: 2px;
}

/* Timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 36px;
}

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

/* Circle icon on the line */
.timeline-icon {
  position: absolute;
  left: -28px;
  top: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 20, 147, 0.35);
  z-index: 2;
}

.timeline-icon svg {
  width: 22px;
  height: 22px;
}

/* Card */
.timeline-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-left: 3px solid var(--pink-hot);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.timeline-date span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--pink-hot);
}

.timeline-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  color: var(--gray-dark);
  margin-bottom: 12px;
}

.timeline-card-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-text);
}

/* ═══════════════════════════════════ */
/* OUR STORY - ENDING                  */
/* ═══════════════════════════════════ */
.story-ending {
  position: relative;
  padding: 60px 28px 80px;
  margin: 0 20px;
  background: var(--pink-soft);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.story-ending-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  color: var(--gray-dark);
  margin-bottom: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.story-ending-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-text);
  max-width: 320px;
  margin: 0 auto;
}

/* ═══════════════════════════════════ */
/* MEMORIES PAGE                       */
/* ═══════════════════════════════════ */
.memories-header {
  position: relative;
  padding: 100px 28px 40px;
  background: var(--pink-light);
  text-align: center;
  overflow: hidden;
}

.memories-cam-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: block;
}

.memories-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 38px;
  color: var(--pink-hot);
  margin-bottom: 12px;
}

.memories-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* Gallery */
.memories-gallery {
  position: relative;
  padding: 40px 24px;
  background: var(--pink-light);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}

.memory-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
  background: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.memory-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.memory-card:active {
  transform: scale(0.98);
}

.memory-img {
  width: 100%;
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.memory-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px 20px 0 0;
}

.memory-info {
  padding: 20px;
  display: none;
}

.memory-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--pink-hot);
  margin-bottom: 6px;
}

.memory-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.memory-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-text);
}

/* Quote section */
.memories-quote-section {
  position: relative;
  padding: 48px 28px 60px;
  margin: 0 24px;
  background: var(--pink-light);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Wrap bottom of memories page in pink-light */
#page-memories {
  background: var(--pink-light);
  padding-bottom: 40px;
}

.memories-quote-heart {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 20, 147, 0.3));
}

.memories-quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--gray-dark);
  max-width: 300px;
  margin: 0 auto;
}

/* Add Memory Button */
.add-memory-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px;
  background: var(--gradient-cta);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 8px 32px rgba(255, 20, 147, 0.35);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.add-memory-btn:active {
  transform: scale(0.97);
}

.add-memory-btn svg {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════ */
/* ADD MEMORY MODAL                    */
/* ═══════════════════════════════════ */
.add-memory-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.add-memory-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.add-memory-sheet {
  width: 100%;
  max-height: 92vh;
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 24px 24px 40px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-memory-modal.open .add-memory-sheet {
  transform: translateY(0);
}

.add-memory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.add-memory-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--gray-dark);
}

.add-memory-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
}

.add-memory-close svg {
  width: 18px;
  height: 18px;
}

/* Photo upload area */
.add-memory-upload {
  width: 100%;
  height: 200px;
  border-radius: 18px;
  border: 2px dashed var(--pink-soft);
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.add-memory-upload:active {
  border-color: var(--pink-hot);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-placeholder span {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--pink-hot);
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Form fields */
.add-memory-field {
  margin-bottom: 16px;
}

.add-memory-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-memory-field input,
.add-memory-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--pink-soft);
  border-radius: 14px;
  background: var(--pink-light);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: var(--gray-dark);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.add-memory-field input:focus,
.add-memory-field textarea:focus {
  border-color: var(--pink-hot);
  box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.1);
}

.add-memory-field textarea {
  resize: none;
  line-height: 1.5;
}

/* Save button */
.add-memory-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: var(--gradient-cta);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 8px 32px rgba(255, 20, 147, 0.35);
  transition: all 0.3s ease;
}

.add-memory-save:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════ */
/* MEMORY FULLSCREEN MODAL             */
/* ═══════════════════════════════════ */
.memory-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.memory-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.memory-modal-img {
  width: 100%;
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.memory-modal-close {
  position: absolute;
  top: 56px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.memory-modal-close svg {
  width: 20px;
  height: 20px;
}

.memory-modal-content {
  padding: 28px 24px 40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 30%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.memory-modal-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #FF6B9D;
  margin-bottom: 8px;
}

.memory-modal-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 28px;
  color: white;
  margin-bottom: 10px;
}

.memory-modal-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* ─── ENTRANCE ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-up-delay-1 { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.3s; }
.fade-up-delay-3 { animation-delay: 0.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── IPHONE SAFE AREAS ─── */
@supports (padding: max(0px)) {
  .navbar { padding-top: max(16px, env(safe-area-inset-top)); }
  .love-footer { padding-bottom: max(32px, calc(32px + env(safe-area-inset-bottom))); }
}