/* ========================================
   🎀 CONFIGURATION - EDIT CSS VARIABLES HERE
   ======================================== */
:root {
  --husband: "My Love";
  --wife: "Pujitha";
  --wedding-date: "2023-06-15";
  --wedding-year: "2023";
  --hero-bg: "";
  --song-url: "https://open.spotify.com/track/your-song-id";
  --song-title: "Perfect";
  --artist-name: "Ed Sheeran";
  --album-cover: "";
  --final-quote: "No matter how many years pass, my favorite place will always be beside you.";
  --bg-music: "";

  /* Colors */
  --black: #0a0a0a;
  --dark: #1a0a0a;
  --maroon: #4a0e0e;
  --deepmaroon: #6b1a1a;
  --rosegold: #b76e79;
  --rose: #e8a0b4;
  --pink: #f5c6d0;
  --softpink: #fce4ec;
  --cream: #faf0e6;
  --gold: #d4af37;

  --bg-primary: var(--black);
  --bg-secondary: var(--dark);
  --text-primary: #fff;
  --text-secondary: var(--pink);
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.1);
}

/* ========================================
   📦 RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #6b1a1a, #b76e79);
  border-radius: 3px;
}
::selection { background: rgba(183,110,121,0.3); color: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ========================================
   🥃 GLASSMORPHISM UTILITIES
   ======================================== */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
}
.glass-strong {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
}
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(183,110,121,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.text-gradient {
  background: linear-gradient(135deg, var(--pink) 0%, var(--rosegold) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 50%, var(--rosegold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   💫 KEYFRAMES
   ======================================== */
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg); }
  66% { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sway {
  0%,100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 10px rgba(183,110,121,0.3), 0 0 20px rgba(183,110,121,0.1); }
  50% { box-shadow: 0 0 20px rgba(183,110,121,0.6), 0 0 40px rgba(183,110,121,0.3), 0 0 60px rgba(183,110,121,0.1); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes sparkleAnim {
  0%,100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes typingBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes progressPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ========================================
   📋 SECTION TITLE
   ======================================== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--rosegold);
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6b1a1a, var(--rosegold), var(--gold));
  margin: 1rem auto 0;
  border-radius: 2px;
}
@media (max-width:640px) {
  .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
}

.section-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 2rem 1rem; opacity: 0.3;
}
.section-divider .line {
  height: 1px; width: 4rem;
  background: linear-gradient(90deg, transparent, var(--rosegold), transparent);
}
.section-divider .diamond { color: var(--rosegold); font-size: 0.75rem; }

/* ========================================
   🎬 LOADING SCREEN
   ======================================== */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--black);
  transition: opacity 0.8s;
}
#loading-screen.hidden { opacity: 0; pointer-events: none; }
#loading-screen .heart-icon { font-size: 4rem; animation: heartbeat 1.5s infinite; }
#loading-screen h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem; color: var(--rosegold); margin: 1.5rem 0;
}
#loading-screen .progress-bar {
  width: 16rem; height: 6px;
  background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
}
#loading-screen .progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #6b1a1a, var(--rosegold), var(--gold));
  border-radius: 3px; transition: width 0.3s;
}
#loading-screen .progress-text {
  margin-top: 0.75rem; color: rgba(183,110,121,0.6);
  font-size: 0.875rem; font-weight: 300;
}
#loading-screen .loading-icons {
  display: flex; gap: 0.5rem; margin-top: 2rem;
}
#loading-screen .loading-icons span {
  animation: float 1.5s infinite;
}
#loading-screen .loading-icons span:nth-child(2) { animation-delay: 0.2s; }
#loading-screen .loading-icons span:nth-child(3) { animation-delay: 0.4s; }
#loading-screen .loading-icons span:nth-child(4) { animation-delay: 0.6s; }

/* ========================================
   💕 FLOATING HEARTS
   ======================================== */
#floating-hearts {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}
.floating-particle {
  position: absolute;
  animation: floatUp linear forwards;
  opacity: 0;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(720deg) scale(1); }
}

/* ========================================
   🎀 SPARKLE OVERLAY
   ======================================== */
.sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--rosegold); border-radius: 50%;
  animation: sparkleAnim var(--duration) infinite;
  animation-delay: var(--delay);
}

/* ========================================
   🧭 SIDE NAV
   ======================================== */
#side-nav {
  position: fixed; left: 1rem; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 0.5rem;
}
@media (max-width:640px) { #side-nav { display: none; } }
.nav-dot {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(183,110,121,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; cursor: pointer;
  transition: all 0.3s; position: relative;
}
.nav-dot:hover {
  background: rgba(183,110,121,0.2);
  transform: translateX(4px);
}
.nav-dot .tooltip {
  position: absolute; left: 3rem; top: 50%; transform: translateY(-50%);
  background: rgba(10,10,10,0.9); color: var(--rosegold);
  padding: 0.25rem 0.75rem; border-radius: 4px;
  font-size: 0.75rem; white-space: nowrap;
  border: 1px solid rgba(183,110,121,0.2);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-dot:hover .tooltip { opacity: 1; }

/* ========================================
   🔘 CONTROLS (theme/music/back-to-top)
   ======================================== */
#controls {
  position: fixed; top: 1rem; right: 1rem; z-index: 100;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.ctrl-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(183,110,121,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--rosegold); cursor: pointer;
  transition: all 0.3s; font-size: 0.875rem;
}
.ctrl-btn:hover { transform: scale(1.1); background: rgba(183,110,121,0.2); }
#back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, #6b1a1a, var(--rosegold));
  color: #fff; border: none; cursor: pointer; font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(183,110,121,0.4);
  transition: all 0.3s; display: none;
}
#back-to-top.show { display: flex; align-items: center; justify-content: center; }
#back-to-top:hover { transform: translateY(-4px); box-shadow: 0 6px 30px rgba(183,110,121,0.6); }

/* ========================================
   🏠 HERO
   ======================================== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero .bg-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
#hero .bg-layer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7), rgba(10,10,10,0.5), rgba(10,10,10,0.9));
}
#hero .bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,10,10,0.4), transparent, rgba(26,10,10,0.4));
}
#hero .content {
  position: relative; z-index: 10;
  text-align: center; padding: 0 1rem; max-width: 56rem;
}
#hero .ring-icon { font-size: 3rem; margin-bottom: 1.5rem; opacity: 0; }
#hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: linear-gradient(135deg, var(--pink), var(--rosegold), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem; line-height: 1.2;
}
#hero .typing-area {
  height: 4rem; margin-bottom: 2rem;
}
#hero .typing-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  color: rgba(232,160,180,0.8);
}
#hero .typing-text .cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: var(--rosegold); margin-left: 2px;
  animation: typingBlink 1s step-end infinite;
  vertical-align: text-bottom;
}
#hero .wedding-card {
  display: inline-block;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183,110,121,0.2);
  border-radius: 1rem; padding: 1.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}
#hero .wedding-card p:first-child {
  font-family: 'Playfair Display', serif;
  color: var(--rosegold); font-size: 1.125rem; margin-bottom: 0.25rem;
}
#hero .wedding-card .days {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem; color: var(--pink);
}
#hero .scroll-btn {
  display: inline-block; padding: 1rem 2.5rem;
  border-radius: 9999px; border: none;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 1.125rem; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #4a0e0e, var(--rosegold), #4a0e0e);
  background-size: 200% 200%;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(183,110,121,0.3);
}
#hero .scroll-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(183,110,121,0.5);
}
#hero .scroll-btn:active { transform: scale(0.95); }

#hero .bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 8rem;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* ========================================
   💌 LOVE LETTER
   ======================================== */
#love-letter { padding: 5rem 1rem; }
.envelope-wrapper {
  display: flex; justify-content: center; perspective: 1200px;
}
.envelope {
  position: relative; cursor: pointer;
  width: 16rem; height: 12rem;
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
}
@media (min-width:640px) {
  .envelope { width: 20rem; height: 14rem; }
}
.envelope.open { transform: rotateX(-180deg); opacity: 0; pointer-events: none; }
.envelope-body {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,14,14,0.8), rgba(26,10,10,0.9));
  border-radius: 0.5rem;
  border: 1px solid rgba(183,110,121,0.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.envelope-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(183,110,121,0.2), transparent);
}
.envelope-flap::after {
  content: ''; position: absolute; bottom: -1.5rem; left: 0; right: 0;
  height: 3rem; background: rgba(26,10,10,0.8); transform: skewY(-3deg);
}
.envelope-seal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 4rem; height: 4rem;
  background: linear-gradient(135deg, var(--rosegold), #6b1a1a);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: sway 3s ease-in-out infinite;
}
.envelope-seal span { font-size: 1.75rem; }
.envelope-corner {
  position: absolute; width: 2rem; height: 2rem;
  border-color: rgba(183,110,121,0.4);
}
.envelope-corner.tl { top: 0.5rem; left: 0.5rem; border-top: 2px solid; border-left: 2px solid; border-radius: 0.25rem 0 0 0; }
.envelope-corner.tr { top: 0.5rem; right: 0.5rem; border-top: 2px solid; border-right: 2px solid; border-radius: 0 0.25rem 0 0; }
.envelope-corner.bl { bottom: 0.5rem; left: 0.5rem; border-bottom: 2px solid; border-left: 2px solid; border-radius: 0 0 0 0.25rem; }
.envelope-corner.br { bottom: 0.5rem; right: 0.5rem; border-bottom: 2px solid; border-right: 2px solid; border-radius: 0 0 0.25rem 0; }
.envelope-text {
  position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center;
}
.envelope-text p {
  font-family: 'Dancing Script', cursive;
  color: var(--rosegold); font-size: 1.125rem;
}
.envelope:hover .envelope-seal { transform: translate(-50%,-50%) scale(1.1); }
.envelope-glow {
  position: absolute; inset: 0; border-radius: 0.5rem;
  animation: glowPulse 2s infinite;
}

