/* ==========================================================================
   Romantic Birthday Experience for Sakshi ❤️
   Design System & Styling
   ========================================================================== */

:root {
  /* Romantic Color Palette */
  --bg-primary: #fffafb;
  --bg-secondary: #fbf0f3;
  --bg-champagne: #fdf7ee;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-dark: #190a10;
  --bg-dark-overlay: rgba(20, 7, 13, 0.75);

  --color-primary: #a82e4f;
  --color-primary-light: #e85d75;
  --color-primary-soft: #fad2dc;
  --color-burgundy: #561625;
  --color-champagne: #d4a373;
  --color-gold: #c6934b;
  --color-gold-light: #fae1af;
  --color-text-dark: #2c1820;
  --color-text-muted: #755562;
  --color-text-light: #fff8f9;
  --color-border: rgba(168, 46, 79, 0.15);

  /* Typography */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-handwriting: 'Caveat', 'Dancing Script', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 15px rgba(86, 22, 37, 0.05);
  --shadow-md: 0 10px 30px rgba(86, 22, 37, 0.08);
  --shadow-lg: 0 20px 45px rgba(86, 22, 37, 0.12);
  --shadow-glow: 0 0 25px rgba(232, 93, 117, 0.35);
  --shadow-gold: 0 8px 30px rgba(198, 147, 75, 0.25);
  --glass-blur: blur(14px);

  /* Spacing & Transitions */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(250, 210, 220, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(253, 247, 238, 0.6) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-soft);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-burgundy);
}

.handwriting {
  font-family: var(--font-handwriting);
  letter-spacing: 0.03em;
}

/* Story Progress Bar */
.story-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(250, 210, 220, 0.3);
  z-index: 1000;
}
.story-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-gold), var(--color-primary));
  box-shadow: 0 0 10px rgba(232, 93, 117, 0.7);
  transition: width 0.1s ease-out;
}

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

/* Floating Audio Player Widget */
.music-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--glass-blur);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 93, 117, 0.25);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  cursor: pointer;
  user-select: none;
}
.music-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: #ffffff;
}
.music-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(168, 46, 79, 0.3);
}
.music-info {
  display: flex;
  flex-direction: column;
}
.music-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-burgundy);
}
.music-status {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.audio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.audio-visualizer span {
  width: 3px;
  height: 4px;
  background: var(--color-primary-light);
  border-radius: 2px;
  transition: height 0.2s ease;
}
.music-widget.playing .audio-visualizer span:nth-child(1) {
  animation: visualizerAnim 0.7s infinite alternate ease-in-out;
}
.music-widget.playing .audio-visualizer span:nth-child(2) {
  animation: visualizerAnim 0.9s 0.2s infinite alternate ease-in-out;
}
.music-widget.playing .audio-visualizer span:nth-child(3) {
  animation: visualizerAnim 0.6s 0.4s infinite alternate ease-in-out;
}

/* Sections Wrapper */
section {
  position: relative;
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  background: rgba(232, 93, 117, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 18px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65) saturate(1.1);
  transform: scale(1.05);
  animation: slowZoom 24s infinite alternate ease-in-out;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(30, 8, 17, 0.5) 0%, 
    rgba(60, 16, 30, 0.4) 50%, 
    rgba(25, 7, 15, 0.75) 100%
  );
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  color: #ffffff;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: heroEntrance 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-badge {
  font-family: var(--font-handwriting);
  font-size: 1.8rem;
  color: var(--color-gold-light);
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero-title {
  font-size: 3.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.btn-romantic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #e85d75, #a82e4f);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(232, 93, 117, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-bounce);
  cursor: pointer;
}
.btn-romantic:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(232, 93, 117, 0.7);
  background: linear-gradient(135deg, #f06a82, #b83457);
}
.btn-romantic .btn-icon {
  font-size: 1.2rem;
  animation: pulseBeat 1.5s infinite ease-in-out;
}

/* ==========================================================================
   SECTION 1 — A LITTLE MESSAGE FOR YOU
   ========================================================================== */
.message-section {
  padding-top: 120px;
}
.message-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  padding: 50px;
  align-items: center;
}
.message-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.message-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.message-image-frame:hover img {
  transform: scale(1.04);
}
.message-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(232, 93, 117, 0.2);
  border-radius: var(--radius-md);
  pointer-events: none;
}
.message-content h2 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
.message-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}
.message-signature {
  margin-top: 30px;
  font-size: 2rem;
  color: var(--color-primary);
}

