/* ============================================
   💗 BIRTHDAY WEBSITE — SECTION STYLES
   Premium Cinematic Experience
   ============================================ */

/* ==========================================
   CINEMATIC INTRO
   ========================================== */
#cinematic-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-cinematic);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 700px;
  padding: 0 var(--space-xl);
}

.intro-text {
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 var(--space-xl);
}

.intro-date {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-4xl);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 8px;
  opacity: 0;
  text-transform: uppercase;
  font-weight: 300;
}

.intro-line {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-3xl);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  font-style: italic;
  font-weight: 300;
}

.intro-line.special {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: rgba(255, 138, 183, 0.9);
  font-style: normal;
}

/* White flash overlay */
.intro-white-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

/* Birthday reveal (on white) */
.intro-birthday-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.intro-heart {
  font-size: 4rem;
  opacity: 0;
  transform: scale(0);
  display: none;
  margin-bottom: var(--space-lg);
}

.intro-birthday-text {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-5xl);
  color: var(--deep-rose);
  opacity: 0;
  transform: translateY(20px);
  display: none;
  text-shadow: 0 2px 20px rgba(232, 67, 147, 0.3);
}

.intro-name-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-3xl);
  color: var(--rose-gold);
  opacity: 0;
  transform: translateY(15px);
  display: none;
  letter-spacing: 6px;
  font-weight: 300;
  text-transform: uppercase;
  margin-top: var(--space-md);
  background: linear-gradient(90deg, var(--rose-gold), var(--gold-shimmer), var(--rose-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
}

/* Skip button */
.intro-skip {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  z-index: 10;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition-base);
  padding: var(--space-sm) var(--space-md);
}

.intro-skip:hover {
  color: rgba(255, 255, 255, 0.6);
}


/* ==========================================
   SECTION 1: PIN LOCK SCREEN
   ========================================== */
#pin-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-pin-screen);
  background: linear-gradient(135deg, #ffd6e7 0%, #ffb3d9 30%, #ff8ab7 60%, #f0e6ff 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
  opacity: 0;
  visibility: hidden;
}

#pin-screen.unlocked {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.pin-container {
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 380px;
}

.pin-title {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-3xl);
  color: var(--deep-rose);
  margin-bottom: var(--space-sm);
  animation: fadeInDown 1s ease;
  text-shadow: 0 2px 15px rgba(232, 67, 147, 0.3);
}

.pin-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-sm);
  color: var(--text-medium);
  margin-bottom: var(--space-2xl);
  animation: fadeIn 1.5s ease;
  font-style: italic;
}

.pin-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 0 10px 40px rgba(232, 67, 147, 0.15);
  animation: fadeInUp 1s ease 0.3s both;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: var(--space-xl);
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--rose-pink);
  background: transparent;
  transition: all var(--transition-base);
}

.pin-dot.filled {
  background: var(--deep-rose);
  border-color: var(--deep-rose);
  box-shadow: 0 0 12px rgba(232, 67, 147, 0.5);
  transform: scale(1.15);
}

.pin-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 260px;
  margin: 0 auto;
}

.pin-key {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pin-key:active {
  animation: padPress 0.2s ease;
}

.pin-key:hover {
  background: rgba(255, 138, 183, 0.3);
  border-color: var(--rose-pink);
}

.pin-key.delete-key {
  font-size: var(--text-lg);
}

.pin-error {
  color: var(--deep-rose);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-base);
  font-style: italic;
}

.pin-error.visible {
  opacity: 1;
}

.pin-shake {
  animation: shake 0.5s ease;
}

/* Lock icon */
.pin-lock-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  animation: floatUpDown 3s ease-in-out infinite;
}

/* ==========================================
   SECTION 2: GIFT OPENING
   ========================================== */
#gift-section {
  background: var(--gradient-dreamy);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  z-index: var(--z-overlay);
}

#gift-section.active {
  display: flex;
}

.gift-container {
  text-align: center;
  z-index: 2;
}

.gift-box {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-xl);
  cursor: pointer;
  perspective: 800px;
  -webkit-tap-highlight-color: transparent;
}