.letter-paper {
  background: linear-gradient(135deg, rgba(26,10,10,1), rgba(42,16,16,1), rgba(26,10,10,1));
  border: 1px solid rgba(183,110,121,0.3);
  border-radius: 1rem; padding: 2rem 1.5rem;
  max-width: 36rem; margin: 0 auto;
  position: relative;
  box-shadow: inset 0 0 60px rgba(183,110,121,0.05), 0 8px 32px rgba(0,0,0,0.4);
  animation: fadeInScale 0.6s ease-out;
}
@media (min-width:640px) { .letter-paper { padding: 3rem 4rem; } }
.letter-paper .deco-top {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #6b1a1a, var(--rosegold), #6b1a1a);
}
.letter-paper .corner-flower {
  position: absolute; font-size: 1.5rem; opacity: 0.3;
}
.letter-paper h3 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--rosegold); margin-bottom: 2rem; text-align: center;
}
.letter-paper p {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245,198,208,0.9); line-height: 1.8;
  margin-bottom: 1rem;
}
.letter-paper .closing {
  text-align: right; margin-top: 2.5rem;
}
.letter-paper .closing p:first-child {
  font-size: 1.25rem; color: var(--rosegold); margin-bottom: 0.25rem;
}
.letter-paper .closing p:last-child {
  font-size: 1.5rem; color: var(--rose);
}
.letter-paper .fold-btn {
  display: block; margin: 2rem auto 0;
  padding: 0.5rem 1.5rem; border-radius: 9999px;
  border: 1px solid rgba(183,110,121,0.3);
  background: transparent; color: var(--rosegold);
  cursor: pointer; font-family: 'Poppins', sans-serif;
  font-size: 0.875rem; transition: all 0.3s;
}
.letter-paper .fold-btn:hover { background: rgba(183,110,121,0.1); }

/* ========================================
   📜 PROMISE NOTE
   ======================================== */
