/* ============================================
   ProÇekici - Animations & Micro-interactions
   ============================================ */

/* --- Keyframes --- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.6; }
  50% { transform: translateY(10px) rotate(45deg); opacity: 1; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  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 float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,0,0.2); }
  50% { box-shadow: 0 0 40px rgba(255,107,0,0.35); }
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(7) { transition-delay: 0.48s; }
.animate-on-scroll:nth-child(8) { transition-delay: 0.56s; }
.animate-on-scroll:nth-child(9) { transition-delay: 0.64s; }

/* --- Glow Button Animation --- */
.btn-glow { animation: glow-pulse 3s ease-in-out infinite; }
.btn-glow:hover { animation: none; }

/* --- WhatsApp Float Animation --- */
.whatsapp-float { animation: whatsapp-pulse 2.5s infinite; }
.whatsapp-float:hover { animation: none; }

/* --- Counter Animation --- */
.counter { display: inline-block; }

/* --- Hover Micro-interactions --- */
.service-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s; }
.advantage-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s; }
.step-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s; }
.testimonial-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s; }
.testimonial-card:hover { transform: translateY(-4px); }

/* Nav link underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s, left 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 60%; left: 20%;
}

/* Social link hover */
.social-link { transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.social-link:hover { transform: translateY(-3px); }

/* --- Loading skeleton shimmer --- */
.skeleton {
  background: linear-gradient(90deg, var(--clr-bg-card) 25%, var(--clr-surface) 50%, var(--clr-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* --- Reduce Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
