/* ═══════════════════════════════════════════
   welcome.css — Section chào mừng đầu trang
   ═══════════════════════════════════════════ */

#welcome {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  z-index: 4;
}

.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: 1.2rem 2rem;
  max-width: 680px;
  width: 100%;
}

.heart-icon {
  font-size: clamp(1.8rem, 5vh, 3rem);
  display: block;
  margin-bottom: clamp(0.6rem, 2vh, 1.5rem);
  animation: heartbeat 1.4s ease-in-out infinite;
}

.welcome-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.95rem, 2.3vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--rose-gold);
  letter-spacing: 0.06em;
  margin-bottom: clamp(0.5rem, 1.5vh, 1.2rem);
  opacity: 0;
  animation: fadeUp 1.2s ease 0.3s forwards;
}

.welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.7s forwards;
}
.welcome-title {
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.welcome-title em {
  font-style: italic;
  color: var(--mauve);
  white-space: nowrap;
}

.welcome-sub {
  margin-top: clamp(0.5rem, 1.5vh, 1.2rem);
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 1.7vw, 0.98rem);
  color: var(--soft-ink);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.1s forwards;
}

.btn-start {
  margin-top: clamp(1.2rem, 3vh, 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); }
}

/* ─── 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); } }

/* ─── DARK MODE ─── */
html.dark #welcome {
  background: linear-gradient(160deg, #1A0D10 0%, #120A0D 40%, #0D0D0D 100%);
}
html.dark .welcome-deco::before {
  background: radial-gradient(circle, rgba(242,167,187,0.12) 0%, transparent 70%);
}
html.dark .welcome-deco::after {
  background: radial-gradient(circle, rgba(242,167,187,0.08) 0%, transparent 70%);
}
html.dark .btn-start {
  box-shadow: 0 4px 24px rgba(242,167,187,0.25), 0 0 0 0 rgba(255,192,203,0.3);
}
