/* ============================================
   VALENTINE'S DAY — GLOBAL STYLES & THEME
   ============================================ */

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

/* ---------- THEME VARIABLES (lighter purple) ---------- */
:root {
  --purple-deep:    #625281;
  --purple-dark:    #ab83dc;
  --purple-mid:     #9b6dd7;
  --purple-light:   #c9a4f5;
  --purple-soft:    #e0ccfa;
  --purple-pale:    #f3ebff;
  --purple-glow:    #d9a0ff;
  --purple-mist:    #ead6ff;
  --pink-accent:    #ff6b9d;
  --gold-accent:    #ffd700;
  --rose-accent:    #ff4d6d;
  --white-soft:     #faf5ff;
  --bg-primary:     #2e1a4a;
  --bg-card:        rgba(107, 63, 160, 0.35);
  --bg-card-solid:  rgba(59, 38, 103, 0.7);
  --border-glow:    rgba(217, 160, 255, 0.25);
  --shadow-glow:    rgba(201, 164, 245, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-primary);
  color: var(--white-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='20'>💜</text></svg>") 12 12, auto;
}

/* ---------- TYPOGRAPHY ---------- */
.font-display  { font-family: 'Playfair Display', serif; }
.font-script   { font-family: 'Dancing Script', cursive; }
.font-elegant   { font-family: 'Cormorant Garamond', serif; }
.font-body     { font-family: 'Quicksand', sans-serif; }

/* ---------- LAYOUT ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple-light), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subheading {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  font-size: 1.1rem;
  color: var(--purple-soft);
  margin-bottom: 4rem;
  font-style: italic;
}

.section-divider {
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(155, 109, 215, 0.08), transparent);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-hearts {
  display: flex;
  gap: 12px;
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CANVAS OVERLAY ---------- */
#hearts-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- SPARKLES ---------- */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 1.2rem;
  animation: sparkleAnim 0.8s ease forwards;
}

/* ---------- CONFETTI ---------- */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 9999;
  pointer-events: none;
  animation: confettiFall linear forwards;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
}
