/* ============================
   Bilgin Cup - Animasyonlar
   ============================ */

/* Scroll Reveal */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible,
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.delay-1 {
  transition-delay: 0.1s !important;
}
.delay-2 {
  transition-delay: 0.2s !important;
}
.delay-3 {
  transition-delay: 0.3s !important;
}
.delay-4 {
  transition-delay: 0.4s !important;
}
.delay-5 {
  transition-delay: 0.5s !important;
}
.delay-6 {
  transition-delay: 0.6s !important;
}

/* Hero animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.hero-content h1 {
  animation: slideInDown 0.8s ease forwards;
}

.hero-content p {
  animation: slideInUp 0.8s 0.2s ease both;
}

.hero-content .btn-primary,
.hero-content .btn-secondary {
  animation: slideInUp 0.8s 0.4s ease both;
}

/* Floating */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Pulse */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 169, 81, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(200, 169, 81, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 169, 81, 0);
  }
}

.pulse {
  animation: pulse-ring 2s infinite;
}

/* Gradient text animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Counter animation for stats */
.stat-number {
  display: inline-block;
}

/* Image hover effects */
.zoom-hover {
  overflow: hidden;
}

.zoom-hover img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-hover:hover img {
  transform: scale(1.08);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
