@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Quicksand:wght@300;400;500;600;700&family=Pacifico&display=swap');

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --pink:       #ff69b4;
  --pink-light: #ffb3d9;
  --pink-pale:  #ffe4f3;
  --lavender:   #c084fc;
  --gold:       #ffd700;
  --gold-light: #fff3b0;
  --teal:       #7dd1c8;
  --dark:       #0d0d1a;
  --dark2:      #120d24;
  --white:      #ffffff;
  --glass:      rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Quicksand', sans-serif;
  background: var(--dark);
  color: var(--white);
}

/* ============================================================
   STAR CANVAS
   ============================================================ */
#star-canvas {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   PARTICLES
   ============================================================ */
.particles-container {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-up linear infinite;
  opacity: 0;
}
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0;   }
}

/* ============================================================
   CURSOR SPARKLE
   ============================================================ */
.cursor-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spark-pop 0.55s ease-out forwards;
}
@keyframes spark-pop {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(0) translateY(-10px); }
}

/* ============================================================
   PROGRESS DOTS
   ============================================================ */
.progress-dots {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 200;
}
.progress-dots .pdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: all 0.4s ease;
  cursor: pointer;
}
.progress-dots .pdot.active {
  background: var(--pink);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--pink);
}

/* ============================================================
   SKIP BUTTON
   ============================================================ */
.skip-btn {
  position: fixed; top: 18px; right: 18px;
  z-index: 300;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: rgba(255,255,255,0.7);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  padding: 6px 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.skip-btn:hover {
  background: rgba(255,105,180,0.3);
  color: var(--white);
  border-color: var(--pink);
}

/* ============================================================
   SLIDES WRAPPER
   ============================================================ */
.slides-wrapper {
  position: fixed; inset: 0;
  z-index: 10;
}

/* ============================================================
   SLIDES
   ============================================================ */
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
}
.slide.active {
  opacity: 1;
  pointer-events: all;
}
.slide-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  width: 100%; height: 100%;
  padding: 20px;
  position: relative;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.next-btn {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  border: none; border-radius: 50px;
  color: var(--white);
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem; font-weight: 700;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(255,105,180,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; z-index: 10;
  letter-spacing: 1px;
  margin-top: 10px;
}
.next-btn:hover { transform: scale(1.06) translateY(-2px); box-shadow: 0 12px 35px rgba(255,105,180,0.6); }
.next-btn:active { transform: scale(0.97); }

.seq-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,105,180,0.4);
  border-radius: 50px; color: var(--pink-light);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  padding: 10px 28px; cursor: pointer;
  transition: all 0.3s;
}
.seq-btn:hover { background: rgba(255,105,180,0.2); }

.replay-btn {
  background: linear-gradient(135deg, var(--gold), #ffb347);
  border: none; border-radius: 50px;
  color: #1a1a1a; font-family: 'Quicksand', sans-serif;
  font-size: 1rem; font-weight: 700;
  padding: 12px 32px; cursor: pointer;
  box-shadow: 0 6px 25px rgba(255,215,0,0.45);
  transition: transform 0.2s;
}
.replay-btn:hover { transform: scale(1.06); }
.replay-btn span { font-size: 1.2rem; }

.hidden { display: none !important; }

/* ============================================================
   SLIDE 1 — OPENING
   ============================================================ */
#slide-1 { background: radial-gradient(ellipse at 50% 40%, rgba(255,105,180,0.18) 0%, transparent 65%), var(--dark); }

.slide1-stars {
  display: flex; gap: 18px;
  font-size: 1.5rem; color: rgba(255,215,0,0.5);
  margin-bottom: 8px;
  animation: star-drift 4s ease-in-out infinite;
}
.slide1-stars span:nth-child(even) { animation: star-drift2 3.5s ease-in-out infinite; }
@keyframes star-drift  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes star-drift2 { 0%,100%{transform:translateY(-8px)} 50%{transform:translateY(0)} }

.slide1-dear {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem; color: rgba(255,255,255,0.6);
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.4s ease forwards;
}

.slide1-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.15;
  text-align: center;
}
.name-char {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-light), var(--gold), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0;
  animation: charPop 0.5s ease forwards;
  filter: drop-shadow(0 0 12px rgba(255,105,180,0.5));
}
/* stagger each char */
.name-char:nth-child(1)  { animation-delay: 0.6s; }
.name-char:nth-child(2)  { animation-delay: 0.72s; }
.name-char:nth-child(3)  { animation-delay: 0.84s; }
.name-char:nth-child(4)  { animation-delay: 0.96s; }
.name-char:nth-child(5)  { animation-delay: 1.08s; }
.name-char:nth-child(6)  { animation-delay: 1.20s; }
.name-char:nth-child(7)  { animation-delay: 1.32s; }
.name-char:nth-child(8)  { animation-delay: 1.44s; }
.name-char:nth-child(9)  { animation-delay: 1.56s; }
.name-char:nth-child(10) { animation-delay: 1.68s; }
.name-char:nth-child(11) { animation-delay: 1.80s; }
.name-char:nth-child(12) { animation-delay: 1.92s; }
.name-char:nth-child(13) { animation-delay: 2.04s; }
.name-char:nth-child(14) { animation-delay: 2.16s; }
.name-char:nth-child(15) { animation-delay: 2.28s; }
.name-char:nth-child(16) { animation-delay: 2.40s; }
.name-char:nth-child(17) { animation-delay: 2.52s; }
.name-char:nth-child(18) { animation-delay: 2.64s; }
.name-char:nth-child(19) { animation-delay: 2.76s; }
.name-char:nth-child(20) { animation-delay: 2.88s; }

