/* ==========================================================================
   ROMANTIC BIRTHDAY THEME - STYLESHEET
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Root Variables for Romantic Color Palette --- */
:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-800: #9f1239;
  --rose-900: #881337;
  --rose-950: #4c0519;
  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-warm: #d97706;
  --parchment: #fffdfa;
  --parchment-border: #f3e8d8;
}

/* --- Base Styling & Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #fff5f7 0%, #fff1f2 50%, #ffe4e8 100%);
  color: #374151;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Romantic Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #ffe4e6;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #fb7185, #e11d48);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #be123c;
}

/* Font Family Helper Classes */
.font-dancing {
  font-family: 'Dancing Script', cursive;
}

.font-vibes {
  font-family: 'Great Vibes', cursive;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* --- Ambient Floating Petals / Hearts Background Canvas --- */
#particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: floatDown linear infinite;
}

@keyframes floatDown {
  0% {
    transform: translateY(-50px) translateX(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(105vh) translateX(60px) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* --- Scroll Animation Classes --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.25);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.25);
  }
  70% {
    transform: scale(1);
  }
}

.animate-heartbeat {
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

.animate-float {
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3), 0 0 40px rgba(251, 113, 133, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.6), 0 0 70px rgba(251, 113, 133, 0.4);
  }
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

@keyframes giftShake {
  0% { transform: scale(1) rotate(0deg); }
  10% { transform: scale(1.06) rotate(-8deg); }
  20% { transform: scale(1.06) rotate(8deg); }
  30% { transform: scale(1.06) rotate(-8deg); }
  40% { transform: scale(1.06) rotate(8deg); }
  50% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.gift-shake-hover:hover {
  animation: giftShake 1.2s ease-in-out infinite;
}

/* --- Polaroid Gallery Cards --- */
.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 45px 14px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(190, 18, 60, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}

.polaroid-card:hover {
  transform: translateY(-12px) scale(1.04) rotate(0deg) !important;
  box-shadow: 0 20px 35px -5px rgba(225, 29, 72, 0.25), 0 15px 20px -6px rgba(190, 18, 60, 0.15);
  z-index: 20;
}

.polaroid-card .image-wrapper {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.polaroid-card .image-wrapper img {
  transition: transform 0.5s ease;
}

.polaroid-card:hover .image-wrapper img {
  transform: scale(1.08);
}

.polaroid-card .tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background-color: rgba(254, 205, 211, 0.65);
  backdrop-filter: blur(2px);
  border: 1px dashed rgba(244, 63, 94, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 5;
}

.flower-sticker {
  position: absolute;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(190, 18, 60, 0.2));
  z-index: 6;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.polaroid-card:hover .flower-sticker {
  transform: scale(1.15) rotate(10deg);
}

/* --- Glassmorphism Romantic Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px 0 rgba(225, 29, 72, 0.12), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.35s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px 0 rgba(225, 29, 72, 0.22);
}

/* Dark Glassmorphism for Night/Evening Overlays */
.glass-card-dark {
  background: rgba(76, 5, 25, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(254, 205, 211, 0.3);
  box-shadow: 0 12px 35px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
}

.glass-card-dark:hover {
  background: rgba(76, 5, 25, 0.78);
  border-color: rgba(254, 205, 211, 0.5);
  box-shadow: 0 18px 45px 0 rgba(225, 29, 72, 0.35);
}

/* --- Vintage Love Letter / Surat Cinta Styling --- */
.love-letter-paper {
  background: #fffdf9;
  background-image: 
    radial-gradient(#f8e7e9 1px, transparent 1px),
    linear-gradient(to bottom, #fffdf9 0%, #fff7f8 100%);
  background-size: 20px 20px, 100% 100%;
  border: 2px solid #fbcfe8;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(190, 18, 60, 0.25), 0 0 0 8px rgba(255, 255, 255, 0.7);
  position: relative;
}

.love-letter-paper::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed #f472b6;
  border-radius: 16px;
  pointer-events: none;
}

.wax-seal {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #f43f5e 0%, #be123c 60%, #881337 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(136, 19, 55, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  position: relative;
  transition: transform 0.3s ease;
}

.wax-seal:hover {
  transform: scale(1.1) rotate(12deg);
}

/* Unfolding / Opening Animation */
.letter-unfold {
  animation: unfoldLetter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes unfoldLetter {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Lightbox Modal for Photo Preview --- */
#photo-lightbox {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#photo-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#photo-lightbox.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Romantic Button Hover Glows --- */
.btn-romantic {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
  transition: all 0.3s ease;
}

.btn-romantic:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.55);
}

.btn-romantic-outline {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid #fb7185;
  color: #be123c;
  transition: all 0.3s ease;
}

.btn-romantic-outline:hover {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}