#promises { padding: 5rem 1rem; }
.parchment {
  background: linear-gradient(135deg, rgba(26,10,10,1), rgba(42,16,16,0.8), rgba(26,10,10,1));
  border: 1px solid rgba(183,110,121,0.3);
  border-radius: 1rem; padding: 2rem 1.5rem;
  max-width: 48rem; margin: 0 auto;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 60px rgba(183,110,121,0.05), 0 8px 32px rgba(0,0,0,0.4);
}
@media (min-width:640px) { .parchment { padding: 3rem; } }
.parchment .inner-border {
  position: absolute; inset: 1rem; border: 2px solid rgba(183,110,121,0.1); border-radius: 0.75rem;
}
.parchment .inner-border2 {
  position: absolute; inset: 1.5rem; border: 1px solid rgba(183,110,121,0.05); border-radius: 0.5rem;
}
.parchment .corner-emoji {
  position: absolute; font-size: 1.5rem;
}
.promise-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.5rem 0; opacity: 0; transform: translateX(var(--dir));
  transition: all 0.5s;
}
.promise-item.visible { opacity: 1; transform: translateX(0); }
.promise-item .heart-icon {
  color: var(--rosegold); font-size: 1.25rem; margin-top: 0.25rem;
  flex-shrink: 0; transition: all 0.3s; cursor: default;
}
.promise-item .heart-icon:hover { transform: scale(1.2) rotate(10deg); }
.promise-item p {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245,198,208,0.9); line-height: 1.6;
  transition: color 0.3s;
}
.promise-item:hover p { color: var(--rosegold); }
.parchment .signature-area {
  margin-top: 3rem; text-align: right; position: relative;
}
.parchment .signature-area .sig-line {
  position: absolute; right: 0; top: 0; width: 8rem; height: 1px;
  background: linear-gradient(to left, rgba(183,110,121,0.4), transparent);
}
.parchment .signature-area p:first-of-type {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--rosegold); margin-top: 1rem;
}
.parchment .signature-area p:last-of-type {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--rose); margin-top: 0.25rem;
}

/* ========================================
   💕 33 REASONS
   ======================================== */
#reasons { padding: 5rem 1rem; }
#reasons .subtitle {
  text-align: center; color: rgba(232,160,180,0.6);
  font-family: 'Dancing Script', cursive;
  font-size: 1.125rem; margin-bottom: 2.5rem;
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem; max-width: 64rem; margin: 0 auto;
}
@media (min-width:480px) { .reasons-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width:768px) { .reasons-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width:1024px) { .reasons-grid { grid-template-columns: repeat(5,1fr); } }

.flip-card {
  aspect-ratio: 3/4; perspective: 1000px; cursor: pointer;
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s;
}
.flip-card.visible { opacity: 1; transform: translateY(0); }
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 0.75rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem;
}
.flip-card-front {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183,110,121,0.2);
}
.flip-card-front .heart {
  font-size: 2.5rem; margin-bottom: 0.5rem;
  animation: heartbeat 1.5s infinite;
}
.flip-card-front .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; color: var(--rosegold); font-size: 1.125rem;
}
.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(183,110,121,0.15), rgba(106,13,13,0.2));
  border: 1px solid rgba(183,110,121,0.3);
}
.flip-card-back p {
  font-family: 'Dancing Script', cursive;
  color: var(--pink); text-align: center;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  line-height: 1.4;
}

/* ========================================
   📸 POLAROID GALLERY
   ======================================== */
