/* ==========================================================================
   Romantic Luxury Birthday Website for Anandhappriya
   Theme: Burgundy, Blush Pink, Champagne Gold, Cream, Subtle Lavender
   ========================================================================== */

:root {
  --bg-deep: #13060c;
  --bg-dark-burgundy: #220914;
  --bg-burgundy: #380d21;
  --burgundy-mid: #521532;
  --blush-pink: #f7cad0;
  --blush-light: #ffedf0;
  --blush-deep: #e09fbe;
  --champagne-gold: #e5c158;
  --gold-light: #fef1c9;
  --gold-dark: #b8912e;
  --cream: #fffaf4;
  --lavender-subtle: #9d81ba;
  --lavender-soft: #ebdcf9;
  
  --glass-bg: rgba(45, 14, 28, 0.45);
  --glass-border: rgba(229, 193, 88, 0.25);
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 193, 88, 0.08);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --font-cursive: 'Alex Brush', cursive;
  --font-romantic: 'Cormorant Garamond', serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--cream);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 20%, #2f0b1b 0%, #17050f 60%, #0c0207 100%);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Canvas */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   MUSIC CONTROLLER FLOATING BUTTON
   ========================================================================== */
.music-controller {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.music-btn {
  background: rgba(36, 10, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--champagne-gold);
  color: var(--gold-light);
  border-radius: 40px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(229, 193, 88, 0.2);
  transition: var(--transition-smooth);
}

.music-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(229, 193, 88, 0.35);
  background: rgba(56, 13, 33, 0.95);
}

.music-icon {
  font-size: 1.1rem;
}

.music-text {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.music-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-wave span {
  width: 3px;
  height: 4px;
  background: var(--champagne-gold);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.music-btn.playing .music-wave span:nth-child(1) { animation: waveAnim 1s ease-in-out infinite; }
.music-btn.playing .music-wave span:nth-child(2) { animation: waveAnim 0.8s ease-in-out infinite 0.2s; }
.music-btn.playing .music-wave span:nth-child(3) { animation: waveAnim 1.2s ease-in-out infinite 0.4s; }
.music-btn.playing .music-wave span:nth-child(4) { animation: waveAnim 0.9s ease-in-out infinite 0.1s; }

@keyframes waveAnim {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   SIDE NAVIGATION DOTS
   ========================================================================== */
.side-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.side-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(229, 193, 88, 0.35);
  border: 1px solid var(--champagne-gold);
  position: relative;
  transition: var(--transition-smooth);
}

.nav-dot:hover, .nav-dot.active {
  transform: scale(1.4);
  background: var(--champagne-gold);
  box-shadow: 0 0 10px var(--champagne-gold);
}

.nav-dot span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(34, 9, 20, 0.9);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(229, 193, 88, 0.2);
}

.nav-dot:hover span {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 2.5rem;
  z-index: 10;
  background: radial-gradient(circle at center, rgba(68, 17, 40, 0.5) 0%, rgba(20, 4, 13, 0.95) 75%);
}

.hero-glow-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 159, 190, 0.15) 0%, rgba(229, 193, 88, 0.08) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  background: rgba(229, 193, 88, 0.12);
  border: 1px solid rgba(229, 193, 88, 0.4);
  color: var(--champagne-gold);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(229, 193, 88, 0.15);
}

.hero-intro {
  font-family: var(--font-romantic);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--blush-pink);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 10%, var(--blush-light) 40%, var(--champagne-gold) 75%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(229, 193, 88, 0.3));
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
  margin-bottom: 1.8rem;
}

.hero-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne-gold), transparent);
}

.hero-divider .heart {
  font-size: 1.4rem;
  animation: heartBeat 2s infinite;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(255, 100, 150, 0.8));
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); }
  70% { transform: scale(1); }
}

.hero-subtitle {
  font-family: var(--font-romantic);
  font-size: 1.35rem;
  font-weight: 300;
  color: #eed6df;
  max-width: 640px;
  margin-bottom: 2.8rem;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* Luxury Primary Button */
.btn-primary-luxury {
  position: relative;
  background: linear-gradient(135deg, #7c1a45 0%, #460f27 50%, #2a0717 100%);
  color: #fffaf4;
  border: 1px solid var(--champagne-gold);
  padding: 16px 38px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 1.5px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(70, 15, 39, 0.6), 0 0 20px rgba(229, 193, 88, 0.3);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.btn-primary-luxury::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.btn-primary-luxury:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--gold-light);
  box-shadow: 0 15px 40px rgba(124, 26, 69, 0.7), 0 0 30px rgba(229, 193, 88, 0.6);
}

.btn-primary-luxury:hover::before {
  opacity: 1;
}

.btn-primary-luxury .btn-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-primary-luxury:hover .btn-icon {
  transform: scale(1.2) rotate(-8deg);
}

.scroll-hint {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(247, 202, 208, 0.6);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scroll-hint:hover {
  color: var(--champagne-gold);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(229, 193, 88, 0.4);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background: var(--champagne-gold);
  border-radius: 2px;
  animation: mouseScroll 1.8s infinite;
}

@keyframes mouseScroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   SURPRISE CONTAINER (COLLAPSED / REVEALED)
   ========================================================================== */
.surprise-container {
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
}

.surprise-container.collapsed {
  display: none;
  opacity: 0;
  transform: translateY(60px);
}

/* Section Shared Styling */
.section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .subheading {
  display: block;
  font-family: var(--font-romantic);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--champagne-gold);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  color: rgba(247, 202, 208, 0.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
}

.gold-divider {
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--champagne-gold), transparent);
  margin: 0 auto;
}

