/* ============================================
   Valentine Week — Shared Stylesheet
   A once-in-a-lifetime digital love letter.
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Quicksand:wght@300;400;500;600&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Soft romantic palette */
  --rose:        #c9768e;
  --rose-light:  #e8b4c0;
  --rose-dark:   #8e4460;
  --blush:       #f5e1e7;
  --cream:       #fdf6f0;
  --warm-white:  #fefcfa;
  --gold:        #c9a96e;
  --gold-light:  #e0cc9d;
  --burgundy:    #6b2742;
  --plum:        #4a1a3a;
  --charcoal:    #2d2226;
  --soft-black:  #1a1215;
  --lavender:    #d5c6e0;
  --dusty-mauve: #b5838d;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Quicksand', 'Segoe UI', sans-serif;
  --font-script:  'Dancing Script', cursive;

  /* Transitions */
  --ease-soft:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:  cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utility Classes ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.text-center  { text-align: center; }
.text-script  { font-family: var(--font-script); }
.text-serif   { font-family: var(--font-serif); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
}

.page-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--rose-dark);
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

.page-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--dusty-mauve);
  margin-bottom: 2rem;
}

.poetic-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.9;
  max-width: 650px;
  margin: 0 auto;
}

.letter-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  color: var(--charcoal);
  line-height: 2;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.signature {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--rose-dark);
  margin-top: 2rem;
}

/* ---------- Dividers ---------- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--rose-light);
  margin: 2rem auto;
  position: relative;
}
.divider::after {
  content: '♡';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream);
  padding: 0 0.8rem;
  color: var(--rose);
  font-size: 0.8rem;
}

/* ---------- Page Wrapper ---------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
}

/* ---------- Background Particles / Petals ---------- */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--rose-light);
  border-radius: 50% 0 50% 50%;
  opacity: 0.35;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.2s; }
.fade-in-delay-2 { transition-delay: 0.4s; }
.fade-in-delay-3 { transition-delay: 0.6s; }
.fade-in-delay-4 { transition-delay: 0.8s; }
.fade-in-delay-5 { transition-delay: 1.0s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease-soft);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(201, 118, 142, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 118, 142, 0.45);
}

.btn-outline {
  border: 1.5px solid var(--rose);
  color: var(--rose-dark);
}
.btn-outline:hover {
  background: var(--rose);
  color: #fff;
}

/* ---------- Card ---------- */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 180, 192, 0.3);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 650px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* ---------- Navigation ---------- */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(40, 20, 30, 0.95);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--rose-dark);
  padding: 0.7rem 1rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.2);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  color: rgba(232, 180, 192, 0.8);
  transition: all 0.3s var(--ease-soft);
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  text-align: center;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  box-shadow: 0 2px 15px rgba(201, 118, 142, 0.35);
}
.nav-link.locked {
  opacity: 0.55;
  color: rgba(232, 180, 192, 0.5);
  cursor: pointer;
  pointer-events: auto;
}
.nav-link.locked:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 180, 192, 0.7);
  box-shadow: none;
}
.nav-link .nav-countdown {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ---------- Locked Day Popup Modal ---------- */
.locked-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26, 18, 21, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.locked-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.locked-popup {
  background: linear-gradient(160deg, #2a1520, #3d1a2e, #4a1a3a);
  border: 1.5px solid rgba(232, 180, 192, 0.2);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s var(--ease-bounce), opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.locked-popup-overlay.show .locked-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.locked-popup .popup-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.locked-popup h3 {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--rose-light);
  margin-bottom: 0.6rem;
}

.locked-popup .popup-message {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(232, 180, 192, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.locked-popup .popup-countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.locked-popup .popup-cd-unit {
  text-align: center;
}
.locked-popup .popup-cd-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold-light);
  display: block;
  line-height: 1.2;
}
.locked-popup .popup-cd-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(232, 180, 192, 0.5);
}

.locked-popup .popup-close-btn {
  padding: 0.6rem 2rem;
  border-radius: 50px;
  border: 1.5px solid var(--rose);
  color: var(--rose-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s;
}
.locked-popup .popup-close-btn:hover {
  background: var(--rose);
  color: #fff;
}

/* ---------- Countdown / Lock Screen ---------- */
.lock-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cream), var(--blush));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  text-align: center;
}

