body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #e0f7fa, #b2ebf2);
  margin: 0;
  padding: 0;
  color: #333;
}

header {
  background-color: #0077b6;
  color: white;
  padding: 20px;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #fffdfd;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
}

main {
  padding: 20px;
  text-align: center;
}

.profile-photo {
  width: 230px;
  height: 300px;
  border-radius: 12px;
  margin: 20px auto;
  display: block;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 8px;
}
.section-title {
  font-size: 2em;
  margin-bottom: 10px;
  color: #0077b6;
  cursor: pointer;
}

/* Balloon overlay styles */
.balloon-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.02)
  );

  /* blur the page content behind the overlay while animation runs */
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  backdrop-filter: blur(6px) saturate(1.05);
}

/* Fireworks canvas sits under message but above page visually */
#fireworks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  display: block;
}

/* Birthday message centered and prominent */
.birthday-message {
  position: absolute;
  top: 18vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  text-align: center;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none; /* non-interactive so page still usable */
}
.birthday-message h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: 1px;

  /* red palette gradient for the Happy Birthday text */
  background: linear-gradient(
    90deg,
    #ff4d4d 0%,
    #ff6b6b 35%,
    #ff4757 65%,
    #ff9aa2 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* subtle red glow to make it pop over the fireworks */
  text-shadow: 0 8px 24px rgba(255, 77, 77, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.birthday-message .sub {
  margin-top: 8px;
  font-size: clamp(14px, 2.2vw, 20px);
  opacity: 0.95;
}

/* Fade out overlay */
.overlay-hide {
  animation: overlayFade 1s ease forwards;
}
@keyframes overlayFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Generic balloon */
.balloon {
  position: absolute;
  bottom: -120px;
  width: 70px;
  height: 90px;
  border-radius: 50% 50% 50% 50%;
  transform-origin: center bottom;
  box-shadow: inset -6px -10px 18px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
}

/* balloon tails */
.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  width: 2px;
  height: 40px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  opacity: 0.9;
}

/* individual balloons: colors, start positions, delays, durations */
.b1 {
  background: #ff6b81;
  left: 8%;
  animation: rise 10s linear infinite;
  animation-delay: 0s;
  transform: rotate(-6deg);
  width: 60px;
  height: 80px;
}
.b2 {
  background: #ffd166;
  left: 22%;
  animation: rise 12s linear infinite;
  animation-delay: 0.6s;
  transform: rotate(4deg);
}
.b3 {
  background: #6bf178;
  left: 36%;
  animation: rise 11s linear infinite;
  animation-delay: 1s;
  transform: rotate(-3deg);
  width: 72px;
  height: 95px;
}
.b4 {
  background: #7ac7ff;
  left: 50%;
  animation: rise 13s linear infinite;
  animation-delay: 0.3s;
  transform: rotate(5deg);
}
.b5 {
  background: #c77cff;
  left: 62%;
  animation: rise 9.5s linear infinite;
  animation-delay: 1.3s;
  transform: rotate(-5deg);
}
.b6 {
  background: #ff9aa2;
  left: 74%;
  animation: rise 12.5s linear infinite;
  animation-delay: 0.8s;
  transform: rotate(3deg);
  width: 58px;
  height: 78px;
}
.b7 {
  background: #ffd6a5;
  left: 86%;
  animation: rise 10.8s linear infinite;
  animation-delay: 0.2s;
  transform: rotate(-4deg);
}
.b8 {
  background: #9be7ff;
  left: 44%;
  animation: rise 14s linear infinite;
  animation-delay: 1.8s;
  transform: rotate(2deg);
  width: 50px;
  height: 70px;
}

/* floating animation: upward movement + horizontal sway + subtle rotate */
@keyframes rise {
  0% {
    transform: translateY(0) rotate(var(--r, 0deg));
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  50% {
    transform: translateY(-55vh) translateX(12px)
      rotate(calc(var(--r, 0deg) + 4deg));
  }
  100% {
    transform: translateY(-120vh) translateX(-20px)
      rotate(calc(var(--r, 0deg) - 6deg));
    opacity: 0.9;
  }
}

/* Add subtle horizontal sway using animation of pseudo element (improves motion) */
.balloon {
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* responsive tweaks */
@media (max-width: 600px) {
  .balloon {
    width: 46px;
    height: 62px;
  }
  .b3,
  .b4 {
    display: block;
  }
}

/* ensure overlay does not block clicks */
body *:not(.balloon-overlay):not(.balloon-overlay *) {
  /* no-op - keep existing stacking */
}

/* ensure balloons remain visible above canvas but below message */
.balloon-overlay .balloon {
  z-index: 10002;
}
.balloon-overlay {
  z-index: 9999;
}
 