.gift-body {
  width: 160px;
  height: 120px;
  background: linear-gradient(135deg, #ff8ab7, #e84393);
  border-radius: var(--radius-md);
  position: absolute;
  bottom: 0;
  box-shadow: 0 10px 30px rgba(232, 67, 147, 0.3);
  overflow: hidden;
}

.gift-body::before {
  content: '';
  position: absolute;
  width: 25px;
  background: var(--gold);
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.gift-body::after {
  content: '';
  position: absolute;
  height: 25px;
  background: var(--gold);
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.gift-lid {
  width: 175px;
  height: 35px;
  background: linear-gradient(135deg, #ff6b9d, #e84393);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: absolute;
  top: 25px;
  left: -7.5px;
  transform-origin: bottom center;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 -4px 15px rgba(232, 67, 147, 0.2);
  z-index: 2;
}

.gift-lid::before {
  content: '';
  position: absolute;
  width: 25px;
  background: var(--gold);
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.gift-bow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 2.5rem;
}

.gift-tap-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  color: var(--deep-rose);
  animation: bounce 1.5s ease infinite;
  margin-top: var(--space-md);
  font-style: italic;
}

.gift-box.opened .gift-lid {
  transform: rotateX(-120deg) translateY(-20px);
}

.gift-reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 1s ease;
  text-align: center;
}

.gift-reveal.visible {
  opacity: 1;
  visibility: visible;
}

.gift-reveal-title {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-5xl);
  color: var(--deep-rose);
  text-shadow: 0 2px 20px rgba(232, 67, 147, 0.3);
  animation: scaleInDramatic 1s ease both;
}

.gift-reveal-sub {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl);
  color: var(--text-medium);
  margin-top: var(--space-md);
  font-style: italic;
}

.gift-continue-btn {
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-2xl);
  background: var(--gradient-romantic);
  color: white;
  border-radius: var(--radius-pill);
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  box-shadow: var(--shadow-glow);
  animation: fadeInUp 0.8s ease 1.5s both;
  transition: all var(--transition-base);
}

.gift-continue-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow-strong);
}

/* Screen Flash Overlay */
.screen-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
}


/* ==========================================
   PORTRAIT SECTION
   ========================================== */
#portrait-section {
  background: var(--gradient-cream);
  min-height: 100vh;
  padding: var(--space-4xl) var(--space-md);
}

.portrait-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.portrait-frame {
  width: 250px;
  height: 300px;
  margin: 0 auto var(--space-3xl);
  border-radius: var(--radius-xl);
  background: var(--gradient-romantic);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: portraitGlow 4s ease-in-out infinite;
}

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

.portrait-frame .portrait-placeholder {
  font-size: 5rem;
  opacity: 0.8;
}

/* Decorative ring around portrait */
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-xl) + 8px);
  border: 2px solid rgba(232, 67, 147, 0.2);
  pointer-events: none;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: calc(var(--radius-xl) + 16px);
  border: 1px solid rgba(232, 67, 147, 0.1);
  pointer-events: none;
}

.portrait-text {
  max-width: 500px;
  margin: 0 auto;
}

.portrait-text-line {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-2xl);
  color: var(--text-dark);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: var(--space-md);
}

.portrait-text-line.highlight {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--deep-rose);
  text-shadow: 0 2px 15px rgba(232, 67, 147, 0.2);
  margin-top: var(--space-lg);
}


/* ==========================================
   SECTION 3: OUR STORY — TIMELINE
   ========================================== */
#our-story {
  background: var(--gradient-soft);
  padding-bottom: var(--space-4xl);
}

.timeline {
  position: relative;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--rose-pink), var(--deep-rose), var(--rose-pink));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 138, 183, 0.3);
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: var(--space-3xl);
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--deep-rose);
  border: 3px solid var(--white);
  box-shadow: 0 0 15px rgba(232, 67, 147, 0.4);
  z-index: 2;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(232, 67, 147, 0.2);
  transform: translate(-50%, -50%);
  animation: pulseRing 2s ease-in-out infinite;
}

.timeline-date {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-sm);
  color: var(--deep-rose);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.timeline-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

.timeline-text {
  font-size: var(--text-lg);
  color: var(--text-dark);
  line-height: 1.7;
  font-family: 'Playfair Display', serif;
}

.timeline-emphasis {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-3xl);
  color: var(--deep-rose);
  display: block;
  margin: var(--space-md) 0;
  text-shadow: 0 2px 10px rgba(232, 67, 147, 0.2);
}

/* Years Transition */
.years-transition {
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
}

.years-counter {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--deep-rose);
  opacity: 0.8;
}

.years-text {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-3xl);
  color: var(--text-medium);
  margin-top: var(--space-sm);
}

