/* ==========================================================================
   ROMANTIC LUXURY BIRTHDAY WEBSITE - STYLE SYSTEM
   Theme: Soft Pink, Rose, Light Purple, Gold Accents, Glassmorphism
   Fonts: Poppins & Great Vibes
   ========================================================================== */

:root {
  /* Color Palette */
  --soft-pink: #FFC0CB;
  --rose-pink: #F8BBD0;
  --light-purple: #EEC9FF;
  --gold-accent: #F4C542;
  --gold-glow: rgba(244, 197, 66, 0.4);
  --wine-color: #D81B60;
  --dark-wine: #880E4F;
  --pure-white: #FFFFFF;
  
  /* Light Theme Default Variables */
  --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FCE4EC 40%, #F8BBD0 100%);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 15px 35px rgba(216, 27, 96, 0.12);
  --text-color: #4A1525;
  --text-muted: #8C4A60;
  --card-bg: rgba(255, 255, 255, 0.75);
  --btn-gradient: linear-gradient(135deg, #D81B60 0%, #E91E63 50%, #F4C542 100%);
  --nav-bg: rgba(255, 255, 255, 0.75);

  /* Layout & Fonts */
  --font-main: 'Poppins', sans-serif;
  --font-cursive: 'Great Vibes', cursive;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-full: 9999px;
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pink Night Mode (Dark Theme) */
body.dark-theme {
  --bg-gradient: linear-gradient(135deg, #1A0713 0%, #2A0818 50%, #15040F 100%);
  --glass-bg: rgba(35, 12, 26, 0.75);
  --glass-border: rgba(244, 197, 66, 0.3);
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  --text-color: #FCE4EC;
  --text-muted: #F8BBD0;
  --card-bg: rgba(45, 15, 34, 0.8);
  --btn-gradient: linear-gradient(135deg, #E91E63 0%, #AD1457 50%, #F4C542 100%);
  --nav-bg: rgba(30, 10, 22, 0.85);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 192, 203, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--wine-color), var(--gold-accent));
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Typography Helpers */
.cursive-font {
  font-family: var(--font-cursive);
}

.center-text {
  text-align: center;
}

/* Canvas Positioning */
#bg-canvas, #confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#bg-canvas { z-index: 1; }
#confetti-canvas { z-index: 9995; }

/* Mouse Trail Container */
#cursor-trail-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.cursor-heart {
  position: absolute;
  font-size: 1.2rem;
  color: var(--wine-color);
  pointer-events: none;
  animation: floatFade 1.2s ease-out forwards;
}

@keyframes floatFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -100px) scale(0.4) rotate(20deg); }
}

/* ==========================================================================
   GLASSMORPHISM & UI UTILITIES
   ========================================================================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.glow-card {
  box-shadow: 0 0 25px rgba(216, 27, 96, 0.25), var(--glass-shadow);
}

.glow-on-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(216, 27, 96, 0.3), 0 0 25px var(--gold-glow);
  border-color: var(--gold-accent);
}

/* Buttons */
.luxury-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--btn-gradient);
  color: var(--pure-white);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(216, 27, 96, 0.35);
  transition: var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.luxury-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(216, 27, 96, 0.5), 0 0 20px var(--gold-glow);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--wine-color);
  transform: translateY(-3px);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: var(--wine-color);
  color: var(--pure-white);
  transform: scale(1.1);
}

/* Animations */
.float-anim {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.pulse-heart {
  animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* Section Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 50px;
}

.sub-heading {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--wine-color);
  margin-bottom: 8px;
  background: rgba(216, 27, 96, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   1. PASSWORD SCREEN OVERLAY
   ========================================================================== */

#password-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#password-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.floating-bg-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--rose-pink);
  top: 10%;
  left: 15%;
  animation: float 8s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--light-purple);
  bottom: 10%;
  right: 15%;
  animation: float 10s ease-in-out infinite alternate-reverse;
}

#password-card {
  width: 100%;
  max-width: 400px;
  padding: 38px 28px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.floral-password-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 2px solid rgba(255, 182, 193, 0.6) !important;
  border-radius: 32px !important;
  box-shadow: 0 20px 50px rgba(216, 27, 96, 0.22), inset 0 0 20px rgba(255, 255, 255, 0.8) !important;
}

.dark-theme .floral-password-card {
  background: rgba(30, 15, 28, 0.9) !important;
  border: 2px solid rgba(216, 27, 96, 0.4) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
}

