/* ======================================================
   NAMRATA BIRTHDAY WEBSITE - PREMIUM CSS
   ====================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --pink-deep: #d63384;
  --pink-mid: #e91e8c;
  --pink-light: #f48fb1;
  --pink-pale: #fce4ec;
  --rose: #c2185b;
  --gold: #ffd700;
  --gold-light: #ffe066;
  --purple: #9c27b0;
  --purple-light: #ce93d8;
  --lavender: #e8d5f0;
  --dark: #1a0a2e;
  --dark2: #2d1b4e;
  --dark3: #3d2a5c;
  --white: #fff;
  --text-light: rgba(255,255,255,0.9);
  --text-muted: rgba(255,255,255,0.6);

  --grad-main: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 25%, #6a0572 50%, #c2185b 75%, #e91e8c 100%);
  --grad-hero: linear-gradient(135deg, #0d0221 0%, #190741 20%, #6a0080 50%, #b5005b 80%, #ff0080 100%);
  --grad-card: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --grad-gold: linear-gradient(135deg, #ffd700, #ffb300, #ffd700);
  --grad-pink: linear-gradient(135deg, #e91e8c, #f48fb1, #e91e8c);

  --shadow-pink: 0 0 30px rgba(233,30,140,0.4);
  --shadow-gold: 0 0 20px rgba(255,215,0,0.5);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.5);

  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  --font-main: 'Poppins', sans-serif;
  --font-fancy: 'Dancing Script', cursive;
  --font-display: 'Playfair Display', serif;
  --font-love: 'Great Vibes', cursive;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  cursor: default;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grad-main);
  z-index: -2;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--grad-pink); border-radius: 10px; }

/* ---------- LOADING SCREEN ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { text-align: center; animation: fadeInUp 0.5s ease; }
.loading-heart { font-size: 5rem; animation: heartbeat 0.8s ease infinite; display: block; margin-bottom: 1rem; }
.loading-text { font-family: var(--font-fancy); font-size: 1.5rem; color: var(--pink-light); margin-bottom: 2rem; }
.loading-bar-wrap { width: 200px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; margin: 0 auto; overflow: hidden; }
.loading-bar { height: 100%; background: var(--grad-pink); border-radius: 10px; animation: loadingFill 2.5s ease forwards; }
@keyframes loadingFill { from { width: 0%; } to { width: 100%; } }

/* ---------- PARTICLE CANVAS ---------- */
#particle-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.4; }

/* ---------- FLOATING HEARTS LAYER ---------- */
#hearts-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.floating-heart { position: absolute; bottom: -50px; font-size: 1.5rem; animation: floatUp linear infinite; opacity: 0.7; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0deg); opacity: 0.8; } 100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; } }

/* ---------- NAVIGATION ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(26, 10, 46, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(233,30,140,0.2);
  transition: var(--transition);
}
#navbar.scrolled { background: rgba(26, 10, 46, 0.85); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-logo { font-family: var(--font-fancy); font-size: 1.8rem; background: var(--grad-pink); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; position: relative; transition: color var(--transition); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--grad-pink); border-radius: 2px; transition: width var(--transition); }
.nav-links a:hover { color: var(--pink-light); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--pink-light); }

/* ---------- HERO SECTION ---------- */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 6rem 2rem 4rem;
}
.hero-bg-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(233,30,140,0.15) 0%, transparent 70%); z-index: 1; }
.hero-content { position: relative; z-index: 5; max-width: 900px; }
.crown-emoji { font-size: 3.5rem; display: block; margin-bottom: 0.5rem; animation: crownFloat 3s ease-in-out infinite; }
@keyframes crownFloat { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-15px) rotate(5deg); } }
.hero-badge { display: inline-block; background: rgba(255,215,0,0.15); border: 1px solid rgba(255,215,0,0.4); color: var(--gold); font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; padding: 0.5rem 1.5rem; border-radius: 50px; margin-bottom: 1.5rem; text-transform: uppercase; animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.3); } 50% { box-shadow: 0 0 25px rgba(255,215,0,0.7), 0 0 50px rgba(255,215,0,0.3); } }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.title-line1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; font-style: italic; color: var(--text-light); letter-spacing: 2px; animation: slideInLeft 1s ease both; }
.title-name { font-family: var(--font-love); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; background: linear-gradient(135deg, #ff6ec7, #ffd700, #ff6ec7, #ffffff, #ffd700); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientShift 3s ease infinite, slideInRight 1s ease both; filter: drop-shadow(0 0 30px rgba(233,30,140,0.8)); }
.title-heart { font-size: 3rem; animation: heartbeat 1s ease infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.2); } 70% { transform: scale(1); } }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--text-muted); font-weight: 300; letter-spacing: 1px; margin-bottom: 2.5rem; animation: fadeInUp 1.2s ease both; }

