/* 
========================================================================
   SRVSTECH - ANIMATION SPECS
========================================================================
   Contains Keyframes, Scroll Reveals, Stagger delays, & reduced motion fallbacks
========================================================================
*/

/* 1. KEYFRAMES */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. HERO PAGE-LOAD TRANSITIONS */
.hero-pill {
  animation: fadeSlideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-title {
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
}

.hero-desc {
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.hero-ctas {
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.45s forwards;
}

.hero-capabilities {
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

.hero-visual {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.hero-visual img {
  animation: floatVisual 6s ease-in-out infinite;
}

/* 3. INTERACTION & CTA MICRO-MOTIONS */
.btn-arrow {
  margin-left: 6px;
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.service-learn-more .arrow {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-learn-more .arrow {
  transform: translateX(6px);
}

.solution-cue i {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.solution-card:hover .solution-cue i {
  transform: translateX(4px);
}

/* 4. SCROLL REVEALS & STAGGER DELAYS */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  pointer-events: none;
  transition: opacity var(--transition-slow) cubic-bezier(0.25, 1, 0.5, 1), 
              transform var(--transition-slow) cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Stagger delays for core grids */
.services-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.18s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.26s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.34s; }

.hardware-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.hardware-grid .reveal:nth-child(2) { transition-delay: 0.18s; }
.hardware-grid .reveal:nth-child(3) { transition-delay: 0.26s; }
.hardware-grid .reveal:nth-child(4) { transition-delay: 0.34s; }
.hardware-grid .reveal:nth-child(5) { transition-delay: 0.42s; }
.hardware-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.portfolio-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.portfolio-grid .reveal:nth-child(2) { transition-delay: 0.18s; }
.portfolio-grid .reveal:nth-child(3) { transition-delay: 0.26s; }
.portfolio-grid .reveal:nth-child(4) { transition-delay: 0.34s; }

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