/* Glassmorphism Luxury Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   BIRTHDAY MESSAGE SECTION
   ========================================================================== */
.message-section {
  background: linear-gradient(180deg, rgba(20, 5, 13, 0) 0%, rgba(45, 11, 27, 0.4) 50%, rgba(20, 5, 13, 0) 100%);
}

.message-card {
  position: relative;
  padding: 3.5rem 3.5rem;
  max-width: 860px;
  margin: 0 auto;
  border-color: rgba(229, 193, 88, 0.3);
}

.card-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--champagne-gold);
  pointer-events: none;
}

.corner-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.message-quote-mark {
  position: absolute;
  top: 10px;
  left: 30px;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(229, 193, 88, 0.08);
  pointer-events: none;
}

.message-body {
  position: relative;
  z-index: 2;
  font-family: var(--font-romantic);
  font-size: 1.35rem;
  line-height: 2;
  color: #fff1f4;
  font-weight: 300;
}

.message-lead {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
}

.highlight-name {
  font-family: var(--font-serif);
  background: linear-gradient(135deg, var(--gold-light), var(--champagne-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.message-body p {
  margin-bottom: 1.5rem;
}

.message-promise {
  font-style: italic;
  padding: 1.2rem 1.8rem;
  border-left: 3px solid var(--champagne-gold);
  background: rgba(229, 193, 88, 0.06);
  border-radius: 0 12px 12px 0;
  margin-top: 2rem !important;
  color: var(--blush-light);
}

.message-signature {
  margin-top: 2.5rem;
  text-align: right;
  font-size: 1.15rem;
  color: rgba(255, 237, 240, 0.85);
}

.signature-font {
  font-family: var(--font-cursive);
  font-size: 2.6rem;
  color: var(--champagne-gold);
  margin-top: 0.2rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   OUR MEMORIES GALLERY
   ========================================================================== */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.memory-card {
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  transform: translateY(0);
}

.memory-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 193, 88, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 193, 88, 0.2);
}

.memory-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #1c0612;
}

.memory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.memory-card:hover .memory-img {
  transform: scale(1.08);
}

.memory-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 9, 20, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.memory-card:hover .memory-overlay {
  opacity: 1;
}

.zoom-icon {
  background: rgba(19, 6, 12, 0.85);
  border: 1px solid var(--champagne-gold);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.memory-content {
  padding: 1.5rem 1.6rem;
}

.memory-date {
  font-family: var(--font-romantic);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--champagne-gold);
  display: block;
  margin-bottom: 0.3rem;
}

.memory-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.memory-desc {
  font-family: var(--font-romantic);
  font-size: 1.05rem;
  color: rgba(247, 202, 208, 0.85);
  font-style: italic;
  line-height: 1.5;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 2, 6, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(34, 9, 20, 0.7);
  border: 1px solid var(--champagne-gold);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(229, 193, 88, 0.25);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--champagne-gold);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-image-box {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-box img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  margin-top: 1.2rem;
  font-family: var(--font-romantic);
  font-size: 1.25rem;
  color: var(--gold-light);
  font-style: italic;
  text-align: center;
}

/* Custom hint banner */
.custom-hint-banner {
  background: rgba(229, 193, 88, 0.08);
  border: 1px dashed rgba(229, 193, 88, 0.35);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 2.5rem;
}

.custom-hint-banner code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blush-pink);
}

/* ==========================================================================
   LOVE TIMELINE - LUXURY ROMANTIC EDITION
   ========================================================================== */
.timeline-section {
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(88, 18, 52, 0.35) 0%, rgba(34, 9, 20, 0.8) 50%, rgba(10, 2, 6, 0.95) 100%);
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.06) 0%, rgba(255, 111, 145, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.timeline-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  z-index: 1;
}

/* Central Timeline Spine */
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(229, 193, 88, 0.15) 0%, rgba(229, 193, 88, 0.4) 15%, rgba(255, 111, 145, 0.4) 85%, rgba(229, 193, 88, 0.15) 100%);
  border-radius: 4px;
}

/* Dynamic Scroll Glowing Fill along the spine */
.timeline-line-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #b8912e 0%, var(--champagne-gold) 35%, #ff6f91 100%);
  box-shadow: 0 0 16px rgba(229, 193, 88, 0.9), 0 0 30px rgba(255, 111, 145, 0.6);
  border-radius: 4px;
  transition: height 0.15s ease-out;
}

/* Timeline Item Layout & Animated Branch Connectors */
.timeline-item {
  position: relative;
  margin-bottom: 4.2rem;
  width: 50%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Left items */
.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 55px;
  text-align: right;
}

/* Right items */
.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 55px;
  text-align: left;
}

/* Horizontal Connector Line from Spine to Card */
.timeline-item::after {
  content: '';
  position: absolute;
  top: 36px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(229, 193, 88, 0.6), rgba(247, 202, 208, 0.3));
  z-index: 1;
  transition: all 0.4s ease;
}

.timeline-item:nth-child(odd)::after {
  right: 21px;
  background: linear-gradient(270deg, rgba(229, 193, 88, 0.7), rgba(247, 202, 208, 0.2));
}

.timeline-item:nth-child(even)::after {
  left: 21px;
  background: linear-gradient(90deg, rgba(229, 193, 88, 0.7), rgba(247, 202, 208, 0.2));
}

