/* ── ROOT VARIABLES ─────────────────────────────────────── */
:root {
  --rose-deep:    #5C0A2F;
  --rose-dark:    #7A0F3E;
  --rose-mid:     #9C1550;
  --rose-bright:  #C2185B;
  --neon-hot:     #FF3D6E;
  --neon-pink:    #FF4081;
  --neon-soft:    #FF80AB;
  --neon-pale:    #FFB3C6;
  --white:        #FFFFFF;
  --text-soft:    #FFE4EE;
  --text-muted:   #F8BBD0;
  --glass-bg:     rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 160, 190, 0.28);
  --glass-hover:  rgba(255, 255, 255, 0.14);
  --card-shadow:  0 12px 48px rgba(0, 0, 0, 0.35);
  --glow-sm:      0 0 12px rgba(255, 64, 129, 0.5);
  --glow-md:      0 0 24px rgba(255, 64, 129, 0.6);
  --glow-lg:      0 0 50px rgba(255, 64, 129, 0.4);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    36px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--rose-deep);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  /* Rich layered gradient background */
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 64, 129, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(156, 21, 80, 0.18) 0%, transparent 60%),
    linear-gradient(160deg, #5C0A2F 0%, #7A0F3E 30%, #9C1550 60%, #6B0F3A 100%);
  background-attachment: fixed;
}

/* ── CANVAS ─────────────────────────────────────────────── */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* All page content above canvas */
.navbar, section, footer, .modal-overlay { position: relative; z-index: 2; }
.modal-overlay { z-index: 1000; }

/* ── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  background: var(--neon-soft);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 10px var(--neon-hot), 0 0 22px var(--neon-hot);
  mix-blend-mode: screen;
}
.cursor--hover {
  width: 28px;
  height: 28px;
  background: rgba(255, 128, 171, 0.4);
  box-shadow: 0 0 20px var(--neon-soft), 0 0 40px var(--neon-pink);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
}
.cursive {
  font-family: 'Dancing Script', cursive;
}

/* ── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
  padding: 14px 64px;
  background: rgba(92, 10, 47, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

.nav-logo svg {
  display: block;
  transition: transform 0.3s ease;
}
.nav-logo:hover svg { transform: rotate(20deg); }

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--neon-soft);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px var(--neon-soft);
}
.nav-links a:hover { color: var(--white); text-shadow: 0 0 16px var(--neon-soft); }
.nav-links a:hover::after { width: 100%; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm), 0 8px 30px rgba(0,0,0,0.25);
}
.btn-surprise {
  background: linear-gradient(135deg, var(--neon-hot), var(--rose-bright));
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 24px rgba(255, 61, 110, 0.55);
}
.btn-surprise:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 36px rgba(255, 61, 110, 0.75);
}

/* ── SECTION HEADERS (shared) ───────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-header.revealed { opacity: 1; transform: translateY(0); }

/* ── SECTION TAG ───────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-pale);
  border: 1px solid rgba(255, 179, 198, 0.4);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 40%, var(--neon-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  font-style: italic;
}

/* ── HERO SECTION ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 64px 80px;
  gap: 32px;
}

/* ── Hero Left ────────────────────────── */
.hero-left {
  animation: fadeSlideLeft 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Hero Eyebrow ───────────────────── */
.hero-eyebrow {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--neon-pale);
  margin-bottom: 10px;
  opacity: 0.85;
}
.hero-title {
  font-size: clamp(3.4rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 22px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--neon-soft), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 400px;
  margin-bottom: 44px;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* ── Hero Right ────────────────────────── */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeSlideRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Birthday Hanging Card ──────────────────────── */
.birthday-card {
  position: relative;
  z-index: 4;
  margin-bottom: -18px;
  animation: sway 5s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(2deg); }
}

.card-strings {
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
}
.string {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,160,190,0.0), rgba(255,160,190,0.55));
}

