/* ============================================
   LUXURIOUS ROMANTIC HOMEPAGE — 8 MARCH
   Customize colors and spacing via variables.
   ============================================ */

:root {
  /* Background: deep black mandatory */
  --bg-deep: #0a0a0b;
  --bg-gradient: radial-gradient(ellipse 120% 80% at 50% 20%, #1a1518 0%, #0d0c0e 40%, #0a0a0b 100%);
  /* Accents: gold, soft white, elegant pink */
  --gold: #c9a962;
  --gold-soft: #e5d4a1;
  --white-soft: #f5f0eb;
  --pink-elegant: #d4a5a5;
  --pink-subtle: rgba(212, 165, 165, 0.25);
  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", sans-serif;
  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  background-image: var(--bg-gradient);
  color: var(--white-soft);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
.main {
  padding-inline: clamp(76px, 12vw, 150px);
  position: relative;
  z-index: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.85) 0%, transparent 100%);
  backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease-out);
}
.site-header.scrolled { background: rgba(10, 10, 11, 0.92); }

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav__logo:hover { color: var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white-soft);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease-soft), opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.nav__link {
  color: rgba(245, 240, 235, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease-soft);
}
.nav__link:hover,
.nav__link--active { color: var(--gold-soft); }

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, var(--pink-subtle), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(201, 169, 98, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 50% 50%, rgba(245, 240, 235, 0.15), transparent),
    radial-gradient(2px 2px at 70% 60%, var(--pink-subtle), transparent);
  background-size: 200% 200%;
  animation: sparkleFloat 12s ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-delay: 0.5s;
}
@keyframes sparkleFloat {
  0%, 100% { opacity: 0.6; background-position: 0% 0%; }
  50% { opacity: 1; background-position: 100% 100%; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: min(100%, 720px);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s var(--ease-out) 0.2s forwards;
}
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.hero__message {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(245, 240, 235, 0.92);
  margin: 0;
  line-height: 1.75;
  min-height: 4em;
}
.hero__message-inner { border-right: 2px solid var(--gold); }
.hero__cursor {
  color: var(--gold);
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}
.hero__message.done .hero__cursor { display: none; }
.hero__message.done .hero__message-inner { border-right: none; }
@keyframes blink {
  50% { opacity: 0; }
}

/* ========== HOA CỐ ĐỊNH HAI BÊN (fixed, kéo lên/xuống vẫn giữ) ========== */
.side-flowers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
.side-flowers__left {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 168px;
  max-width: 31vw;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(229, 212, 161, 0.18));
}
.side-flowers__right {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 168px;
  max-width: 31vw;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  transform: scaleX(-1);
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(229, 212, 161, 0.18));
}

/* ========== RELATIONSHIP: tranh SVG sao chổi nắm tay nhau ========== */
.relationship {
  position: relative;
  padding: 4rem 1rem 6rem;
  z-index: 2;
}
.relationship__frame {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.relationship__illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(229, 212, 161, 0.22);
}
.relationship__caption {
  margin: 1rem auto 0;
  max-width: 560px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-shadow: 0 0 18px rgba(229, 212, 161, 0.16);
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(245, 240, 235, 0.08);
}
.footer__text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.5);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* ========== RESPONSIVE — MOBILE FIRST FRIENDLY ========== */
@media (max-width: 768px) {
  .main { padding-inline: 1rem; }
  .site-header { padding: 0.75rem 1rem; }
  .nav__toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
  }
  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(10, 10, 11, 0.98);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link {
    font-size: 1.05rem;
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
  }

  .hero {
    min-height: auto;
    padding: 5.5rem 0 2.5rem;
  }
  .hero__content {
    max-width: 36rem;
    padding: 2rem 1.25rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.82) 0%, rgba(8, 8, 12, 0.7) 100%);
    border: 1px solid rgba(229, 212, 161, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
  }
  .hero__headline { font-size: clamp(1.9rem, 8vw, 2.5rem); margin-bottom: 1rem; }
  .hero__message { font-size: 1rem; min-height: 4.5em; line-height: 1.75; }

  .relationship { padding: 1rem 0 3rem; }
  .relationship__frame { max-width: 100%; }
  .side-flowers { display: none; }
  .relationship__caption { font-size: 0.92rem; max-width: 100%; }
}

@media (max-width: 480px) {
  .main { padding-inline: 0.75rem; }
  body { font-size: 0.9375rem; }
  .nav__logo { font-size: 1.2rem; }
  .hero { padding: 5rem 0 2rem; }
  .hero__content {
    padding: 1.5rem 1rem;
    border-radius: 20px;
    max-width: 100%;
  }
  .hero__headline {
    font-size: 1.85rem;
    line-height: 1.15;
  }
  .hero__message {
    font-size: 0.96rem;
    min-height: 6.4em;
    line-height: 1.9;
  }

  .relationship { padding: 0.75rem 0 2.5rem; }
  .relationship__illustration {
    border-radius: 16px;
  }
  .relationship__caption {
    font-size: 0.84rem;
    line-height: 1.7;
    padding-inline: 0.5rem;
  }

  .site-footer { padding: 2rem 0.75rem; }
  .footer__text { font-size: 0.85rem; }
}
