/* animations.css - Animasyonlar ve Keyframes */

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Animasyon Sınıfları */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Hover Efektleri — Sadece pointer/mouse cihazlarda */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: scale(1.02);
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

/* Scroll Animasyonları için */
[data-scroll] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}


[data-scroll].animate {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for multiple elements in same section */
[data-scroll].animate:nth-child(1) { transition-delay: 0s; }
[data-scroll].animate:nth-child(2) { transition-delay: 0.1s; }
[data-scroll].animate:nth-child(3) { transition-delay: 0.2s; }
[data-scroll].animate:nth-child(4) { transition-delay: 0.3s; }
[data-scroll].animate:nth-child(5) { transition-delay: 0.4s; }
[data-scroll].animate:nth-child(6) { transition-delay: 0.5s; }

/* Parallax Efekti — Mobilde devre dışı (iOS desteklemiyor) */
.parallax {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 1025px) {
  .parallax {
    background-attachment: fixed;
  }
}

/* Counter Animasyonu */
.counter {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent-secondary);
}

.counter[data-target] {
  transition: all 0.5s ease;
}