/* Instagram Notification */
.insta-notification {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 350px;
  margin: var(--space-lg) auto;
  opacity: 0;
  transform: translateY(-20px);
}

.insta-notification.visible {
  opacity: 1;
  transform: translateY(0);
  animation: slideDown 0.6s ease;
}

.insta-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.insta-text {
  font-size: var(--text-sm);
  line-height: 1.4;
}

.insta-text strong {
  color: var(--text-dark);
}

.insta-text span {
  color: var(--text-light);
  font-size: var(--text-xs);
}

/* Chat Screen */
.chat-screen {
  background: #f0f0f0;
  border-radius: var(--radius-lg);
  max-width: 340px;
  margin: var(--space-lg) auto;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.chat-header {
  background: linear-gradient(135deg, #ff8ab7, #e84393);
  color: white;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.chat-body {
  padding: var(--space-lg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chat-bubble {
  max-width: 75%;
  padding: var(--space-sm) var(--space-md);
  border-radius: 18px;
  font-size: var(--text-sm);
  line-height: 1.4;
  opacity: 0;
}

.chat-bubble.visible {
  opacity: 1;
  animation: chatAppear 0.4s ease;
}

.chat-bubble.sent {
  background: linear-gradient(135deg, #ff8ab7, #e84393);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.chat-bubble.received {
  background: white;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  background: white;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  opacity: 0;
}

.typing-indicator.visible {
  opacity: 1;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--text-light);
}

.typing-dot:nth-child(1) { animation: typingDot 1.2s ease infinite 0s; }
.typing-dot:nth-child(2) { animation: typingDot 1.2s ease infinite 0.2s; }
.typing-dot:nth-child(3) { animation: typingDot 1.2s ease infinite 0.4s; }

/* ==========================================
   SECTION 4: THE DAY WE FELL
   ========================================== */
#falling-day {
  background: linear-gradient(180deg, var(--blush) 0%, var(--soft-pink) 50%, #ffe0ee 100%);
}

.falling-memories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.memory-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: calc(50% - var(--space-md));
  min-width: 140px;
  text-align: center;
  animation: floatSlow 4s ease-in-out infinite;
  box-shadow: var(--shadow-soft);
}

.memory-card:nth-child(even) {
  animation-delay: -2s;
}

.memory-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.memory-label {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-sm);
  color: var(--text-medium);
  font-style: italic;
}

.proposal-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.proposal-date {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl);
  color: var(--deep-rose);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

.proposal-text {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--deep-rose);
  text-shadow: 0 2px 15px rgba(232, 67, 147, 0.3);
}

#proposal-yes {
  opacity: 0;
  transform: scale(0.9);
}

.proposal-text.visible {
  opacity: 1;
  transform: scale(1);
  animation: scaleInDramatic 1s ease;
}

.proposal-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl);
  color: var(--text-medium);
  margin-top: var(--space-lg);
  font-style: italic;
  opacity: 0;
  transform: translateY(18px);
}

.proposal-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease;
}

.proposal-image-wrapper {
  max-width: 300px;
  width: 85%;
  margin: var(--space-xl) auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(232, 67, 147, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: white;
  pointer-events: none;
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  transform-origin: center top;
  will-change: opacity, transform;
}

.proposal-image-wrapper.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.proposal-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Heartbeat overlay for suspense */
.heartbeat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 50%, rgba(232, 67, 147, 0.1) 100%);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  animation: none;
}

.heartbeat-overlay.active {
  opacity: 1;
  animation: glowPulse 1s ease-in-out infinite;
}

/* ==========================================
   SECTION 5: PHOTO GALLERY
   ========================================== */
#gallery {
  background: var(--gradient-dreamy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.polaroid {
  background: white;
  border-radius: 4px;
  padding: 10px 10px 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: rotate(var(--rotation, -2deg));
  transition: all var(--transition-base);
  cursor: pointer;
  animation: floatRotate 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05) translateY(-5px);
  box-shadow: 0 15px 40px rgba(232, 67, 147, 0.2);
  z-index: 5;
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--soft-pink), var(--lavender));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  object-fit: cover;
}

/* Polaroid Video Preview Styles */
.polaroid-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: #000;
}

.polaroid-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-video-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(26, 26, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-base);
  z-index: 2;
}

.polaroid:hover .polaroid-video-icon {
  background: var(--gradient-romantic);
  border-color: transparent;
  transform: scale(1.1);
}

