@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Caveat:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --cream: #fff3f5;
  --paper: #fffafb;
  --pink-soft: #ffc3d6;
  --pink-mid: #ff8fab;
  --rose: #ff4d75;
  --red: #e0304a;
  --dark-red: #7a1130;
  --plum: #4a0e22;
  --gold: #ffd166;
  --shadow: rgba(122, 17, 48, 0.18);
  --tape: #ffe1ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, #ffe4ec 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, #ffd9e4 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, #ffe9ef 0%, transparent 50%),
    var(--cream);
  font-family: 'Nunito', sans-serif;
  color: var(--plum);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .display {
  font-family: 'Fredoka', sans-serif;
  color: var(--dark-red);
  margin: 0;
}

.script {
  font-family: 'Caveat', cursive;
}

a { text-decoration: none; color: inherit; }

/* ---------- Floating hearts background ---------- */
#heart-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-heart {
  position: absolute;
  bottom: -10%;
  opacity: 0.55;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 2px 4px rgba(122,17,48,0.15));
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-55vh) translateX(20px) rotate(15deg); }
  90% { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(-10px) rotate(-10deg); opacity: 0; }
}

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw;
  background: rgba(255, 250, 251, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--pink-mid);
}

.brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--dark-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand svg { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--dark-red);
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--rose);
  color: #fff;
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 6px 14px var(--shadow);
}

.nav-toggle { display: none; }

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 6vw 100px;
}

.tape {
  position: absolute;
  width: 90px;
  height: 30px;
  background: var(--tape);
  opacity: 0.85;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--red));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 26px var(--shadow);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--rose);
  color: var(--dark-red);
  box-shadow: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 26px var(--shadow);
  position: relative;
}

.polaroid {
  background: #fff;
  padding: 14px 14px 46px;
  border-radius: 6px;
  box-shadow: 0 10px 22px var(--shadow);
  transform: rotate(var(--r, -3deg));
  transition: transform 0.3s ease;
}

.polaroid:hover { transform: rotate(0deg) scale(1.04); }

.polaroid .frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.polaroid figcaption {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  text-align: center;
  color: var(--dark-red);
  margin-top: 10px;
}

/* ---------- Footer nav (prev/next) ---------- */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 70px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-nav a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px var(--shadow);
  transition: transform 0.25s ease;
}

.page-nav a:hover { transform: translateY(-3px); }

footer.site-footer {
  text-align: center;
  padding: 30px 20px 60px;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--dark-red);
  position: relative;
  z-index: 1;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Confetti / burst hearts ---------- */
.burst-heart {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  animation: burst 1.4s ease-out forwards;
}
@keyframes burst {
  to { transform: translateY(-160px) scale(1.4) rotate(30deg); opacity: 0; }
}

/* ---------- Wiggle ---------- */
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.wiggle { animation: wiggle 2.2s ease-in-out infinite; display: inline-block; }

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.pulse { animation: pulseHeart 1.6s ease-in-out infinite; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 64px;
    right: -100%;
    flex-direction: column;
    background: var(--paper);
    width: 70%;
    height: calc(100vh - 64px);
    padding: 24px;
    transition: right 0.35s ease;
    box-shadow: -6px 0 20px var(--shadow);
  }
  .nav-links.open { right: 0; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-red);
    cursor: pointer;
  }
  main { padding: 40px 6vw 80px; }
}