#gallery { padding: 5rem 1rem; }
.polaroid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem; max-width: 64rem; margin: 0 auto;
}
@media (min-width:480px) { .polaroid-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:768px) { .polaroid-grid { grid-template-columns: repeat(3,1fr); } }
.polaroid-item {
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s;
}
.polaroid-item.visible { opacity: 1; transform: translateY(0); }
.polaroid {
  background: #1a1a1a;
  padding: 0.625rem 0.625rem 2rem 0.625rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: pointer;
  max-width: 280px; margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.polaroid:hover {
  transform: translateY(-12px) scale(1.03) !important;
  box-shadow: 0 12px 40px rgba(183,110,121,0.3);
}
.polaroid .photo-frame {
  width: 100%; aspect-ratio: 1;
  background: var(--dark); border-radius: 0.25rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; opacity: 0.3;
}
.polaroid .photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.polaroid .caption {
  text-align: center; margin-top: 0.75rem;
  font-family: 'Dancing Script', cursive;
  color: var(--rosegold); font-size: 1rem;
}

/* Modal overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: #1a1a1a;
  padding: 0.75rem 0.75rem 2rem 0.75rem;
  border-radius: 0.5rem;
  max-width: 32rem; width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: modalIn 0.4s cubic-bezier(0.4,0,0.2,1);
}
.modal-content .modal-img {
  width: 100%; aspect-ratio: 1;
  background: var(--dark); border-radius: 0.25rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; opacity: 0.3;
}
.modal-content .modal-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.modal-content .modal-caption {
  text-align: center; margin-top: 1rem;
  font-family: 'Dancing Script', cursive;
  color: var(--rosegold); font-size: 1.25rem;
}
.modal-content .modal-close-hint {
  text-align: center; margin-top: 0.5rem;
  color: rgba(232,160,180,0.5); font-size: 0.875rem;
}

/* ========================================
   💬 SWEET MESSAGES
   ======================================== */
#messages { padding: 5rem 1rem; }
.msg-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183,110,121,0.2);
  border-radius: 1rem; padding: 2rem 1.5rem;
  max-width: 40rem; margin: 0 auto; text-align: center;
  position: relative; overflow: hidden;
}
@media (min-width:640px) { .msg-card { padding: 3rem; } }
.msg-card .top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4a0e0e, var(--rosegold), #4a0e0e);
}
.msg-card .bg-glow {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.05;
}
.msg-card .counter {
  color: rgba(232,160,180,0.4);
  font-size: 0.875rem; margin-bottom: 2rem;
}
.msg-card .msg-text {
  min-height: 5rem; display: flex; align-items: center; justify-content: center;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: rgba(245,198,208,0.9); line-height: 1.5;
  transition: all 0.3s;
}
.msg-card .msg-text.fade { opacity: 0; transform: translateY(-10px); }
.msg-card .msg-text.show { opacity: 1; transform: translateY(0); }
.msg-card .divider {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin: 2rem 0;
}
.msg-card .divider .line {
  width: 3rem; height: 1px; background: rgba(183,110,121,0.3);
}
.msg-card .next-btn {
  padding: 1rem 2rem; border-radius: 9999px; border: none;
  background: linear-gradient(135deg, #4a0e0e, var(--rosegold), #4a0e0e);
  background-size: 200% 200%;
  color: #fff; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.02em;
}
.msg-card .next-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(183,110,121,0.4); }
.msg-card .next-btn:active { transform: scale(0.95); }
.msg-card .dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem;
}
.msg-card .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(183,110,121,0.2);
  transition: all 0.3s;
}
.msg-card .dot.active {
  background: rgba(183,110,121,0.8);
  transform: scale(1.3);
}

/* ========================================
   🎵 SPOTIFY CARD
   ======================================== */
#song { padding: 5rem 1rem; }
.spotify-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183,110,121,0.2);
  border-radius: 1rem; padding: 1.5rem;
  max-width: 28rem; margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}
@media (min-width:640px) { .spotify-card { padding: 2rem; } }
.spotify-header {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem;
}
.spotify-header svg {
  width: 1.5rem; height: 1.5rem; fill: var(--rosegold);
}
.spotify-header span {
  color: var(--rosegold); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em;
}
.album-wrapper {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}
.album-cover {
  width: 12rem; height: 12rem; border-radius: 50%;
  overflow: hidden; border: 4px solid rgba(183,110,121,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4); position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark); font-size: 4rem; opacity: 0.3;
}
@media (min-width:640px) { .album-cover { width: 14rem; height: 14rem; } }
.album-cover.playing { animation: vinylSpin 4s linear infinite; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover .center-dot {
  position: absolute; width: 2rem; height: 2rem;
  background: var(--black); border-radius: 50%;
  border: 2px solid rgba(183,110,121,0.3);
}
.song-info { text-align: center; margin-bottom: 1.5rem; }
.song-info h3 {
  font-weight: 600; font-size: 1.25rem; color: #fff; margin-bottom: 0.25rem;
}
.song-info p { color: rgba(232,160,180,0.5); font-size: 0.875rem; }
.progress-section { margin-bottom: 1.5rem; }
.progress-track {
  width: 100%; height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--rosegold), var(--gold));
  transition: width 0.1s linear;
}
.progress-times {
  display: flex; justify-content: space-between;
  color: rgba(232,160,180,0.3); font-size: 0.75rem; margin-top: 0.25rem;
}
.spotify-controls { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.play-btn {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--rosegold); border: none; color: #fff;
  font-size: 1.25rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(183,110,121,0.3);
}
.play-btn:hover { background: var(--rose); transform: scale(1.1); }
.play-btn:active { transform: scale(0.95); }
.spotify-link-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem; border-radius: 9999px; border: none;
  background: linear-gradient(135deg, #1DB954, #169c46);
  color: #fff; font-weight: 600; font-size: 0.875rem; cursor: pointer;
  transition: all 0.3s; text-decoration: none;
}
.spotify-link-btn:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(29,185,84,0.4); }

