/* ================================================================
   BIRTHDAY SURPRISE WEBSITE — style.css
   Cute Gothic Theme 🦇
   ================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES (easy to tweak theme)
   ---------------------------------------------------------------- */
:root {
  --black:        #0f0f0f;
  --deep-purple:  #2a0a3a;
  --mid-purple:   #5a2a82;
  --pink:         #ffb6d9;
  --soft-white:   #f1e9f7;
  --glow-pink:    rgba(255, 182, 217, 0.6);
  --glow-purple:  rgba(90, 42, 130, 0.7);

  --font-display: 'Cinzel Decorative', cursive;
  --font-body:    'Cormorant Garamond', serif;
  --font-alt:     'IM Fell English', serif;

  --transition:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--soft-white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--mid-purple); border-radius: 3px; }

a { color: var(--pink); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ----------------------------------------------------------------
   ATMOSPHERE LAYER (particles canvas + bats)
   ---------------------------------------------------------------- */
#atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#bats-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Individual flying bat */
.atmo-bat {
  position: absolute;
  font-size: clamp(1rem, 2vw, 1.8rem);
  opacity: 0.4;
  animation: batFly linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 6px var(--glow-purple));
}

@keyframes batFly {
  0%   { transform: translateX(-120px) translateY(0px) scaleX(1); }
  25%  { transform: translateX(25vw)   translateY(-40px) scaleX(1); }
  50%  { transform: translateX(50vw)   translateY(20px) scaleX(-1); }
  75%  { transform: translateX(75vw)   translateY(-20px) scaleX(-1); }
  100% { transform: translateX(110vw)  translateY(10px) scaleX(1); }
}

/* ----------------------------------------------------------------
   SCREENS
   ---------------------------------------------------------------- */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: none;
}
.screen.active { display: block; }

/* ----------------------------------------------------------------
   LOCK SCREEN
   ---------------------------------------------------------------- */
#lock-screen {
  background: radial-gradient(ellipse at 50% 30%, #3d0f5a 0%, #1a0828 50%, var(--black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.lock-inner {
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.lock-icon {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px var(--glow-purple));
  animation: floatIcon 3s ease-in-out infinite;
}

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

.lock-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  color: var(--soft-white);
  line-height: 1.3;
  text-shadow: 0 0 30px var(--glow-purple), 0 0 60px var(--glow-purple);
  margin-bottom: 0.75rem;
}

.lock-title em {
  font-style: italic;
  color: var(--pink);
  text-shadow: 0 0 20px var(--glow-pink);
}

.lock-subtitle {
  font-family: var(--font-alt);
  font-style: italic;
  color: rgba(241, 233, 247, 0.65);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(42, 10, 58, 0.6);
  border: 1px solid rgba(90, 42, 130, 0.5);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  min-width: 80px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(90, 42, 130, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--pink);
  text-shadow: 0 0 15px var(--glow-pink);
  line-height: 1;
  transition: transform 0.2s;
}

.countdown-num.tick {
  transform: scale(1.15);
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(241, 233, 247, 0.5);
  margin-top: 0.3rem;
}

.countdown-sep {
  color: var(--mid-purple);
  font-size: 1.3rem;
  opacity: 0.7;
  margin-top: -0.5rem;
}

/* Surprise Cards */
.surprises-section {
  padding-top: 1rem;
}

.surprises-heading {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--pink);
  text-shadow: 0 0 15px var(--glow-pink);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.surprise-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.surprise-card {
  background: rgba(42, 10, 58, 0.5);
  border: 1px solid rgba(90, 42, 130, 0.4);
  border-radius: 14px;
  padding: 1.4rem 1rem;
  cursor: default;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.surprise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(90,42,130,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.surprise-card.unlocked {
  border-color: rgba(255, 182, 217, 0.5);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 182, 217, 0.15);
}

.surprise-card.unlocked:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 182, 217, 0.25);
}

.surprise-card.unlocked:hover::before { opacity: 1; }

.surprise-card.locked {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  filter: drop-shadow(0 0 8px var(--glow-purple));
}

.surprise-card.unlocked .card-icon {
  filter: drop-shadow(0 0 10px var(--glow-pink));
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--soft-white);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.card-desc {
  font-size: 0.85rem;
  color: rgba(241, 233, 247, 0.6);
  font-style: italic;
}

.card-status {
  font-size: 0.72rem;
  margin-top: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.surprise-card.unlocked .card-status { color: var(--pink); }
.surprise-card.locked .card-status   { color: rgba(241,233,247,0.3); }

/* ----------------------------------------------------------------
   MODALS
   ---------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 0, 18, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.4s ease;
}

.modal.open { display: flex; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: linear-gradient(160deg, #2e0c44 0%, #1a0828 100%);
  border: 1px solid rgba(255, 182, 217, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 60px rgba(90, 42, 130, 0.5), 0 0 120px rgba(255, 182, 217, 0.1);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box--wide { max-width: 680px; }

@keyframes modalSlideUp {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: 1px solid rgba(255,182,217,0.3);
  color: var(--pink);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 182, 217, 0.15);
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--pink);
  text-shadow: 0 0 15px var(--glow-pink);
  margin-bottom: 1.2rem;
}

.modal-text {
  font-family: var(--font-alt);
  font-style: italic;
  font-size: 1rem;
  color: rgba(241, 233, 247, 0.85);
  line-height: 1.8;
}

.modal-hearts {
  margin-top: 1.5rem;
  color: var(--pink);
  font-size: 1.3rem;
  letter-spacing: 0.5rem;
  text-shadow: 0 0 10px var(--glow-pink);
}

/* Modal 1: Bat animation */
.modal-bat-anim {
  font-size: 3.5rem;
  animation: modalBat 2s ease-in-out infinite;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px var(--glow-purple));
}

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

