/* ==========================================================================
   DIGITALTAB PTY LTD - ANIMATIONS STYLESHEET
   Subtle micro-animations, keyframes, scroll reveal, motion accessibility
   ========================================================================== */

/* Fade In Up Reveal */
@keyframes dtFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dtPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(71, 167, 228, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(71, 167, 228, 0);
  }
}

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

/* Scroll Animation Classes */
.dt-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.dt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dt-reveal-delay-1 { transition-delay: 0.1s; }
.dt-reveal-delay-2 { transition-delay: 0.2s; }
.dt-reveal-delay-3 { transition-delay: 0.3s; }
.dt-reveal-delay-4 { transition-delay: 0.4s; }

/* Subtle floating animation on hero image badge */
.dt-float-anim {
  animation: dtFloat 4s ease-in-out infinite;
}

/* Spinner for form submission */
.dt-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: dtSpin 0.8s linear infinite;
}

@keyframes dtSpin {
  to { transform: rotate(360deg); }
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .dt-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .dt-float-anim {
    animation: none !important;
  }
}