/* ── Birthday Content ───────────────────────── */
.birthday-content {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 160, 190, 0.38);
  border-radius: var(--radius-lg);
  padding: 26px 34px 28px;
  max-width: 320px;
  text-align: center;
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.18), var(--glow-sm);
}
.birthday-icons {
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: 0.3em;
}
.birthday-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, var(--neon-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.birthday-msg {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 22px;
}

/* ── Neon Hearts Container ──────────────────────── */
.neon-hearts-wrap {
  position: relative;
  width: 360px;
  height: 320px;
  flex-shrink: 0;
}

/* ── Neon Hearts ────────────────────────── */
.neon-heart {
  position: absolute;
  width: 300px;
  height: 270px;
}
.neon-heart--back {
  top: 20px;
  left: 10px;
  animation: heartPulseBack 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--neon-hot));
}
.neon-heart--front {
  top: 44px;
  left: 52px;
  animation: heartPulseFront 3.5s ease-in-out infinite 0.6s;
  filter: drop-shadow(0 0 6px var(--neon-soft));
}
/* ── Heart Pulse Animations ──────────────────────── */
@keyframes heartPulseBack {
  0%, 100% { filter: drop-shadow(0 0 8px var(--neon-hot)) drop-shadow(0 0 20px var(--neon-hot)); }
  50%       { filter: drop-shadow(0 0 20px var(--neon-hot)) drop-shadow(0 0 50px var(--neon-pink)) drop-shadow(0 0 80px var(--neon-soft)); }
}
/* ── Heart Pulse Front Animation ──────────────────────── */
@keyframes heartPulseFront {
  0%, 100% { filter: drop-shadow(0 0 6px var(--neon-soft)) drop-shadow(0 0 12px var(--neon-soft)); }
  50%       { filter: drop-shadow(0 0 16px var(--neon-soft)) drop-shadow(0 0 35px var(--neon-pale)); }
}

/* ── Floating Mini Hearts ────────────────────────── */
.mini-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mini-hearts span {
  position: absolute;
  font-size: 1.2rem;
  animation: miniFloat 3.5s ease-in-out infinite;
}
@keyframes miniFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50%       { transform: translateY(-10px) scale(1.15); opacity: 1; }
}

/* ── Our Story Section ───────────────────────── */
.story-section {
  padding: 120px 64px;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.08) 50%,
    rgba(0,0,0,0.18) 100%);
}

/* ── Timeline ───────────────────────── */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* Center line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255, 128, 171, 0.5) 8%,
    rgba(255, 128, 171, 0.5) 92%,
    transparent 100%);
}

/* ── Timeline Item ── */
.timeline-item {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:nth-child(odd)  { transition-delay: 0.05s; }
.timeline-item:nth-child(even) { transition-delay: 0.1s; }

/* Center dot */
.tl-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--neon-hot), var(--rose-bright));
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 0 6px rgba(156, 21, 80, 0.5), var(--glow-sm);
}
.tl-dot span {
  font-family: 'Dancing Script', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

/* ── Timeline Card ── */
.tl-card {
  width: 46%;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow), var(--glow-sm);
  border-color: rgba(255, 128, 171, 0.5);
}
.tl-left  { margin-right: calc(4% + 21px); }
.tl-right { margin-left:  calc(4% + 21px); }

.tl-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.tl-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.tl-card:hover .tl-img img { transform: scale(1.06); }

.tl-text {
  padding: 22px 26px 26px;
}
.tl-date {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-pale);
  display: block;
  margin-bottom: 8px;
}
.tl-text h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}
.tl-text p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── Image Placeholder (timeline + gallery) ── */
.img-ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px;
  z-index: -1;
}
.img-ph span { font-size: 2.4rem; }
.img-ph p    { font-size: 0.85rem; font-weight: 400; }
.img-ph small {
  font-size: 0.72rem;
  opacity: 0.6;
  font-family: monospace;
}

/* ════════════════════════════════════════════════════════════
   GALLERY SECTION
   ════════════════════════════════════════════════════════════ */
.gallery-section {
  padding: 120px 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.gallery-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.gallery-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--card-shadow), var(--glow-sm);
  border-color: rgba(255, 128, 171, 0.5);
}
/* Stagger gallery card reveals */
.gallery-card:nth-child(1)  { transition-delay: 0.02s; }
.gallery-card:nth-child(2)  { transition-delay: 0.04s; }
.gallery-card:nth-child(3)  { transition-delay: 0.06s; }
.gallery-card:nth-child(4)  { transition-delay: 0.08s; }
.gallery-card:nth-child(5)  { transition-delay: 0.10s; }
.gallery-card:nth-child(6)  { transition-delay: 0.12s; }
.gallery-card:nth-child(7)  { transition-delay: 0.14s; }
.gallery-card:nth-child(8)  { transition-delay: 0.16s; }
.gallery-card:nth-child(9)  { transition-delay: 0.18s; }
.gallery-card:nth-child(10) { transition-delay: 0.20s; }
.gallery-card:nth-child(n+11) { transition-delay: 0.22s; }

