/* ==========================================================================
   Gayatri (Gayu / Bubu)'s Romantic Birthday Website - Main Stylesheet
   Designed with Love, Elegance & Modern UI Aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Light Romantic Blush & White with Soft Rose & Gold Accents */
  --bg-gradient: linear-gradient(135deg, #FFF0F4 0%, #FDE8ED 50%, #FFF5F7 100%);
  --bg-subtle: #FFF8FA;
  --white: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 182, 193, 0.35);

  --pink-light: #FFE4E8;
  --pink-soft: #FFB6C1;
  --pink-medium: #F48FB1;
  --rose-accent: #E85A80;
  --deep-rose: #C72551;
  --gold-accent: #D4AF37;
  --gold-soft: #F9E79F;

  --text-main: #4A3238;
  --text-muted: #8C6670;
  --text-light: #B5929B;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-handwritten: 'Dancing Script', cursive;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 15px rgba(232, 90, 128, 0.06);
  --shadow-md: 0 10px 30px rgba(232, 90, 128, 0.12);
  --shadow-lg: 0 20px 45px rgba(232, 90, 128, 0.18);
  --shadow-rose: 0 8px 25px rgba(232, 90, 128, 0.3);

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. CSS Reset & Global Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   3. Romantic Loading Preloader Overlay
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #FFF0F4 0%, #FDE8ED 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  transform: scale(1.08);
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
}

.preloader-heart-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-heart {
  font-size: 3rem;
  color: var(--deep-rose);
  animation: heartPulse 1.2s ease-in-out infinite;
  z-index: 2;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--pink-light);
  border-top-color: var(--rose-accent);
  border-radius: 50%;
  animation: spinRing 1.5s linear infinite;
}

.preloader-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.preloader-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 1.5rem;
  transition: all 0.3s ease;
}

.preloader-bar {
  width: 100%;
  height: 6px;
  background: var(--pink-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink-medium), var(--deep-rose));
  border-radius: var(--radius-full);
  transition: width 0.05s linear;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   4. Grand Opening Entrance Animation Sequence
   -------------------------------------------------------------------------- */
.navbar {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.navbar.grand-reveal {
  transform: translateY(0);
  opacity: 1;
}

.hero-tag-anim,
.hero-title-anim,
.hero-sub-anim,
.hero-desc-anim,
.hero-btn-anim,
.hero-img-anim {
  opacity: 0;
  transform: translateY(35px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-img-anim {
  transform: translateY(35px) scale(0.8);
}

.hero-tag-anim.grand-reveal,
.hero-title-anim.grand-reveal,
.hero-sub-anim.grand-reveal,
.hero-desc-anim.grand-reveal,
.hero-btn-anim.grand-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-img-anim.grand-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Canvas Background for Floating Hearts */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.main-content {
  position: relative;
  z-index: 2;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose-accent);
  background: rgba(232, 90, 128, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.glow-badge {
  box-shadow: 0 0 15px rgba(232, 90, 128, 0.25);
  animation: badgeGlow 3s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 10px rgba(232, 90, 128, 0.2); }
  100% { box-shadow: 0 0 20px rgba(232, 90, 128, 0.45); }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.95rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--rose-accent) 0%, var(--deep-rose) 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-rose);
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.pulse-btn {
  animation: btnPulseGlow 2.5s infinite;
}

@keyframes btnPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(232, 90, 128, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(232, 90, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 90, 128, 0); }
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(232, 90, 128, 0.45);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0) scale(0.96);
}

.float-arrow {
  animation: arrowFloat 1.8s ease-in-out infinite;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   5. Sticky Navigation & Floating Controls
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep-rose);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-heart-pulse {
  animation: heartPulse 1.5s infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--rose-accent);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

/* Mobile Nav Overlay */
@media (max-width: 868px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-normal);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.15rem;
  }
}