.polaroid-caption {
  font-family: 'Dancing Script', cursive;
  font-size: var(--text-sm);
  color: var(--text-medium);
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: default;
}

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

.lightbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 85%;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.lightbox-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.lightbox-content {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.6);
  border: 4px solid rgba(255, 255, 255, 0.9);
  animation: scaleInDramatic 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: white;
}

.lightbox-placeholder-card {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: scaleInDramatic 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-placeholder-emoji {
  font-size: 5.5rem;
  animation: floatRotate 4s ease-in-out infinite;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.lightbox-caption h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  color: var(--soft-pink);
  margin-bottom: 2px;
}

.lightbox-caption p {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  scale: 1.1;
  border-color: var(--soft-pink);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 5;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  scale: 1.1;
  border-color: var(--soft-pink);
  color: var(--soft-pink);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}


/* ==========================================
   SECTION 6: VOICE NOTES — CASSETTE PLAYER
   ========================================== */
#voice-notes {
  background: var(--gradient-soft);
}

.voice-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.voice-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.voice-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

/* Cassette Tape Design */
.cassette-body {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.cassette-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-pink), var(--gold), var(--rose-pink));
  opacity: 0.6;
}

.cassette-label {
  background: linear-gradient(135deg, var(--champagne), var(--warm-cream));
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  text-align: center;
  position: relative;
}

.cassette-label-title {
  font-family: 'Dancing Script', cursive;
  font-size: var(--text-lg);
  color: var(--text-dark);
  font-weight: 700;
}

.cassette-label-sub {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cassette Reels */
.cassette-reels {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: var(--space-sm) 0;
}

.cassette-reel {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cassette-reel::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cassette-reel.spinning {
  animation: cassetteReel 2s linear infinite;
}

.cassette-tape {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.voice-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.voice-card-photo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-romantic);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}

.voice-card-info {
  flex: 1;
}

.voice-card-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  color: var(--text-dark);
  font-weight: 600;
}

.voice-card-date {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: 2px;
}

.voice-player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.voice-play-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--gradient-romantic);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.voice-play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.voice-play-btn.playing {
  animation: glowBreath 1.5s ease-in-out infinite;
}

.voice-waveform {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.voice-waveform.grabbing {
  cursor: grabbing;
}

.wave-bar {
  width: 3px;
  background: var(--rose-pink);
  border-radius: 2px;
  height: 4px;
  transition: height 0.1s ease;
}

.wave-bar.active {
  animation: soundWave 0.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.voice-duration {
  font-size: var(--text-xs);
  color: var(--text-light);
  min-width: 35px;
  text-align: right;
}


/* ==========================================
   SECTION 7: 18 REASONS (was 100)
   ========================================== */
#reasons {
  background: linear-gradient(180deg, var(--blush) 0%, var(--soft-pink) 50%, var(--lavender) 100%);
}

.reasons-counter {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  color: var(--text-medium);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.reasons-counter span {
  color: var(--deep-rose);
  font-weight: 700;
}

/* Progress heart */
.reasons-progress {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.reasons-heart-progress {
  width: 60px;
  height: 60px;
  position: relative;
}

.reasons-heart-fill {
  font-size: 3rem;
  position: relative;
  display: inline-block;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 480px) {
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reason-card {
  aspect-ratio: 1;
  perspective: 600px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reason-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.reason-card.flipped .reason-card-inner {
  transform: rotateY(180deg);
}

.reason-front, .reason-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.reason-front {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
}

.reason-number {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-2xl);
  color: var(--deep-rose);
  font-weight: 700;
}

.reason-heart {
  font-size: 1.2rem;
  margin-top: var(--space-xs);
  animation: heartBeat 2s ease-in-out infinite;
}

.reason-back {
  background: var(--gradient-romantic);
  transform: rotateY(180deg);
  color: white;
  padding: var(--space-md);
  box-shadow: var(--shadow-glow);
}

.reason-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xs);
  text-align: center;
  line-height: 1.5;
  font-style: italic;
}

/* Sparkle container for card flip */
.reason-sparkle {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.sparkle-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-shimmer);
  border-radius: var(--radius-full);
  animation: sparkleBurst 0.8s ease-out forwards;
  box-shadow: 0 0 6px var(--gold-shimmer);
}


/* ==========================================
   SECTION 8: IF WE NEVER MET
   ========================================== */
#never-met {
  background: var(--black-heart);
  transition: background 2s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#never-met.transitioning-back {
  background: var(--soft-pink);
}

