:root {
  --blush: #F2A7BB;
  --petal: #FFC0CB;
  --mist: #FFF0F5;
  --cream: #FFFAF7;
  --rose-gold: #C9848E;
  --mauve: #9B6B78;
  --ink: #3A2328;
  --soft-ink: #6B4550;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  overflow-x: hidden;
}

/* ─── FLOATING PETALS ─── */
.petals-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ─── WELCOME SECTION ─── */
#welcome {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ffe0e0 0%, #fffafa 100%);
  text-align: center;
}

.welcome-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.welcome-deco::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,192,203,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.welcome-deco::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,167,187,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.welcome-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 680px;
}

.heart-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.22); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.15); }
  70%       { transform: scale(1); }
}

.welcome-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--rose-gold);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.3s forwards;
}

.welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 1.2s ease 0.7s forwards;
}
.welcome-title em {
  font-style: italic;
  color: var(--mauve);
}

.welcome-sub {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--soft-ink);
  font-style: italic;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.1s forwards;
}

.btn-start {
  margin-top: 2.8rem;
  padding: 0.9rem 2.6rem;
  background: linear-gradient(135deg, var(--petal), var(--blush));
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(201,132,142,0.35);
  animation: pulse-btn 2s ease-in-out infinite, fadeUp 1s ease 1.5s both;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-start:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(201,132,142,0.5);
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 4px 24px rgba(201,132,142,0.35), 0 0 0 0 rgba(255,192,203,0.5); }
  50%       { box-shadow: 0 4px 24px rgba(201,132,142,0.35), 0 0 0 14px rgba(255,192,203,0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SCROLL HINT ─── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeUp 1s ease 2s forwards;
}
.scroll-hint span { font-size: 0.75rem; color: var(--rose-gold); letter-spacing: 0.08em; }
.scroll-hint .arrow { width: 20px; height: 20px; border-right: 2px solid var(--blush); border-bottom: 2px solid var(--blush); transform: rotate(45deg); animation: bounce 1.5s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }

/* ─── DIVIDER ─── */
.section-divider {
  text-align: center;
  padding: 3rem 1rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--rose-gold);
  letter-spacing: 0.05em;
}
.divider-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 0.5rem auto 2.5rem;
  max-width: 400px;
}
.divider-line::before, .divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blush), transparent);
}
.divider-line .diamond { color: var(--blush); font-size: 1rem; }

/* ─── TIMELINE SECTION ─── */
#timeline {
  position: relative;
  padding: 2rem 1rem 5rem;
  background: linear-gradient(180deg, var(--cream) 0%, #FFF4F7 100%);
  z-index: 1;
}

.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--petal), var(--blush), var(--mauve));
  transform: translateX(-50%);
}
@media (max-width: 620px) {
  .timeline-line { left: 20px; }
}

.timeline-item {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-card {
  width: calc(50% - 40px);
  background: white;
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 6px 32px rgba(201,132,142,0.12);
  border: 1px solid rgba(255,192,203,0.3);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,132,142,0.22);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.6rem;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: white;
  border: 3px solid var(--blush);
  border-radius: 50%;
  z-index: 2;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--blush);
  border-radius: 50%;
}

.tl-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rose-gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.tl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.tl-desc {
  font-size: 0.9rem;
  color: var(--soft-ink);
  line-height: 1.7;
}
.tl-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.tl-photo {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFE4EC, #FFF0F5);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 1.5px dashed var(--petal);
  overflow: hidden;
}
.tl-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

@media (max-width: 620px) {
  .timeline-item { flex-direction: column !important; padding-left: 50px; }
  .timeline-card { width: 100%; }
  .timeline-dot  { left: 20px; }
}

/* ─── LETTER & CLOCK SECTION ─── */
#letter {
  position: relative;
  background: linear-gradient(160deg, #FFF4F7, var(--cream) 60%, #FFF0F5);
  padding: 5rem 1rem 6rem;
  z-index: 1;
}

.clock-wrap {
  text-align: center;
  margin-bottom: 4rem;
}
.clock-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-gold);
  margin-bottom: 1.4rem;
}
.clock-display {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clock-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--mauve);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.clock-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rose-gold);
  margin-top: 0.3rem;
}
.clock-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--petal);
  align-self: flex-start;
  margin-top: 0.1rem;
  line-height: 1.2;
}

.letter-card {
  max-width: 620px;
  margin: 0 auto;
  background: #FFFDF9;
  border-radius: 24px;
  padding: 3rem 3.5rem;
  box-shadow: 0 8px 48px rgba(201,132,142,0.14), inset 0 0 60px rgba(255,192,203,0.04);
  border: 1px solid rgba(255,192,203,0.25);
  position: relative;
}
.letter-card::before {
  content: '❝';
  position: absolute;
  top: 1.2rem; left: 1.8rem;
  font-size: 3rem;
  color: rgba(255,192,203,0.45);
  font-family: Georgia, serif;
  line-height: 1;
}
.letter-text {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--soft-ink);
  line-height: 1.9;
  position: relative;
  z-index: 1;
}
.letter-text p { margin-bottom: 1rem; }
.letter-sig {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--mauve);
  text-align: right;
  margin-top: 1.5rem;
}

.music-bar {
  max-width: 620px;
  margin: 1.8rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: 50px;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 4px 20px rgba(201,132,142,0.12);
  border: 1px solid rgba(255,192,203,0.2);
}
.music-icon { font-size: 1.4rem; cursor: pointer; transition: transform 0.2s; }
.music-icon:hover { transform: scale(1.15); }
.music-info { flex: 1; }
.music-title { font-size: 0.82rem; color: var(--ink); font-family: 'Lora', serif; }
.music-sub   { font-size: 0.72rem; color: var(--rose-gold); font-style: italic; }
.music-wave  {
  display: flex; gap: 3px; align-items: flex-end; height: 20px;
}
.music-wave span {
  display: block;
  width: 3px;
  background: var(--blush);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}
.music-wave span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.music-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.music-wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.music-wave span:nth-child(4) { height: 18px; animation-delay: 0.15s; }
.music-wave span:nth-child(5) { height: 10px; animation-delay: 0.05s; }
@keyframes wave {
  0%,100% { transform: scaleY(1);   }
  50%      { transform: scaleY(0.4); }
}
.music-wave.paused span { animation-play-state: paused; }

footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--rose-gold);
  background: var(--cream);
  z-index: 1;
  position: relative;
}
footer .heart-footer { animation: heartbeat 1.4s ease-in-out infinite; display: inline-block; }