/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 5px #ff6b35, 0 0 10px #ff6b35, 0 0 15px #ff6b35;
  }
  50% {
    text-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b35, 0 0 30px #ff6b35;
  }
}

/* Apply animations */
.hero-title {
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
  animation: fadeInUp 1s ease-out 0.6s both, pulse 2s infinite 2s;
}

.race-card {
  animation: fadeInUp 0.8s ease-out;
}

.race-card:nth-child(1) {
  animation-delay: 0.1s;
}

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

.race-card:nth-child(3) {
  animation-delay: 0.3s;
}

.gameplay-card {
  animation: fadeInUp 0.8s ease-out;
}

.gameplay-card:nth-child(1) {
  animation-delay: 0.1s;
}

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

.gameplay-card:nth-child(3) {
  animation-delay: 0.3s;
}

.gameplay-card:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item {
  animation: fadeInUp 0.8s ease-out;
}

.gallery-item:nth-child(odd) {
  animation-name: slideInLeft;
}

.gallery-item:nth-child(even) {
  animation-name: slideInRight;
}

/* Hover animations */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: #ff6b35;
  transition: left 0.3s ease;
}

.nav-link:hover::after {
  left: 0;
}

/* Scroll animations */
.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation for download count */
.stat-number {
  transition: all 0.5s ease;
}

.stat-number.loading {
  animation: pulse 1s infinite;
}

/* Chakra bar animation */
@keyframes chakraFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.chakra-bar {
  background: linear-gradient(-45deg, #ff6b35, #f7931e, #ff6b35, #f7931e);
  background-size: 400% 400%;
  animation: chakraFlow 3s ease infinite;
}

/* Button press animation */
.download-button:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Smooth scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Race card special effects */
.naruto-card:hover {
  box-shadow: 0 20px 40px rgba(255, 165, 0, 0.3);
}

.sasuke-card:hover {
  box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
}

.kakashi-card:hover {
  box-shadow: 0 20px 40px rgba(70, 130, 180, 0.3);
}