@keyframes charPop {
  0%   { opacity:0; transform: translateY(-30px) scale(0.5) rotate(-10deg); }
  60%  { transform: translateY(5px) scale(1.15) rotate(3deg); }
  100% { opacity:1; transform: translateY(0) scale(1) rotate(0); }
}

.slide1-congrats {
  font-size: 1.1rem; letter-spacing: 5px;
  color: var(--pink-light); font-weight: 600;
  opacity: 0;
  animation: fadeSlideUp 0.8s 2.4s ease forwards;
}

.slide1-hearts {
  display: flex; gap: 20px; font-size: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 2.7s ease forwards;
}
.float-heart { display: inline-block; animation: heartFloat 2s ease-in-out infinite; }
.float-heart.delay1 { animation-delay: 0.4s; }
.float-heart.delay2 { animation-delay: 0.8s; }
@keyframes heartFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-12px) scale(1.15); }
}

#slide-1 .next-btn {
  opacity: 0;
  animation: fadeSlideUp 0.8s 3s ease forwards;
}

/* ============================================================
   SLIDE 2 — BIRTHDAY CAKE
   ============================================================ */
#slide-2 { background: radial-gradient(ellipse at 50% 60%, rgba(255,215,0,0.12) 0%, transparent 65%), var(--dark2); }

.cake-container { position: relative; margin-bottom: 10px; }
.cake { display: flex; flex-direction: column; align-items: center; }