.never-met-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-3xl);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
  margin: var(--space-lg) var(--space-md);
}

.never-met-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.never-met-text.highlight {
  color: var(--rose-pink);
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  text-shadow: 0 0 30px rgba(255, 138, 183, 0.4);
}


/* ==========================================
   SECTION 9: FUTURE WITH YOU
   ========================================== */
#future {
  background: var(--gradient-starry);
  min-height: 100vh;
  position: relative;
}

.stars-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: var(--radius-full);
  animation: starTwinkle 3s ease-in-out infinite;
}

/* Shooting star */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px 2px white;
  animation: shootingStar 2s ease-out forwards;
  opacity: 0;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: 50px;
  height: 1px;
  background: linear-gradient(to left, white, transparent);
}

.future-title {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--white);
  text-align: center;
  z-index: 2;
  text-shadow: 0 0 20px rgba(255, 138, 183, 0.5);
  margin-bottom: var(--space-2xl);
}

.dream-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 700px;
  z-index: 2;
  padding: 0 var(--space-md);
}

.dream-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  min-width: 140px;
  animation: dreamFloat 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: all var(--transition-base);
}

.dream-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 138, 183, 0.2);
}

.dream-emoji {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.dream-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}


/* ==========================================
   SECTION 10: FINAL LETTER
   ========================================== */
#letter {
  background: linear-gradient(180deg, var(--peach) 0%, var(--soft-pink) 50%, var(--blush) 100%);
  position: relative;
}

/* Rose petals */
.petal {
  position: absolute;
  background: radial-gradient(circle at 60% 40%, var(--rose-pink) 0%, var(--deep-rose) 80%);
  border-radius: 15px 1px 15px 15px;
  opacity: 0;
  animation: petalFall 8s linear infinite;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform-origin: center;
  z-index: 1;
}

.envelope-container {
  perspective: 800px;
  cursor: pointer;
  margin-bottom: var(--space-xl);
  z-index: 2;
}

.envelope {
  position: relative;
  width: 280px;
  height: 180px;
  margin: 0 auto;
  transition: all var(--transition-slow);
}

.envelope-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fff5f9, #ffe8f0);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(232, 67, 147, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 183, 0.2);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg, #ffe8f0, #ffd6e7);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  border-bottom: 1px solid rgba(232, 67, 147, 0.1);
}

.envelope.opened .envelope-flap {
  transform: rotateX(180deg);
}

.envelope-heart {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.envelope.opened .envelope-heart {
  opacity: 0;
}

.envelope-tap-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-sm);
  color: var(--text-medium);
  text-align: center;
  margin-top: var(--space-md);
  animation: bounce 1.5s ease infinite;
  font-style: italic;
}

/* Letter Content */
.letter-content {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
  z-index: 2;
  position: relative;
}

.letter-content.visible {
  opacity: 1;
  visibility: visible;
}

/* Decorative inner border & corners */
.letter-inner-border {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: calc(var(--radius-xl) - 10px);
  pointer-events: none;
  z-index: 1;
}

.letter-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(212, 175, 55, 0.7);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.letter-corner::before {
  content: '✦';
  position: absolute;
  font-size: 0.7rem;
  color: var(--gold);
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

.letter-corner-tl {
  top: 18px;
  left: 18px;
  border-width: 2px 0 0 2px;
}
.letter-corner-tl::before {
  top: -6px;
  left: -5px;
}

.letter-corner-tr {
  top: 18px;
  right: 18px;
  border-width: 2px 2px 0 0;
}
.letter-corner-tr::before {
  top: -6px;
  right: -5px;
}

.letter-corner-bl {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 2px 2px;
}
.letter-corner-bl::before {
  bottom: -6px;
  left: -5px;
}

.letter-corner-br {
  bottom: 18px;
  right: 18px;
  border-width: 0 2px 2px 0;
}
.letter-corner-br::before {
  bottom: -6px;
  right: -5px;
}

.letter-text {
  font-family: 'Dancing Script', cursive;
  font-size: var(--text-xl);
  color: var(--text-dark);
  line-height: 2;
}

.letter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--deep-rose);
  margin-left: 2px;
  animation: cursorBlink 0.8s step-end infinite;
  vertical-align: text-bottom;
}


/* ==========================================
   ONE LAST SURPRISE
   ========================================== */