.card-floral-corner {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.8;
  pointer-events: none;
  animation: float 4s ease-in-out infinite alternate;
}

.card-floral-corner.top-left { top: 12px; left: 15px; }
.card-floral-corner.top-right { top: 12px; right: 15px; animation-delay: 1s; }
.card-floral-corner.bottom-left { bottom: 12px; left: 15px; animation-delay: 2s; }
.card-floral-corner.bottom-right { bottom: 12px; right: 15px; animation-delay: 1.5s; }

.heart-badge-icon {
  width: 76px;
  height: 76px;
  min-width: 76px;
  min-height: 76px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--rose-pink), var(--wine-color));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--pure-white);
  box-shadow: 0 10px 25px rgba(216, 27, 96, 0.4);
  flex-shrink: 0;
}

.floral-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF69B4, #D81B60, #C2185B) !important;
  box-shadow: 0 8px 25px rgba(216, 27, 96, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
}

.flower-leaf-left, .flower-leaf-right {
  font-size: 0.9rem;
  color: #F8BBD0;
}

/* Floating Petals Background */
.floating-petals-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-petal {
  position: absolute;
  top: -30px;
  user-select: none;
  opacity: 0;
  animation: floatPetal linear infinite;
}

@keyframes floatPetal {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

.password-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.password-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* PIN Display Slots */
.pin-display-wrapper {
  margin: 14px 0 20px;
}

.pin-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.pin-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed rgba(216, 27, 96, 0.35);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark-theme .pin-dot {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 182, 193, 0.3);
}

.pin-icon {
  font-size: 1.3rem;
  opacity: 0;
  transform: scale(0) rotate(-45deg);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
  border-style: solid;
  border-color: var(--wine-color);
  background: linear-gradient(135deg, #FFE4E8, #FFCDD2);
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.dark-theme .pin-dot.filled {
  background: linear-gradient(135deg, #880E4F, #AD1457);
}

.pin-dot.filled .pin-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Floral Keypad Grid */
.floral-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto 10px;
}

.keypad-btn {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 72px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 182, 193, 0.6);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 235, 240, 0.85));
  box-shadow: 0 6px 15px rgba(216, 27, 96, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.dark-theme .keypad-btn {
  background: linear-gradient(145deg, rgba(60, 20, 45, 0.9), rgba(40, 10, 30, 0.85));
  border-color: rgba(216, 27, 96, 0.4);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.key-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wine-color);
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}

.dark-theme .key-num {
  color: #FF80AB;
}

.key-flower {
  font-size: 0.72rem;
  margin-top: 1px;
  line-height: 1;
}

.key-action-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #C2185B;
}

.keypad-btn.key-action {
  background: linear-gradient(145deg, rgba(255, 240, 245, 0.9), rgba(255, 220, 230, 0.8));
  border-color: rgba(244, 143, 177, 0.6);
}

.keypad-btn.key-action i {
  font-size: 1.2rem;
  color: var(--wine-color);
}

.dark-theme .keypad-btn.key-action i {
  color: #FF80AB;
}

.keypad-btn:hover,
.keypad-btn.btn-pressed {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--wine-color);
  background: linear-gradient(145deg, #FFFFFF, #FFE4E8);
  box-shadow: 0 10px 22px rgba(216, 27, 96, 0.3), inset 0 2px 4px rgba(255, 255, 255, 1);
}

.dark-theme .keypad-btn:hover,
.dark-theme .keypad-btn.btn-pressed {
  background: linear-gradient(145deg, rgba(90, 30, 70, 0.95), rgba(60, 15, 45, 0.9));
  border-color: #FF4081;
}

.keypad-btn:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(216, 27, 96, 0.2);
}

.error-msg {
  margin-top: 18px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #D32F2F;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: shake 0.5s ease-in-out;
}

