﻿/* ========================================
   DHDS V2 — Animations
   ======================================== */

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grid children */
.feat-grid .feat:nth-child(1) { transition-delay: 0s; }
.feat-grid .feat:nth-child(2) { transition-delay: 0.12s; }
.feat-grid .feat:nth-child(3) { transition-delay: 0.24s; }

.price-grid .price-card:nth-child(1) { transition-delay: 0s; }
.price-grid .price-card:nth-child(2) { transition-delay: 0.14s; }

.sector-grid .sector-card:nth-child(1) { transition-delay: 0s; }
.sector-grid .sector-card:nth-child(2) { transition-delay: 0.08s; }
.sector-grid .sector-card:nth-child(3) { transition-delay: 0.16s; }
.sector-grid .sector-card:nth-child(4) { transition-delay: 0.24s; }
.sector-grid .sector-card:nth-child(5) { transition-delay: 0.32s; }

.local-grid .local-card:nth-child(1) { transition-delay: 0s; }
.local-grid .local-card:nth-child(2) { transition-delay: 0.15s; }

.proc-list .proc-item:nth-child(1) { transition-delay: 0s; }
.proc-list .proc-item:nth-child(2) { transition-delay: 0.08s; }
.proc-list .proc-item:nth-child(3) { transition-delay: 0.16s; }
.proc-list .proc-item:nth-child(4) { transition-delay: 0.24s; }

/* --- Keyframes --- */
@keyframes bubIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tagIn {
  to { opacity: 1; transform: translateY(0); }
}

/* V2 Enhancement — New animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

/* V2 Utility animation classes */
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.slide-in-left { animation: slideInLeft 0.6s ease forwards; }
.slide-in-right { animation: slideInRight 0.6s ease forwards; }

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

.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(7) { transition-delay: 0.30s; }
.services-grid .service-card:nth-child(8) { transition-delay: 0.35s; }
.services-grid .service-card:nth-child(9) { transition-delay: 0.40s; }
.services-grid .service-card:nth-child(10) { transition-delay: 0.45s; }
.services-grid .service-card:nth-child(11) { transition-delay: 0.50s; }
.services-grid .service-card:nth-child(12) { transition-delay: 0.55s; }

