/* ==========================================================================
   Sree Laxmi Developers — Scroll Reveal & Transition Animations (animations.css)
   ========================================================================== */

/* Progressive enhancement: animate [data-sld-reveal="true"] elements when JS is active */
html.sld-js-ready [data-sld-reveal="true"] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.sld-js-ready [data-sld-reveal="true"].sld-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays for Project Detail Specifications cards */
.sld-project-specs--visible .sld-project-specs__card:nth-child(1) { transition-delay: 0ms; }
.sld-project-specs--visible .sld-project-specs__card:nth-child(2) { transition-delay: 80ms; }
.sld-project-specs--visible .sld-project-specs__card:nth-child(3) { transition-delay: 160ms; }
.sld-project-specs--visible .sld-project-specs__card:nth-child(4) { transition-delay: 240ms; }
.sld-project-specs--visible .sld-project-specs__card:nth-child(5) { transition-delay: 320ms; }
.sld-project-specs--visible .sld-project-specs__card:nth-child(6) { transition-delay: 400ms; }
.sld-project-specs--visible .sld-project-specs__card:nth-child(7) { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  html.sld-js-ready [data-sld-reveal="true"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