.timeline-item:hover::after {
  height: 3px;
  background: var(--champagne-gold);
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.8);
}

/* Timeline Central Icon Badge */
.timeline-badge {
  position: absolute;
  top: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6a163a, #1a0410);
  border: 2px solid var(--champagne-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 18px rgba(229, 193, 88, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 6;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -22px;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -22px;
}

.badge-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(229, 193, 88, 0.5);
  pointer-events: none;
  animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.timeline-item:hover .timeline-badge {
  transform: scale(1.18);
  border-color: #fff;
  box-shadow: 0 0 25px rgba(229, 193, 88, 0.8), 0 0 10px #ff6f91;
}

.timeline-badge.birthday-badge {
  width: 52px;
  height: 52px;
  top: 10px;
  border-color: #ffd700;
  background: radial-gradient(circle at 35% 35%, #ff4b72, #7c1a45);
  box-shadow: 0 0 30px rgba(255, 75, 114, 0.8), 0 0 15px rgba(255, 215, 0, 0.6);
  animation: heartBeat 1.8s infinite;
}

.timeline-item:nth-child(odd) .timeline-badge.birthday-badge {
  right: -26px;
}

.timeline-item:nth-child(even) .timeline-badge.birthday-badge {
  left: -26px;
}

/* Timeline Card Glassmorphism & Aesthetics */
.timeline-content {
  position: relative;
  padding: 2.2rem 2.2rem 1.8rem;
  border-radius: 20px;
  background: rgba(36, 9, 23, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 193, 88, 0.28);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

/* Animated subtle top gradient border line on card */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(229, 193, 88, 0.8), rgba(255, 111, 145, 0.8), transparent);
  opacity: 0.6;
  transition: opacity 0.4s ease, height 0.3s ease;
}

.timeline-content:hover::before {
  opacity: 1;
  height: 4px;
}

.timeline-content:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 193, 88, 0.6);
  background: rgba(46, 12, 29, 0.78);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 28px rgba(229, 193, 88, 0.25);
}

.timeline-content.highlight-card {
  border-color: var(--champagne-gold);
  background: radial-gradient(circle at top right, rgba(94, 22, 53, 0.85), rgba(46, 11, 28, 0.85));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(229, 193, 88, 0.35);
}

/* Luxury Watermark & Corner Accents */
.t-card-watermark {
  position: absolute;
  bottom: 8px;
  right: 18px;
  font-size: 5.5rem;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  line-height: 1;
}

.timeline-item:nth-child(odd) .t-card-watermark {
  left: 18px;
  right: auto;
}

.timeline-content:hover .t-card-watermark {
  opacity: 0.12;
  transform: scale(1.08) rotate(-4deg);
}

.t-card-accent {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(229, 193, 88, 0.4);
  pointer-events: none;
}

.accent-top-left {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.accent-bottom-right {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* Header row inside timeline card */
.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-item:nth-child(odd) .timeline-header-row {
  flex-direction: row-reverse;
}

.timeline-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-mood-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--champagne-gold);
  opacity: 0.7;
}

.timeline-read-time {
  font-size: 0.72rem;
  font-family: var(--font-body);
  color: rgba(247, 202, 208, 0.65);
  letter-spacing: 0.5px;
}

.timeline-date {
  font-family: var(--font-romantic);
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--champagne-gold);
  font-weight: 600;
  display: inline-block;
}

.timeline-chap-index {
  font-size: 0.74rem;
  color: rgba(229, 193, 88, 0.7);
  letter-spacing: 1.5px;
  font-family: var(--font-body);
  text-transform: uppercase;
  background: rgba(229, 193, 88, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(229, 193, 88, 0.2);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.timeline-text {
  font-family: var(--font-romantic);
  font-size: 1.18rem;
  line-height: 1.78;
  color: #fedee5;
  margin-bottom: 1.1rem;
  letter-spacing: 0.2px;
}

.timeline-content p.timeline-text:last-of-type {
  margin-bottom: 1.3rem;
}

.timeline-content em {
  color: #ffd1dc;
  font-style: italic;
}

/* Timeline Tag & Footer */
.timeline-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(229, 193, 88, 0.18);
}

.timeline-item:nth-child(odd) .timeline-card-footer {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-card-footer {
  flex-direction: row;
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(229, 193, 88, 0.09);
  border: 1px solid rgba(229, 193, 88, 0.35);
  color: var(--gold-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.timeline-tag::before {
  content: '✨';
  font-size: 0.7rem;
}

.timeline-content:hover .timeline-tag {
  border-color: var(--champagne-gold);
  background: rgba(229, 193, 88, 0.18);
  color: #fff;
}

.timeline-tag.highlight-tag {
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.3), rgba(229, 193, 88, 0.2));
  border-color: rgba(255, 111, 145, 0.6);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 111, 145, 0.4);
}

/* Cherish Button Refinement */
.btn-cherish-reaction {
  background: rgba(19, 6, 12, 0.8);
  border: 1px solid rgba(247, 202, 208, 0.35);
  color: var(--blush-light);
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.btn-cherish-reaction:hover {
  background: rgba(142, 33, 76, 0.65);
  border-color: #ff6f91;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 111, 145, 0.4);
}

.btn-cherish-reaction.cherished {
  background: linear-gradient(135deg, rgba(162, 30, 80, 0.95), rgba(220, 38, 38, 0.85));
  border-color: #ff6f91;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 111, 145, 0.6);
}

.btn-cherish-reaction .cherish-heart {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cherish-reaction:hover .cherish-heart,
.btn-cherish-reaction.cherished .cherish-heart {
  transform: scale(1.35);
}

.cherish-count {
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-light);
  border: 1px solid rgba(229, 193, 88, 0.25);
}

/* Timeline Card Active Glow on Click/Focus */
.timeline-content.interactive-focused {
  border-color: var(--champagne-gold) !important;
  background: rgba(56, 14, 35, 0.9) !important;
  box-shadow: 0 0 35px rgba(229, 193, 88, 0.5), 0 20px 45px rgba(0, 0, 0, 0.7) !important;
  transform: scale(1.025) !important;
}

/* Item Filter Transitions */
.timeline-item.filter-hidden {
  display: none !important;
}

/* Cherish burst floating heart */
.cherish-float-heart {
  position: absolute;
  pointer-events: none;
  font-size: 1.35rem;
  z-index: 1000;
  animation: cherishFlyUp 0.95s ease-out forwards;
}

@keyframes cherishFlyUp {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.7);
  }
  50% {
    opacity: 0.95;
    transform: translate(calc(-20px + 40px * var(--rand-x, 0.5)), -50px) scale(1.4);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-30px + 60px * var(--rand-x, 0.5)), -95px) scale(0.9);
  }
}