/* ==========================================================================
   SECTION 2 — OUR STORY (Interactive Timeline)
   ========================================================================== */
.timeline-section {
  position: relative;
}
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    180deg, 
    rgba(232, 93, 117, 0.1) 0%, 
    rgba(232, 93, 117, 0.8) 20%, 
    rgba(212, 163, 115, 0.8) 80%, 
    rgba(232, 93, 117, 0.1) 100%
  );
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 70px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.timeline-item:nth-child(even) {
  justify-content: flex-end;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 0 6px rgba(232, 93, 117, 0.2);
  z-index: 10;
  transition: var(--transition-smooth);
}
.timeline-item:hover .timeline-dot {
  transform: translate(-50%, -50%) scale(1.3);
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 163, 115, 0.6);
}
.timeline-card {
  width: calc(50% - 40px);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  overflow: hidden;
}
.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.timeline-img-wrap {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
}
.timeline-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.timeline-card:hover .timeline-img-wrap img {
  transform: scale(1.05);
}
.timeline-chapter {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 6px;
}
.timeline-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--color-burgundy);
}
.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 3 — OUR MEMORIES (Masonry Photo Gallery & Lightbox)
   ========================================================================== */
.gallery-section {
  padding-top: 80px;
}
.masonry-grid {
  column-count: 3;
  column-gap: 24px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  background: #f0e6eb;
}
.masonry-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}
.masonry-item:hover img {
  transform: scale(1.06);
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(86, 22, 37, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-smooth);
}
.masonry-item:hover .masonry-overlay {
  opacity: 1;
}
.masonry-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}
.masonry-item:hover .masonry-caption {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 5, 11, 0.94);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  color: #fff8f9;
  font-family: var(--font-handwriting);
  font-size: 1.6rem;
  margin-top: 16px;
  text-align: center;
}
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.lightbox-btn:hover {
  background: rgba(232, 93, 117, 0.8);
  transform: scale(1.1);
}
.lightbox-close {
  top: 24px;
  right: 24px;
}
.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   SECTION 4 — THE LITTLE THINGS I LOVE ABOUT YOU
   ========================================================================== */
.love-cards-section {
  padding-top: 80px;
}
.love-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.love-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.love-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.love-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}
.love-card:hover::before {
  opacity: 1;
}
.love-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.love-card:hover .love-icon {
  transform: scale(1.25) rotate(8deg);
}
.love-card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.love-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 5 — THROUGH THE UPS & DOWNS
   ========================================================================== */
.ups-downs-section {
  background: linear-gradient(180deg, rgba(86, 22, 37, 0.04) 0%, rgba(86, 22, 37, 0.12) 100%);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}
.words-sequence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 50px;
}
.word-pill {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--color-burgundy);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.word-pill:hover {
  background: var(--color-primary-soft);
  transform: scale(1.05);
}
.ups-downs-reveal {
  max-width: 700px;
  margin: 0 auto;
}
.reveal-text-1 {
  font-size: 2rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: 12px;
}
.reveal-text-2 {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}
.ups-downs-photo {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #ffffff;
}
.ups-downs-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTION 6 — OUR PHOTO WALL (Polaroid Aesthetic)
   ========================================================================== */
.photo-wall-section {
  padding-top: 80px;
}
.photo-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}
.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 28px 14px;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(86, 22, 37, 0.12);
  transition: var(--transition-bounce);
  position: relative;
  cursor: pointer;
}
.polaroid-card:hover {
  transform: translateY(-10px) scale(1.06) rotate(0deg) !important;
  z-index: 50;
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(86, 22, 37, 0.2);
}
.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 3px;
  background: #f7eff2;
}
.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.polaroid-card:hover .polaroid-img-wrap img {
  transform: scale(1.05);
}
.polaroid-label {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  color: var(--color-burgundy);
  text-align: center;
  margin-top: 14px;
  min-height: 28px;
}

/* ==========================================================================
   SECTION 7 — A LETTER FOR YOU (3D Envelope & Heartfelt Note)
   ========================================================================== */
