/* ═══════════════════════════════════════════════════
   FOR SHIVU — Premium Love Journey CSS
   Theme: Light purple flowers, purple & pink hearts
═══════════════════════════════════════════════════ */

/* ── Fonts & Tokens ───────────────────────────── */
:root {
  --purple-deep:   #4a2c6e;
  --purple-mid:    #7b4fa6;
  --purple-light:  #c39bd3;
  --purple-pale:   #f3eaf8;
  --pink-hot:      #e05fa0;
  --pink-soft:     #f48fb1;
  --pink-blush:    #fce4ec;
  --cream:         #fffaf6;
  --white:         #ffffff;
  --text-dark:     #2c1a3a;
  --text-mid:      #5a3a6e;
  --text-light:    #9c7ab5;

  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-cursive: 'Great Vibes', cursive;
  --ff-body:    'Lato', sans-serif;

  --radius:  20px;
  --shadow:  0 8px 40px rgba(74, 44, 110, 0.18);
  --shadow-lg: 0 20px 60px rgba(74, 44, 110, 0.28);
  --transition: 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

img, video { max-width: 100%; display: block; border-radius: var(--radius); }

/* ── Custom Cursor ──────────────────────────────── */
#cursor {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--purple-mid);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s;
  mix-blend-mode: multiply;
}
#cursorTrail {
  position: fixed;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--purple-light);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, border-color 0.3s;
}

/* ── Petal Canvas ───────────────────────────────── */
#petalCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f3eaf8 0%, #fce4ec 40%, #e8d5f5 80%, #fce4ec 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(195, 155, 211, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(244, 143, 177, 0.28) 0%, transparent 70%);
  z-index: 1;
}

.hero-overlay { position: absolute; inset: 0; z-index: 2; }

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  padding: 40px 24px;
  animation: heroFadeIn 1.4s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-pre {
  font-family: var(--ff-cursive);
  font-size: 1.6rem;
  color: var(--purple-light);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  animation: heroFadeIn 1.4s 0.2s both ease;
}

.hero-title {
  font-family: var(--ff-cursive);
  font-size: clamp(4rem, 10vw, 7.5rem);
  color: var(--purple-deep);
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(74, 44, 110, 0.2);
  animation: heroFadeIn 1.4s 0.35s both ease;
}

.hero-sub {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-mid);
  margin-top: 18px;
  line-height: 1.7;
  animation: heroFadeIn 1.4s 0.5s both ease;
}

.hero-hearts {
  font-size: 2rem;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  animation: heroFadeIn 1.4s 0.65s both ease;
}

.hero-hearts span {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
.hero-hearts span:nth-child(1) { animation-delay: 0s; }
.hero-hearts span:nth-child(2) { animation-delay: 0.3s; }
.hero-hearts span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

.scroll-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  text-decoration: none;
  color: var(--purple-mid);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: heroFadeIn 1.4s 0.8s both ease, bobble 2.5s 2s ease-in-out infinite;
}
.scroll-cta svg {
  width: 22px; height: 22px;
  stroke: var(--pink-hot);
}
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* Floating flowers — hero */
.floating-flowers-hero { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.fh {
  position: absolute;
  font-size: 2rem;
  opacity: 0;
  animation: floatFlower 8s ease-in-out infinite;
}
.fh1 { top: 10%; left: 8%;  animation-delay: 0s;   font-size: 2.4rem; }
.fh2 { top: 20%; left: 90%; animation-delay: 1.2s; font-size: 2rem; }
.fh3 { top: 65%; left: 5%;  animation-delay: 2.4s; font-size: 1.6rem; }
.fh4 { top: 80%; left: 85%; animation-delay: 0.8s; font-size: 2rem; }
.fh5 { top: 40%; left: 92%; animation-delay: 3s;   font-size: 1.4rem; }
.fh6 { top: 50%; left: 3%;  animation-delay: 1.8s; font-size: 2.2rem; }

@keyframes floatFlower {
  0%   { opacity: 0; transform: translateY(30px) rotate(-10deg); }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-40px) rotate(12deg); }
}

