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

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  min-height: 100vh;
  overflow: hidden;
  color: white;
  position: relative;
}

/* Audio */
.song {
  visibility: hidden;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb);
  border-radius: 2px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: progressGlow 2s ease-in-out infinite alternate;
}

.progress-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot.active {
  background: #60a5fa;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
  transform: scale(1.2);
}

.dot::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.dot.active::before {
  border-color: rgba(96, 165, 250, 0.4);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0% { box-shadow: 0 0 5px rgba(96, 165, 250, 0.5); }
  100% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.8); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

/* Enhanced Stars Background */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stars {
  background: transparent;
  background-image:
    radial-gradient(3px 3px at 30px 40px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 90px 70px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 150px 120px, rgba(255,255,255,0.5), transparent);
  background-repeat: repeat;
  background-size: 200px 150px;
  animation: sparkleMove 20s linear infinite;
}

.stars2 {
  background: transparent;
  background-image:
    radial-gradient(2px 2px at 60px 80px, rgba(96,165,250,0.6), transparent),
    radial-gradient(1px 1px at 120px 30px, rgba(147,197,253,0.4), transparent);
  background-repeat: repeat;
  background-size: 250px 200px;
  animation: sparkleMove 25s linear infinite reverse;
}

.stars3 {
  background: transparent;
  background-image:
    radial-gradient(1px 1px at 80px 100px, rgba(219,234,254,0.3), transparent),
    radial-gradient(2px 2px at 180px 50px, rgba(191,219,254,0.2), transparent);
  background-repeat: repeat;
  background-size: 300px 250px;
  animation: sparkleMove 30s linear infinite;
}

@keyframes sparkleMove {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-100vh) translateX(50px); }
}

/* Particles Effect */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(96,165,250,0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(147,197,253,0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(219,234,254,0.06) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-5px); }
}

/* Container */
.container {
  position: relative;
  z-index: 3;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
  perspective: 2000px;
  perspective-origin: center center;
}

/* Enhanced Section Styling */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8) rotateX(45deg) rotateY(45deg);
  opacity: 0;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  box-sizing: border-box;
  width: 90%;
  max-width: 1000px;
  min-height: 500px;
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(96,165,250,0.1) 0%,
    rgba(59,130,246,0.05) 50%,
    rgba(37,99,235,0.1) 100%);
  border-radius: 30px;
  z-index: -1;
}

.section.active {
  animation: sectionEnter 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  z-index: 10;
}

.section.hidden {
  animation: sectionExit 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
  z-index: 1;
}

@keyframes sectionEnter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) rotateX(90deg) rotateY(90deg) translateZ(-500px);
    filter: blur(20px);
  }
  30% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.8) rotateX(45deg) rotateY(45deg) translateZ(-200px);
    filter: blur(10px);
  }
  60% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05) rotateX(15deg) rotateY(15deg) translateZ(-50px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg) rotateY(0deg) translateZ(0px);
    filter: blur(0px);
  }
}

@keyframes sectionExit {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg) rotateY(0deg) translateZ(0px);
    filter: blur(0px);
  }
  30% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.02) rotateX(-15deg) rotateY(-15deg) translateZ(50px);
    filter: blur(2px);
  }
  60% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8) rotateX(-45deg) rotateY(-45deg) translateZ(-150px);
    filter: blur(8px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotateX(-90deg) rotateY(-90deg) translateZ(-800px);
    filter: blur(25px);
    visibility: hidden;
  }
}

/* Section 1: Welcome/Intro */
.intro-section {
  flex-direction: column;
  text-align: center;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.zodiac-constellation {
  position: relative;
  margin-bottom: 1rem;
}

.zodiac-icon {
  font-size: 4rem;
  color: #60a5fa;
  text-shadow: 0 0 30px rgba(96,165,250,0.8);
  animation: zodiacGlow 3s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

.constellation-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(96,165,250,0.3);
  animation: constellationRotate 20s linear infinite;
}

.constellation-lines::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.2);
  animation: constellationRotate 15s linear infinite reverse;
}

@keyframes zodiacGlow {
  0% { text-shadow: 0 0 30px rgba(96,165,250,0.8); }
  100% { text-shadow: 0 0 50px rgba(96,165,250,1), 0 0 80px rgba(96,165,250,0.6); }
}

