/* ============================================================
   DSB IT Solutions — animations.css
   Keyframes and scroll-reveal states
   ============================================================ */

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
  50%       { box-shadow: 0 0 20px 6px rgba(0, 180, 216, 0.25); }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* ── Scroll-Reveal Base States ──────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Stagger delays for child items */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="6"] { transition-delay: 0.6s; }
.animate-on-scroll[data-delay="7"] { transition-delay: 0.7s; }
.animate-on-scroll[data-delay="8"] { transition-delay: 0.8s; }

/* Slide variants */
.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero Text Entrance ─────────────────────────────────────── */
.hero-animate-1 {
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-animate-2 {
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-animate-3 {
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-animate-4 {
  animation: fadeInUp 0.8s ease 0.8s both;
}

/* ── Utility Animation Classes ──────────────────────────────── */
.float-anim {
  animation: float 4s ease-in-out infinite;
}

.pulse-glow-anim {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-left,
  .animate-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-animate-1,
  .hero-animate-2,
  .hero-animate-3,
  .hero-animate-4 {
    animation: none;
    opacity: 1;
  }

  .float-anim,
  .pulse-glow-anim {
    animation: none;
  }
}
