@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&family=Dancing+Script:wght@400;600;700&display=swap');

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

:root {
  --blood:   #660005;
  --pink:    #DF8F9C;
  --cream:   #FAF4D4;
  --offwhite:#FDF8EE;
  --text:    #3a0008;
  --subtext: #8a4050;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.screen { display: none; width: 100%; min-height: 100vh; }
.screen.active { display: flex; }

/* ══════════════════════════════════════════
   SCREEN 1 — PROFILE / LANDING
══════════════════════════════════════════ */
#screen-profiles {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  /* plain cream background */
  background: #FAF4D4;
}


/* side flower decorations — fixed to viewport edges */
.side-flowers {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 50;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 2rem 0;
  gap: 0;
}
.side-flowers.left  { left: 0; }
.side-flowers.right { right: 0; transform: scaleX(-1); }

.side-flowers img {
  width: 160px;
  object-fit: contain;
}

/* center card — clean scrapbook piece */
.profile-card {
  position: relative;
  background: rgba(255, 252, 245, 0.88);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.95);
  border-radius: 4px;
  padding: 3rem 3.5rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  box-shadow:
    0 8px 48px rgba(102,0,5,0.12),
    0 2px 10px rgba(102,0,5,0.07);
  max-width: 340px;
  width: 90%;
  z-index: 1;
}

/* small hearts border line on card */
.card-border-hearts {
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(102,0,5,0.12);
  border-radius: 2px;
  pointer-events: none;
}

.profiles-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--blood);
  text-align: center;
  line-height: 1.15;
}
.profiles-title span { color: var(--pink); }

.title-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink), transparent);
}

/* heart avatar */
.profile-avatar {
  width: 180px;
  height: 180px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 18px rgba(102,0,5,0.1));
}
.profile-avatar:hover { transform: scale(1.05); }

.heart-clip {
  width: 180px;
  height: 180px;
  clip-path: url(#heartPath);
  overflow: hidden;
}
.heart-clip img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: transparent;
}
.heart-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.05rem;
  color: var(--subtext);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.profile-item:hover .profile-name { color: var(--blood); }

.profile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.profile-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--subtext);
  opacity: 0.7;
  text-align: center;
}

/* ══════════════════════════════════════════
   SCREEN 2 — MAIN PAGE
══════════════════════════════════════════ */
#screen-main {
  flex-direction: column;
  background: #FAF4D4;
}

/* NAV */
.nf-nav {
  display: flex;
  align-items: center;
  padding: 1rem 2.5rem;
  gap: 2rem;
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  transition: background 0.35s, backdrop-filter 0.35s;
}
.nf-nav.scrolled {
  background: rgba(250, 244, 212, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(102,0,5,0.1);
  box-shadow: 0 2px 16px rgba(102,0,5,0.08);
}
.nf-nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(250,244,212,0.85) 0%, rgba(250,244,212,0) 100%);
}

.nf-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--blood);
  font-weight: 700;
  cursor: pointer;
}

.nf-navlinks {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nf-navlinks li {
  font-size: 0.82rem;
  color: var(--subtext);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nf-navlinks li:hover { color: var(--blood); }

.nf-nav-right { margin-left: auto; }
.nf-profile-mini {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--pink);
  box-shadow: 0 0 8px rgba(223,143,156,0.4);
}
.nf-profile-mini img { width: 100%; height: 100%; object-fit: cover; }

/* HERO */
.hero-section {
  position: relative;
  width: 100%;
  height: 86vh;
  overflow: hidden;
  cursor: pointer;
}

.hero-video-wrapper { position: absolute; inset: 0; }
.hero-video-wrapper video,
.hero-video-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* soft cream fade from left — light version */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(250,244,212,0.97) 0%,
      rgba(250,244,212,0.75) 38%,
      rgba(250,244,212,0.2) 62%,
      transparent 100%
    ),
    linear-gradient(to top,
      rgba(250,244,212,1) 0%,
      rgba(250,244,212,0.5) 22%,
      transparent 50%
    );
}

.hero-content {
  position: absolute;
  bottom: 16%;
  left: 3.5rem;
  max-width: 480px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(102,0,5,0.08);
  border: 1px solid rgba(102,0,5,0.2);
  color: var(--blood);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  padding: 5px 14px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-radius: 20px;
}