/* Modal 2: Star reveal */
.star-reveal { text-align: center; padding: 1rem 0; }

.star-btn {
  font-size: 4rem;
  cursor: pointer;
  display: inline-block;
  animation: starPulse 1.5s ease-in-out infinite;
  transition: var(--transition);
  filter: drop-shadow(0 0 20px #ffe066);
}

.star-btn:hover { transform: scale(1.2) rotate(20deg); }

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

.star-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid rgba(255,182,217,0.4);
  box-shadow: 0 0 30px var(--glow-pink);
  animation: fadeIn 0.6s ease;
}

.star-caption {
  margin-top: 0.8rem;
  font-style: italic;
  color: var(--pink);
  font-family: var(--font-alt);
}

/* Modal 3: Music player mini */
.music-player-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 182, 217, 0.07);
  border: 1px solid rgba(255, 182, 217, 0.2);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  margin: 1.2rem 0;
}

.music-disc {
  font-size: 2.5rem;
  animation: none;
}
.music-disc.spinning {
  animation: discSpin 3s linear infinite;
}

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

.music-info { flex: 1; text-align: left; }
.music-track-name { display: block; font-family: var(--font-display); font-size: 0.85rem; color: var(--pink); }
.music-artist { font-size: 0.8rem; color: rgba(241,233,247,0.5); font-style: italic; }

.btn-play-mini {
  background: linear-gradient(135deg, var(--mid-purple), #7a3aaa);
  border: none;
  color: var(--soft-white);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-play-mini:hover { transform: scale(1.05); box-shadow: 0 0 15px var(--glow-purple); }

/* Modal 4: Letter */
.letter-paper {
  background: rgba(241, 233, 247, 0.04);
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.5rem;
  text-align: left;
  margin-top: 0.5rem;
}

.letter-content {
  font-family: var(--font-alt);
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(241, 233, 247, 0.88);
}

.letter-content em { color: var(--pink); }

/* Modal 5: Secret envelope */
.secret-envelope {
  display: inline-block;
  cursor: pointer;
  padding: 1.5rem;
  background: rgba(255, 182, 217, 0.07);
  border: 1px dashed rgba(255, 182, 217, 0.4);
  border-radius: 14px;
  transition: var(--transition);
  margin: 0.5rem 0 1rem;
}

.secret-envelope:hover {
  background: rgba(255, 182, 217, 0.12);
  transform: scale(1.03);
}

.envelope-top { font-size: 3rem; }
.envelope-hint { font-style: italic; font-size: 0.85rem; color: rgba(241,233,247,0.5); margin-top: 0.5rem; }

.secret-msg {
  font-family: var(--font-alt);
  font-style: italic;
  color: var(--pink);
  line-height: 1.9;
  animation: fadeIn 0.6s ease;
}

/* ----------------------------------------------------------------
   BIRTHDAY SCREEN
   ---------------------------------------------------------------- */
#birthday-screen {
  background: radial-gradient(ellipse at 50% 0%, #3d0f5a 0%, #1a0828 40%, var(--black) 80%);
}

/* Birthday intro cinematic */
.birthday-intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.birthday-intro.fade-out {
  animation: introFadeOut 1.5s ease forwards;
}

@keyframes introFadeOut {
  to { opacity: 0; pointer-events: none; }
}

.intro-bats {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-bat {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 3rem);
  animation: introBatFly linear forwards;
  filter: drop-shadow(0 0 10px var(--glow-purple));
  opacity: 0;
}

@keyframes introBatFly {
  0%   { opacity: 0; transform: translateX(-100px) translateY(0); }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(110vw) translateY(var(--bat-y, -30px)); }
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5rem);
  color: var(--pink);
  text-shadow: 0 0 40px var(--glow-pink), 0 0 80px var(--glow-pink);
  text-align: center;
  opacity: 0;
  animation: titleReveal 1.5s 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 1;
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.9); letter-spacing: 0.3em; }
  to   { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.05em; }
}

/* Navigation */
.bday-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 0, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90, 42, 130, 0.3);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 233, 247, 0.6);
  transition: var(--transition);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--pink);
  border-color: var(--pink);
  text-shadow: 0 0 10px var(--glow-pink);
}

/* Hero */
.bday-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.bday-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--soft-white);
  text-shadow: 0 0 40px var(--glow-purple), 0 0 80px var(--glow-purple);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s 0.3s both;
}

