/* =========================================
   LiderZE - Animasyonlar
   ========================================= */

/* Staggered animations for grids */
.service-card:nth-child(1) {
  animation-delay: 0s;
}
.service-card:nth-child(2) {
  animation-delay: 0.1s;
}
.service-card:nth-child(3) {
  animation-delay: 0.2s;
}
.service-card:nth-child(4) {
  animation-delay: 0.3s;
}
.service-card:nth-child(5) {
  animation-delay: 0.4s;
}
.service-card:nth-child(6) {
  animation-delay: 0.5s;
}

.project-card:nth-child(1) {
  animation-delay: 0s;
}
.project-card:nth-child(2) {
  animation-delay: 0.1s;
}
.project-card:nth-child(3) {
  animation-delay: 0.15s;
}
.project-card:nth-child(4) {
  animation-delay: 0.2s;
}
.project-card:nth-child(5) {
  animation-delay: 0.25s;
}
.project-card:nth-child(6) {
  animation-delay: 0.3s;
}

/* Parallax text shimmer */
.shimmer {
  background: linear-gradient(
    120deg,
    var(--text-primary) 0%,
    var(--primary) 50%,
    var(--text-primary) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pulse glow */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(212, 168, 67, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.4);
  }
}

/* Float animation */
.float {
  animation: float 6s ease-in-out infinite;
}

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

/* Gradient border */
.gradient-border {
  position: relative;
  border: none;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--primary),
    transparent,
    var(--primary)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Counter animation */
.counter-animate {
  transition: all 0.3s ease;
}

/* Slide in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

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

/* Slide in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

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

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}

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

/* Hover lift effect */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

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

.img-zoom img {
  transition: transform 0.5s ease;
}

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

/* Underline from center */
.underline-hover {
  position: relative;
}

.underline-hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.underline-hover:hover::after {
  width: 100%;
}

/* Text glow */
.text-glow:hover {
  text-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide {
    transition: none;
  }
}