/* ==========================================================================
   INTERACTIVE TIMELINE CONTROLS & CHERISH ACTIONS
   ========================================================================== */
.timeline-interactive-bar {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  background: rgba(36, 9, 24, 0.75);
  border: 1px solid rgba(229, 193, 88, 0.35);
  border-radius: 24px;
  padding: 1.8rem 2.2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.timeline-interactive-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--champagne-gold), #ff6f91, transparent);
}

.timeline-filter-title {
  font-family: var(--font-romantic);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.5px;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.t-filter-btn {
  background: rgba(19, 6, 12, 0.75);
  border: 1px solid rgba(229, 193, 88, 0.28);
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.t-filter-btn:hover {
  border-color: var(--champagne-gold);
  background: rgba(76, 17, 44, 0.85);
  transform: translateY(-2px);
  color: var(--gold-light);
  box-shadow: 0 6px 15px rgba(229, 193, 88, 0.25);
}

.t-filter-btn.active {
  background: linear-gradient(135deg, rgba(162, 33, 85, 0.95), rgba(229, 193, 88, 0.45));
  border-color: var(--champagne-gold);
  color: #fff;
  box-shadow: 0 0 20px rgba(229, 193, 88, 0.45), 0 4px 15px rgba(0, 0, 0, 0.4);
  font-weight: 500;
  transform: translateY(-1px);
}

/* Timeline Reading Progress Bar */
.timeline-progress-container {
  border-top: 1px dashed rgba(229, 193, 88, 0.25);
  padding-top: 1.2rem;
}

.timeline-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(247, 202, 208, 0.9);
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
}

.timeline-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(14, 4, 9, 0.85);
  border: 1px solid rgba(229, 193, 88, 0.3);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.timeline-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b8912e, var(--champagne-gold), #ff6f91);
  border-radius: 12px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 14px rgba(229, 193, 88, 0.8);
}

/* ==========================================================================
   REASONS WHY I LOVE YOU
   ========================================================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.reason-card {
  padding: 2.2rem 2rem;
  border-radius: 18px;
  text-align: center;
  transition: var(--transition-smooth);
}

.reason-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 193, 88, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 193, 88, 0.2);
}

.reason-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 10px rgba(229, 193, 88, 0.3));
}

.reason-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.reason-desc {
  font-family: var(--font-romantic);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 237, 240, 0.85);
}

/* Extra reasons reveal */
.extra-reasons-container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.8s ease, margin 0.5s ease;
  margin-top: 0;
}

.extra-reasons-container.expanded {
  max-height: 1200px;
  opacity: 1;
  margin-top: 2rem;
}

.reasons-action {
  text-align: center;
  margin-top: 3.5rem;
}

