/* =========================================================
   Yash Enterprise — Animations
   ========================================================= */

@keyframes scrollDot {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  70%  { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* Scroll reveal: elements start hidden, JS adds .in-view */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger children inside common groups */
.product-grid .product-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.product-grid .product-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.product-grid .product-card.reveal:nth-child(3) { transition-delay: 0.25s; }
.product-grid .product-card.reveal:nth-child(4) { transition-delay: 0.35s; }

.feature-grid .feature-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.feature-grid .feature-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.feature-grid .feature-card.reveal:nth-child(3) { transition-delay: 0.25s; }
.feature-grid .feature-card.reveal:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-indicator span { animation: none; }
}
