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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0a0005;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #f5e6d8;
}

/* ── Particle Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Hearts Layer ── */
#hearts-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -60px;
  font-size: 1.2rem;
  opacity: 0;
  animation: floatUp linear forwards;
  color: rgba(220, 80, 100, 0.55);
  filter: blur(0.3px);
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.6) rotate(-10deg); opacity: 0; }
  15%  { opacity: 0.7; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(1.1) rotate(15deg); opacity: 0; }
}

/* ── Stage ── */
#stage {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Scenes ── */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene.active {
  opacity: 1;
  pointer-events: all;
}

.scene-inner {
  text-align: center;
  padding: 2rem 2.5rem;
  max-width: 720px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* ── Background gradient per scene ── */
#scene-1  { background: radial-gradient(ellipse at 50% 60%, #2a0a1a 0%, #0a0005 70%); }
#scene-2  { background: radial-gradient(ellipse at 40% 50%, #1a0a20 0%, #080010 70%); }
#scene-3  { background: radial-gradient(ellipse at 60% 45%, #200a10 0%, #0a0005 70%); }
#scene-4  { background: radial-gradient(ellipse at 50% 55%, #2a0510 0%, #0a0005 70%); }

/* ── Typography ── */
.label {
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(220, 160, 140, 0.6);
}

.name-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 400;
  color: #f0c8b0;
  text-shadow:
    0 0 40px rgba(220, 100, 80, 0.5),
    0 0 80px rgba(200, 60, 60, 0.25);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.ellipsis {
  color: rgba(220, 140, 120, 0.7);
}

.subtitle {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 300;
  color: rgba(245, 220, 200, 0.85);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.subtitle.italic { font-style: italic; color: rgba(240, 200, 180, 0.7); }

.body-text {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: rgba(245, 225, 210, 0.88);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.body-text.italic { font-style: italic; color: rgba(240, 195, 175, 0.75); }
.body-text.bold   { font-weight: 400; color: #f0d0b8; font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.4rem); }

.heart-icon {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #c8405a;
  text-shadow: 0 0 20px rgba(200, 64, 90, 0.6);
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.18); }
  60%       { transform: scale(1.05); }
}

.rose {
  font-size: clamp(2.5rem, 6vw, 4rem);
  filter: drop-shadow(0 0 18px rgba(200, 50, 70, 0.5));
  animation: roseFloat 3s ease-in-out infinite;
}

@keyframes roseFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-10px) rotate(3deg); }
}

.closing {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 400;
  color: #f0c0a8;
  text-shadow:
    0 0 30px rgba(220, 80, 80, 0.55),
    0 0 70px rgba(200, 50, 60, 0.3);
  line-height: 1.2;
}

.closing-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(240, 200, 180, 0.8);
  letter-spacing: 0.08em;
}

.forever-hearts {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.forever-hearts span {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #c8405a;
  text-shadow: 0 0 15px rgba(200, 64, 90, 0.7);
  animation: heartbeat 2s ease-in-out infinite;
}

.forever-hearts span:nth-child(2) { animation-delay: 0.3s; }
.forever-hearts span:nth-child(3) { animation-delay: 0.6s; }

/* ── Fade-up animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.scene.active .fade-up          { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.scene.active .fade-up.delay-1  { transition-delay: 0.7s; }
.scene.active .fade-up.delay-2  { transition-delay: 1.1s; }
.scene.active .fade-up.delay-3  { transition-delay: 1.5s; }
.scene.active .fade-up.delay-4  { transition-delay: 1.9s; }
.scene.active .fade-up.delay-5  { transition-delay: 2.3s; }

/* ── Nav Dots ── */
#nav-dots {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.7rem;
  z-index: 10;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(240, 180, 160, 0.3);
  cursor: pointer;
  transition: background 0.4s, transform 0.4s;
}

.dot.active {
  background: rgba(220, 120, 100, 0.9);
  transform: scale(1.4);
}

/* ── Next Button ── */
#next-btn {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 10;
  background: rgba(180, 60, 80, 0.18);
  border: 1px solid rgba(220, 120, 100, 0.35);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, opacity 0.5s;
  color: rgba(240, 190, 170, 0.85);
}

#next-btn svg { width: 20px; height: 20px; }

#next-btn:hover {
  background: rgba(200, 70, 90, 0.35);
  transform: scale(1.1);
}

#next-btn.hidden { opacity: 0; pointer-events: none; }

/* ── Divider line ── */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 140, 120, 0.5), transparent);
  margin: 0.3rem auto;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .scene-inner { gap: 0.7rem; padding: 1.5rem 1.2rem; }
  #next-btn { bottom: 4.5rem; right: 1.5rem; }
}