.cake-top {
  width: 160px; height: 60px;
  background: linear-gradient(135deg, #ff9de2, #ffb3d9);
  border-radius: 80px 80px 0 0;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.15);
}
.candles { display: flex; gap: 10px; padding-bottom: 8px; }
.candle {
  width: 10px; height: 35px;
  background: linear-gradient(to bottom, #fff, #ffeb9c);
  border-radius: 3px; position: relative;
  box-shadow: 0 0 6px rgba(255,220,100,0.4);
}
.flame {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 16px;
  background: radial-gradient(ellipse at 50% 80%, #ffe066, #ffaa00, #ff6600);
  border-radius: 50% 50% 40% 40%;
  animation: flicker 0.5s ease-in-out infinite alternate;
  box-shadow: 0 0 8px 3px rgba(255,180,0,0.5);
}
@keyframes flicker {
  from { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-3deg); }
  to   { transform: translateX(-50%) scaleX(0.85) scaleY(1.1) rotate(3deg); }
}

.cake-mid {
  width: 180px; height: 55px;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.2);
}
.cake-bot {
  width: 200px; height: 55px;
  background: linear-gradient(135deg, #ff69b4, #e91e8c);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.2);
}
.cake-plate {
  width: 230px; height: 14px;
  background: linear-gradient(to right, #e2e8f0, #fff, #e2e8f0);
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* cake entrance */
.cake-container {
  opacity: 0;
  animation: cakeBounce 1s 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes cakeBounce {
  0%   { opacity:0; transform: scale(0.3) translateY(60px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}

.slide2-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--gold), var(--pink-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0; animation: fadeSlideUp 0.7s 1s ease forwards;
}
.slide2-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
  opacity: 0; animation: fadeSlideUp 0.7s 1.3s ease forwards;
}

.birthday-emojis {
  display: flex; gap: 16px; font-size: 2rem;
  opacity: 0; animation: fadeSlideUp 0.7s 1.6s ease forwards;
}
.pop-emoji {
  display: inline-block;
  animation: popWiggle 1.5s ease-in-out infinite;
}
.pop-emoji.d1 { animation-delay: 0.2s; }
.pop-emoji.d2 { animation-delay: 0.4s; }
.pop-emoji.d3 { animation-delay: 0.6s; }
.pop-emoji.d4 { animation-delay: 0.8s; }
@keyframes popWiggle {
  0%,100% { transform: scale(1) rotate(0); }
  25%     { transform: scale(1.3) rotate(-10deg); }
  50%     { transform: scale(1) rotate(0); }
  75%     { transform: scale(1.2) rotate(10deg); }
}

#slide-2 .next-btn { opacity:0; animation: fadeSlideUp 0.7s 2s ease forwards; }

/* ============================================================
   SLIDE 3 — MESSAGE
   ============================================================ */
#slide-3 {
  background: radial-gradient(ellipse at 30% 70%, rgba(192,132,252,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(255,105,180,0.08) 0%, transparent 60%),
              var(--dark);
}
.slide3-inner { padding: 16px; }

.message-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,105,180,0.25);
  border-radius: 24px;
  width: min(700px, 96vw);
  max-height: 82vh;
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(255,105,180,0.12);
  opacity: 0;
  animation: cardIn 0.8s 0.3s cubic-bezier(0.34,1.3,0.64,1) forwards;
}
@keyframes cardIn {
  0%   { opacity:0; transform: scale(0.88) translateY(30px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}

.message-header {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,105,180,0.15);
  flex-shrink: 0;
}
.msg-dots { display: flex; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.msg-title {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  margin-left: auto;
}

.message-body {
  flex: 1; overflow-y: auto;
  padding: 20px 24px 8px;
  scroll-behavior: smooth;
}
.message-body::-webkit-scrollbar { width: 4px; }
.message-body::-webkit-scrollbar-track { background: transparent; }
.message-body::-webkit-scrollbar-thumb { background: rgba(255,105,180,0.4); border-radius: 2px; }

.msg-text {
  font-size: 0.92rem; line-height: 1.85;
  color: rgba(255,255,255,0.82);
  white-space: pre-line; text-align: left;
}

.message-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,105,180,0.12);
  display: flex; justify-content: flex-end;
  flex-shrink: 0;
}
.msg-next-btn { margin-top: 0; }

/* ============================================================
   SLIDE 4 — GALLERY (Polaroid)
   ============================================================ */
#slide-4 {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255,105,180,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(125,209,200,0.1) 0%, transparent 55%),
    var(--dark2);
}
.slide4-inner {
  justify-content: center;
  gap: 10px;
}

.slide4-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0; animation: fadeSlideUp 0.7s 0.3s ease forwards;
}
.slide4-sub {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  opacity: 0; animation: fadeSlideUp 0.7s 0.6s ease forwards;
}

/* Polaroid stage */
.polaroid-stage {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px 4px;
  opacity: 0; animation: fadeSlideUp 0.9s 0.85s ease forwards;
}

.polaroid {
  background: #fff;
  padding: 8px 8px 28px 8px;
  border-radius: 4px;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
  will-change: transform;
  flex-shrink: 0;
}
.polaroid:hover {
  transform: scale(1.12) translateY(-10px) rotate(0deg) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255,105,180,0.3);
  z-index: 10;
}

