/* ============================================================
   SOLUTIONSPATH TECHNOLOGY — Animations
   ============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.4; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(14,165,233,0.4); }
  50% { box-shadow: 0 8px 36px rgba(14,165,233,0.7), 0 0 0 8px rgba(14,165,233,0.1); }
}
@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-6px); opacity: 1; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Particle float animation */
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Glow animations for tech elements */
.glow-blue { animation: glowBlue 3s ease-in-out infinite; }
@keyframes glowBlue {
  0%, 100% { text-shadow: 0 0 8px rgba(14,165,233,0.5); }
  50% { text-shadow: 0 0 20px rgba(14,165,233,1), 0 0 40px rgba(14,165,233,0.5); }
}
.glow-accent { animation: glowAccent 3s ease-in-out infinite; }
@keyframes glowAccent {
  0%, 100% { box-shadow: 0 0 8px rgba(34,211,238,0.3); }
  50% { box-shadow: 0 0 20px rgba(34,211,238,0.8), 0 0 40px rgba(34,211,238,0.4); }
}

/* Animated gradient background for CTA */
.animated-gradient {
  background: linear-gradient(270deg, #0ea5e9, #6366f1, #22d3ee, #8b5cf6);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* Loader */
.page-loader {
  position: fixed; inset: 0; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-ring {
  width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid var(--glass-border);
  border-top-color: var(--primary);
  animation: rotateGlow 1s linear infinite;
  margin: 0 auto 1rem;
}
.loader-text { font-family: var(--font-display); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.3em; }

/* Skill bar animation */
.skill-bar-fill { animation: growWidth 1.5s ease forwards; }
@keyframes growWidth {
  from { width: 0; }
}

/* Number counter shimmer */
.stat-num.counting {
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 1.5s ease infinite;
}

/* Cursor blink for typing effect */
.typing-cursor::after {
  content: '|'; animation: blink 1s step-end infinite; color: var(--accent);
}

/* Service card hover shimmer */
.service-card:hover .service-icon {
  animation: glowAccent 1.5s ease-in-out infinite;
}

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