.btn-secondary-luxury {
  background: rgba(45, 11, 27, 0.6);
  border: 1px solid var(--champagne-gold);
  color: var(--gold-light);
  padding: 14px 34px;
  border-radius: 40px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary-luxury:hover {
  background: rgba(76, 17, 44, 0.8);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(229, 193, 88, 0.3);
}

/* ==========================================================================
   BIRTHDAY SURPRISE (INTERACTIVE CAKE)
   ========================================================================== */
.cake-section {
  background: linear-gradient(180deg, rgba(20, 5, 13, 0) 0%, rgba(56, 13, 33, 0.4) 50%, rgba(20, 5, 13, 0) 100%);
}

.cake-interactive-stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Cake Art */
.cake-wrapper {
  margin: 2rem auto 2.5rem;
  height: 220px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.cake {
  position: relative;
  width: 250px;
  height: 180px;
}

.plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 16px;
  background: linear-gradient(180deg, #dfc266, #926f1a);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 193, 88, 0.3);
}

.layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px 12px 4px 4px;
}

.layer-bottom {
  bottom: 16px;
  width: 220px;
  height: 60px;
  background: linear-gradient(135deg, #441126, #2d0b1a);
  border: 1px solid rgba(229, 193, 88, 0.3);
}

.layer-middle {
  bottom: 74px;
  width: 170px;
  height: 50px;
  background: linear-gradient(135deg, #611837, #3e0e22);
  border: 1px solid rgba(229, 193, 88, 0.3);
}

.layer-top {
  bottom: 122px;
  width: 120px;
  height: 45px;
  background: linear-gradient(135deg, #811e49, #4f112d);
  border: 1px solid rgba(229, 193, 88, 0.3);
  overflow: hidden;
}

.frosting {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, #ffeef2, #e5b2c6);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Candles Rack */
.candles-rack {
  position: absolute;
  bottom: 165px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  align-items: flex-end;
}

.candle {
  position: relative;
  width: 12px;
  height: 38px;
  background: repeating-linear-gradient(45deg, #fff, #fff 5px, #e5c158 5px, #e5c158 10px);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.wick {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 7px;
  background: #333;
}

.flame {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  background: radial-gradient(circle at bottom, #fff 0%, #ffdf6d 40%, #ff5e36 80%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  animation: flicker 1.2s ease-in-out infinite alternate;
  box-shadow: 0 0 15px rgba(255, 170, 50, 0.8), 0 0 30px rgba(255, 90, 50, 0.5);
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-1deg); }
  50% { transform: translateX(-50%) scale(1.1, 0.95) rotate(2deg); }
  100% { transform: translateX(-50%) scale(0.95, 1.1) rotate(-2deg); }
}

.flame.extinguished {
  opacity: 0;
  transform: translateX(-50%) scale(0.1);
  pointer-events: none;
}

/* Smoke puff when blown */
.flame.extinguished::after {
  content: '💨';
  position: absolute;
  top: -10px;
  left: -5px;
  font-size: 16px;
  opacity: 0.8;
  animation: smokePuff 1s forwards ease-out;
}

@keyframes smokePuff {
  0% { transform: translateY(0) scale(0.5); opacity: 0.9; }
  100% { transform: translateY(-30px) scale(1.4); opacity: 0; }
}

/* Cake Controls */
.cake-controls {
  margin-top: 1rem;
}

.btn-blow-candles {
  background: linear-gradient(135deg, #e5c158, #b8912e);
  color: #1a0610;
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 15px 36px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 25px rgba(229, 193, 88, 0.4);
  transition: var(--transition-smooth);
}

.btn-blow-candles:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 35px rgba(229, 193, 88, 0.6);
  background: linear-gradient(135deg, #fef1c9, #e5c158);
}

.cake-hint {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(247, 202, 208, 0.65);
  font-style: italic;
}

/* Wish Box Reveal */
.wish-reveal-box {
  display: none;
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  background: rgba(56, 13, 33, 0.7);
  border: 1px solid var(--champagne-gold);
  border-radius: 18px;
  animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(229, 193, 88, 0.3);
}

.wish-reveal-box.active {
  display: block;
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wish-confetti-badge {
  font-family: var(--font-serif);
  color: var(--champagne-gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.wish-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  background: linear-gradient(135deg, #ffffff, var(--blush-light), var(--champagne-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.wish-text {
  font-family: var(--font-romantic);
  font-size: 1.25rem;
  color: var(--cream);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 1.8rem;
}

.sparkle-cluster {
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  animation: pulseGlow 2s infinite alternate;
}

.btn-re-wish {
  background: transparent;
  border: 1px solid rgba(229, 193, 88, 0.5);
  color: var(--champagne-gold);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-re-wish:hover {
  background: rgba(229, 193, 88, 0.15);
  border-color: var(--gold-light);
}

/* ==========================================================================
   LOVE LETTER (ENVELOPE ANIMATION)
   ========================================================================= */
.letter-section {
  position: relative;
  overflow: visible; /* Allows letter paper to rise above cleanly */
}

.letter-interaction-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.envelope-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 520px;
  height: 380px;
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.envelope {
  position: relative;
  width: 480px;
  height: 290px;
  margin: auto;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.envelope:hover {
  transform: translateY(-4px);
}

.envelope-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #380d21;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.envelope-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 240px solid #4a132d;
  border-right: 240px solid #4a132d;
  border-top: 145px solid transparent;
  border-bottom: 145px solid #360c20;
  border-radius: 0 0 12px 12px;
  z-index: 10;
  pointer-events: none;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 240px solid transparent;
  border-right: 240px solid transparent;
  border-top: 155px solid #561634;
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.3s;
  z-index: 12;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.envelope.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.wax-seal {
  position: absolute;
  top: -170px;
  left: -24px;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, #e5c158, #926f1a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  color: #2b0818;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  border: 1px solid #ffd976;
  cursor: pointer;
}

/* Letter Paper */
.letter-paper {
  position: absolute;
  top: 15px;
  left: 18px;
  right: 18px;
  background: #fffdf9;
  border-radius: 8px;
  padding: 2.5rem 2.2rem;
  color: #2c121e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 5;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), top 0.9s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.4s;
  overflow-y: auto;
  max-height: 260px;
  border: 1px solid rgba(229, 193, 88, 0.3);
}

.envelope.open .letter-paper {
  top: -240px;
  z-index: 20;
  max-height: 540px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  background: #fffdfa;
}

.letter-inner-content {
  font-family: var(--font-romantic);
  font-size: 1.25rem;
  line-height: 1.85;
  color: #381223;
}

.letter-stamp {
  display: inline-block;
  float: right;
  border: 1px dashed #b8912e;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #7c1a45;
  border-radius: 4px;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #7c1a45;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.letter-p {
  margin-bottom: 1rem;
}

.letter-end {
  margin-top: 1.4rem;
  font-style: italic;
}

.handwritten-sign {
  font-family: var(--font-cursive);
  font-size: 2.8rem;
  color: #7c1a45;
  text-align: right;
  margin-top: -5px;
}

.letter-hint-box {
  text-align: center;
  margin-top: 1.8rem;
}

.btn-open-letter {
  background: linear-gradient(135deg, #5c1435, #350a1d);
  border: 1px solid var(--champagne-gold);
  color: var(--gold-light);
  padding: 13px 34px;
  border-radius: 40px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-open-letter:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 10px 25px rgba(229, 193, 88, 0.3);
}

.letter-tip {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(247, 202, 208, 0.6);
}

/* ==========================================================================
   FINAL SECTION
   ========================================================================== */
.final-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 8rem;
  background: radial-gradient(circle at center, rgba(68, 17, 40, 0.6) 0%, rgba(15, 3, 10, 0.98) 75%);
}

.final-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 159, 190, 0.18) 0%, rgba(229, 193, 88, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.final-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-big-heart {
  margin-bottom: 1.5rem;
}

.pulsing-heart {
  font-size: 3.5rem;
  animation: heartBeat 2.2s infinite;
  filter: drop-shadow(0 0 20px rgba(255, 70, 120, 0.8));
}

.final-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--cream);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.final-quote-box {
  max-width: 720px;
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  border-color: rgba(229, 193, 88, 0.4);
}

.final-quote {
  font-family: var(--font-romantic);
  font-size: 1.85rem;
  line-height: 1.6;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.final-divider {
  width: 60px;
  height: 1px;
  background: var(--champagne-gold);
  margin: 0 auto 1.5rem;
}

.final-closing {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--blush-pink);
}

.final-credits {
  font-size: 0.85rem;
  color: rgba(247, 202, 208, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.celebrate-year {
  margin-top: 0.5rem;
  font-family: var(--font-romantic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--champagne-gold);
}

/* ==========================================================================
   INTERACTIVE CLICK HEARTS
   ========================================================================== */
.interactive-click-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.4rem;
  transform: translate(-50%, -50%);
  animation: floatFadeHeart 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.7));
}

@keyframes floatFadeHeart {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -80px) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -130px) scale(0.8);
    opacity: 0;
  }
}

/* ==========================================================================
   SCROLL REVEAL & KEYFRAME ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  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);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards ease-out;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1.1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-grow {
  transform: scaleX(0);
  animation: growLine 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-bounce-subtle {
  animation: subtleBounce 3s ease-in-out infinite alternate;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.45s; }
.delay-3 { animation-delay: 0.7s; }
.delay-4 { animation-delay: 0.95s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes growLine {
  to { transform: scaleX(1); }
}

@keyframes subtleBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-name {
    font-size: 3.8rem;
  }
  
  .timeline-wrapper {
    padding: 1.5rem 0 3rem;
  }

  .timeline-line {
    left: 24px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 65px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-bottom: 3rem;
  }
  
  .timeline-item::after {
    left: 24px !important;
    right: auto !important;
    width: 32px !important;
    background: linear-gradient(90deg, rgba(229, 193, 88, 0.7), rgba(247, 202, 208, 0.2)) !important;
  }

  .timeline-badge {
    left: 3px !important;
    right: auto !important;
  }

  .timeline-badge.birthday-badge {
    left: -1px !important;
    right: auto !important;
  }

  .timeline-header-row {
    flex-direction: row !important;
  }

  .timeline-card-footer {
    flex-direction: row !important;
  }

  .t-card-watermark {
    left: auto !important;
    right: 14px !important;
    font-size: 4rem;
  }

  .timeline-interactive-bar {
    padding: 1.4rem 1.2rem;
    margin-bottom: 2.5rem;
  }

  .t-filter-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  
  .message-card {
    padding: 2.2rem 1.8rem;
  }
  
  .side-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-name {
    font-size: 2.8rem;
  }
  
  .hero-intro {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .envelope-wrapper {
    max-width: 320px;
    height: 300px;
  }
  
  .envelope {
    width: 310px;
    height: 220px;
  }
  
  .envelope-front {
    border-left-width: 155px;
    border-right-width: 155px;
    border-top-width: 100px;
    border-bottom-width: 110px;
  }
  
  .envelope-flap {
    border-left-width: 155px;
    border-right-width: 155px;
    border-top-width: 120px;
  }
  
  .envelope.open .letter-paper {
    top: -190px;
    max-height: 440px;
  }
  
  .cake-wrapper {
    transform: scale(0.85);
  }
  
  .final-quote {
    font-size: 1.35rem;
  }
  
  .music-btn {
    padding: 8px 14px;
  }
  .music-text {
    font-size: 0.75rem;
  }
}

/* Enhancements for Rich Story Timeline & Smooth Scroll Experience */
.highlight-gold {
  color: var(--champagne-gold);
  font-weight: 600;
}

.timeline-content p.timeline-text {
  margin-bottom: 0.9rem;
}

.timeline-content p.timeline-text:last-of-type {
  margin-bottom: 1.2rem;
}

.timeline-content em {
  color: var(--blush-light);
  font-style: italic;
}

/* Timeline smooth reading width */
.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

/* ==========================================================================
   HERO PORTRAIT & ROMANTIC VIDEO SECTION STYLES
   ========================================================================== */

/* Hero Portrait Frame */
.hero-portrait-frame {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--champagne-gold), #ff8ea9, var(--gold-light));
  box-shadow: 0 0 25px rgba(229, 193, 88, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: pulsePortrait 4s ease-in-out infinite alternate;
}

@keyframes pulsePortrait {
  0% { transform: scale(0.98); box-shadow: 0 0 20px rgba(229, 193, 88, 0.35); }
  100% { transform: scale(1.03); box-shadow: 0 0 35px rgba(255, 142, 169, 0.6); }
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #220914;
  display: block;
}

.portrait-heart-badge {
  position: absolute;
  bottom: 0;
  right: 4px;
  background: #7c1a45;
  border: 2px solid var(--champagne-gold);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  animation: heartBeat 2s infinite;
}

/* Video Section */
.video-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(56, 13, 33, 0.35) 0%, rgba(19, 6, 12, 0) 70%);
}

.video-container-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.8rem;
  border-radius: 24px;
  border: 1px solid rgba(229, 193, 88, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 193, 88, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-player-wrapper {
  width: 100%;
  max-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-romantic-video {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 16px;
  outline: none;
}

.video-caption-box {
  text-align: center;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.video-badge {
  display: inline-block;
  background: rgba(229, 193, 88, 0.12);
  border: 1px solid rgba(229, 193, 88, 0.3);
  color: var(--champagne-gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.video-caption-text {
  font-family: var(--font-romantic);
  font-size: 1.25rem;
  color: #fedee5;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.video-signature {
  font-family: var(--font-serif);
  color: var(--champagne-gold);
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Dual Video Grid Layout */
.videos-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  max-width: 960px;
  margin: 0 auto;
}

.videos-dual-grid .video-container-card {
  max-width: 100%;
}

/* ==========================================================================
   SHAKE TO BLOW THE CANDLE STYLES
   ========================================================================== */
.shake-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 193, 88, 0.15);
  border: 1px solid var(--champagne-gold);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  animation: shakeNotice 3s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(229, 193, 88, 0.2);
}

@keyframes shakeNotice {
  0%, 80%, 100% { transform: translateX(0); }
  85% { transform: translateX(-6px) rotate(-3deg); }
  90% { transform: translateX(6px) rotate(3deg); }
  95% { transform: translateX(-4px) rotate(-1deg); }
}

.shake-icon {
  font-size: 1.2rem;
  display: inline-block;
  animation: shakeHand 2.5s infinite;
}

@keyframes shakeHand {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-25deg); }
  40% { transform: rotate(25deg); }
  60% { transform: rotate(-15deg); }
  80% { transform: rotate(15deg); }
}

.cake-shake-active {
  animation: cakeVibrate 0.4s ease-in-out 2;
}

@keyframes cakeVibrate {
  0%, 100% { transform: translateX(0) scale(1); }
  25% { transform: translateX(-8px) rotate(-2deg); }
  75% { transform: translateX(8px) rotate(2deg); }
}

.shake-hint-text {
  display: block;
  font-size: 0.88rem;
  color: var(--gold-light);
  font-style: italic;
  margin-top: 0.5rem;
}

.simulate-shake-btn {
  background: rgba(56, 13, 33, 0.7);
  border: 1px dashed var(--champagne-gold);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: var(--transition-smooth);
}

.simulate-shake-btn:hover {
  background: rgba(90, 20, 50, 0.9);
  border-style: solid;
  transform: translateY(-2px);
}

/* ==========================================================================
   INTERACTIVE INCOMING CALL / RINGTONE MODAL (CHAPTER 25)
   ========================================================================== */
.incoming-call-box {
  margin-top: 1.5rem;
  background: rgba(36, 9, 22, 0.75);
  border: 1px solid var(--champagne-gold);
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 193, 88, 0.15);
}

.incoming-call-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.call-avatar-pulse {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--champagne-gold);
  overflow: hidden;
  box-shadow: 0 0 15px rgba(229, 193, 88, 0.4);
}

.call-avatar-pulse img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-avatar-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ff6f91;
  animation: rippleCall 1.8s infinite;
  pointer-events: none;
}

@keyframes rippleCall {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.call-caller-info {
  text-align: left;
}

.call-caller-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-light);
  line-height: 1.2;
}

.call-caller-status {
  font-size: 0.82rem;
  color: #ff8ea9;
  letter-spacing: 1px;
}

.btn-answer-call {
  background: linear-gradient(135deg, #1fa34a, #137333);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(31, 163, 74, 0.5);
  transition: var(--transition-smooth);
}

.btn-answer-call:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(31, 163, 74, 0.7);
}

.btn-answer-call.active-call {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
}

.call-note-hint {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255, 237, 240, 0.7);
  font-style: italic;
}