/* ========================================
   📖 TIMELINE
   ======================================== */
#timeline { padding: 5rem 1rem; }
.timeline-container {
  position: relative; max-width: 48rem; margin: 0 auto;
}
.timeline-line {
  position: absolute; left: 1.5rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #6b1a1a, var(--rosegold), var(--gold));
  opacity: 0.4;
}
@media (min-width:640px) { .timeline-line { left: 2rem; } }
.timeline-item {
  position: relative; padding-left: 4rem; padding-bottom: 3rem;
  opacity: 0; transform: translateX(-20px);
  transition: all 0.6s;
}
@media (min-width:640px) { .timeline-item { padding-left: 5rem; } }
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  position: absolute; left: 1rem; top: 0.25rem;
  width: 1.25rem; height: 1.25rem;
  background: linear-gradient(135deg, var(--rosegold), #6b1a1a);
  border-radius: 50%; border: 3px solid var(--black);
  box-shadow: 0 0 10px rgba(183,110,121,0.3); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
@media (min-width:640px) { .timeline-dot { left: 1.5rem; } }
.timeline-dot .inner-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7);
}
.timeline-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183,110,121,0.2);
  border-radius: 0.75rem; padding: 1.5rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.timeline-card:hover { transform: translateY(-4px); }
.timeline-card .card-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(183,110,121,0.05), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.timeline-card:hover .card-glow { opacity: 1; }
.timeline-card .date {
  color: var(--rosegold); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.timeline-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: #fff; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.timeline-card h3 .icon { font-size: 1.5rem; }
.timeline-card p {
  font-family: 'Dancing Script', cursive;
  color: rgba(245,198,208,0.7); line-height: 1.6;
}
.timeline-card .bottom-deco {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
}
.timeline-card .bottom-deco .deco-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(183,110,121,0.3), transparent);
}
.timeline-card .bottom-deco .deco-heart {
  color: rgba(183,110,121,0.3); font-size: 0.75rem;
}

/* ========================================
   🌟 DREAMS BOARD
   ======================================== */
#dreams { padding: 5rem 1rem; }
.dreams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; max-width: 64rem; margin: 0 auto;
}
@media (min-width:480px) { .dreams-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:768px) { .dreams-grid { grid-template-columns: repeat(3,1fr); } }
.dream-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183,110,121,0.2);
  border-radius: 1rem; padding: 1.5rem 2rem;
  text-align: center; position: relative; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s; cursor: default;
}
.dream-card.visible { opacity: 1; transform: translateY(0); }
.dream-card:hover { transform: translateY(-8px) scale(1.02); }
.dream-card .bg-glow {
  position: absolute; inset: -5rem;
  background: rgba(183,110,121,0.05);
  border-radius: 50%; filter: blur(40px);
  opacity: 0; transition: opacity 0.5s;
}
.dream-card:hover .bg-glow { opacity: 1; }
.dream-card .emoji {
  font-size: 3rem; margin-bottom: 1rem; position: relative; z-index: 2;
  display: inline-block; transition: transform 0.3s;
}
.dream-card:hover .emoji { transform: scale(1.15) rotate(8deg); }
.dream-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--rosegold); font-size: 1.25rem; margin-bottom: 0.75rem;
  position: relative; z-index: 2;
}
.dream-card p {
  font-family: 'Dancing Script', cursive;
  color: rgba(245,198,208,0.7); font-size: 0.9375rem; line-height: 1.5;
  position: relative; z-index: 2;
}
.dream-card .sparkle-icon {
  margin-top: 1rem; font-size: 0.75rem; position: relative; z-index: 2;
  opacity: 0.4;
}