.error-msg.hidden { display: none; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* Hint Section */
.hint-container {
  margin-top: 20px;
}

.hint-btn {
  background: transparent;
  border: 1px dashed var(--wine-color);
  color: var(--wine-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.hint-btn:hover {
  background: rgba(216, 27, 96, 0.1);
  transform: scale(1.05);
}

.hint-box {
  margin-top: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rose-pink);
  font-size: 0.9rem;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideDown 0.4s ease;
}

.hint-box.hidden { display: none; }

.hint-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Flower Bloom & Close Overlay Animation */
#flower-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: radial-gradient(circle, #FFF0F5 0%, #F8BBD0 60%, #D81B60 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#flower-overlay.hidden-overlay {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.flower-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.blooming-flower {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flowerBloomAndFold 3.2s ease-in-out forwards;
}

.petal {
  position: absolute;
  font-size: 3.5rem;
  transform-origin: center center;
  transition: transform 0.5s ease;
}

.p1 { transform: translate(0, -65px) rotate(0deg); }
.p2 { transform: translate(55px, -35px) rotate(60deg); }
.p3 { transform: translate(55px, 35px) rotate(120deg); }
.p4 { transform: translate(0, 65px) rotate(180deg); }
.p5 { transform: translate(-55px, 35px) rotate(240deg); }
.p6 { transform: translate(-55px, -35px) rotate(300deg); }

.flower-center-core {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-color), var(--gold-accent));
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 30px var(--gold-glow);
  z-index: 5;
}

.flower-bloom-title {
  margin-top: 35px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pure-white);
  text-shadow: 0 4px 15px rgba(136, 14, 79, 0.4);
  animation: fadeInOutText 3.2s ease-in-out forwards;
}

@keyframes flowerBloomAndFold {
  0% {
    transform: scale(0.1) rotate(0deg);
    opacity: 0;
  }
  35% {
    transform: scale(1.6) rotate(180deg);
    opacity: 1;
  }
  65% {
    transform: scale(1.8) rotate(360deg);
    opacity: 1;
  }
  90% {
    transform: scale(0.3) rotate(540deg);
    opacity: 0.9;
  }
  100% {
    transform: scale(0) rotate(720deg);
    opacity: 0;
  }
}

@keyframes fadeInOutText {
  0% { opacity: 0; transform: translateY(15px); }
  25% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-15px); }
}

/* ==========================================================================
   2. WELCOME ANIMATION OVERLAY
   ========================================================================== */

#welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#welcome-screen.hidden-overlay {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.welcome-content {
  max-width: 650px;
}

.sparkle-crown {
  font-size: 3.5rem;
  color: var(--gold-accent);
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.welcome-typewriter {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--wine-color);
  min-height: 1.2em;
  margin-bottom: 15px;
}

.welcome-subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  min-height: 1.2em;
  margin-bottom: 35px;
}

.pulse-glow-btn {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.6); }
  50% { box-shadow: 0 0 0 20px rgba(216, 27, 96, 0); }
}

.hidden-btn {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.6s ease;
}

.visible-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   3. TOP NAVIGATION (GLASS BAR) & PROGRESS
   ========================================================================== */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wine-color), var(--gold-accent));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s ease-out;
}

#main-header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1240px;
  z-index: 1000;
  transition: var(--transition-fast);
}

.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.logo-heart {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--wine-color);
  color: var(--pure-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.4);
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--wine-color), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  background: var(--wine-color);
  color: var(--pure-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-only { display: none; }

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 120px 20px 60px;
}

.hero-content {
  max-width: 850px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wine-color);
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(216, 27, 96, 0.15);
}

.hero-title {
  font-size: 5rem;
  color: var(--wine-color);
  line-height: 1.1;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(216, 27, 96, 0.2);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid var(--wine-color);
  border-radius: 20px;
  position: relative;
}

/* ==========================================================================
   5. BIRTHDAY CAKE & WISH SECTION
   ========================================================================== */

.cake-card-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.cake-card {
  padding: 40px 30px;
  text-align: center;
}

.cake-display {
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
  padding: 20px 0;
  position: relative;
}

.cake-container {
  position: relative;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Golden Ambient Aura & Sparkles */
.cake-gold-aura {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 220px;
  background: radial-gradient(circle, rgba(244, 197, 66, 0.45) 0%, rgba(216, 27, 96, 0.25) 50%, transparent 75%);
  filter: blur(25px);
  pointer-events: none;
  border-radius: 50%;
  animation: auraPulse 3s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.cake-sparkles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  z-index: 12;
}

.c-sparkle {
  position: absolute;
  font-size: 1.4rem;
  animation: sparkleFloat 2.5s ease-in-out infinite alternate;
}

.cs-1 { top: 0; left: 10%; animation-delay: 0.1s; }
.cs-2 { top: 15%; right: 5%; animation-delay: 0.5s; }
.cs-3 { bottom: 25%; left: 0%; animation-delay: 0.9s; }
.cs-4 { bottom: 10%; right: 10%; animation-delay: 1.3s; }
.cs-5 { top: -10px; right: 30%; animation-delay: 1.7s; }
.cs-6 { top: 40%; left: -10px; animation-delay: 2.1s; }

@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0.5; }
  100% { transform: translateY(-15px) scale(1.3) rotate(25deg); opacity: 1; filter: drop-shadow(0 0 10px #F4C542); }
}

/* 5 Candles Row */
.candles-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 10;
  margin-bottom: -6px;
  cursor: pointer;
  padding: 0 10px;
}