.lock-screen .lock-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.lock-screen h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  color: var(--rose-dark);
  margin-bottom: 1rem;
}

.lock-screen p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--dusty-mauve);
  font-size: 1.25rem;
  max-width: 450px;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.countdown-unit {
  text-align: center;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 300;
  color: var(--rose-dark);
  display: block;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dusty-mauve);
}

/* ---------- Music Toggle ---------- */
.music-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  font-size: 1rem;
  transition: all 0.3s;
  color: var(--rose);
}
.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(201,118,142,0.2);
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 4rem 0;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s var(--ease-soft);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Special: Floating Hearts ---------- */
.floating-heart {
  position: fixed;
  color: var(--rose-light);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
  0%   { opacity: 0.7; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-200px) scale(0.3); }
}

/* ---------- Entry Gate Specific ---------- */
.gate-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--soft-black), var(--plum) 60%, var(--burgundy));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
  z-index: 2000;
  transition: opacity 1.2s var(--ease-soft), transform 1.2s var(--ease-soft);
}

.gate-overlay.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.gate-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: var(--rose-light);
  margin-bottom: 0.3em;
  text-shadow: 0 0 40px rgba(232, 180, 192, 0.3);
}

.gate-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: rgba(232, 180, 192, 0.6);
  margin-bottom: 2.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gate-input-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.gate-input {
  width: 280px;
  max-width: 80vw;
  padding: 0.9rem 1.5rem;
  border: 1.5px solid rgba(232, 180, 192, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--rose-light);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  text-align: center;
  outline: none;
  transition: all 0.4s;
}

.gate-input::placeholder {
  color: rgba(232, 180, 192, 0.35);
  font-style: italic;
}

.gate-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 30px rgba(201, 118, 142, 0.15);
}

.gate-btn {
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.4s;
  box-shadow: 0 4px 20px rgba(201, 118, 142, 0.25);
}

.gate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 118, 142, 0.4);
}

.gate-error {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(232, 180, 192, 0.7);
  font-size: 0.95rem;
  max-width: 350px;
  margin-top: 1.5rem;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 0.6s;
}
.gate-error.show { opacity: 1; }

/* Stars background for gate */
.stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(232, 180, 192, 0.5);
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.8; }
}

