

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 10s infinite linear;
}



@keyframes float {
  0%   { transform: translateY(100vh) scale(0.4); opacity: 0; }
  15%  { opacity: 0.5; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-80px) scale(0.4); opacity: 0; }
}

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-10px); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

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

@keyframes slideInUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  0%   { opacity: 0; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

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

@keyframes glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.85; transform: scale(1.015); }
}



.loading {
  pointer-events: none;
  opacity: 0.85;
  position: relative;
}

.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1.8s infinite;
  z-index: 1;
}



.interactive-hover {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.interactive-hover:hover { transform: scale(1.015); }

.micro-bounce:hover  { animation: bounce 0.55s ease-in-out; }
.micro-pulse:hover   { animation: pulse 1s ease-in-out; }
.micro-glow:hover    { animation: glow 1s ease-in-out; }

.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.16s; }
.animate-delay-3 { animation-delay: 0.24s; }
.animate-delay-4 { animation-delay: 0.32s; }
.animate-delay-5 { animation-delay: 0.40s; }



* {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}



.particle,
.loading::before,
[class*="animate-"] {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.particle:not(:hover),
.loading:not(.active)::before {
  will-change: auto;
}



@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .particles { display: none; }
  .loading::before { animation: none; }
  .interactive-hover:hover,
  .micro-bounce:hover,
  .micro-pulse:hover,
  .micro-glow:hover { animation: none; }
}