#surprise-section {
  background: var(--gradient-cream);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.surprise-container {
  text-align: center;
  max-width: 500px;
  padding: var(--space-xl);
}

.surprise-title {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--deep-rose);
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 15px rgba(232, 67, 147, 0.2);
}

.surprise-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-lg);
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: var(--space-3xl);
}

#surprise-btn {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  background: var(--gradient-romantic);
  color: white;
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: 0 auto;
  animation: surprisePulse 2s ease-in-out infinite;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

#surprise-btn:hover {
  transform: scale(1.08);
}

#surprise-btn .surprise-btn-heart {
  font-size: 2.5rem;
  animation: heartBeat 1.5s ease-in-out infinite;
}

#surprise-btn .surprise-btn-text {
  font-size: var(--text-base);
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

/* Surprise Overlay */
#surprise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9998;
  display: none;
  opacity: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 80px var(--space-xl) var(--space-2xl);
}

.surprise-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 9999;
}

.surprise-close:hover {
  background: rgba(255, 255, 255, 0.35);
  scale: 1.1;
  border-color: var(--rose-pink);
}

.surprise-continue-btn {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-2xl);
  background: var(--gradient-romantic);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 9999;
  transform: translateY(20px);
}

.surprise-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.surprise-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.surprise-star {
  position: absolute;
  background: white;
  border-radius: var(--radius-full);
  animation: starTwinkle 3s ease-in-out infinite;
}

.surprise-text-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: min(100%, 600px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-4xl) 0;
}

.surprise-line {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-2xl);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(15px);
  font-style: italic;
}

.surprise-line.emphasis {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--rose-pink);
  font-style: normal;
  text-shadow: 0 0 30px rgba(255, 138, 183, 0.4);
}

.surprise-line.final {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}


/* ==========================================
   SECTION 11: FINALE — NIGHT SKY
   ========================================== */
#finale {
  background: var(--gradient-night);
  background-size: 200% 200%;
  animation: nightSkyShift 20s ease-in-out infinite;
  min-height: 200vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

/* Moon */
.finale-moon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 35%, #fffef5, #fff4cc, #ffe08a);
  position: absolute;
  top: 8%;
  right: 15%;
  animation: moonGlow 4s ease-in-out infinite;
  z-index: 1;
}

/* Fireflies */
.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255, 214, 100, 0.9), rgba(255, 214, 100, 0));
  animation:
    fireflyFloat var(--fly-duration, 8s) ease-in-out infinite,
    fireflyGlow 2s ease-in-out infinite;
  animation-delay: var(--fly-delay, 0s);
  z-index: 2;
  pointer-events: none;
}

/* Finale stars */
.finale-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: var(--radius-full);
  animation: starTwinkle 3s ease-in-out infinite;
  z-index: 1;
}

.finale-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-3xl);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin: var(--space-xl) 0;
  opacity: 0;
  transform: translateY(20px);
  z-index: 3;
}

.finale-text.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

.finale-text.poem {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--rose-pink);
  text-shadow: 0 0 20px rgba(255, 138, 183, 0.3);
  max-width: 600px;
  padding: 0 var(--space-md);
}

.finale-photo {
  width: 250px;
  height: 300px;
  border-radius: var(--radius-xl);
  background: var(--gradient-romantic);
  margin: var(--space-2xl) auto;
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  object-fit: cover;
  opacity: 0;
  z-index: 3;
}

.finale-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.finale-photo.visible {
  opacity: 1;
  animation: fadeInScale 1s ease;
}

.finale-love {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-6xl);
  color: var(--rose-pink);
  text-align: center;
  text-shadow: 0 2px 30px rgba(255, 138, 183, 0.5);
  opacity: 0;
  z-index: 3;
}

.finale-love.visible {
  opacity: 1;
  animation: scaleInDramatic 1.2s ease;
}

/* Birthday message on night sky */
.finale-birthday {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--rose-pink);
  text-align: center;
  margin: var(--space-xl) 0;
  opacity: 0;
  z-index: 3;
}

.finale-birthday.visible {
  opacity: 1;
  animation: fadeInUp 1s ease;
}

/* Large glowing birthday button */
.finale-birthday-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-3xl);
  background: var(--gradient-romantic);
  color: white;
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-3xl);
  border-radius: var(--radius-pill);
  margin: var(--space-3xl) auto;
  animation: birthdayBtnGlow 2s ease-in-out infinite;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
}