/* Counter Box */
.hero-counter-box { display: inline-flex; align-items: center; gap: 2rem; background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 1.5rem 2.5rem; margin-bottom: 2.5rem; animation: fadeInUp 1.4s ease both; }
.counter-item { text-align: center; }
.counter-num { display: block; font-size: 2rem; font-weight: 700; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.counter-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.counter-divider { font-size: 1.2rem; }

/* Buttons */
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; animation: fadeInUp 1.6s ease both; }
.btn-primary { background: var(--grad-pink); color: white; border: none; padding: 1rem 2.5rem; border-radius: 50px; font-family: var(--font-main); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-pink); letter-spacing: 0.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 0 40px rgba(233,30,140,0.7); }
.btn-secondary { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.25); padding: 1rem 2.5rem; border-radius: 50px; font-family: var(--font-main); font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--pink-light); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(244,143,177,0.3); }

/* Balloons */
.balloon-row { display: flex; gap: 1.5rem; justify-content: center; }
.balloon { font-size: 2.5rem; animation: balloonFloat 3s ease-in-out infinite; cursor: pointer; user-select: none; }
.b1{animation-delay:0s} .b2{animation-delay:0.4s} .b3{animation-delay:0.8s} .b4{animation-delay:1.2s} .b5{animation-delay:1.6s}
@keyframes balloonFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-20px) rotate(3deg); } }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.8rem; animation: scrollBob 2s ease-in-out infinite; z-index: 5; }
.scroll-arrow { width: 24px; height: 24px; border-right: 2px solid var(--pink-light); border-bottom: 2px solid var(--pink-light); transform: rotate(45deg); animation: arrowPulse 1.5s ease-in-out infinite; }
@keyframes scrollBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes arrowPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Petals */
.petals-container { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.petal { position: absolute; top: -30px; font-size: 1.2rem; animation: petalFall linear infinite; opacity: 0.8; }
@keyframes petalFall { 0% { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0.8; } 100% { transform: translateY(110vh) rotate(720deg) translateX(30px); opacity: 0; } }

/* ---------- MUSIC BAR ---------- */
.music-bar { width: 100%; overflow: hidden; background: rgba(233,30,140,0.08); border-top: 1px solid rgba(233,30,140,0.15); border-bottom: 1px solid rgba(233,30,140,0.15); padding: 0.6rem 0; position: relative; z-index: 5; display: flex; gap: 3rem; animation: musicScroll 15s linear infinite; }
.note { font-size: 1.4rem; display: inline-block; animation: noteDance 1s ease-in-out infinite; white-space: nowrap; }
.n1{animation-delay:0s} .n2{animation-delay:0.1s} .n3{animation-delay:0.2s} .n4{animation-delay:0.3s} .n5{animation-delay:0.4s} .n6{animation-delay:0.5s} .n7{animation-delay:0.6s} .n8{animation-delay:0.7s} .n9{animation-delay:0.8s}
@keyframes noteDance { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-6px) scale(1.2)} }
@keyframes musicScroll { from{transform:translateX(100vw)} to{transform:translateX(-100%)} }