.polaroid-img-wrap {
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
}
.polaroid-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.polaroid-img-wrap.gif-wrap { background: #1a1a2e; }

.polaroid-caption {
  font-family: 'Dancing Script', cursive;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  margin-top: 6px;
  line-height: 1.2;
}

/* Tilt variations */
.p-tilt-l  { rotate: -5deg; }
.p-tilt-r  { rotate:  4deg; }
.p-tilt-l2 { rotate: -2deg; }
.p-tilt-r2 { rotate:  6deg; }

/* Stagger animation delays */
.p-delay0 { animation-delay: 0.9s; }
.p-delay1 { animation-delay: 1.05s; }
.p-delay2 { animation-delay: 1.2s; }
.p-delay3 { animation-delay: 1.35s; }
.p-delay4 { animation-delay: 1.5s; }

/* Each polaroid pops in individually */
.polaroid {
  opacity: 0;
  animation: polaroidPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes polaroidPop {
  0%   { opacity:0; transform: scale(0.4) rotate(var(--init-rot, 0deg)); }
  70%  { opacity:1; }
  100% { opacity:1; transform: scale(1); }
}
.p-tilt-l  { --init-rot: -5deg; }
.p-tilt-r  { --init-rot: 4deg; }
.p-tilt-l2 { --init-rot: -2deg; }
.p-tilt-r2 { --init-rot: 6deg; }

/* Heart string decorations */
.polaroid-stage::before {
  content: '✦  📷  ✦  🎞️  ✦  📸  ✦';
  position: absolute;
  top: -24px;
  font-size: 0.75rem;
  color: rgba(255,105,180,0.4);
  letter-spacing: 6px;
  white-space: nowrap;
}
.polaroid-stage { position: relative; }

#slide-4 .next-btn { opacity:0; animation: fadeSlideUp 0.7s 2s ease forwards; }

@media (max-width: 500px) {
  .polaroid-img-wrap { width: 95px; height: 95px; }
  .polaroid { padding: 6px 6px 22px 6px; }
  .polaroid-stage { gap: 8px; }
}

/* ============================================================
   SLIDE 5 — SPECIAL SEQUENCE
   ============================================================ */
#slide-5 {
  background: radial-gradient(ellipse at 50% 50%, rgba(255,105,180,0.15) 0%, transparent 65%), var(--dark);
}

.special-sequence {
  position: relative;
  width: 100%;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  flex: 1;
}
.seq-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--white);
  text-align: center;
  text-shadow: 0 0 40px rgba(255,105,180,0.7);
  position: absolute;
  width: 90%;
  padding: 0 20px;
  transition: all 0.4s ease;
  line-height: 1.4;
}
.seq-text strong {
  color: var(--pink-light);
  font-size: 1.2em;
}
.seq-text.big-text {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  background: linear-gradient(135deg, var(--pink-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tilt-smile {
  display: inline-block;
  transition: transform 0.5s ease;
}
.tilt-smile.tilted { transform: rotate(90deg); }

.seq-controls {
  display: flex; gap: 14px; align-items: center;
  position: relative; z-index: 10;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ============================================================
   SLIDE 6 — BALLOONS + PROFILE
   ============================================================ */
#slide-6 {
  background: radial-gradient(ellipse at 50% 70%, rgba(255,105,180,0.15) 0%, transparent 65%), var(--dark2);
}
.slide6-inner { overflow: hidden; }

.balloons-bg { position: absolute; inset: 0; pointer-events: none; }
.balloon {
  position: absolute;
  animation: balloonFloat linear forwards;
  opacity: 0;
}
.balloon img { filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3)); }

@keyframes balloonFloat {
  0%   { opacity:1; transform: translateY(0); }
  100% { opacity:0; transform: translateY(-110vh); }
}

.b1 { left:5%;  width:70px;  animation-duration:3.5s; animation-delay:0.1s; }
.b2 { left:18%; width:90px;  animation-duration:4s;   animation-delay:0.4s; }
.b3 { left:33%; width:75px;  animation-duration:3.8s; animation-delay:0.7s; }
.b4 { left:50%; width:85px;  animation-duration:4.2s; animation-delay:0.2s; }
.b5 { left:65%; width:70px;  animation-duration:3.6s; animation-delay:0.5s; }
.b6 { left:78%; width:90px;  animation-duration:3.9s; animation-delay:0.9s; }
.b7 { left:10%; width:80px;  animation-duration:4.1s; animation-delay:1.1s; }
.b8 { left:90%; width:75px;  animation-duration:3.7s; animation-delay:0.3s; }

.profile-section {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative; z-index: 5;
}

.profile-wrapper {
  position: relative;
  display: inline-block;
}
.profile-pic {
  display: block;
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  background:
    linear-gradient(var(--dark2),var(--dark2)) padding-box,
    linear-gradient(135deg, var(--pink),var(--gold),var(--lavender)) border-box;
  box-shadow: 0 0 40px rgba(255,105,180,0.5), 0 0 80px rgba(255,105,180,0.2);
  animation: profileGlow 3s ease-in-out infinite;
  opacity: 0;
  animation: profileIn 0.8s 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards, profileGlow 3s 1.5s ease-in-out infinite;
}
@keyframes profileIn {
  0%   { opacity:0; transform: scale(0.3) rotate(-45deg); }
  100% { opacity:1; transform: scale(1) rotate(0); }
}
@keyframes profileGlow {
  0%,100% { box-shadow: 0 0 40px rgba(255,105,180,0.5), 0 0 80px rgba(255,105,180,0.2); }
  50%     { box-shadow: 0 0 60px rgba(255,215,0,0.6),  0 0 100px rgba(255,105,180,0.3); }
}

.profile-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(255,105,180,0.3);
  animation: ringRotate linear infinite;
}
.ring1 {
  width: 250px; height: 250px;
  transform: translate(-50%,-50%);
  animation-duration: 8s;
}
.ring1::after {
  content:''; position:absolute;
  top:-4px; left:50%;
  width:8px; height:8px;
  background: var(--gold); border-radius:50%;
  transform:translateX(-50%);
  box-shadow: 0 0 10px var(--gold);
}
.ring2 {
  width: 270px; height: 270px;
  transform: translate(-50%,-50%);
  border-color: rgba(192,132,252,0.2);
  animation-duration: 12s;
  animation-direction: reverse;
}
@keyframes ringRotate {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.party-hat {
  position: absolute;
  top: -75px; left: 50%;
  transform: translateX(-65%) rotate(-20deg);
  width: 115px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  opacity: 0;
  animation: hatIn 0.7s 1.2s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes hatIn {
  0%   { opacity:0; transform: translateX(-65%) rotate(-90deg) translateY(-40px); }
  100% { opacity:1; transform: translateX(-65%) rotate(-20deg) translateY(0); }
}

.hbd-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  background: linear-gradient(135deg, var(--pink-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.5s ease forwards;
}
.hbd-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.65);
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.8s ease forwards;
}
#slide-6 .next-btn { opacity:0; animation: fadeSlideUp 0.7s 2.2s ease forwards; }

/* ============================================================
   SLIDE 7 — PARTY
   ============================================================ */
#slide-7 {
  background: radial-gradient(ellipse at 50% 50%, rgba(255,215,0,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,105,180,0.1) 0%, transparent 50%),
              var(--dark);
}