/* Lightbox Full Screen Polish */
.lightbox-modal {
  z-index: 999999 !important;
}

.lightbox-modal.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.lightbox-backdrop {
  cursor: pointer;
}

.lightbox-close {
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 9, 20, 0.6);
  border: 1px solid var(--champagne-gold);
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: rgba(76, 17, 44, 0.9);
  transform: scale(1.15) rotate(90deg);
}

.memory-overlay {
  cursor: pointer;
}

.zoom-icon {
  pointer-events: none;
}

/* ==========================================================================
   ROMANTIC BRAND NAVBAR & LOGO EMBLEMS
   ========================================================================== */

/* Top Floating Brand Header */
.romantic-brand-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 24px;
  background: rgba(22, 6, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 193, 88, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.brand-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-wrap:hover {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--champagne-gold);
  box-shadow: 0 0 12px rgba(229, 193, 88, 0.4);
  background: #fffdf9;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--cream);
  letter-spacing: 1px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(229, 193, 88, 0.3);
}

.brand-tagline {
  font-family: var(--font-romantic);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* Hero Section Emblem Frame with Logo */
.hero-logo-emblem {
  position: relative;
  width: 175px;
  height: 175px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--champagne-gold) 0%, #ff6f91 50%, var(--gold-light) 100%);
  box-shadow: 0 0 35px rgba(229, 193, 88, 0.5), 0 12px 35px rgba(0, 0, 0, 0.6);
  animation: pulseLogoEmblem 4s ease-in-out infinite alternate;
}

