:root {
  --rosa: #ff6b9d;
  --rosa-claro: #ffd1dc;
  --vinho: #c9184a;
  --creme: #fff5f7;
  --escuro: #3d1a26;
  --sombra: rgba(201, 24, 74, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", sans-serif;
  color: var(--escuro);
  background: var(--creme);
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ---------- INTRO ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ff9a9e 100%);
  text-align: center;
  overflow: hidden;
}

.intro-content { position: relative; z-index: 2; padding: 20px; }

.intro-heart { font-size: 5rem; animation: beat 1.4s infinite; }

.intro-title {
  font-family: "Dancing Script", cursive;
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  margin: 10px 0;
}

.intro-sub { color: #fff; font-weight: 300; margin-bottom: 30px; font-size: 1.1rem; }

.start-btn {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: var(--vinho);
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 24, 74, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.start-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(201, 24, 74, 0.4); }

/* ---------- CORAÇÕES FLUTUANTES ---------- */
.floating-hearts { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floating-hearts span {
  position: absolute;
  bottom: -40px;
  font-size: 1.5rem;
  animation: floatUp linear forwards;
  opacity: 0.8;
}

@keyframes floatUp {
  to { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  40% { transform: scale(0.95); }
}

/* ---------- LETRA NO FUNDO ---------- */
.lyrics-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lyrics-inner {
  position: absolute;
  right: 4vw;
  width: min(880px, 60vw);
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.5;
  text-align: right;
  color: var(--vinho);
  opacity: 0.13;
  white-space: pre-wrap;
  will-change: top;
}
.lyrics-caret {
  animation: caretBlink 1s steps(1) infinite;
  font-weight: 400;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* o conteúdo fica acima da letra do fundo */
.hero, .timeline-section, .gallery-section, .final, .site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- MUSIC TOGGLE ---------- */
.music-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--rosa);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--sombra);
  transition: transform 0.2s;
}
.music-toggle:hover { transform: scale(1.1); }
.music-toggle .music-icon { display: inline-block; animation: spin 4s linear infinite; }
.music-toggle.paused .music-icon { animation-play-state: paused; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--rosa-claro) 0%, var(--creme) 100%);
  position: relative;
}
.hero-pre {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--vinho);
  font-weight: 500;
}
.hero-names {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--vinho);
  margin: 10px 0;
}
.hero-tagline { font-weight: 300; color: var(--escuro); font-size: 1.1rem; }
.scroll-cue {
  margin-top: 50px;
  font-size: 2rem;
  color: var(--rosa);
  animation: bounce 1.8s infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(12px);} }

/* ---------- SECTION TITLE ---------- */
.section-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  text-align: center;
  color: var(--vinho);
  margin: 60px 0 40px;
}

/* ---------- TIMELINE ---------- */
.timeline-section { padding: 40px 20px 60px; max-width: 1000px; margin: 0 auto; }
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--rosa), var(--rosa-claro));
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s, transform 0.6s;
}
.tl-item.show { opacity: 1; transform: translateY(0); }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-item::after {
  content: "💗";
  position: absolute;
  top: 24px;
  font-size: 1.3rem;
  background: var(--creme);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--sombra);
}
.tl-item:nth-child(odd)::after { right: -18px; }
.tl-item:nth-child(even)::after { left: -18px; }
.tl-card {
  background: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--sombra);
  display: inline-block;
  max-width: 100%;
}
.tl-date { color: var(--rosa); font-weight: 600; font-size: 0.85rem; }
.tl-title { font-size: 1.2rem; font-weight: 600; margin: 6px 0; color: var(--vinho); }
.tl-text { font-weight: 300; font-size: 0.95rem; line-height: 1.5; }
.tl-card img {
  width: 100%;
  border-radius: 12px;
  margin-top: 12px;
  object-fit: cover;
  max-height: 220px;
}

/* ---------- GALERIA ---------- */
.gallery-section { padding: 20px 20px 60px; max-width: 1100px; margin: 0 auto; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px var(--sombra);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 12px 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(61, 26, 38, 0.75));
  text-transform: capitalize;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover figcaption { opacity: 1; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(61, 26, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-figure { margin: 0; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 12px; }
.lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  text-transform: capitalize;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- FINAL ---------- */
.final {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--rosa-claro), var(--creme));
}
.final-heart { font-size: 4rem; animation: beat 1.4s infinite; }
.final-message {
  max-width: 600px;
  margin: 24px auto;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--escuro);
}
.final-sign {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: var(--vinho);
}

.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--rosa);
  background: var(--creme);
}

/* ---------- MOBILE ---------- */
@media (max-width: 700px) {
  .timeline::before { left: 20px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px; padding-right: 10px; }
  .tl-item::after { left: 2px !important; right: auto !important; }
}