.candle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.candle-item:hover {
  transform: scale(1.1);
}

.candle-stick {
  width: 12px;
  height: 42px;
  background: repeating-linear-gradient(45deg, #FFF, #FFF 5px, #D81B60 5px, #D81B60 10px);
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.c1 { background: repeating-linear-gradient(45deg, #FFF, #FFF 5px, #FF4081 5px, #FF4081 10px); height: 38px; }
.c2 { background: repeating-linear-gradient(45deg, #FFF, #FFF 5px, #F4C542 5px, #F4C542 10px); height: 44px; }
.c3 { background: repeating-linear-gradient(45deg, #FFF, #FFF 5px, #D81B60 5px, #D81B60 10px); height: 48px; width: 14px; }
.c4 { background: repeating-linear-gradient(45deg, #FFF, #FFF 5px, #AB47BC 5px, #AB47BC 10px); height: 44px; }
.c5 { background: repeating-linear-gradient(45deg, #FFF, #FFF 5px, #FF4081 5px, #FF4081 10px); height: 38px; }

.candle-flame {
  width: 16px;
  height: 26px;
  background: radial-gradient(ellipse at bottom, #FFF, #F4C542 45%, #FF5722 85%);
  border-radius: 50% 50% 35% 35%;
  margin-bottom: 2px;
  box-shadow: 0 0 18px #F4C542, 0 0 32px #FF5722;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-flame {
  width: 20px;
  height: 32px;
  box-shadow: 0 0 25px #F4C542, 0 0 45px #FF5722;
}

.candle-flame.flickering {
  animation: flameFlicker 1.2s ease-in-out infinite alternate;
}

.candle-flame.extinguished {
  opacity: 0 !important;
  transform: scale(0) !important;
  box-shadow: none !important;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); box-shadow: 0 0 20px #F4C542, 0 0 35px #FF5722; }
  50% { transform: scale(1.15) rotate(2deg); box-shadow: 0 0 25px #F4C542, 0 0 45px #FF5722; }
  100% { transform: scale(0.95) rotate(-1deg); box-shadow: 0 0 18px #F4C542, 0 0 30px #FF5722; }
}

/* Cake Layers & Decorations */
.cake-top-layer {
  width: 180px;
  height: 60px;
  background: linear-gradient(135deg, #FF80AB 0%, #F8BBD0 50%, #EC407A 100%);
  border-radius: 14px 14px 8px 8px;
  position: relative;
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.6), 0 8px 20px rgba(216, 27, 96, 0.25);
  overflow: hidden;
}

.frosting-drips {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: radial-gradient(circle at 10px 0, transparent 8px, #FFF 9px);
  background-size: 20px 20px;
  opacity: 0.95;
}

.gold-pearls {
  display: flex;
  justify-content: space-around;
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
}

.gold-pearls span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F4C542;
  box-shadow: 0 0 8px #F4C542;
}

.cake-bottom-layer {
  width: 235px;
  height: 80px;
  background: linear-gradient(135deg, #EC407A 0%, #D81B60 50%, #880E4F 100%);
  border-radius: 16px 16px 10px 10px;
  margin-top: -6px;
  position: relative;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.4), 0 12px 30px rgba(216, 27, 96, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ribbon-gold {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, #F4C542, #FFF 50%, #F4C542);
  box-shadow: 0 0 10px rgba(244, 197, 66, 0.8);
}

.cake-plate {
  width: 270px;
  height: 16px;
  background: linear-gradient(135deg, #FFF, #FCE4EC);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-full);
  margin-top: -2px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Wish Form */
.wish-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wish-input-wrapper {
  text-align: left;
}

.wish-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wine-color);
  margin-bottom: 8px;
}

#wish-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(216, 27, 96, 0.4);
  background: rgba(255, 255, 255, 0.95) !important;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 600;
  color: #D81B60 !important; /* Vibrant Pink Text */
  caret-color: #D81B60;
  outline: none;
  resize: vertical;
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 6px rgba(216, 27, 96, 0.08);
}

#wish-input::placeholder {
  color: rgba(216, 27, 96, 0.55) !important;
  font-weight: 400;
}

#wish-input:focus {
  border-color: var(--wine-color);
  box-shadow: 0 0 15px rgba(216, 27, 96, 0.35);
  background: #FFFFFF !important;
}

.dark-theme #wish-input {
  background: rgba(35, 12, 28, 0.95) !important;
  color: #FF80AB !important;
  border-color: rgba(255, 128, 171, 0.5) !important;
  caret-color: #FF80AB;
}

.dark-theme #wish-input::placeholder {
  color: rgba(255, 128, 171, 0.6) !important;
}

.wish-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-badge {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.privacy-badge.public {
  background: rgba(76, 175, 80, 0.15);
  color: #2E7D32;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.privacy-badge.private {
  background: rgba(216, 27, 96, 0.15);
  color: var(--wine-color);
  border: 1px solid rgba(216, 27, 96, 0.3);
}

.wish-confirmation {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #2E7D32;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: slideDown 0.4s ease;
}

.wish-confirmation.hidden { display: none; }

.copyright-admin-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.copyright-admin-link:hover {
  opacity: 0.85;
}

/* ==========================================================================
   5. COUNTDOWN SECTION
   ========================================================================== */

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.timer-card {
  padding: 30px 20px;
  text-align: center;
}

.timer-number {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--wine-color);
  line-height: 1;
  margin-bottom: 8px;
}

.timer-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ==========================================================================
   6. PHOTO ALBUM (POLAROID TAPED GALLERY)
   ========================================================================== */

.album-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--wine-color);
  color: var(--pure-white);
  box-shadow: 0 6px 18px rgba(216, 27, 96, 0.3);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 45px 30px;
  padding: 25px 15px;
}

/* Polaroid Photo Card Base */
.gallery-item.polaroid-card {
  position: relative;
  background: #FFFFFF;
  padding: 16px 16px 20px 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 
    0 14px 32px rgba(0, 0, 0, 0.09),
    0 3px 10px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, z-index 0.4s ease;
  user-select: none;
}

/* Dark theme polaroid card maintains crisp off-white photo paper look */
.dark-theme .gallery-item.polaroid-card {
  background: #FAF7F2;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Tape Sticker Attached at Top of Polaroid */
.polaroid-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 75px;
  height: 25px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 0 8px rgba(255, 255, 255, 0.9);
  z-index: 5;
  pointer-events: none;
  opacity: 0.9;
}

/* Varied rotations for realistic pinned photo look */
.gallery-item.polaroid-card:nth-child(6n+1) {
  transform: rotate(-3deg);
}

.gallery-item.polaroid-card:nth-child(6n+2) {
  transform: rotate(2.5deg);
}

.gallery-item.polaroid-card:nth-child(6n+3) {
  transform: rotate(-1.8deg);
}

.gallery-item.polaroid-card:nth-child(6n+4) {
  transform: rotate(3deg);
}

.gallery-item.polaroid-card:nth-child(6n+5) {
  transform: rotate(-2.2deg);
}

.gallery-item.polaroid-card:nth-child(6n+6) {
  transform: rotate(1.8deg);
}

/* Hover Lift & Straighten Effect */
.gallery-item.polaroid-card:hover {
  transform: translateY(-10px) scale(1.04) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 
    0 24px 50px rgba(216, 27, 96, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Photo Image Container */
.polaroid-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #F0EDE8;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.polaroid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.polaroid-card:hover .polaroid-img-wrapper img {
  transform: scale(1.06);
}

/* Caption and Date under Polaroid Image */
.polaroid-caption-wrapper {
  padding-top: 16px;
  text-align: center;
}

.polaroid-title {
  font-family: 'Caveat', 'Dancing Script', 'Great Vibes', cursive;
  font-size: 1.75rem;
  font-weight: 700;
  color: #4A2B33;
  line-height: 1.2;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.dark-theme .polaroid-title {
  color: #3D222A;
}

.polaroid-date {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9C7D86;
  letter-spacing: 0.2px;
}

.dark-theme .polaroid-date {
  color: #8C6D76;
}

/* Heart Icon Overlay on Image Hover */
.gallery-heart-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.gallery-item.polaroid-card:hover .gallery-heart-icon {
  transform: scale(1);
}

/* ==========================================================================
   7. LOVE LETTER SECTION (3D ENVELOPE)
   ========================================================================== */

.envelope-container {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.envelope-wrapper {
  position: relative;
  width: 340px;
  height: 230px;
  cursor: pointer;
  perspective: 1000px;
}

.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  background: #F48FB1;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(216, 27, 96, 0.25);
  transition: var(--transition-smooth);
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: #F06292;
  border-radius: 12px;
}

.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-left: 170px solid #F48FB1;
  border-right: 170px solid #F48FB1;
  border-bottom: 115px solid #F06292;
  border-top: 115px solid transparent;
  border-radius: 0 0 12px 12px;
}

.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 4;
  border-left: 170px solid transparent;
  border-right: 170px solid transparent;
  border-top: 120px solid #EC407A;
  transform-origin: top;
  transition: transform 0.6s ease, z-index 0.6s ease;
}

.envelope-seal {
  position: absolute;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-color), var(--gold-accent));
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.envelope-seal:hover {
  transform: translateX(-50%) scale(1.15);
}

.letter-paper {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: #FFFDF9;
  border-radius: 10px;
  padding: 25px;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.8s ease;
  overflow: hidden;
  color: #333;
}

/* Open Envelope State */
.envelope-wrapper.open .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-wrapper.open .letter-paper {
  transform: translateY(-240px) scale(1.15);
  height: 480px;
  z-index: 10;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gold-accent);
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #F8BBD0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.letter-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.letter-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wine-color);
}

.letter-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

.letter-footer {
  text-align: right;
  border-top: 1px solid #F8BBD0;
  padding-top: 10px;
}

.signature {
  font-size: 1.8rem;
  color: var(--wine-color);
}

/* ==========================================================================
   8. VIDEO SECTION
   ========================================================================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.video-card {
  overflow: hidden;
}

.video-thumbnail-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.video-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail-wrapper img {
  transform: scale(1.06);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-color), var(--gold-accent));
  color: var(--pure-white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(216, 27, 96, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: var(--transition-fast);
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;

}

.video-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. SURPRISE SECTION
   ========================================================================== */

.surprises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.surprise-card {
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
}

.surprise-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(216, 27, 96, 0.1);
  color: var(--wine-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 15px;
  transition: var(--transition-fast);
}

.surprise-card:hover .surprise-icon {
  background: var(--wine-color);
  color: var(--pure-white);
  transform: rotate(12deg) scale(1.1);
}

.surprise-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.surprise-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.card-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine-color);
}

/* ==========================================================================
   10. OUR MEMORIES (TIMELINE)
   ========================================================================== */

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(180deg, var(--rose-pink), var(--wine-color), var(--gold-accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.left-item {
  left: 0;
  padding-right: 40px;
}

.right-item {
  left: 50%;
  padding-left: 40px;
}

.timeline-node {
  position: absolute;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wine-color);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 0 15px rgba(216, 27, 96, 0.4);
}

.left-item .timeline-node { right: -20px; }
.right-item .timeline-node { left: -20px; }

.timeline-content {
  padding: 25px;
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine-color);
  background: rgba(216, 27, 96, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.timeline-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 180px;
}

.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Observer Animation */
.observer-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.observer-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   11. ENDING SECTION & FOOTER
   ========================================================================== */

.ending-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.giant-heart-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.giant-heart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-color), var(--gold-accent));
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 15px 40px rgba(216, 27, 96, 0.4);
}

.ending-title {
  font-size: 4.2rem;
  color: var(--wine-color);
  margin-bottom: 15px;
}

.ending-quote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.ending-signature {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
}

#main-footer {
  padding: 40px 20px 100px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.footer-content p {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--wine-color);
  margin-bottom: 5px;
}

.footer-love-names {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--wine-color);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. FLOATING MUSIC PLAYER
   ========================================================================== */

.float-player {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(216, 27, 96, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.player-thumb {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wine-color);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
}

.equalizer-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(216, 27, 96, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.float-player.playing .equalizer-bars { opacity: 1; }
.float-player.playing .music-note-icon { opacity: 0; }

.equalizer-bars .bar {
  width: 3px;
  height: 16px;
  background: var(--pure-white);
  border-radius: 2px;
  animation: eqPulse 1.2s ease-in-out infinite alternate;
}

.equalizer-bars .bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer-bars .bar:nth-child(3) { animation-delay: 0.4s; }
.equalizer-bars .bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes eqPulse {
  0% { height: 4px; }
  100% { height: 20px; }
}

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 145px;
}

.track-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.artist-name {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.progress-bar-container {
  height: 4px;
  background: rgba(216, 27, 96, 0.15);
  border-radius: 4px;
  margin-top: 6px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wine-color), #E91E63);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-color), #E91E63);
  color: var(--pure-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.35);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.player-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(216, 27, 96, 0.5);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-icon {
  font-size: 0.85rem;
  color: var(--wine-color);
}

/* Custom Cross-Browser Volume Slider (No default browser gray/black styling!) */
#volume-slider {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 60px !important;
  height: 6px !important;
  background: rgba(216, 27, 96, 0.25) !important;
  border-radius: 10px !important;
  outline: none !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

#volume-slider:hover {
  background: rgba(216, 27, 96, 0.4) !important;
}

/* WebKit Track & Thumb */
#volume-slider::-webkit-slider-runnable-track {
  width: 100% !important;
  height: 6px !important;
  cursor: pointer !important;
  background: rgba(216, 27, 96, 0.25) !important;
  border-radius: 10px !important;
  border: none !important;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 14px !important;
  width: 14px !important;
  border-radius: 50% !important;
  background: #D81B60 !important;
  cursor: pointer !important;
  margin-top: -4px !important;
  box-shadow: 0 2px 6px rgba(216, 27, 96, 0.5) !important;
  border: 2px solid #FFFFFF !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25) !important;
  background: #E91E63 !important;
}

/* Firefox Track & Thumb */
#volume-slider::-moz-range-track {
  width: 100% !important;
  height: 6px !important;
  cursor: pointer !important;
  background: rgba(216, 27, 96, 0.25) !important;
  border-radius: 10px !important;
  border: none !important;
}

#volume-slider::-moz-range-thumb {
  height: 14px !important;
  width: 14px !important;
  border-radius: 50% !important;
  background: #D81B60 !important;
  border: 2px solid #FFFFFF !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(216, 27, 96, 0.5) !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
}

