/* Base motion hooks & accessibility overrides for reduced motion */

/* Rotation Animations */
@keyframes slow-rotate-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slow-rotate-counter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.motion-rotate-cw {
  animation: slow-rotate-clockwise 32s linear infinite;
}

.motion-rotate-ccw {
  animation: slow-rotate-counter 40s linear infinite;
}

/* Floating Animations */
@keyframes gentle-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.motion-float {
  animation: gentle-float 8s ease-in-out infinite;
}

/* Viewport reveal helpers — visible by default; GSAP enhances when ready */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html.noor-motion-ready .reveal-on-scroll:not(.reveal-on-scroll--visible):not([data-reveal="head"]) {
  opacity: 1;
  transform: none;
}

html.noor-motion-ready [data-reveal="head"]:not(.reveal-on-scroll--visible) {
  opacity: 0.92;
  transform: translateY(10px);
}

.reveal-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prefers Reduced Motion Media Query Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .motion-rotate-cw, .motion-rotate-ccw, .motion-float {
    animation: none !important;
    transform: none !important;
  }
}