.logo-emblem-halo {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(229, 193, 88, 0.45);
  pointer-events: none;
  animation: spinSlow 20s linear infinite;
}

@keyframes pulseLogoEmblem {
  0% {
    transform: scale(0.97);
    box-shadow: 0 0 25px rgba(229, 193, 88, 0.4);
  }
  100% {
    transform: scale(1.03);
    box-shadow: 0 0 45px rgba(255, 111, 145, 0.65), 0 0 20px rgba(229, 193, 88, 0.6);
  }
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #220914;
  background: #fffdf9;
  display: block;
}

/* Final Section Emblem Badge */
.final-emblem-badge {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--champagne-gold), #ff6f91);
  box-shadow: 0 0 30px rgba(229, 193, 88, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: heartBeat 3s infinite ease-in-out;
}

.final-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #280917;
  background: #fffdf9;
  display: block;
}

@media (max-width: 600px) {
  .brand-tagline {
    display: none;
  }
  .hero-logo-emblem {
    width: 145px;
    height: 145px;
  }
  .final-emblem-badge {
    width: 120px;
    height: 120px;
  }
}

/* ==========================================================================
   PASSWORD & COUNTDOWN LOCK SCREEN
   ========================================================================== */
.lock-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #2e091b 0%, #17040d 60%, #080105 100%);
  padding: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.lock-screen-overlay.unlocked {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
}