/* ---------- Day-specific Gradients ---------- */
.bg-rose       { background: linear-gradient(160deg, #fdf6f0, #f5e1e7, #fce4ec); }
.bg-propose    { background: linear-gradient(160deg, #fdf6f0, #e8d5e0, #f3e5f5); }
.bg-chocolate  { background: linear-gradient(160deg, #fdf6f0, #efe0d5, #f5e6d8); }
.bg-teddy      { background: linear-gradient(160deg, #fdf6f0, #e8e0d0, #faf3e8); }
.bg-promise    { background: linear-gradient(160deg, #fdf6f0, #d5dce8, #e8eef5); }
.bg-hug        { background: linear-gradient(160deg, #fdf6f0, #e0d8e8, #ede5f0); }
.bg-kiss       { background: linear-gradient(160deg, #fdf6f0, #e8d0d5, #f5e0e5); }
.bg-valentine  { background: linear-gradient(160deg, #1a1215, #3a1525, #4a1a3a); }

/* ---------- Progress Bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-light), var(--rose), var(--rose-dark));
  z-index: 300;
  transition: width 0.3s;
}

/* ---------- Interactive Elements ---------- */
.hover-glow {
  transition: all 0.4s var(--ease-soft);
}
.hover-glow:hover {
  filter: drop-shadow(0 0 20px rgba(201, 118, 142, 0.3));
  transform: scale(1.02);
}

/* ---------- Media Queries ---------- */
@media (max-width: 600px) {
  .card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .nav-bar {
    gap: 0.2rem;
    padding: 0.5rem 0.4rem;
  }

  .nav-link {
    font-size: 0.68rem;
    padding: 0.4rem 0.55rem;
    letter-spacing: 0.06em;
  }

  .page-wrapper {
    padding: 2rem 1rem 5rem;
  }

  .section { padding: 2.5rem 0; }
}

@media (max-width: 380px) {
  .nav-link { font-size: 0.6rem; padding: 0.35rem 0.45rem; letter-spacing: 0.04em; }
}

/* ---------- Page Transition ---------- */
.page-enter {
  animation: pageEnter 0.8s var(--ease-soft) forwards;
}

@keyframes pageEnter {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Typewriter Effect ---------- */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--rose);
  white-space: nowrap;
  animation: typing 3.5s steps(40) 1s forwards, blink 0.75s step-end infinite;
  width: 0;
  display: inline-block;
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ---------- Glowing Text ---------- */
.glow-text {
  text-shadow: 0 0 10px rgba(201, 118, 142, 0.3),
               0 0 20px rgba(201, 118, 142, 0.2),
               0 0 40px rgba(201, 118, 142, 0.1);
}

/* Valentine's Day special dark theme overrides */
.dark-theme {
  color: var(--rose-light);
}

.dark-theme .page-title {
  color: var(--rose-light);
}

.dark-theme .page-subtitle {
  color: var(--gold-light);
}

.dark-theme .poetic-text,
.dark-theme .letter-text {
  color: rgba(232, 180, 192, 0.85);
}

.dark-theme .divider {
  background: rgba(232, 180, 192, 0.2);
}
.dark-theme .divider::after {
  background: transparent;
  color: var(--gold);
}

.dark-theme .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 180, 192, 0.15);
}

/* ---------- Animations Library ---------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Rose Pop-up Button & Modal ---------- */
.rose-pop-trigger {
  position: fixed;
  bottom: 90px;
  right: 1.2rem;
  width: auto;
  height: auto;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 150;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(201, 118, 142, 0.5);
  transition: all 0.4s var(--ease-bounce);
  animation: roseBob 2.5s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.8rem 1.4rem;
  color: #fff;
}
.rose-pop-trigger .rose-btn-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.rose-pop-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 35px rgba(201, 118, 142, 0.6);
}
@keyframes roseBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.rose-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26, 18, 21, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.rose-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.rose-popup {
  position: relative;
  width: 260px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.3) rotate(-20deg);
  transition: transform 0.6s var(--ease-bounce), opacity 0.4s ease;
  opacity: 0;
}
.rose-popup-overlay.show .rose-popup {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Big animated rose */
.big-rose {
  position: relative;
  width: 160px;
  height: 160px;
}
.big-rose .big-petal {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
  animation: petalBloom 0.8s ease forwards;
}
.big-rose .big-petal:nth-child(1) {
  width: 60px; height: 75px;
  background: linear-gradient(135deg, #e85d8a, #f0a0b8);
  top: 10%; left: 50%; transform: translateX(-50%);
  animation-delay: 0.1s;
}
.big-rose .big-petal:nth-child(2) {
  width: 55px; height: 70px;
  background: linear-gradient(135deg, #e06888, #eeaac0);
  top: 18%; left: 18%;
  transform: rotate(-45deg);
  animation-delay: 0.2s;
}
.big-rose .big-petal:nth-child(3) {
  width: 55px; height: 70px;
  background: linear-gradient(135deg, #e06888, #eeaac0);
  top: 18%; right: 18%;
  transform: rotate(45deg);
  animation-delay: 0.3s;
}
.big-rose .big-petal:nth-child(4) {
  width: 50px; height: 65px;
  background: linear-gradient(135deg, #d4507a, #e89aae);
  top: 30%; left: 8%;
  transform: rotate(-75deg);
  animation-delay: 0.4s;
}
.big-rose .big-petal:nth-child(5) {
  width: 50px; height: 65px;
  background: linear-gradient(135deg, #d4507a, #e89aae);
  top: 30%; right: 8%;
  transform: rotate(75deg);
  animation-delay: 0.5s;
}
.big-rose .big-petal:nth-child(6) {
  width: 45px; height: 60px;
  background: linear-gradient(135deg, #c84070, #e08aa0);
  top: 42%; left: 50%; transform: translateX(-50%);
  animation-delay: 0.6s;
}
/* Center bud */
.big-rose .big-petal:nth-child(7) {
  width: 25px; height: 30px;
  background: radial-gradient(circle, #ff6b95, #d4507a);
  top: 28%; left: 50%; transform: translateX(-50%);
  border-radius: 50%;
  animation-delay: 0.7s;
}

@keyframes petalBloom {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.9; }
}

.big-rose .rose-stem-big {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 60px;
  background: linear-gradient(180deg, #5daa5d, #3d7a3d);
  border-radius: 3px;
  opacity: 0;
  animation: stemGrow 0.6s ease 0.8s forwards;
}
.big-rose .rose-stem-big::before {
  content: '';
  position: absolute;
  top: 15px; left: 5px;
  width: 25px; height: 16px;
  background: #5daa5d;
  border-radius: 0 80% 0 80%;
  transform: rotate(-15deg);
}

@keyframes stemGrow {
  from { opacity: 0; height: 0; }
  to   { opacity: 1; height: 60px; }
}

.rose-popup-text {
  font-family: var(--font-script);
  color: var(--rose-light);
  font-size: 1.6rem;
  margin-top: 70px;
  text-align: center;
  opacity: 0;
  animation: slideInUp 0.6s ease 1.2s forwards;
  text-shadow: 0 0 20px rgba(232, 180, 192, 0.4);
}

.rose-popup-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--rose-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}
.rose-popup-close:hover {
  background: var(--rose-light);
  transform: scale(1.1);
}

/* Bottom padding for nav */
body.has-nav {
  padding-bottom: 80px;
}

/* ---------- Day Popup Animations ---------- */

/* Propose Day — Letter unsealing */
.popup-letter-anim {
  position: relative;
  width: 140px;
  height: 120px;
  margin: 0 auto;
}
.popup-envelope {
  width: 140px;
  height: 90px;
  background: linear-gradient(135deg, #f5e1e7, #fdf6f0);
  border-radius: 4px;
  position: absolute;
  bottom: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
}
.popup-envelope::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-top: 50px solid #e8b4c0;
  z-index: 2;
  transform-origin: top center;
  animation: flapOpen 0.6s ease 0.3s forwards;
}
@keyframes flapOpen {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(180deg); opacity: 0.3; }
}
.popup-letter-paper {
  width: 100px;
  height: 70px;
  background: #fff;
  border-radius: 3px;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  animation: letterRise 0.8s ease 0.6s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
@keyframes letterRise {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-60px); }
}
.popup-letter-paper::after {
  content: '♡';
  font-size: 1.8rem;
  color: var(--rose);
  animation: breathe 2s ease-in-out infinite;
}
.popup-envelope-heart {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  z-index: 1;
}

/* Chocolate Day — Unwrapping */
.popup-choco-anim {
  position: relative;
  width: 120px;
  height: 140px;
  margin: 0 auto;
}
.popup-choco-wrapper {
  width: 120px;
  height: 140px;
  background: linear-gradient(135deg, #c4956a, #8b6342);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  animation: chocoUnwrap 1.2s ease 0.3s forwards;
  box-shadow: 0 6px 25px rgba(139, 99, 66, 0.3);
}
@keyframes chocoUnwrap {
  0% { border-radius: 12px; }
  40% { border-radius: 12px; transform: rotate(0deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(2deg); }
  100% { border-radius: 16px; transform: rotate(0deg); }
}
.popup-choco-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 150px;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.6), rgba(255, 215, 0, 0.3));
  border-radius: 12px;
  animation: foilPeel 0.8s ease 0.5s forwards;
}
@keyframes foilPeel {
  0% { opacity: 1; transform: translateX(-50%) rotate(0deg); }
  100% { opacity: 0; transform: translateX(-50%) translateX(80px) rotate(15deg); }
}
.popup-choco-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2.5rem;
  animation: chocoReveal 0.6s var(--ease-bounce) 1s forwards;
}
@keyframes chocoReveal {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.popup-choco-shine {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 160px;
  height: 180px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: chocoShine 2s ease 1.3s infinite;
}
@keyframes chocoShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Teddy Day — Bouncing teddy */
.popup-teddy-anim {
  position: relative;
  width: 100px;
  height: 120px;
  margin: 0 auto;
}
.popup-teddy-body {
  font-size: 5rem;
  animation: teddyBounce 0.6s var(--ease-bounce) 0.3s both;
}
@keyframes teddyBounce {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.popup-teddy-sparkles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.popup-teddy-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
}
.popup-teddy-sparkle:nth-child(1) { top: 5%; left: 10%; animation: sparkPop 0.4s ease 0.8s forwards; }
.popup-teddy-sparkle:nth-child(2) { top: 10%; right: 10%; animation: sparkPop 0.4s ease 0.9s forwards; }
.popup-teddy-sparkle:nth-child(3) { bottom: 20%; left: 5%; animation: sparkPop 0.4s ease 1s forwards; }
.popup-teddy-sparkle:nth-child(4) { bottom: 15%; right: 5%; animation: sparkPop 0.4s ease 1.1s forwards; }
.popup-teddy-sparkle:nth-child(5) { top: 0%; left: 50%; animation: sparkPop 0.4s ease 1.2s forwards; }
@keyframes sparkPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

/* Promise Day — Pinky swear with glow ring */
.popup-promise-anim {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-promise-emoji {
  font-size: 4.5rem;
  animation: promiseReveal 0.8s var(--ease-bounce) 0.3s both;
  position: relative;
  z-index: 2;
}
@keyframes promiseReveal {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.popup-promise-ring {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 2.5px solid var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: ringExpand 0.8s ease 0.8s forwards;
}
@keyframes ringExpand {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}
.popup-promise-ring:nth-child(2) { animation-delay: 1.2s; }
.popup-promise-ring:nth-child(3) { animation-delay: 1.6s; }

/* Hug Day — Arms wrapping */
.popup-hug-anim {
  position: relative;
  width: 150px;
  height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-hug-emoji {
  font-size: 4.5rem;
  animation: hugSquish 1s var(--ease-bounce) 0.3s both;
}
@keyframes hugSquish {
  0% { transform: scale(0); opacity: 0; }
  40% { transform: scale(1.3) rotate(-5deg); opacity: 1; }
  60% { transform: scale(0.9) rotate(3deg); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1) rotate(0deg); }
}
.popup-hug-warmth {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,184,214,0.4) 0%, transparent 70%);
  animation: warmthPulse 2s ease-in-out 0.8s infinite;
}
@keyframes warmthPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

/* Kiss Day — Lips with sparkle trail */
.popup-kiss-anim {
  position: relative;
  width: 140px;
  height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-kiss-emoji {
  font-size: 4.5rem;
  opacity: 0;
  animation: kissFloat 1s ease 0.3s forwards;
}
@keyframes kissFloat {
  0% { transform: translateY(30px) scale(0.5); opacity: 0; }
  60% { transform: translateY(-10px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.popup-kiss-sparkle {
  position: absolute;
  font-size: 0.8rem;
  opacity: 0;
  color: var(--rose-light);
}
.popup-kiss-sparkle:nth-child(2) { top: 10%; left: 15%; animation: kissSparkle 0.5s ease 0.8s forwards; }
.popup-kiss-sparkle:nth-child(3) { top: 5%; right: 20%; animation: kissSparkle 0.5s ease 1s forwards; }
.popup-kiss-sparkle:nth-child(4) { bottom: 25%; left: 10%; animation: kissSparkle 0.5s ease 1.2s forwards; }
.popup-kiss-sparkle:nth-child(5) { bottom: 20%; right: 15%; animation: kissSparkle 0.5s ease 1.4s forwards; }
.popup-kiss-sparkle:nth-child(6) { top: 20%; left: 50%; animation: kissSparkle 0.5s ease 0.9s forwards; }
@keyframes kissSparkle {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}
