/**
 * ====================================================================
 * BIRTHDAY CELEBRATION WEBSITE - STYLESHEET
 * ====================================================================
 * Mobile-first, responsive, 3D perspective animations, glassmorphism,
 * warm emotional aesthetics, and interactive elements.
 */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-handwriting: 'Caveat', cursive;

  /* Color Palette */
  --bg-deep: #090a16;
  --bg-card: rgba(22, 27, 46, 0.7);
  --bg-card-hover: rgba(30, 38, 66, 0.85);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(245, 158, 11, 0.4);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef08a;
  --accent-indigo: #6366f1;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --shadow-glow: 0 10px 40px -10px rgba(99, 102, 241, 0.35);
  --shadow-gold: 0 10px 40px -10px rgba(245, 158, 11, 0.35);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.45);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

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

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.65;
}

/* Starfield & Ambient Glow Background */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: -100px;
  left: -80px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #e11d48 0%, transparent 70%);
  bottom: 10%;
  right: -100px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #d97706 0%, transparent 70%);
  top: 50%;
  left: 30%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* Particles Canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Confetti Popper Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* App Wrapper */
.site-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ====================================================================
   PASSCODE PROTECTION SCREEN (4-Digit PIN Gate)
   ==================================================================== */
.passcode-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1e1b4b 0%, #060710 90%);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.passcode-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  pointer-events: none;
}

.passcode-card {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.5rem, 5vw, 2.25rem);
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.2);
  text-align: center;
  max-width: 380px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.passcode-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  animation: pulseBadge 3s infinite;
}

.passcode-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.passcode-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.passcode-sub strong {
  color: var(--accent-gold-light);
}

.passcode-prompt {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* 4 PIN Dots / Digit Boxes */
.passcode-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.75rem;
}