/* ══════════════════════════════════════════════════
   CHAPTER SECTIONS
══════════════════════════════════════════════════ */
.chapter {
  position: relative;
  padding: 100px 24px;
  background: var(--cream);
  z-index: 1;
}

.chapter-alt {
  background: linear-gradient(160deg, #f8f0ff 0%, #fce4ec 100%);
}

/* chapter — decorative top divider */
.chapter::before {
  content: '🌸 ✦ 🌸';
  display: block;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 18px;
  margin-bottom: 56px;
  opacity: 0.5;
}

.chapter-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.chapter-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-mid), var(--pink-hot));
  padding: 5px 18px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.chapter-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  display: block;
  animation: pulse 3s ease-in-out infinite;
}

.chapter-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--purple-deep);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.chapter-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60%;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--pink-hot), var(--purple-mid), transparent);
  border-radius: 99px;
}

.chapter-text {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 40px;
}
.chapter-text em {
  color: var(--purple-mid);
  font-style: italic;
  font-family: var(--ff-heading);
}

/* ── Quote Card ─────────────────────────────────── */
.quote-card {
  background: linear-gradient(135deg, rgba(123, 79, 166, 0.08), rgba(224, 95, 160, 0.08));
  border: 1.5px solid rgba(195, 155, 211, 0.4);
  border-radius: 20px;
  padding: 30px 36px;
  max-width: 520px;
  margin: 0 auto 50px;
  position: relative;
}
.quote-card p {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--purple-deep);
  line-height: 1.7;
}
.quote-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

/* ── Photo Grid ─────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.photo-grid.single { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(195, 155, 211, 0.5);
  background: var(--purple-pale);
  aspect-ratio: 4/5;
}
.photo-frame.large { aspect-ratio: 5/6; }

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  transition: transform 0.6s var(--transition);
  display: block;
}
.photo-frame:hover img { transform: scale(1.06); }

/* Anticlockwise rotation for sideways photos */
.photo-frame img.rotate-ccw {
  transform: rotate(-90deg) scale(1.35);
  transform-origin: center center;
}
.photo-frame:hover img.rotate-ccw {
  transform: rotate(-90deg) scale(1.42);
}

/* Anchor portrait photos to the top so the face is always visible */
.photo-frame img.img-top {
  object-position: top;
}

.photo-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.18) 60%, transparent 80%);
  pointer-events: none;
}

/* ── Heartbeat Row ──────────────────────────────── */
.heartbeat-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 36px 0;
}
.heartbeat-card {
  background: var(--white);
  border: 1.5px solid rgba(195, 155, 211, 0.35);
  border-radius: 18px;
  padding: 28px 24px;
  width: 180px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.heartbeat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.heartbeat-card .hb-emoji { font-size: 2rem; margin-bottom: 10px; }
.heartbeat-card p { font-size: 0.9rem; color: var(--text-mid); font-weight: 600; }

/* ── Traits List ────────────────────────────────── */
.traits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
  margin: 36px auto;
  text-align: left;
}
.trait-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--text-mid);
  font-weight: 500;
  padding: 14px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(74, 44, 110, 0.1);
  border-left: 4px solid var(--purple-mid);
  transition: transform var(--transition);
}
.trait-item:hover { transform: translateX(8px); }
.trait-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-mid), var(--pink-hot));
  flex-shrink: 0;
}