/* ========================================
   💝 FINAL SECTION
   ======================================== */
#final {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 5rem 1rem; overflow: hidden;
}
#final .bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--black), rgba(26,10,10,0.5), var(--black));
}
#final .deco-circle {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.08;
}
#final .content {
  position: relative; z-index: 10; text-align: center;
  max-width: 48rem;
}
#final .heart-row {
  display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 3rem;
}
#final .heart-row span {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  animation: float 2s infinite;
}
#final .heart-row span:nth-child(2) { animation-delay: 0.3s; }
#final .heart-row span:nth-child(3) { animation-delay: 0.6s; }
#final .heart-row span:nth-child(4) { animation-delay: 0.9s; }
#final .heart-row span:nth-child(5) { animation-delay: 1.2s; }
#final .heart-row span:nth-child(6) { animation-delay: 1.5s; }
#final .quote-wrapper { position: relative; margin-bottom: 3rem; }
#final .quote-mark {
  font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(183,110,121,0.15);
  font-family: 'Playfair Display', serif;
  position: absolute;
}
#final .quote-mark.open { top: -2rem; left: -0.5rem; }
#final .quote-mark.close { bottom: -3rem; right: -0.5rem; }
#final .quote-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--pink); line-height: 1.5; font-style: italic;
  padding: 0 2rem;
}
#final .quote-author {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--rosegold); margin-top: 3rem; margin-bottom: 3rem;
}
#final .big-heart {
  display: inline-block; font-size: clamp(4rem, 10vw, 6rem);
  animation: heartbeat 1.5s infinite;
  cursor: pointer;
}
#final .forever-text {
  margin-top: 3rem;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem; color: rgba(232,160,180,0.4);
}
#final .back-link {
  display: inline-block; margin-top: 3rem;
  color: rgba(183,110,121,0.4); font-size: 0.875rem;
  transition: color 0.3s;
}
#final .back-link:hover { color: var(--rosegold); }

/* ========================================
   🦶 FOOTER
   ======================================== */
footer {
  padding: 2rem 1rem; text-align: center;
  border-top: 1px solid rgba(183,110,121,0.1);
}
footer .footer-text {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--rosegold); margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
footer .footer-text .heart {
  color: var(--rose); animation: heartbeat 1.5s infinite;
  display: inline-block;
}
footer .copyright {
  color: rgba(232,160,180,0.3); font-size: 0.75rem;
}

/* ========================================
   ☀️ LIGHT THEME
   ======================================== */
body.light {
  --bg-primary: #faf0e6;
  --bg-secondary: #fff5f0;
  --text-primary: #1a0a0a;
  --text-secondary: #4a0e0e;
  --card-bg: rgba(255,255,255,0.7);
  --card-border: rgba(183,110,121,0.3);
}
body.light .glass,
body.light .glass-strong,
body.light .glass-card,
body.light .timeline-card,
body.light .msg-card,
body.light .spotify-card,
body.light .dream-card,
body.light .flip-card-front,
body.light .envelope-body,
body.light .polaroid {
  background: rgba(255,255,255,0.7) !important;
}
body.light .letter-paper,
body.light .parchment {
  background: linear-gradient(135deg, #fff5f0, #faf0e6) !important;
}
body.light .polaroid {
  background: #ffffff !important;
}
body.light .text-gradient,
body.light #hero h1 {
  background: linear-gradient(135deg, #6b1a1a, var(--rosegold)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
body.light .song-info h3 { color: #1a0a0a; }
body.light .timeline-card h3 { color: #1a0a0a; }
body.light .msg-card .counter { color: rgba(74,14,14,0.4); }
body.light .nav-dot { background: rgba(255,255,255,0.7); }
body.light .ctrl-btn { background: rgba(255,255,255,0.7); color: #6b1a1a; }
body.light #hero .bottom-fade {
  background: linear-gradient(to top, #faf0e6, transparent);
}