@keyframes constellationRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.main-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.greeting-line {
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  animation: greetingFade 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.name-highlight {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #60a5fa, #3b82f6, #2563eb, #1d4ed8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameGradient 3s ease-in-out infinite, nameScale 0.8s ease-out 0.3s forwards;
  opacity: 0;
  transform: scale(0.8);
  font-family: 'Dancing Script', cursive;
}

@keyframes greetingFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nameGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes nameScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zodiac-info {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.zodiac-name, .birth-date {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 1rem;
  background: rgba(96,165,250,0.1);
  border-radius: 20px;
  border: 1px solid rgba(96,165,250,0.3);
  backdrop-filter: blur(10px);
}

.age-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.age-number {
  font-size: 4rem;
  font-weight: 700;
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96,165,250,0.6);
  animation: ageGlow 2s ease-in-out infinite alternate;
}

.age-text {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}

@keyframes ageGlow {
  0% { text-shadow: 0 0 20px rgba(96,165,250,0.6); }
  100% { text-shadow: 0 0 40px rgba(96,165,250,1), 0 0 60px rgba(96,165,250,0.8); }
}

/* Section 2: Birthday */
.birthday-section {
  flex-direction: column;
  text-align: center;
}

.birthday-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cake-animation {
  position: relative;
  font-size: 4rem;
  color: #fbbf24;
  animation: cakeBounce 2s ease-in-out infinite;
}

.cake-animation i {
  text-shadow: 0 0 30px rgba(251,191,36,0.8);
}

.candles {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.flame {
  width: 6px;
  height: 15px;
  background: linear-gradient(to top, #ff6b35, #f7931e, #ffd23f);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flameFlicker 0.5s ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(255,107,53,0.8);
}

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

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

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

@keyframes flameFlicker {
  0% { transform: rotate(-2deg) scale(1); }
  100% { transform: rotate(2deg) scale(1.1); }
}

.birthday-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251,191,36,0.6);
  margin-bottom: 0.5rem;
}

.birthday-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.birthday-effects {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.sparkle {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffd23f 0%, #ff6b35 100%);
  border-radius: 50%;
  animation: sparkleFloat 2s ease-in-out infinite;
  position: relative;
}

.sparkle:nth-child(1) { animation-delay: 0s; }
.sparkle:nth-child(2) { animation-delay: 0.5s; }
.sparkle:nth-child(3) { animation-delay: 1s; }
.sparkle:nth-child(4) { animation-delay: 1.5s; }

.sparkle::before {
  content: '✨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section 3: Photo Slideshow */
.photos-section {
  flex-direction: column;
  padding: 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96,165,250,0.6);
}

.slideshow-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.slide.prev {
  transform: translateX(-100%) scale(0.8);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.slide.active img {
  animation: slideZoom 8s ease-in-out infinite;
}

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

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  display: none; /* Ẩn text overlay */
}

.slide.active .slide-overlay {
  transform: translateY(0);
}

.slide-overlay h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slideshow-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.slide-indicators {
    display: flex;
  gap: 8px;
    justify-content: center;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.indicator.active {
  background: #60a5fa;
  box-shadow: 0 0 15px rgba(96,165,250,0.8);
}

.indicator::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.indicator.active::before {
  border-color: rgba(96,165,250,0.4);
  animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

/* Section 4: Profile */
.profile-section {
  padding: 2rem;
}

.profile-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.profile-card {
  display: flex;
  gap: 3rem;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 3rem;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.profile-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(96,165,250,0.3);
  box-shadow: 0 0 40px rgba(96,165,250,0.4);
  transition: all 0.5s ease;
}

.image-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 2px solid rgba(96,165,250,0.2);
  animation: frameRotate 20s linear infinite;
}

.frame-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(96,165,250,0.3), transparent);
  animation: frameRotate 15s linear infinite reverse;
}

.profile-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes frameRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Dancing Script', cursive;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: flex;
  gap: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(96,165,250,0.1);
  border-radius: 15px;
  border: 1px solid rgba(96,165,250,0.2);
  backdrop-filter: blur(10px);
  flex: 1;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: rgba(96,165,250,0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(96,165,250,0.3);
}

.detail-item i {
  font-size: 1.2rem;
  color: #60a5fa;
}

.detail-item span {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* Section 5: Message & Finale */
.message-section {
  padding: 2rem;
}

.message-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.message-card {
  background: rgba(255,255,255,0.08);
  padding: 3rem;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 800px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.card-header i {
  font-size: 2rem;
  color: #f87171;
  animation: heartBeat 1.5s ease-in-out infinite;
}

.card-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #60a5fa;
}

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

.message-content {
  margin-bottom: 2rem;
}

.main-message {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  text-align: justify;
}

.wishes-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.wish-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(96,165,250,0.1);
  border-radius: 15px;
  border: 1px solid rgba(96,165,250,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  min-width: 150px;
}

.wish-item:hover {
  background: rgba(96,165,250,0.2);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(96,165,250,0.4);
}

.wish-item i {
  font-size: 2rem;
  color: #60a5fa;
  animation: wishFloat 3s ease-in-out infinite;
}

.wish-item:nth-child(2) i {
  animation-delay: 0.5s;
}

.wish-item:nth-child(3) i {
  animation-delay: 1s;
}

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

.wish-item span {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-align: center;
}

.finale-content {
  border-top: 1px solid rgba(96,165,250,0.2);
  padding-top: 2rem;
  margin-top: 2rem;
}

.finale-content h3 {
  font-size: 1.5rem;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.heart-animation {
  font-size: 3rem;
  animation: heartFloat 3s ease-in-out infinite;
  margin: 1rem 0;
}

@keyframes heartFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #60a5fa, #3b82f6);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(96,165,250,0.4);
}

.replay-btn:hover {
  background: linear-gradient(45deg, #3b82f6, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(96,165,250,0.6);
}

.replay-btn i {
  animation: replayRotate 2s linear infinite;
}

@keyframes replayRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating Elements */
.floating-balloons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.balloon {
  position: absolute;
  font-size: 2rem;
  animation: balloonFloat 10s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.balloon-1 {
  top: 10%;
  left: 10%;
  color: #f87171;
  animation-delay: 0s;
}

.balloon-2 {
  top: 20%;
  right: 15%;
  color: #60a5fa;
  animation-delay: 1s;
}

.balloon-3 {
  bottom: 30%;
  left: 5%;
  color: #fbbf24;
  animation-delay: 2s;
}

.balloon-4 {
  bottom: 20%;
  right: 10%;
  color: #34d399;
  animation-delay: 3s;
}

.balloon-5 {
  top: 50%;
  left: 3%;
  color: #a78bfa;
  animation-delay: 4s;
}

@keyframes balloonFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) translateX(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-30px) translateX(15px) rotate(3deg);
  }
}

/* Enhanced Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f87171;
  animation: confettiFall 8s linear infinite;
}

.confetti-1 { left: 10%; animation-delay: 0s; background: #f87171; }
.confetti-2 { left: 20%; animation-delay: 1s; background: #60a5fa; }
.confetti-3 { left: 30%; animation-delay: 2s; background: #fbbf24; }
.confetti-4 { left: 40%; animation-delay: 3s; background: #34d399; }
.confetti-5 { left: 50%; animation-delay: 4s; background: #a78bfa; }
.confetti-6 { left: 60%; animation-delay: 0.5s; background: #f87171; }
.confetti-7 { left: 70%; animation-delay: 1.5s; background: #60a5fa; }
.confetti-8 { left: 80%; animation-delay: 2.5s; background: #fbbf24; }
.confetti-9 { left: 90%; animation-delay: 3.5s; background: #34d399; }
.confetti-10 { left: 95%; animation-delay: 4.5s; background: #a78bfa; }

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Navigation Hints */
.navigation-hints {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.hint i {
  color: #60a5fa;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .section {
    padding: 2rem 1.5rem;
    min-height: 400px;
    width: 95%;
  }

  .main-greeting {
    gap: 0.3rem;
  }

  .greeting-line {
    font-size: 1.5rem;
  }

  .name-highlight {
    font-size: 2.5rem;
  }

  .zodiac-info {
  flex-direction: column;
    gap: 1rem;
  }

  .age-number {
    font-size: 3rem;
  }

  .profile-card {
    flex-direction: column;
  gap: 2rem;
    text-align: center;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .detail-row {
    flex-direction: column;
    gap: 1rem;
  }

  .slideshow-wrapper {
    height: 400px;
  }

  .wishes-grid {
    flex-direction: column;
  align-items: center;
  }

  .wish-item {
    width: 200px;
  }

  .navigation-hints {
    bottom: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
  }

  .hint {
    font-size: 0.8rem;
  }

  .progress-container {
    top: 10px;
  }

  .progress-bar {
    width: 250px;
  }

  .balloon {
    font-size: 1.5rem;
  }

  /* Responsive cats for mobile - Reduced animations for better performance */
  .cat {
    font-size: 1.2rem;
    animation: none !important; /* Disable complex animations on mobile */
    opacity: 0.7;
  }

  .munchkin-cats {
    z-index: 4; /* Lower z-index on mobile to not interfere */
    display: none; /* Hide running cats on mobile for better performance */
  }

  /* Reduced particle effects on mobile */
  .particles {
    display: none;
  }

  .stars, .stars2, .stars3 {
    animation-duration: 30s; /* Slower star movement for better mobile performance */
  }

  /* Simplified animations for mobile */
  .section {
    transition: transform 0.3s ease !important;
  }

  .floating-balloons {
    animation-duration: 8s; /* Slower balloon animation */
  }

  .confetti-container {
    display: none; /* Disable confetti on mobile */
  }

  /* Optimize touch interactions for mobile */
  * {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Better mobile viewport handling */
  body {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
  }

  /* Make sections more compact */
  .message-card, .profile-card {
    padding: 1.5rem;
  }

  .video-container {
    margin: 1rem auto;
    max-width: 90%;
  }

  .finale-content {
    margin-top: 1rem;
  }

  .replay-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Ultra small screens (phones in portrait) */
@media screen and (max-width: 480px) {
  .greeting-line {
    font-size: 1.2rem;
  }

  .name-highlight {
    font-size: 2rem;
  }

  .age-number {
    font-size: 2.5rem;
  }

  .section {
    padding: 1.5rem 1rem;
    min-height: 350px;
  }

  .slideshow-wrapper {
    height: 300px;
  }

  .progress-bar {
    width: 200px;
  }

  /* Video responsive for mobile */
  .video-container {
    max-width: 95%;
    margin: 1.5rem auto;
    border-radius: 15px;
  }

  .birthday-video {
    border-radius: 13px;
  }

  .video-overlay {
    border-radius: 13px;
  }

  .video-overlay i {
    font-size: 3rem;
  }

  .video-overlay span {
    font-size: 1rem;
  }

  /* Further compact sections */
  .message-card, .profile-card {
    padding: 1rem;
    gap: 1.5rem;
  }

  .video-container {
    border-radius: 12px;
  }
  .birthday-video {
    border-radius: 11px;
  }

  .video-caption {
    font-size: 0.9rem;
    margin-top: 0.8rem;
  }

  /* Make profile section more compact */
  .profile-image {
    width: 150px;
    height: 150px;
  }

  .profile-name {
    font-size: 1.5rem;
  }
}

/* Munchkin Cats Running Around */
.munchkin-cats {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.cat {
  position: absolute;
  font-size: 2.5rem;
  user-select: none;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
  animation: bounce 2s ease-in-out infinite;
}

.cat-1 {
  bottom: 10px;
  left: -50px;
  animation: catRunRight 15s linear infinite;
  animation-delay: 0s;
}

.cat-2 {
  top: 20%;
  right: -50px;
  animation: catRunLeft 18s linear infinite;
  animation-delay: 3s;
}

.cat-3 {
  bottom: 50px;
  left: -50px;
  animation: catRunRight 20s linear infinite;
  animation-delay: 6s;
  transform: scaleX(-1); /* Flip horizontal */
}

.cat-4 {
  top: 60%;
  right: -50px;
  animation: catRunLeft 16s linear infinite;
  animation-delay: 9s;
}

.cat-5 {
  bottom: 80px;
  left: -50px;
  animation: catRunRight 22s linear infinite;
  animation-delay: 12s;
}

.cat-6 {
  top: 80%;
  right: -50px;
  animation: catRunLeft 14s linear infinite;
  animation-delay: 15s;
  transform: scaleX(-1); /* Flip horizontal */
}

/* Cat running animations */
@keyframes catRunRight {
  0% {
    left: -50px;
    transform: translateY(0) scaleX(1);
  }
  25% {
    transform: translateY(-10px) scaleX(1);
  }
  50% {
    transform: translateY(0) scaleX(1);
  }
  75% {
    transform: translateY(-8px) scaleX(1);
  }
  100% {
    left: calc(100vw + 50px);
    transform: translateY(0) scaleX(1);
  }
}

@keyframes catRunLeft {
  0% {
    right: -50px;
    transform: translateY(0) scaleX(-1);
  }
  25% {
    transform: translateY(-10px) scaleX(-1);
  }
  50% {
    transform: translateY(0) scaleX(-1);
  }
  75% {
    transform: translateY(-8px) scaleX(-1);
  }
  100% {
    right: calc(100vw + 50px);
    transform: translateY(0) scaleX(-1);
  }
}

/* Special bouncy cats animation for some variety */
.cat-3 {
  animation: catBounceRight 20s linear infinite;
}

.cat-6 {
  animation: catBounceLeft 14s linear infinite;
}

@keyframes catBounceRight {
  0% {
    left: -50px;
    transform: translateY(0) scaleX(-1);
  }
  10% {
    transform: translateY(-20px) scaleX(-1);
  }
  20% {
    transform: translateY(0) scaleX(-1);
  }
  30% {
    transform: translateY(-15px) scaleX(-1);
  }
  40% {
    transform: translateY(0) scaleX(-1);
  }
  50% {
    transform: translateY(-25px) scaleX(-1);
  }
  60% {
    transform: translateY(0) scaleX(-1);
  }
  70% {
    transform: translateY(-12px) scaleX(-1);
  }
  80% {
    transform: translateY(0) scaleX(-1);
  }
  90% {
    transform: translateY(-18px) scaleX(-1);
  }
  100% {
    left: calc(100vw + 50px);
    transform: translateY(0) scaleX(-1);
  }
}

@keyframes catBounceLeft {
  0% {
    right: -50px;
    transform: translateY(0) scaleX(1);
  }
  15% {
    transform: translateY(-22px) scaleX(1);
  }
  30% {
    transform: translateY(0) scaleX(1);
  }
  45% {
    transform: translateY(-18px) scaleX(1);
  }
  60% {
    transform: translateY(0) scaleX(1);
  }
  75% {
    transform: translateY(-25px) scaleX(1);
  }
  90% {
    transform: translateY(0) scaleX(1);
  }
  100% {
    right: calc(100vw + 50px);
    transform: translateY(0) scaleX(1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

/* Real Typewriter Effect - Character by character */
.typewriter-text {
  display: inline-block;
  opacity: 1; /* Hiển thị text gốc trước */
}

.typewriter-text.typing {
  opacity: 1;
}

.typewriter-text .char {
  opacity: 0;
  animation: typeChar 0.1s ease-in-out forwards;
}

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

/* Old typewriter styles for other elements */
.typewriter {
  overflow: hidden;
  border-right: 3px solid #60a5fa;
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.typewriter-slow {
  animation: typing-slow 4s steps(50, end), blink-caret 0.75s step-end infinite;
}

.typewriter-fast {
  animation: typing-fast 2s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes typing-slow {
  from { width: 0 }
  to { width: 100% }
}

@keyframes typing-fast {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #60a5fa; }
}

/* Fade in text animation */
.fade-in-text {
  opacity: 0;
  animation: fadeInText 2s ease-in-out forwards;
  animation-delay: 1s;
}

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

/* Video Container Styles */
.video-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 1.5rem auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
}

.birthday-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.video-caption {
  text-align: center;
  margin-top: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.finale-content {
  margin-top: 1.5rem;
}

.birthday-video:focus {
  outline: 2px solid rgba(96,165,250,0.5);
  outline-offset: 2px;
}

/* Hide overlay when video is playing */
.birthday-video:not([paused]) + .video-overlay {
  opacity: 0;
  pointer-events: none;
}