/* ── Distance Card ──────────────────────────────── */
.distance-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 36px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(195, 155, 211, 0.3);
}
.dc-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  margin: 0 auto 8px;
}
.dc-dot.you { background: var(--purple-mid); box-shadow: 0 0 12px var(--purple-mid); }
.dc-dot.her { background: var(--pink-hot); box-shadow: 0 0 12px var(--pink-hot); }
.dc-left p, .dc-right p { font-weight: 700; color: var(--text-dark); font-size: 1rem; }
.dc-line { text-align: center; }
.dc-hearts { font-size: 1.5rem; letter-spacing: 6px; animation: pulse 2.5s ease-in-out infinite; }
.dc-label { font-family: var(--ff-heading); font-style: italic; font-size: 0.95rem; color: var(--text-light); margin-top: 8px; }

/* ── Love Cards Grid ────────────────────────────── */
.loves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.love-card {
  background: var(--white);
  border-radius: 22px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(195, 155, 211, 0.3);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.love-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-mid), var(--pink-hot));
}
.love-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.love-icon { font-size: 2.4rem; margin-bottom: 14px; }
.love-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  color: var(--purple-deep);
  margin-bottom: 10px;
}
.love-card p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; }

/* ══════════════════════════════════════════════════
   VIDEO SECTION
══════════════════════════════════════════════════ */
.video-section {
  position: relative;
  padding: 100px 24px;
  background: linear-gradient(145deg, var(--purple-deep), #2a1040);
  text-align: center;
  overflow: hidden;
}
.vs-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(195, 155, 211, 0.15), transparent);
  z-index: 0;
}
.vs-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.vs-title {
  font-family: var(--ff-cursive);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  text-shadow: 0 0 30px rgba(195, 155, 211, 0.5);
  margin-bottom: 12px;
}
.vs-content > p {
  font-family: var(--ff-heading);
  font-style: italic;
  color: var(--purple-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.video-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border: 2px solid rgba(195, 155, 211, 0.3);
}
.video-wrapper video { width: 100%; display: block; }

/* ══════════════════════════════════════════════════
   LETTER SECTION
══════════════════════════════════════════════════ */
.letter-section {
  position: relative;
  padding: 120px 24px 100px;
  background: linear-gradient(160deg, #fce4ec 0%, #f3eaf8 50%, #fce4ec 100%);
  overflow: hidden;
}
.letter-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.letter-icon { font-size: 4rem; margin-bottom: 20px; display: block; animation: pulse 2s ease-in-out infinite; }
.letter-title {
  font-family: var(--ff-cursive);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--purple-deep);
  margin-bottom: 40px;
}
.letter-body {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(195, 155, 211, 0.4);
  border-radius: 24px;
  padding: 48px 44px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  text-align: left;
  font-family: var(--ff-heading);
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text-dark);
}
.letter-body em {
  color: var(--purple-mid);
  font-style: italic;
}
.letter-sign {
  margin-top: 20px;
  font-family: var(--ff-cursive);
  font-size: 1.5rem;
  color: var(--purple-deep);
  line-height: 1.6;
}

.letter-flowers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lf { position: absolute; font-size: 2rem; opacity: 0.25; animation: floatFlower 10s ease-in-out infinite; }
.lf1 { top: 5%; left: 5%;  animation-delay: 0s; }
.lf2 { top: 5%; left: 90%; animation-delay: 2s; }
.lf3 { top: 50%; left: 95%; animation-delay: 4s; }
.lf4 { top: 85%; left: 5%; animation-delay: 1s; }
.lf5 { top: 85%; left: 88%; animation-delay: 3s; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
  background: var(--purple-deep);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
  font-family: var(--ff-body);
}
.footer-hearts { font-size: 2rem; letter-spacing: 10px; margin-bottom: 16px; }
.site-footer p { font-size: 0.98rem; color: var(--purple-light); line-height: 1.8; }
.footer-small { font-size: 0.82rem; margin-top: 8px; opacity: 0.6; }

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: 1fr; }
  .letter-body { padding: 30px 22px; }
  .distance-card { flex-direction: column; }
  .heartbeat-row { gap: 14px; }
  .heartbeat-card { width: calc(50% - 7px); }
  .chapter::before { letter-spacing: 10px; }
}