.party-banner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px; margin-bottom: 10px;
}
.banner-letter {
  display: inline-block;
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.5rem, 7vw, 5rem);
  opacity: 0;
  animation: letterRain 0.6s ease forwards;
}
.banner-space { width: 16px; }

/* stagger banner letters */
.banner-letter:nth-child(1)  { animation-delay:0.1s;  color: #ff69b4; }
.banner-letter:nth-child(2)  { animation-delay:0.18s; color: #ffd700; }
.banner-letter:nth-child(3)  { animation-delay:0.26s; color: #c084fc; }
.banner-letter:nth-child(4)  { animation-delay:0.34s; color: #ff9de2; }
.banner-letter:nth-child(5)  { animation-delay:0.42s; color: #7dd1c8; }
.banner-letter:nth-child(6)  { animation-delay:0.5s;  color: #fff; }
.banner-letter:nth-child(7)  { animation-delay:0.58s; color: #ff69b4; }
.banner-letter:nth-child(8)  { animation-delay:0.66s; color: #ffd700; }
.banner-letter:nth-child(9)  { animation-delay:0.74s; color: #c084fc; }
.banner-letter:nth-child(10) { animation-delay:0.82s; color: #ff9de2; }
.banner-letter:nth-child(11) { animation-delay:0.90s; color: #7dd1c8; }
.banner-letter:nth-child(12) { animation-delay:0.98s; color: #ff69b4; }
.banner-letter:nth-child(13) { animation-delay:1.06s; color: #ffd700; }
.banner-letter:nth-child(14) { animation-delay:1.14s; color: #c084fc; }
.banner-letter:nth-child(15) { animation-delay:1.22s; color: #ff9de2; }

@keyframes letterRain {
  0%   { opacity:0; transform: translateY(-60px) scale(0.5) rotate(20deg); }
  60%  { transform: translateY(8px) scale(1.2) rotate(-5deg); }
  100% { opacity:1; transform: translateY(0) scale(1) rotate(0); }
}

.party-gif-wrap {
  display: flex; justify-content: center;
  opacity: 0; animation: fadeSlideUp 0.7s 1.4s ease forwards;
}
.party-gif { max-width: 140px; border-radius: 16px; }

.so-big-wrapper {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  opacity: 0; animation: fadeSlideUp 0.7s 1.4s ease forwards;
}

.so-big {
  display: flex; gap: 10px;
  pointer-events: none;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.so-letter {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(5rem, 14vw, 10rem);
  background: linear-gradient(135deg, var(--pink-mid, #ff69b4), var(--lavender), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0;
  animation: soBoom 0.8s 1.6s cubic-bezier(0.34,1.7,0.64,1) forwards;
  line-height: 1;
}
.so-letter:nth-child(2) { animation-delay: 1.85s; }

@keyframes soBoom {
  0%   { opacity:0; transform: scale(3) rotate(15deg); }
  100% { opacity:1; transform: scale(1) rotate(0); }
}

.slide7-next {
  position: relative; z-index: 20;
  opacity:0; animation: fadeSlideUp 0.7s 2.4s ease forwards;
}

.fireworks-container {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.firework {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: fireworkBurst 1.2s ease-out forwards;
}
@keyframes fireworkBurst {
  0%   { transform: translate(0,0) scale(1); opacity:1; }
  100% { transform: var(--tx,50px) var(--ty,-80px) scale(0); opacity:0; }
}

/* ============================================================
   SLIDE 8 — ENDING
   ============================================================ */
#slide-8 {
  background: radial-gradient(ellipse at 50% 50%, rgba(255,105,180,0.2) 0%, transparent 65%), var(--dark);
}
.ending-inner { text-align: center; gap: 12px; }

.ending-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,105,180,0.08) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseGlow {
  0%,100% { opacity:0.5; } 50% { opacity:1; }
}

.ending-line1 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  opacity: 0; animation: fadeSlideUp 1s 0.3s ease forwards;
}
.ending-line2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  background: linear-gradient(135deg, var(--pink-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0; animation: fadeSlideUp 1s 0.7s ease forwards;
}
.ending-smile {
  font-size: 5rem;
  color: var(--gold);
  opacity: 0; animation: fadeSlideUp 1s 1.1s ease forwards, smileRotate 0.5s 2s ease forwards;
  display: inline-block;
}
@keyframes smileRotate {
  to { transform: rotate(90deg); }
}

.ending-cats {
  opacity: 0; animation: fadeSlideUp 1s 1.4s ease forwards;
}
.ending-gif { max-width: 140px; border-radius: 12px; }

.ending-actions { opacity: 0; animation: fadeSlideUp 1s 1.8s ease forwards; }

.ending-credits {
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  opacity: 0; animation: fadeSlideUp 1s 2.2s ease forwards;
}

/* ============================================================
   CONFETTI
   ============================================================ */
.confetti-piece {
  position: fixed; top: -14px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  pointer-events: none;
  z-index: 500;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0); opacity:1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity:0; }
}

/* ============================================================
   COMMON KEYFRAMES
   ============================================================ */
@keyframes fadeSlideUp {
  0%   { opacity:0; transform: translateY(24px); }
  100% { opacity:1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 500px) {
  .photo-gallery { gap: 10px; }
  .card1, .card2, .card3 { width: 140px; height: 185px; }
  .profile-pic { width: 180px; height: 180px; }
  .ring1 { width: 210px; height: 210px; }
  .ring2 { width: 225px; height: 225px; }
}