.gc-media {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gc-media img, .gc-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gc-media img,
.gallery-card:hover .gc-media video {
  transform: scale(1.08);
}

.gph {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 12px;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gph { transform: scale(1.06); }
.gph span { font-size: 2.2rem; }
.gph p    { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; }
.gph small { font-size: 0.68rem; opacity: 0.55; font-family: monospace; }

.video-ph span { font-size: 2.5rem; }

/* Video card slightly taller */
.video-card .gc-media { aspect-ratio: 16/10; }

.gc-caption {
  padding: 13px 16px 15px;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   LETTER SECTION
   ════════════════════════════════════════════════════════════ */
.letter-section {
  padding: 120px 64px;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.2) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative side flower columns */
.letter-decor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0.35;
  font-size: 1.8rem;
  animation: decorFloat 4s ease-in-out infinite;
}
.letter-decor--left  { left: 24px; }
.letter-decor--right { right: 24px; animation-direction: reverse; }
@keyframes decorFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-50%) translateX(4px); }
}

.letter-wrap {
  max-width: 700px;
  margin: 0 auto;
}

/* A4 portrait paper — scrollable content area */
.letter-paper {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 160, 190, 0.35);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--card-shadow),
    var(--glow-sm),
    inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  /* A4 proportion: 210 × 297mm ≈ 1:1.414 */
  min-height: 900px;
}

.letter-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Placeholder when no image is set */
.letter-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 900px;
  padding: 60px 40px;
}
.letter-ph-inner {
  text-align: center;
  color: var(--text-muted);
}
.letter-ph-icon { font-size: 5rem; margin-bottom: 24px; }
.letter-ph-inner h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 16px;
}
.letter-ph-inner p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.letter-ph-inner code {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--neon-pale);
  margin-bottom: 20px;
  border: 1px solid rgba(255,179,198,0.3);
}
.letter-ph-note {
  font-style: italic;
  font-size: 0.85rem !important;
  color: var(--neon-pale) !important;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 64px 40px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,160,190,0.15);
}
.footer-hearts {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  margin-bottom: 14px;
  animation: footerHeartBeat 2s ease-in-out infinite;
}
@keyframes footerHeartBeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}
.footer-main {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}
.footer-cursive {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--neon-pale);
  text-shadow: 0 0 20px rgba(255,128,171,0.5);
}

/* ════════════════════════════════════════════════════════════
   SURPRISE MODAL
   ════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: linear-gradient(145deg, rgba(122, 15, 62, 0.95), rgba(92, 10, 47, 0.98));
  border: 2px solid rgba(255, 128, 171, 0.45);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--glow-md);
  position: relative;
  transform: scale(0.88) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,160,190,0.3);
  color: var(--text-soft);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.modal-close:hover {
  background: rgba(255,64,129,0.3);
  transform: scale(1.1) rotate(90deg);
}

.modal-top {
  font-size: 1.6rem;
  letter-spacing: 0.5rem;
  margin-bottom: 18px;
}
.modal-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff, var(--neon-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-soft);
  text-align: left;
  border-top: 1px solid rgba(255,160,190,0.2);
  border-bottom: 1px solid rgba(255,160,190,0.2);
  padding: 24px 8px;
  margin-bottom: 22px;
}
.modal-footer {
  font-size: 1.4rem;
  letter-spacing: 0.4rem;
  opacity: 0.8;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLETS & MOBILES
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 40px 80px;
    text-align: center;
  }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons  { align-items: center; }
  .hero-right    { margin-top: 40px; }

  .timeline::before { left: 28px; }
  .tl-dot { left: 28px; top: 30px; transform: translate(-50%, 0); }
  .tl-card { width: calc(100% - 70px); margin-left: 70px !important; margin-right: 0 !important; }
  .tl-left, .tl-right { justify-content: flex-end; }

  .story-section, .gallery-section, .letter-section { padding: 80px 40px; }
  .navbar { padding: 18px 40px; }
  .navbar.scrolled { padding: 12px 40px; }
}

@media (max-width: 700px) {
  .hero { padding: 90px 24px 60px; }
  .hero-title { font-size: 3rem; }
  .story-section, .gallery-section, .letter-section { padding: 70px 24px; }
  .navbar { padding: 16px 24px; }
  .navbar.scrolled { padding: 10px 24px; }
  .nav-links { gap: 24px; }
  .neon-hearts-wrap { width: 280px; height: 260px; }
  .neon-heart { width: 230px; height: 207px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .modal-box { padding: 36px 28px; }
  .letter-decor { display: none; }
  .section-title { font-size: 2rem; }
}