/* Animations */

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

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

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.2);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-15px) rotate(45deg);
  }
  100% {
    transform: translateY(0) rotate(45deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1) rotate(45deg);
  }
  50% {
    transform: scale(1.1) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(45deg);
  }
}

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

/* Apply animations */
h1, .subtitle {
  animation: fadeIn 1s ease-out;
}

.main-countdown {
  animation: slideUp 1s ease-out 0.3s both;
}

.future-countdowns {
  animation: slideUp 1s ease-out 0.6s both;
}

.social-share, .copyright {
  animation: slideUp 1s ease-out 0.9s both;
}

.time {
  transition: all 0.3s ease;
}

.time.change {
  animation: countdownPulse 0.5s ease;
  color: var(--primary-red-light);
}

.time-block:hover .time {
  color: var(--primary-red-light);
}

.heart1 {
  animation: float 9s ease-in-out infinite;
}

.heart2 {
  animation: float 11s ease-in-out infinite 1s;
}

.heart3 {
  animation: float 10s ease-in-out infinite 2s;
}

.heart4 {
  animation: float 13s ease-in-out infinite 0.5s;
}

.heart5 {
  animation: pulse 8s ease-in-out infinite;
}

.future-countdown-card {
  animation: fadeIn 0.8s ease-out;
}

/* Stagger future cards */
.future-countdown-card:nth-child(1) {
  animation-delay: 0.7s;
}

.future-countdown-card:nth-child(2) {
  animation-delay: 0.8s;
}

.future-countdown-card:nth-child(3) {
  animation-delay: 0.9s;
}

.future-countdown-card:nth-child(4) {
  animation-delay: 1s;
}

.future-countdown-card:nth-child(5) {
  animation-delay: 1.1s;
}