.finale-birthday-btn.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

.finale-birthday-btn:hover {
  transform: scale(1.08) translateY(-3px);
}

/* Heart Merge */
.heart-merge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 4rem;
  margin: var(--space-2xl) 0;
  opacity: 0;
  z-index: 3;
}

.heart-merge.visible {
  opacity: 1;
}

.heart-black {
  animation: mergeLeft 2s ease forwards;
}

.heart-pink {
  animation: mergeRight 2s ease forwards;
}

.heart-plus {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 var(--space-sm);
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
}

/* Infinity Symbol */
.infinity-container {
  margin: var(--space-2xl) 0;
  text-align: center;
  opacity: 0;
  z-index: 3;
}

.infinity-container.visible {
  opacity: 1;
}

.infinity-svg {
  width: 200px;
  height: 100px;
}

.infinity-path {
  fill: none;
  stroke: var(--rose-pink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 8px rgba(255, 138, 183, 0.5));
}

.infinity-path.animate {
  animation: drawInfinity 3s ease forwards;
}

.forever-text {
  font-family: 'Great Vibes', cursive;
  font-size: var(--text-4xl);
  color: var(--rose-pink);
  text-align: center;
  margin-top: var(--space-md);
  opacity: 0;
  text-shadow: 0 2px 20px rgba(255, 138, 183, 0.3);
  z-index: 3;
}

.forever-text.visible {
  opacity: 1;
  animation: fadeInUp 1s ease;
}

/* Butterfly Elements */
.butterfly {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.butterfly-wing {
  width: 15px;
  height: 20px;
  background: var(--rose-pink);
  border-radius: 50% 50% 0 50%;
  display: inline-block;
  opacity: 0.7;
}

.butterfly-wing.left {
  animation: wingFlap 0.5s ease-in-out infinite;
  transform-origin: right center;
}

.butterfly-wing.right {
  animation: wingFlap 0.5s ease-in-out infinite 0.05s;
  transform-origin: left center;
  border-radius: 50% 50% 50% 0;
}


/* ==========================================
   RESPONSIVE — DESKTOP
   ========================================== */
@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 40px;
    text-align: right;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
    left: auto;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .falling-memories {
    flex-wrap: nowrap;
  }

  .memory-card {
    width: auto;
    min-width: 160px;
  }

  .portrait-frame {
    width: 300px;
    height: 360px;
  }
}


/* ==========================================
   RESPONSIVE — MOBILE SMALL
   ========================================== */
@media (max-width: 480px) {
  .envelope {
    width: 240px;
    height: 155px;
  }

  .gift-box {
    width: 130px;
    height: 130px;
  }

  .gift-body {
    width: 130px;
    height: 100px;
  }

  .gift-lid {
    width: 145px;
    height: 30px;
    left: -7.5px;
    top: 20px;
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .voice-card {
    padding: var(--space-md) !important;
  }

  .voice-play-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 0.9rem !important;
  }

  .voice-waveform {
    gap: 1px !important;
  }

  .wave-bar {
    width: 2px !important;
  }

  .heart-merge {
    font-size: 3rem;
  }

  .intro-name-text {
    font-size: clamp(1rem, 5.5vw, 1.4rem) !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    padding: 0 15px !important;
  }

  .pin-title {
    font-size: var(--text-lg) !important;
  }

  .finale-birthday {
    font-size: var(--text-lg) !important;
    letter-spacing: 1px !important;
  }

  .finale-photo {
    width: 200px;
    height: 250px;
  }

  .intro-date {
    font-size: var(--text-3xl);
    letter-spacing: 4px;
  }

  .intro-line {
    font-size: var(--text-2xl);
  }

  #surprise-btn {
    width: 150px;
    height: 150px;
  }

  #surprise-overlay {
    align-items: stretch;
    padding: 64px 18px 32px;
  }

  .surprise-text-container {
    max-width: none;
    min-height: auto;
    gap: var(--space-lg);
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .surprise-line {
    font-size: clamp(1rem, 5vw, 1.18rem);
    line-height: 1.45;
  }

  .surprise-line.emphasis {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.25;
  }

  .surprise-continue-btn {
    align-self: center;
    max-width: 100%;
    white-space: normal;
  }

  .finale-birthday-btn {
    font-size: var(--text-2xl);
    padding: var(--space-md) var(--space-2xl);
  }
}