.letter-section {
  padding-top: 80px;
  text-align: center;
}
.envelope-wrapper {
  max-width: 680px;
  margin: 40px auto 0;
  perspective: 1200px;
}
.envelope {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 280px;
  margin: 0 auto;
  background: #f7e6eb;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.4s ease;
}
.envelope:hover {
  transform: translateY(-4px);
}
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 240px solid transparent;
  border-right: 240px solid transparent;
  border-top: 150px solid #ecd0da;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}
.envelope.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}
.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 240px solid #f3dbe3;
  border-right: 240px solid #f3dbe3;
  border-bottom: 160px solid #ebd0d9;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 4;
  pointer-events: none;
}
.envelope-seal {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: radial-gradient(circle, #a82e4f, #6b1d33);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(86, 22, 37, 0.4);
  z-index: 6;
  transition: transform 0.4s ease;
}
.envelope:hover .envelope-seal {
  transform: translate(-50%, -50%) scale(1.1);
}
.envelope.open .envelope-seal {
  display: none;
}
.letter-paper {
  display: none;
  max-width: 680px;
  margin: 30px auto 0;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232, 93, 117, 0.2);
  text-align: left;
  background-image: repeating-linear-gradient(
    transparent, 
    transparent 31px, 
    rgba(232, 93, 117, 0.08) 31px, 
    rgba(232, 93, 117, 0.08) 32px
  );
  line-height: 32px;
  position: relative;
}
.letter-paper.visible {
  display: block;
  animation: letterSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.letter-salutation {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.letter-body {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}
.letter-signoff {
  font-family: var(--font-handwriting);
  font-size: 2rem;
  color: var(--color-primary);
  text-align: right;
  margin-top: 30px;
}

/* ==========================================================================
   SECTION 8 — OUR FUTURE
   ========================================================================== */
.future-section {
  padding-top: 80px;
  text-align: center;
}
.future-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}
.future-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.1);
  transition: transform 8s ease;
}
.future-card:hover img {
  transform: scale(1.05);
}
.future-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(60, 16, 30, 0.6) 0%, rgba(20, 7, 13, 0.85) 100%);
}
.future-overlay h2 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.future-overlay p {
  font-size: 1.15rem;
  max-width: 620px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}
.future-heart {
  font-size: 2.5rem;
  animation: pulseBeat 1.4s infinite ease-in-out;
}

/* ==========================================================================
   FINAL SURPRISE SECTION
   ========================================================================== */
.finale-section {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 100px 30px;
  text-align: center;
  margin: 60px auto 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}
.finale-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(232, 93, 117, 0.15) 0%, transparent 60%);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
}
.finale-step-1 {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  color: var(--color-gold-light);
  margin-bottom: 16px;
  opacity: 0.9;
}
.finale-step-2 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 0 30px rgba(232, 93, 117, 0.8);
}
.finale-step-3 {
  font-size: 1.4rem;
  color: var(--color-primary-soft);
  margin-bottom: 40px;
  font-weight: 300;
}
.finale-photo-wrap {
  max-width: 520px;
  margin: 0 auto 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border: 4px solid rgba(255, 255, 255, 0.2);
}
.finale-photo-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.btn-replay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-bounce);
}
.btn-replay:hover {
  background: var(--color-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px 80px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
footer .footer-heart {
  color: var(--color-primary);
  display: inline-block;
  animation: pulseBeat 1.5s infinite;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile, Tablet, Desktop)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .message-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
  .masonry-grid {
    column-count: 2;
  }
  .timeline-container::before {
    left: 30px;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 65px;
  }
  .timeline-dot {
    left: 30px;
  }
  .timeline-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  section {
    padding: 60px 16px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-content {
    padding: 24px 18px;
  }
  .masonry-grid {
    column-count: 1;
  }
  .section-title {
    font-size: 2rem;
  }
  .finale-step-2 {
    font-size: 2.3rem;
  }
  .envelope {
    height: 220px;
  }
  .envelope-flap {
    border-left-width: 170px;
    border-right-width: 170px;
    border-top-width: 110px;
  }
  .envelope-pocket {
    border-left-width: 170px;
    border-right-width: 170px;
    border-bottom-width: 120px;
  }
  .letter-paper {
    padding: 30px 20px;
  }
  .music-widget {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
  }
}