/* Floating Controls (Music & Top Button) */
.floating-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 990;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pink-soft);
  color: var(--rose-accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.floating-btn:active {
  transform: scale(0.92);
}

.floating-btn:hover {
  transform: scale(1.1);
  background: var(--rose-accent);
  color: var(--white);
}

.music-btn-wrapper {
  position: relative;
}

.music-indicator {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose-accent);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.music-btn-wrapper:hover .music-indicator,
.music-btn.playing .music-indicator {
  opacity: 1;
  visibility: visible;
}

.music-btn.playing {
  animation: pulseMusic 2s infinite;
  background: var(--rose-accent);
  color: var(--white);
}

@keyframes pulseMusic {
  0% { box-shadow: 0 0 0 0 rgba(232, 90, 128, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(232, 90, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 90, 128, 0); }
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rose-accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  border: 1px solid var(--pink-light);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.text-shimmer {
  background: linear-gradient(135deg, var(--deep-rose) 0%, var(--rose-accent) 50%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerAnim 4s infinite linear;
  background-size: 200% auto;
}

@keyframes shimmerAnim {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-title .highlight {
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: 4.2rem;
  display: block;
  position: relative;
}

.hero-bubu-gif {
  width: 54px;
  height: 54px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 0.5rem;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(232, 90, 128, 0.35));
  animation: floatGif 3s ease-in-out infinite;
}

@keyframes floatGif {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

@media (max-width: 768px) {
  .hero-bubu-gif {
    width: 42px;
    height: 42px;
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--rose-accent);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-title .highlight {
    font-size: 3.1rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Portrait Image Container */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  padding: 12px;
  background: linear-gradient(135deg, var(--white), var(--pink-soft));
  box-shadow: var(--shadow-lg);
  animation: floatImage 6s ease-in-out infinite;
}

@media (max-width: 480px) {
  .hero-image-frame {
    width: 250px;
    height: 250px;
  }
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-image-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-rose);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--pink-light);
}

.bounce-badge {
  animation: badgeBounce 3s infinite ease-in-out;
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* --------------------------------------------------------------------------
   7. Birthday Message Section
   -------------------------------------------------------------------------- */
.message-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-md);
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

@media (max-width: 768px) {
  .message-card {
    padding: 2.2rem 1.5rem;
  }
}

.message-card::before {
  content: '💗';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--pink-soft);
  animation: heartPulse 2s infinite;
}

.message-text {
  font-size: 1.08rem;
  color: var(--text-main);
  line-height: 1.95;
}

.message-text p {
  margin-bottom: 1.25rem;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-quote-icon {
  font-size: 2.2rem;
  color: var(--pink-soft);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   8. Reasons Why I Love You Section
   -------------------------------------------------------------------------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.reason-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pink-soft), var(--rose-accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.reason-card:hover,
.reason-card:active {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.reason-card:hover::before,
.reason-card:active::before {
  opacity: 1;
}

.reason-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--pink-light);
  color: var(--rose-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.reason-card:hover .reason-icon {
  background: var(--rose-accent);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.reason-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.reason-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. Photo Gallery & Lightbox
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: var(--pink-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(199, 37, 81, 0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-caption {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.gallery-item:hover img,
.gallery-item:active img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:active .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-caption,
.gallery-item:active .gallery-caption {
  transform: translateY(0);
}

/* Lightbox Styling */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(40, 20, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 1rem;
  font-size: 1.05rem;
  text-align: center;
  font-weight: 500;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--rose-accent);
  border-color: var(--rose-accent);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* --------------------------------------------------------------------------
   10. Love Letter Section (Stationery Aesthetic)
   -------------------------------------------------------------------------- */
.letter-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.letter-card {
  background: #FFFDF9;
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(220, 180, 190, 0.4);
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(#F7EBF0 1px, transparent 1px);
  background-size: 100% 2.2rem;
}

@media (max-width: 768px) {
  .letter-card {
    padding: 2.5rem 1.5rem;
  }
}

.wax-seal {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  width: 55px;
  height: 55px;
  background: radial-gradient(circle, #D81B60 0%, #A01240 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(160, 18, 64, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.wax-pulse {
  animation: waxGlow 3s ease-in-out infinite alternate;
}

@keyframes waxGlow {
  0% { transform: scale(1); box-shadow: 0 4px 10px rgba(160, 18, 64, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(216, 27, 96, 0.6); }
}

.letter-salutation {
  font-family: var(--font-handwritten);
  font-size: 2.4rem;
  color: var(--deep-rose);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.letter-body {
  font-family: var(--font-handwritten);
  font-size: 1.65rem;
  line-height: 2.2rem;
  color: #3D262C;
}

.letter-body p {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.8s ease;
}

.letter-body p.visible {
  opacity: 1;
  transform: translateY(0);
}

.letter-signature {
  font-family: var(--font-handwritten);
  font-size: 2.2rem;
  color: var(--deep-rose);
  text-align: right;
  margin-top: 2.5rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. Our Journey (Timeline)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--pink-soft), var(--rose-accent), var(--pink-soft));
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding-right: 2.5rem;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-right: 0;
  padding-left: 2.5rem;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 3.2rem;
    padding-right: 0;
  }
}

.timeline-node {
  position: absolute;
  top: 15px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 3px solid var(--rose-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--rose-accent);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.pulse-node {
  animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 90, 128, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(232, 90, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 90, 128, 0); }
}

.timeline-item:nth-child(even) .timeline-node {
  right: auto;
  left: -14px;
}

@media (max-width: 768px) {
  .timeline-node,
  .timeline-item:nth-child(even) .timeline-node {
    left: 6px;
    right: auto;
  }
}

.timeline-content {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rose-accent);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Cute Bubu Dudu Section
   -------------------------------------------------------------------------- */
.bubu-container {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.bubu-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.bubu-card:hover {
  transform: translateY(-6px) rotate(1deg);
}

.bubu-img-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--pink-light);
}

.bubu-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubu-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.bubu-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. Emotional Highlight ("If I Could Give You...")
   -------------------------------------------------------------------------- */
.highlight-banner {
  background: linear-gradient(135deg, rgba(232, 90, 128, 0.08) 0%, rgba(216, 27, 96, 0.12) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .highlight-banner {
    padding: 2.5rem 1.5rem;
  }
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--rose-accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -1.5rem;
}

.highlight-quote {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .highlight-quote {
    font-size: 1.3rem;
  }
}

/* --------------------------------------------------------------------------
   14. Birthday Wishes Section
   -------------------------------------------------------------------------- */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.wish-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.wish-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.wish-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--rose-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wish-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   15. Final Surprise Section & Modal
   -------------------------------------------------------------------------- */
.final-section {
  text-align: center;
  padding: 6rem 0;
}

.pulsing-heart {
  font-size: 4.5rem;
  color: var(--rose-accent);
  display: inline-block;
  margin-bottom: 1.5rem;
  animation: heartBeat 1.4s ease-in-out infinite;
}

.glow-heart {
  filter: drop-shadow(0 0 15px rgba(232, 90, 128, 0.6));
}

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

/* Surprise Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 580px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transition: transform var(--transition-normal);
  z-index: 3001;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--pink-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--rose-accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--rose-accent);
  color: var(--white);
}

.modal-heart-icon {
  font-size: 3.5rem;
  color: var(--deep-rose);
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.modal-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Confetti Canvas inside Modal */
#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3002;
}

/* --------------------------------------------------------------------------
   16. Touch Sparkle Particle Styling (Mobile Interaction)
   -------------------------------------------------------------------------- */
.touch-sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 1.2rem;
  z-index: 9999;
  animation: sparklePop 0.8s ease-out forwards;
}

@keyframes sparklePop {
  0% {
    opacity: 1;
    transform: scale(0.5) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.4) translate(var(--dx), var(--dy));
  }
}

/* --------------------------------------------------------------------------
   17. Footer Section
   -------------------------------------------------------------------------- */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.4);
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-text i {
  color: var(--rose-accent);
}

/* --------------------------------------------------------------------------
   18. Scroll Reveal Utilities & Accessibility
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.scale-in {
  transform: scale(0.92) translateY(20px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