.lock-screen-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.15) 0%, rgba(255, 111, 145, 0.12) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.lock-card {
  position: relative;
  max-width: 540px;
  width: 100%;
  padding: 2.8rem 2.4rem;
  border-radius: 28px;
  background: rgba(36, 9, 23, 0.88);
  border: 1px solid rgba(229, 193, 88, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(229, 193, 88, 0.25);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2;
}

.lock-portrait-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--champagne-gold), #ff6f91);
  box-shadow: 0 0 25px rgba(229, 193, 88, 0.5);
  animation: pulseLogoEmblem 4s ease-in-out infinite alternate;
}

.lock-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fffdf9;
  border: 2px solid #280917;
  display: block;
}

.lock-heart-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: #7c1a45;
  border: 1.5px solid var(--champagne-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lock-tag {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.lock-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.lock-subtitle {
  font-family: var(--font-romantic);
  font-size: 1.15rem;
  color: #fedee5;
  font-style: italic;
  margin-bottom: 1.8rem;
}

/* Countdown Grid */
.countdown-timer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.8rem;
}

.countdown-box {
  background: rgba(18, 4, 11, 0.8);
  border: 1px solid rgba(229, 193, 88, 0.3);
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 78px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.countdown-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 12px rgba(229, 193, 88, 0.5);
}

.countdown-lbl {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(247, 202, 208, 0.7);
  margin-top: 4px;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--champagne-gold);
  font-weight: 600;
  opacity: 0.8;
}

.lock-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(229, 193, 88, 0.2);
  margin: 1.6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-divider span {
  background: #240917;
  padding: 0 10px;
  font-size: 1rem;
}

/* Password Form */
.lock-input-container {
  margin-top: 0.8rem;
}

.lock-input-label {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.5px;
  color: var(--blush-light);
  margin-bottom: 0.7rem;
}

.lock-input-wrapper {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.lock-password-input {
  flex: 1;
  background: rgba(14, 3, 9, 0.85);
  border: 1px solid rgba(229, 193, 88, 0.35);
  border-radius: 30px;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
}

.lock-password-input:focus {
  border-color: var(--champagne-gold);
  box-shadow: 0 0 15px rgba(229, 193, 88, 0.4);
  background: rgba(24, 5, 15, 0.95);
}

.btn-unlock-secret {
  background: linear-gradient(135deg, #8e214c, #52102c);
  border: 1px solid var(--champagne-gold);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-unlock-secret:hover {
  background: linear-gradient(135deg, #a8275a, #681538);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 145, 0.4);
}

.lock-feedback-msg {
  min-height: 22px;
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: #ff6b8b;
  transition: all 0.3s ease;
}

.lock-feedback-msg.success {
  color: #4ade80;
}

.lock-hint-text {
  font-size: 0.78rem;
  color: rgba(247, 202, 208, 0.55);
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 500px) {
  .lock-card {
    padding: 2.2rem 1.4rem;
  }
  .lock-title {
    font-size: 1.8rem;
  }
  .countdown-box {
    min-width: 65px;
    padding: 10px 10px;
  }
  .countdown-num {
    font-size: 1.75rem;
  }
  .lock-input-wrapper {
    flex-direction: column;
  }
  .btn-unlock-secret {
    justify-content: center;
  }
}