.bday-bat-icon {
  font-size: clamp(3rem, 8vw, 5rem);
  filter: drop-shadow(0 0 20px var(--glow-pink));
  animation: floatIcon 3s ease-in-out infinite, fadeInUp 1s 0.6s both;
  margin: 0.5rem 0;
}

.bday-subtitle {
  font-family: var(--font-alt);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(241, 233, 247, 0.75);
  max-width: 600px;
  animation: fadeInUp 1s 0.9s both;
}

.hero-sparkles {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--pink);
  letter-spacing: 0.5rem;
  opacity: 0.6;
  animation: fadeInUp 1s 1.2s both, sparkleFloat 4s ease-in-out infinite;
}

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

/* Easter egg bat (hidden in hero) */
.easter-egg-bat {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  font-size: 1.2rem;
  opacity: 0.15;
  cursor: pointer;
  transition: opacity 0.3s;
  filter: blur(1px);
}
.easter-egg-bat:hover { opacity: 0.8; filter: none; }

/* Sections */
.bday-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bday-section--dark {
  max-width: 100%;
  background: rgba(15, 0, 24, 0.6);
  padding: 5rem 2rem;
}

.bday-section--dark > * { max-width: 800px; margin-left: auto; margin-right: auto; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  color: var(--pink);
  text-shadow: 0 0 20px var(--glow-pink);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-style: italic;
  color: rgba(241, 233, 247, 0.5);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid rgba(90, 42, 130, 0.4);
  background: rgba(42, 10, 58, 0.6);
  cursor: pointer;
  animation: fadeInUp 0.6s var(--delay, 0s) both;
  transition: var(--transition);
}

.photo-card:hover {
  transform: scale(1.04) translateY(-4px);
  border-color: rgba(255, 182, 217, 0.5);
  box-shadow: 0 12px 40px rgba(255, 182, 217, 0.2), 0 0 20px var(--glow-purple);
}

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

.photo-card:hover img { transform: scale(1.05); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,10,58,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* Love letter typed */
.letter-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.letter-wax-seal {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px var(--glow-pink));
  animation: floatIcon 4s ease-in-out infinite;
}

.typed-letter {
  font-family: var(--font-alt);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.95;
  color: rgba(241, 233, 247, 0.88);
  background: rgba(42, 10, 58, 0.4);
  border: 1px solid rgba(255, 182, 217, 0.2);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  min-height: 200px;
  position: relative;
}

/* Typing cursor */
.typed-letter::after {
  content: '|';
  color: var(--pink);
  animation: blink 0.8s infinite;
}

.typed-letter.done::after { display: none; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Music Player (full) */
.music-player {
  background: rgba(42, 10, 58, 0.5);
  border: 1px solid rgba(255, 182, 217, 0.3);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(255, 182, 217, 0.1);
}

.player-disc {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 15px var(--glow-purple));
  flex-shrink: 0;
}
.player-disc.spinning { animation: discSpin 4s linear infinite; }

.player-info { text-align: center; }

.player-track {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--pink);
  margin-bottom: 0.2rem;
}

.player-artist {
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(241,233,247,0.5);
}

.player-btn {
  background: linear-gradient(135deg, var(--mid-purple), #8a3fbc);
  border: none;
  color: var(--soft-white);
  font-size: 1.4rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(90, 42, 130, 0.4);
}

.player-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--glow-purple);
}

.player-visualizer {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.player-visualizer span {
  display: block;
  width: 5px;
  background: var(--pink);
  border-radius: 3px;
  height: 6px;
  opacity: 0.4;
  transition: height 0.1s;
}

.player-visualizer.playing span:nth-child(1) { animation: bar 0.8s 0.0s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(2) { animation: bar 0.6s 0.1s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(3) { animation: bar 0.9s 0.2s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(4) { animation: bar 0.5s 0.3s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(5) { animation: bar 0.7s 0.1s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(6) { animation: bar 1.0s 0.2s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(7) { animation: bar 0.6s 0.0s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(8) { animation: bar 0.8s 0.15s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(9) { animation: bar 0.5s 0.25s ease-in-out infinite alternate; }
.player-visualizer.playing span:nth-child(10){ animation: bar 0.7s 0.05s ease-in-out infinite alternate; }
.player-visualizer.playing span { opacity: 1; }

@keyframes bar {
  from { height: 4px; }
  to   { height: 32px; }
}

/* Footer */
.bday-footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(90, 42, 130, 0.3);
  color: rgba(241, 233, 247, 0.4);
  font-style: italic;
}

.footer-year { margin-top: 0.5rem; font-size: 0.85rem; }

/* ----------------------------------------------------------------
   UTILITIES
   ---------------------------------------------------------------- */
.hidden { display: none !important; }

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

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

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 600px) {
  .countdown { gap: 0.3rem; }
  .countdown-unit { padding: 0.8rem 0.7rem; min-width: 62px; }
  .surprise-cards { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { padding: 2rem 1.2rem; }
  .music-player { gap: 1rem; padding: 1.5rem 1rem; }
  .typed-letter { padding: 1.5rem 1.2rem; }
  .bday-nav { gap: 1rem; }
}

@media (max-width: 380px) {
  .surprise-cards { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}