#volume-slider::-moz-range-thumb:hover {
  transform: scale(1.25) !important;
  background: #E91E63 !important;
}

#scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 320px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   13. MODAL WINDOWS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--pure-white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--wine-color);
}

.surprise-modal-content {
  width: 100%;
  max-width: 500px;
  padding: 40px 30px;
  position: relative;
}

.modal-icon {
  font-size: 3rem;
  color: var(--wine-color);
  margin-bottom: 15px;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.modal-body {
  font-size: 1.02rem;
  color: var(--text-color);
  line-height: 1.7;
}

/* Lightbox Content */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrapper {
  text-align: center;
}

#lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin-top: 15px;
  color: var(--pure-white);
  font-size: 1.1rem;
  font-weight: 500;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--pure-white);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-nav-btn:hover { background: var(--wine-color); }
.prev-btn { left: -70px; }
.next-btn { right: -70px; }

/* Video Modal */
.video-modal-content {
  width: 100%;
  max-width: 800px;
  position: relative;
}

.iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);

}

/* ==========================================================================
   NEW ROMANTIC FEATURES (REASONS, STAR MAP & TIME CAPSULE)
   ========================================================================== */

/* 1. REASONS WHY I LOVE YOU */
.reasons-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.reason-card {
  padding: 40px 30px;
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 35px rgba(216, 27, 96, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme .reason-card {
  background: rgba(35, 10, 25, 0.92);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.reason-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--wine-color), #E91E63);
  color: #FFF;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(216, 27, 96, 0.3);
}

.reason-text-box {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(216, 27, 96, 0.04);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(216, 27, 96, 0.2);
}

.reason-text {
  font-family: 'Caveat', 'Dancing Script', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wine-color);
  line-height: 1.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-theme .reason-text {
  color: #FF80AB;
}

.reason-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* 2. STAR MAP GÖKYÜZÜ PANOSU */
.starmap-container {
  max-width: 650px;
  margin: 0 auto;
}

.starmap-card {
  padding: 35px 25px;
  background: radial-gradient(circle at center, #1F0A25 0%, #0E0314 100%) !important;
  border: 1px solid rgba(244, 197, 66, 0.3) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 197, 66, 0.15);
  color: #FFF;
}

.starmap-view {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 25px;
  border-radius: 50%;
  border: 3px solid rgba(244, 197, 66, 0.5);
  box-shadow: 0 0 30px rgba(244, 197, 66, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  background: #08020C;
}

#starmap-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.starmap-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(216, 27, 96, 0.85);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(216, 27, 96, 0.8);
  pointer-events: none;
}

.starmap-details {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.starmap-tag {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFE082;
}

.starmap-quote {
  font-size: 1.8rem;
  color: #F8BBD0;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* 3. TIME CAPSULE */
.capsule-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.capsule-card {
  padding: 40px 30px;
  background: linear-gradient(145deg, rgba(45, 12, 32, 0.92), rgba(25, 6, 20, 0.95)) !important;
  border: 1px solid rgba(216, 27, 96, 0.4) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.capsule-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-color), var(--gold-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #FFF;
  box-shadow: 0 10px 25px rgba(216, 27, 96, 0.4);
}

.capsule-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
}

.capsule-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.capsule-badge.locked {
  background: rgba(244, 67, 54, 0.2);
  color: #FF8A80;
  border: 1px solid rgba(244, 67, 54, 0.4);
}

.capsule-badge.unlocked {
  background: rgba(76, 175, 80, 0.2);
  color: #A5D6A7;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.capsule-countdown-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.capsule-time-box {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 80px;
}

.capsule-time-box span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-accent);
  line-height: 1;
}