/* ---------- SECTION COMMONS ---------- */
section { position: relative; padding: 6rem 2rem; z-index: 5; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-icon { font-size: 3rem; display: block; margin-bottom: 1rem; animation: iconBounce 2s ease-in-out infinite; }
@keyframes iconBounce { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-10px) scale(1.1)} }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-style: italic; background: linear-gradient(135deg, #fff 20%, #f48fb1 50%, #ffd700 80%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem; }
.title-underline { width: 80px; height: 4px; background: var(--grad-pink); border-radius: 4px; margin: 0.5rem auto 0; position: relative; }
.title-underline::after { content: '💖'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1rem; animation: heartbeat 1.5s ease infinite; }

/* ---------- GALLERY ---------- */
#gallery { background: rgba(0,0,0,0.2); }
.gallery-filter { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: var(--text-light); padding: 0.6rem 1.5rem; border-radius: 50px; cursor: pointer; font-family: var(--font-main); font-size: 0.9rem; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--grad-pink); border-color: transparent; box-shadow: var(--shadow-pink); transform: translateY(-2px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.gallery-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.gallery-card.visible { opacity: 1; transform: translateY(0); }
.gallery-card.featured { grid-column: span 2; }
.card-inner { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); }
.card-inner img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-card.featured .card-inner img { height: 380px; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(233,30,140,0.3) 100%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: opacity var(--transition); }
.card-icon { font-size: 2.5rem; display: block; transform: translateY(10px); transition: transform var(--transition); }
.card-caption { color: white; font-family: var(--font-fancy); font-size: 1.1rem; margin-top: 0.5rem; transform: translateY(10px); transition: transform var(--transition); }
.gallery-card:hover .card-inner img { transform: scale(1.1); }
.gallery-card:hover .card-overlay { opacity: 1; }
.gallery-card:hover .card-icon, .gallery-card:hover .card-caption { transform: translateY(0); }
.card-glow { position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 0 rgba(233,30,140,0); transition: box-shadow var(--transition); pointer-events: none; }
.gallery-card:hover .card-glow { box-shadow: inset 0 0 0 2px rgba(233,30,140,0.6), 0 0 30px rgba(233,30,140,0.4); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(10px); cursor: pointer; }
.lightbox-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.5rem; max-width: 90vw; max-height: 90vh; animation: lbIn 0.3s ease; }
@keyframes lbIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#lbImage { max-width: 70vw; max-height: 80vh; border-radius: var(--radius); object-fit: contain; box-shadow: 0 0 60px rgba(233,30,140,0.4); border: 2px solid rgba(233,30,140,0.3); }
.lb-close, .lb-prev, .lb-next { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); backdrop-filter: blur(10px); }
.lb-close { position: absolute; top: -60px; right: 0; font-size: 1rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--pink-deep); border-color: transparent; }
.lb-caption { position: absolute; bottom: -40px; left: 0; right: 0; text-align: center; color: var(--text-muted); font-family: var(--font-fancy); font-size: 1.1rem; }