.hero-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  color: var(--blood);
}
.hero-title em {
  font-style: italic;
  color: var(--pink);
}

.hero-desc {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--subtext);
  line-height: 1.9;
  margin-bottom: 1.8rem;
  max-width: 380px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-play {
  display: flex; align-items: center; gap: 10px;
  background: var(--blood);
  color: var(--cream);
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(102,0,5,0.25);
}
.btn-play:hover {
  background: #800008;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(102,0,5,0.35);
}

.btn-more {
  display: flex; align-items: center; gap: 10px;
  background: rgba(102,0,5,0.06);
  color: var(--blood);
  border: 1.5px solid rgba(102,0,5,0.25);
  border-radius: 30px;
  padding: 12px 28px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-more:hover {
  background: rgba(102,0,5,0.12);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex; gap: 1.2rem;
  align-items: center;
  margin-top: 1.2rem;
}
.meta-tag {
  font-size: 0.76rem;
  color: var(--subtext);
  letter-spacing: 0.08em;
  font-style: italic;
}
.meta-dot { color: var(--pink); }

/* VIDEO POPUP */
.video-popup {
  display: none;
  position: fixed; inset: 0;
  background: rgba(250,244,212,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
}
.video-popup.open { display: flex; }
.popup-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  z-index: 10;
  background: rgba(102,0,5,0.08);
  border: 1px solid rgba(102,0,5,0.2);
  border-radius: 20px;
  color: var(--blood);
  padding: 8px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: background 0.2s;
}
.popup-close:hover { background: rgba(102,0,5,0.15); }

.popup-video {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.popup-video video, .popup-video iframe {
  width: 90%; max-height: 80vh; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(102,0,5,0.2);
}
.popup-intro-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.4rem; height: 100%;
  text-align: center; padding: 3rem;
}
.popup-intro-card h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--blood);
  animation: fadeUp 1s ease both;
}
.popup-intro-card p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--subtext);
  animation: fadeUp 1s ease 0.3s both;
}
.popup-intro-stars {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--pink);
  text-transform: uppercase;
  animation: fadeUp 1s ease 0.6s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CONTENT ROWS */
.content-rows { padding: 1rem 0 5rem; }
.row-section { margin-bottom: 3rem; padding: 0 3.5rem; }

.row-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blood);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.row-title span { color: var(--pink); }
.row-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(102,0,5,0.2), transparent);
}

.cards-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) rgba(102,0,5,0.1);
}
.cards-strip::-webkit-scrollbar { height: 3px; }
.cards-strip::-webkit-scrollbar-track { background: rgba(102,0,5,0.07); }
.cards-strip::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }

/* clean polaroid card style (no captions) */
.nf-card {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: visible;
  cursor: pointer;
  background: #fff;
  padding: 8px; /* equal padding all around */
  box-shadow:
    0 4px 18px rgba(102,0,5,0.12),
    0 1px 4px rgba(102,0,5,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nf-card:nth-child(odd)  { transform: rotate(-1.5deg); }
.nf-card:nth-child(even) { transform: rotate(1.2deg); }
.nf-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04) !important;
  box-shadow: 0 14px 40px rgba(102,0,5,0.2);
  z-index: 10;
}
.nf-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
/* hover tint */
.nf-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: rgba(223,143,156,0.15);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.nf-card:hover::before { opacity: 1; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(250,244,212,0.95);
  backdrop-filter: blur(16px);
  z-index: 998;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  animation: fadeUp 0.35s ease both;
  background: #fff;
  padding: 8px 8px 44px 8px;
  box-shadow: 0 20px 60px rgba(102,0,5,0.18);
}
.lb-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 1.8rem;
  color: var(--subtext);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}
.lb-close:hover { color: var(--blood); }

/* FOOTER */
.nf-footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(102,0,5,0.1);
  text-align: center;
  background: rgba(255,255,255,0.4);
}
.footer-heart {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--subtext);
  letter-spacing: 0.06em;
}
.footer-heart span { color: var(--blood); }

@media (max-width: 768px) {
  .nf-nav { padding: 1rem 1.5rem; gap: 1rem; }
  .hero-content { left: 1.5rem; bottom: 10%; max-width: 90%; }
  .row-section { padding: 0 1.5rem; }
  .nf-navlinks { display: none; }
  .deco-hibiscus { width: 120px; }
}