.capsule-time-box small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.capsule-secret-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(244, 197, 66, 0.5);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 20px;
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS (IPHONE 11 & MOBILE OPTIMIZED)
   ========================================================================== */

/* Tablet & Smaller Screens */
@media (max-width: 992px) {
  .hero-title { font-size: 3.8rem; }
  .timeline-line { left: 30px; }
  .timeline-item { width: 100%; padding-left: 70px !important; padding-right: 0 !important; }
  .left-item, .right-item { left: 0; }
  .left-item .timeline-node, .right-item .timeline-node { left: 10px; right: auto; }
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  #scroll-top-btn { right: 20px; bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* Mobile Screens (iPhone 11 & standard smartphones) */
@media (max-width: 768px) {
  /* iOS Safe Area Padding */
  #main-header {
    top: calc(10px + env(safe-area-inset-top));
    width: calc(100% - 24px);
  }

  .glass-nav {
    padding: 8px 16px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 9vw, 3.4rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
    padding: 0 10px;
  }

  .section-container {
    padding: 60px 16px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .mobile-only { display: flex; }
  
  .nav-links {
    position: fixed;
    top: calc(65px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    background: var(--nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1002;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-item {
    padding: 12px 18px;
    width: 100%;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  /* Countdown grid 2x2 on mobile */
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .timer-card {
    padding: 20px 12px;
  }

  .timer-number {
    font-size: 2.4rem;
  }

  /* 3D Envelope Responsive for iPhone 11 */
  .envelope-wrapper { 
    width: 280px; 
    height: 190px; 
  }
  
  .envelope-front { 
    border-left-width: 140px; 
    border-right-width: 140px; 
    border-bottom-width: 95px; 
    border-top-width: 95px; 
  }

  .envelope-top-flap { 
    border-left-width: 140px; 
    border-right-width: 140px; 
    border-top-width: 95px; 
  }

  .envelope-wrapper.open .letter-paper { 
    transform: translateY(-190px) scale(1.02);
    width: 260px;
    height: 400px;
    left: 10px;
    padding: 20px 15px;
  }

  /* Masonry Grid single column */
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-item img {
    height: 270px;
  }

  /* Floating Music Player iPhone 11 & Mobile Layout Fix */
  #scroll-top-btn {
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 1001;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .float-player {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 8px 14px;
    gap: 10px;
    justify-content: space-between;
    max-width: calc(100vw - 24px);
    z-index: 1000;
  }

  .player-thumb {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .player-info {
    flex: 1;
    min-width: 0; /* Prevents text overflow breaking layout */
    width: auto;
  }

  .track-title {
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .artist-name {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .volume-container {
    display: none; /* Hide volume slider on mobile screens to prevent crowding */
  }

  .player-controls {
    gap: 6px;
    flex-shrink: 0;
  }

  .player-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* Small Smartphone Screen (375px - 414px iPhone 11 & SE) */
@media (max-width: 414px) {
  #password-card {
    padding: 30px 20px;
  }

  .password-title {
    font-size: 1.35rem;
  }

  .welcome-typewriter {
    font-size: 2.5rem;
  }

  .welcome-subtitle {
    font-size: 1.15rem;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
  }

  .ending-title {
    font-size: 2.8rem;
  }

  .giant-heart-wrapper {
    width: 90px;
    height: 90px;
  }

  .giant-heart {
    font-size: 3rem;
  }
}