/* ---------- MESSAGE SECTION ---------- */
#message { background: rgba(0,0,0,0.1); }
.message-bg-art { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(233,30,140,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(156,39,176,0.08) 0%, transparent 60%); pointer-events: none; }
.message-container { max-width: 700px; margin: 0 auto; }
.envelope-wrap { perspective: 1000px; display: flex; justify-content: center; margin-bottom: 2rem; cursor: pointer; }
.envelope { width: 280px; height: 200px; position: relative; animation: envelopeFloat 3s ease-in-out infinite; transition: transform var(--transition); }
.envelope:hover { transform: scale(1.05) rotate(2deg); }
.envelope-flap { position: absolute; top: 0; left: 0; right: 0; height: 100px; background: linear-gradient(135deg, #c2185b, #e91e8c); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; transition: transform 0.6s ease; z-index: 2; border-radius: 4px 4px 0 0; }
.envelope.open .envelope-flap { transform: rotateX(180deg); }
.envelope-body { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(233,30,140,0.3), rgba(156,39,176,0.3)); border: 2px solid rgba(233,30,140,0.5); border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.envelope-heart { font-size: 3rem; animation: heartbeat 1.5s ease infinite; }
.envelope-hint { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
@keyframes envelopeFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-15px) rotate(2deg); } }
.letter-container { display: none; animation: letterReveal 0.8s ease; }
@keyframes letterReveal { from { transform: translateY(-30px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.letter-paper { background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 3rem; position: relative; box-shadow: var(--shadow-card); }
.letter-paper::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(233,30,140,0.05), transparent, rgba(156,39,176,0.05)); border-radius: var(--radius); pointer-events: none; }
.letter-decoration { position: absolute; font-size: 1.5rem; animation: heartbeat 2s ease infinite; }
.letter-decoration.top-left { top: 1rem; left: 1rem; } .letter-decoration.top-right { top: 1rem; right: 1rem; animation-delay: 0.3s; } .letter-decoration.bottom-left { bottom: 1rem; left: 1rem; animation-delay: 0.6s; } .letter-decoration.bottom-right { bottom: 1rem; right: 1rem; animation-delay: 0.9s; }
.letter-greeting { font-family: var(--font-fancy); font-size: 1.8rem; color: var(--pink-light); margin-bottom: 1.5rem; }
.letter-body { font-size: 1.05rem; line-height: 1.9; color: var(--text-light); min-height: 200px; font-style: italic; }
.letter-sign { margin-top: 2rem; text-align: right; font-family: var(--font-fancy); font-size: 1.2rem; color: var(--pink-light); }
.letter-sign span { display: block; font-size: 1.5rem; color: var(--gold); margin-top: 0.3rem; }
.cursor { display: inline-block; width: 2px; height: 1em; background: var(--pink-light); margin-left: 2px; animation: blink 0.8s step-end infinite; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- REASONS SECTION ---------- */
#reasons { background: rgba(0,0,0,0.15); }
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.reason-card { background: var(--grad-card); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 2rem; text-align: center; transition: var(--transition); cursor: default; position: relative; overflow: hidden; opacity: 0; transform: translateY(30px); }
.reason-card.visible { opacity: 1; transform: translateY(0); }
.reason-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(233,30,140,0.05), transparent); transform: translateX(-100%); transition: transform 0.6s ease; }
.reason-card:hover::before { transform: translateX(100%); }
.reason-card:hover { transform: translateY(-10px) scale(1.02); border-color: rgba(233,30,140,0.4); box-shadow: 0 20px 50px rgba(233,30,140,0.2), 0 0 0 1px rgba(233,30,140,0.2); }
.reason-icon { font-size: 3rem; margin-bottom: 1rem; display: block; animation: iconBounce 3s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.reason-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--pink-light); margin-bottom: 0.75rem; }
.reason-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- CAKE SECTION ---------- */
#cake-section { background: rgba(0,0,0,0.2); overflow: visible; }
.cake-wrapper { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 2rem 0; }
.cake { position: relative; cursor: pointer; }
.candles-row { display: flex; gap: 15px; justify-content: center; margin-bottom: 5px; position: relative; z-index: 2; }
.candle { width: 16px; height: 50px; background: linear-gradient(180deg, #fff 0%, #f8bbd0 50%, #e91e8c 100%); border-radius: 4px; position: relative; box-shadow: 0 2px 10px rgba(233,30,140,0.3); }
.flame { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 16px; height: 28px; animation: flameDance 0.5s ease-in-out infinite alternate; transform-origin: bottom center; }
.flame::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 80%, #fff 0%, #fff700 20%, #ff9800 50%, #ff5722 80%, transparent 100%); border-radius: 50% 50% 30% 30%; filter: blur(1px); }
.flame-inner { position: absolute; top: 5px; left: 4px; right: 4px; bottom: 2px; background: radial-gradient(ellipse at 50% 70%, #fff 0%, #ffe082 50%, transparent 100%); border-radius: 50% 50% 30% 30%; }
@keyframes flameDance { from { transform: translateX(-50%) scaleX(1) rotate(-3deg); } to { transform: translateX(-50%) scaleX(0.9) rotate(3deg); } }
.flame.blown { opacity: 0; transform: translateX(-50%) scale(0); transition: all 0.3s ease; }
.cake-top { width: 260px; height: 60px; background: linear-gradient(180deg, #f8bbd0, #e91e8c); margin: 0 auto; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.frosting-top { position: absolute; top: -8px; left: 0; right: 0; height: 20px; }
.cake-decoration { font-size: 0.65rem; color: white; font-weight: 600; text-align: center; z-index: 1; padding: 0.5rem; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.cake-middle { width: 280px; height: 70px; background: linear-gradient(180deg, #fff9c4, #ffd700); margin: 0 auto; box-shadow: 0 4px 20px rgba(255,215,0,0.3); }
.cake-bottom { width: 300px; height: 80px; background: linear-gradient(180deg, #f8bbd0, #c2185b); margin: 0 auto; border-radius: 0 0 8px 8px; box-shadow: 0 8px 30px rgba(194,24,91,0.4); }
.cake-plate { width: 340px; height: 20px; background: linear-gradient(180deg, #fff, #e0e0e0); border-radius: 50%; margin: 0 auto; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-blow { background: var(--grad-gold); color: var(--dark); border: none; padding: 1rem 2.5rem; border-radius: 50px; font-family: var(--font-main); font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-gold); }
.btn-blow:hover { transform: translateY(-4px) scale(1.05); }
.wish-text { font-family: var(--font-fancy); font-size: 1.5rem; color: var(--pink-light); text-align: center; min-height: 2rem; }
.confetti-burst { pointer-events: none; display: flex; gap: 1rem; font-size: 2rem; flex-wrap: wrap; justify-content: center; max-width: 300px; }

/* ---------- WISHES TIMELINE ---------- */
#wishes { background: rgba(0,0,0,0.1); }
.wishes-timeline { max-width: 900px; margin: 0 auto; position: relative; }
.wishes-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--pink-deep), var(--gold), var(--pink-deep), transparent); transform: translateX(-50%); }
.timeline-item { display: flex; gap: 2rem; margin-bottom: 3rem; align-items: flex-start; opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-item.left { flex-direction: row-reverse; text-align: right; }
.timeline-item.right { flex-direction: row; text-align: left; }
.timeline-dot { font-size: 2rem; flex-shrink: 0; position: relative; z-index: 1; animation: heartbeat 2s ease infinite; width: 60px; height: 60px; background: rgba(255,255,255,0.06); border: 2px solid rgba(233,30,140,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.timeline-card { flex: 1; background: var(--grad-card); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1.5rem 2rem; transition: var(--transition); max-width: calc(50% - 50px); }
.timeline-card:hover { border-color: rgba(233,30,140,0.4); transform: scale(1.02); box-shadow: 0 10px 40px rgba(233,30,140,0.15); }
.timeline-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--pink-light); margin-bottom: 0.5rem; }
.timeline-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- SLIDESHOW ---------- */
#slideshow { background: rgba(0,0,0,0.2); overflow: hidden; }
.polaroid-stage { position: relative; max-width: 600px; margin: 0 auto; overflow: hidden; }
.polaroid-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.polaroid { flex-shrink: 0; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 1rem; }
.polaroid-inner { background: white; padding: 1.2rem 1.2rem 3rem; border-radius: 4px; box-shadow: 0 15px 50px rgba(0,0,0,0.5); transform: rotate(var(--r, 0deg)); transition: transform var(--transition); max-width: 380px; width: 100%; }
.polaroid:hover .polaroid-inner { transform: rotate(0deg) scale(1.03); }
.polaroid img { width: 100%; height: 300px; object-fit: cover; display: block; border-radius: 2px; }
.polaroid-caption { color: #333; font-family: var(--font-fancy); font-size: 1.3rem; text-align: center; margin-top: 0.5rem; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 2.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); backdrop-filter: blur(10px); z-index: 10; }
.prev-btn { left: 0; } .next-btn { right: 0; }
.slide-btn:hover { background: var(--pink-deep); border-color: transparent; transform: translateY(-50%) scale(1.1); }
.slide-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition); }
.slide-dot.active { background: var(--pink-deep); transform: scale(1.4); box-shadow: 0 0 10px rgba(233,30,140,0.6); }

/* ---------- FINAL SECTION ---------- */
#final { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.stars-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(233,30,140,0.15) 0%, transparent 70%); }
.final-content { position: relative; z-index: 5; padding: 2rem; }
.final-emoji-row { font-size: 2.5rem; letter-spacing: 1rem; margin-bottom: 2rem; display: block; animation: emojiRow 3s ease-in-out infinite; }
.final-emoji-row.bottom { margin-top: 2rem; margin-bottom: 0; animation-delay: 0.5s; }
@keyframes emojiRow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.final-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-style: italic; color: var(--pink-light); margin-bottom: 0.5rem; }
.final-name { font-family: var(--font-love); font-size: clamp(5rem, 15vw, 10rem); line-height: 1; background: linear-gradient(135deg, #ff6ec7, #ffd700, #fff, #ffd700, #ff6ec7); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientShift 3s ease infinite; filter: drop-shadow(0 0 40px rgba(233,30,140,0.8)); margin-bottom: 0.5rem; }
.final-date { font-size: 1.3rem; color: var(--gold); letter-spacing: 3px; margin-bottom: 2rem; }
.final-message { font-family: var(--font-display); font-size: clamp(1rem, 2.5vw, 1.3rem); font-style: italic; color: var(--text-light); line-height: 2; margin-bottom: 2rem; }
.heart-beat-big { font-size: 6rem; animation: heartBeatBig 1s ease-in-out infinite; display: inline-block; }
@keyframes heartBeatBig { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.4); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }

/* ---------- FOOTER ---------- */
footer { background: rgba(0,0,0,0.4); border-top: 1px solid rgba(233,30,140,0.2); padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; position: relative; z-index: 5; }
.footer-hearts { margin-top: 0.75rem; display: flex; gap: 0.5rem; justify-content: center; font-size: 1.3rem; }
.footer-hearts span { animation: heartbeat 1.5s ease-in-out infinite; }
.footer-hearts span:nth-child(1){animation-delay:0s} .footer-hearts span:nth-child(2){animation-delay:0.15s} .footer-hearts span:nth-child(3){animation-delay:0.3s} .footer-hearts span:nth-child(4){animation-delay:0.45s} .footer-hearts span:nth-child(5){animation-delay:0.6s}

/* ---------- MODAL ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 500; align-items: center; justify-content: center; backdrop-filter: blur(10px); background: rgba(0,0,0,0.7); }
.modal-overlay.active { display: flex; }
.modal-box { position: relative; background: linear-gradient(135deg, #2d1b4e, #4a1942); border: 1px solid rgba(233,30,140,0.4); border-radius: var(--radius); padding: 3rem; max-width: 500px; width: 90%; text-align: center; box-shadow: 0 0 60px rgba(233,30,140,0.3), var(--shadow-card); animation: modalIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
@keyframes modalIn { from { transform: scale(0.5) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--pink-deep); }
.modal-emoji { font-size: 4rem; animation: iconBounce 2s ease-in-out infinite; display: block; margin-bottom: 1rem; }
.modal-title { font-family: var(--font-display); font-size: 2rem; font-style: italic; background: var(--grad-pink); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; }
.modal-text { color: var(--text-light); line-height: 1.8; margin-bottom: 1.5rem; font-size: 1rem; }
.modal-hearts-row { font-size: 1.5rem; letter-spacing: 0.5rem; margin-bottom: 1.5rem; animation: emojiRow 2s ease-in-out infinite; }
.modal-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius); }
.modal-btn { margin: 0 auto; }

/* ---------- MUSIC PLAYER ---------- */
.music-player { position: fixed; bottom: 2rem; right: 2rem; z-index: 200; display: flex; align-items: center; gap: 0.5rem; flex-direction: column; }
.music-toggle { width: 55px; height: 55px; border-radius: 50%; background: var(--grad-pink); border: none; color: white; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-pink); transition: var(--transition); animation: glowPulse 2s ease-in-out infinite; display: flex; align-items: center; justify-content: center; }
.music-toggle:hover { transform: scale(1.1); }
.music-toggle.playing { animation: spin 4s linear infinite, glowPulse 2s ease-in-out infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.music-label { font-size: 0.65rem; color: var(--text-muted); text-align: center; white-space: nowrap; }

/* ---------- GLITTER TEXT ---------- */
.glitter-text { background: linear-gradient(90deg, #ff6ec7, #ffd700, #fff, #ffd700, #ff6ec7, #f48fb1, #ffd700); background-size: 400% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: glitter 3s linear infinite; }
@keyframes glitter { 0% { background-position: 0% 50%; } 100% { background-position: 400% 50%; } }

/* ---------- UTILITY ANIMATIONS ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
.animate-bounce-in { animation: bounceIn 0.8s ease both; }
@keyframes bounceIn { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(26,10,46,0.98); padding: 2rem; gap: 1.5rem; backdrop-filter: blur(20px); }
  .hero-counter-box { flex-direction: column; gap: 1rem; }
  .title-name { font-size: clamp(3.5rem, 15vw, 6rem); }
  .gallery-card.featured { grid-column: span 1; }
  .wishes-timeline::before { left: 30px; }
  .timeline-item.left, .timeline-item.right { flex-direction: row; text-align: left; }
  .timeline-card { max-width: calc(100% - 80px); }
  #lbImage { max-width: 85vw; }
  .lightbox-content { gap: 0.5rem; }
  .final-emoji-row { font-size: 1.5rem; letter-spacing: 0.5rem; }
}

@media (max-width: 480px) {
  section { padding: 4rem 1rem; }
  .title-name { font-size: 3.5rem; }
  .polaroid img { height: 220px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.featured { grid-column: span 1; }
  .cake-bottom { width: 260px; }
  .cake-middle { width: 240px; }
  .cake-top { width: 220px; }
  .cake-plate { width: 280px; }
}
