/* ============================================
   Arthaya — Animations (non-blocking)
   ============================================ */

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes loadingBar {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Loading screen */
.loading-logo {
  animation: pulse 2s ease-in-out infinite;
}

.loading-bar-fill {
  animation: loadingBar 0.9s ease-in-out forwards;
}

/* Scroll reveal — content always visible, animate in subtly */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed {
  animation: slideUp 0.7s ease both;
}

.reveal-delay-2.revealed { animation-delay: 0.15s; }

/* Hero entrance */
.hero-content {
  animation: slideUp 0.8s ease 0.15s both;
}

.hero-visual {
  animation: slideUp 0.8s ease 0.3s both;
}

/* Stagger — cards always visible */
.stagger-children > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.revealed > * {
  animation: slideUp 0.55s ease both;
}

.stagger-children.revealed > *:nth-child(1) { animation-delay: 0.04s; }
.stagger-children.revealed > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-children.revealed > *:nth-child(3) { animation-delay: 0.12s; }
.stagger-children.revealed > *:nth-child(4) { animation-delay: 0.16s; }
.stagger-children.revealed > *:nth-child(5) { animation-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(6) { animation-delay: 0.24s; }

/* Card hovers */
.trust-card,
.service-card,
.industry-card,
.about-card,
.process-step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

  html {
    scroll-behavior: auto;
  }
}