.passcode-dot-box {
  width: 48px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.passcode-dot-box.filled {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.passcode-dots-wrapper.error .passcode-dot-box {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.passcode-dots-wrapper.success .passcode-dot-box {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Keypad Grid */
.passcode-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
}

.keypad-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.85rem 0;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.keypad-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.keypad-btn:active {
  transform: scale(0.95);
  background: rgba(245, 158, 11, 0.25);
}

.keypad-btn.action-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.passcode-error-msg {
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  min-height: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.passcode-error-msg.visible {
  opacity: 1;
}

/* Shake Animation for Wrong Passcode */
@keyframes shakeKeypad {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.passcode-shake {
  animation: shakeKeypad 0.45s ease-in-out;
}

/* ====================================================================
   UNBOXING 3D ENTRANCE MODAL / OVERLAY
   ==================================================================== */
.unboxing-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1e1b4b 0%, #090a16 85%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

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

.unboxing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-gold);
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

/* 3D Gift Box */
.gift-box-container {
  perspective: 1000px;
  cursor: pointer;
  margin-bottom: 2.5rem;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.gift-box-container:hover {
  transform: scale(1.06) rotateY(6deg);
}

.gift-box-3d {
  position: relative;
  width: 170px;
  height: 170px;
  transform-style: preserve-3d;
  animation: floatGift 3.5s ease-in-out infinite alternate;
}

@keyframes floatGift {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-16px) rotate(3deg); }
}

.box-lid {
  position: absolute;
  width: 184px;
  height: 48px;
  top: -8px;
  left: -7px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  z-index: 3;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.unboxing-overlay.opening .box-lid {
  transform: translateY(-90px) rotate(-25deg) scale(0.9);
}

.box-body {
  position: absolute;
  width: 170px;
  height: 140px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.2);
  z-index: 1;
}

/* Ribbons & Bow */
.box-ribbon-v {
  position: absolute;
  width: 32px;
  height: 100%;
  left: calc(50% - 16px);
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  z-index: 2;
}

.box-ribbon-h {
  position: absolute;
  width: 100%;
  height: 28px;
  top: calc(50% - 14px);
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  z-index: 2;
}

.box-bow {
  position: absolute;
  top: -36px;
  left: calc(50% - 30px);
  width: 60px;
  height: 36px;
  z-index: 4;
}

.bow-loop-left, .bow-loop-right {
  position: absolute;
  width: 34px;
  height: 26px;
  border-radius: 50% 50% 10% 50%;
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  border: 2px solid #b45309;
}

.bow-loop-left {
  left: 0;
  transform: rotate(-35deg);
}

.bow-loop-right {
  right: 0;
  transform: rotate(35deg) scaleX(-1);
}

.bow-center {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #f59e0b;
  border-radius: 50%;
  top: 10px;
  left: calc(50% - 9px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.unboxing-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.unboxing-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-align: center;
  max-width: 480px;
  margin-bottom: 2rem;
}

.btn-open-gift {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.45);
  transition: var(--transition-smooth);
}

.btn-open-gift:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(234, 88, 12, 0.6);
}

/* ====================================================================
   NAVIGATION & FLOATING CONTROLS
   ==================================================================== */
.floating-nav {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 100;
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-pill-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Music Visualizer Bars */
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

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

.playing .music-bar:nth-child(1) { animation: soundBar 1.1s ease-in-out infinite alternate; }
.playing .music-bar:nth-child(2) { animation: soundBar 0.8s ease-in-out infinite alternate 0.2s; }
.playing .music-bar:nth-child(3) { animation: soundBar 1.3s ease-in-out infinite alternate 0.4s; }

@keyframes soundBar {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* ====================================================================
   HERO CELEBRATION SECTION
   ==================================================================== */
.hero-section {
  position: relative;
  padding: 6.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

/* Floating 3D Balloons */
.floating-balloons-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.balloon {
  position: absolute;
  width: 70px;
  height: 90px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: floatUp 14s linear infinite;
  opacity: 0.85;
}

.balloon::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: inherit;
  border-radius: 2px;
  transform: rotate(45deg);
}

.balloon::before {
  content: '';
  position: absolute;
  bottom: -45px;
  left: calc(50% - 1px);
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.4);
}

.balloon-1 {
  left: 6%;
  background: radial-gradient(circle at 30% 30%, #f43f5e, #9f1239);
  animation-duration: 16s;
  animation-delay: 0s;
}

.balloon-2 {
  left: 88%;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #b45309);
  animation-duration: 19s;
  animation-delay: 2s;
}

.balloon-3 {
  left: 18%;
  width: 55px;
  height: 72px;
  background: radial-gradient(circle at 30% 30%, #6366f1, #3730a3);
  animation-duration: 22s;
  animation-delay: 5s;
}

.balloon-4 {
  left: 78%;
  width: 60px;
  height: 78px;
  background: radial-gradient(circle at 30% 30%, #10b981, #065f46);
  animation-duration: 18s;
  animation-delay: 7s;
}

@keyframes floatUp {
  0% { transform: translateY(105vh) rotate(0deg); }
  50% { transform: translateY(50vh) rotate(10deg); }
  100% { transform: translateY(-20vh) rotate(-10deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  color: #a5b4fc;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.title-glow {
  background: linear-gradient(135deg, #ffffff 10%, #fbbf24 60%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.45));
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, #4338ca 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ====================================================================
   SPECIAL LATE APOLOGY SECTION
   ==================================================================== */
.late-apology-banner {
  margin: 2rem auto 4.5rem;
  max-width: 820px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(225, 29, 72, 0.08) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.late-apology-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-rose));
}

.late-icon-wrapper {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  animation: bounceSlow 3s infinite;
}

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

.late-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 0.35rem;
}

.late-content .late-highlight {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.late-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ====================================================================
   SECTION COMMON HEADERS
   ==================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ====================================================================
   CHILDHOOD MEMORY LANE (TIMELINE)
   ==================================================================== */
.memory-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.memory-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-indigo) 0%, var(--accent-gold) 50%, var(--accent-rose) 100%);
  transform: translateX(-50%);
  opacity: 0.4;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item.left {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  top: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  z-index: 5;
}

.timeline-item.left .timeline-marker {
  right: -22px;
}

.timeline-item.right .timeline-marker {
  left: -22px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.timeline-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.timeline-era {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ====================================================================
   3D POLAROID PHOTO GALLERY
   ==================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.25rem;
  perspective: 1200px;
}

.polaroid-card {
  background: #ffffff;
  padding: 1rem 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.polaroid-card:hover {
  transform: scale(1.05) translateY(-8px) rotate(0deg) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.4);
  z-index: 10;
}

/* Washi Tape on Polaroid top */
.washi-tape {
  position: absolute;
  top: -12px;
  left: calc(50% - 35px);
  width: 70px;
  height: 24px;
  background: rgba(245, 158, 11, 0.65);
  backdrop-filter: blur(2px);
  transform: rotate(-2deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
  z-index: 2;
}

.polaroid-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #0f172a;
}

.polaroid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img-wrapper img {
  transform: scale(1.04);
}

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.25;
}

.polaroid-year {
  display: block;
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====================================================================
   HANDWRITTEN EMOTIONAL LETTER SECTION
   ==================================================================== */
.letter-section {
  padding: 5rem 0;
}

.letter-envelope-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.letter-wax-seal-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.wax-seal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #ef4444;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.5);
  transition: var(--transition-smooth);
}

.wax-seal-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(185, 28, 28, 0.7);
}

.letter-paper {
  background: #fafaf9;
  color: #1c1917;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 80px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  transition: var(--transition-smooth);
}

/* Notebook ruled line subtle effect */
.letter-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(2rem, 5vw, 3.5rem);
  bottom: 0;
  width: 2px;
  background: rgba(239, 68, 68, 0.2);
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #d6d3d1;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.letter-date {
  font-size: 0.95rem;
  color: #78716c;
  font-style: italic;
}

.letter-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border: 2px dashed #b91c1c;
  color: #b91c1c;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.letter-salutation {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0c0a09;
  margin-bottom: 1.5rem;
}

.letter-body {
  font-size: 1.12rem;
  line-height: 1.9;
  color: #292524;
}

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

.letter-postscript {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #fef3c7;
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  color: #78350f;
  line-height: 1.65;
}

.letter-footer {
  margin-top: 2.5rem;
  text-align: right;
}

.letter-signoff {
  font-size: 1rem;
  color: #78716c;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.letter-signature {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  font-weight: 700;
  color: #0c0a09;
  transform: rotate(-2deg);
  display: inline-block;
}

/* ====================================================================
   3D VIRTUAL CAKE SECTION
   ==================================================================== */
.cake-section {
  text-align: center;
  padding: 5rem 0;
}

.cake-stage {
  perspective: 900px;
  margin: 2.5rem auto;
  max-width: 320px;
}

.cake-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cake-wrapper:hover {
  transform: scale(1.03);
}

/* Candles */
.candles-row {
  display: flex;
  gap: 24px;
  margin-bottom: -5px;
  z-index: 5;
}

.candle {
  position: relative;
  width: 14px;
  height: 48px;
  background: repeating-linear-gradient(45deg, #f43f5e, #f43f5e 6px, #ffffff 6px, #ffffff 12px);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.flame {
  position: absolute;
  top: -22px;
  left: calc(50% - 7px);
  width: 14px;
  height: 22px;
  background: radial-gradient(ellipse at bottom, #fef08a 0%, #f59e0b 60%, #ea580c 100%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  box-shadow: 0 0 18px #f59e0b, 0 0 35px #ea580c;
  animation: flicker 1s infinite alternate ease-in-out;
  transform-origin: center bottom;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.candle:nth-child(2) .flame { animation-delay: 0.2s; }
.candle:nth-child(3) .flame { animation-delay: 0.4s; }

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

/* Blown out state */
.cake-wrapper.blown .flame {
  opacity: 0;
  transform: translateY(-10px) scale(0);
}

/* Smoke puff */
.smoke {
  position: absolute;
  top: -24px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}

.cake-wrapper.blown .smoke {
  animation: puffSmoke 1.8s forwards;
}

@keyframes puffSmoke {
  0% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-10px, -45px) scale(3.5); }
}

/* Cake Tiers */
.cake-tier {
  border-radius: 14px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.tier-top {
  width: 180px;
  height: 60px;
  background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
  z-index: 4;
}

.tier-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: #fdf2f8;
  border-radius: 14px 14px 0 0;
}

.tier-bottom {
  width: 250px;
  height: 75px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  margin-top: -6px;
  z-index: 3;
}

.tier-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: #e0e7ff;
  border-radius: 14px 14px 0 0;
}

.cake-plate {
  width: 290px;
  height: 16px;
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  border-radius: 20px;
  margin-top: -4px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.btn-blow-candles {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2.25rem;
  background: linear-gradient(135deg, var(--accent-rose) 0%, #be123c 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.45);
  transition: var(--transition-smooth);
}

.btn-blow-candles:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(225, 29, 72, 0.6);
}

.cake-wish-banner {
  margin-top: 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  display: none;
  animation: fadeIn 0.8s ease;
}

.cake-wish-banner.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================================================
   FRIENDSHIP QUOTES SECTION
   ==================================================================== */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.quote-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-5px);
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.quote-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====================================================================
   CALL TO ACTION & DIRECT REPLY BUTTONS
   ==================================================================== */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-box {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.18) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  max-width: 820px;
  margin: 0 auto;
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.reply-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  background: #25d366;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
  transition: var(--transition-smooth);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(220, 39, 67, 0.6);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer {
  text-align: center;
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-glass);
  margin-top: 4rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer .love-icon {
  color: var(--accent-rose);
  display: inline-block;
  animation: pulseBeat 1.5s infinite;
}

@keyframes pulseBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ====================================================================
   MODAL / LIGHTBOX FOR POLAROIDS
   ==================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 22, 0.92);
  backdrop-filter: blur(15px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  background: #ffffff;
  padding: 1.25rem 1.25rem 2rem;
  border-radius: 12px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  background: #e11d48;
  color: #fff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
}

.lightbox-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-caption-text {
  font-family: var(--font-handwriting);
  font-size: 1.8rem;
  color: #0f172a;
  text-align: center;
  margin-top: 1rem;
}

/* ====================================================================
   MOBILE RESPONSIVENESS (Touch & Screen Adaptations)
   ==================================================================== */
@media (max-width: 768px) {
  .memory-timeline::before {
    left: 24px;
  }

  .timeline-item {
    width: 100%;
    margin-bottom: 2.5rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    padding-left: 4.5rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-marker,
  .timeline-item.right .timeline-marker {
    left: 2px;
    right: auto;
  }

  .late-apology-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .late-apology-banner::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }

  .letter-paper {
    padding: 1.75rem 1.25rem;
  }

  .letter-paper::before {
    display: none;
  }

  .floating-nav {
    top: auto;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
