/* ============================================================
   Al Shroq Limited — Animations Stylesheet
   ============================================================ */

/* ── Scroll Reveal ── */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] [data-animate="fade-left"] {
  transform: translateX(40px);
}

html[dir="rtl"] [data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Button Ripple ── */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Card Hover Glow ── */
.service-card::after,
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card {
  position: relative;
}

.service-card:hover::after {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.15);
}

/* ── Hero Floating Animation ── */
.hero-shape-1 {
  animation: float1 8s ease-in-out infinite;
}

.hero-shape-2 {
  animation: float2 10s ease-in-out infinite;
}

.hero-shape-3 {
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, -25px); }
}

/* ── Process Dot Pulse ── */
.process-step:hover .process-dot {
  animation: dotPulse 0.6s ease;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(14, 116, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0); }
}

/* ── Stat Counter Glow ── */
.stat-number {
  transition: color 0.3s;
}

.stat-card:hover .stat-number {
  color: var(--accent);
}

/* ── FAQ Slide ── */
.faq-answer {
  animation: faqSlide 0.3s ease;
}

@keyframes faqSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Partner Logo Float ── */
.partner-logo,
.client-logo {
  animation: logoFade 0.6s ease forwards;
}

@keyframes logoFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.5; transform: translateY(0); }
}

.partner-logo:hover,
.client-logo:hover {
  animation: none;
}

/* ── FAB Pulse ── */
.fab-whatsapp {
  animation: fabPulse 2s ease infinite;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 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;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
