/**
 * Quantum Tech Solutionz — Advanced Animations & Visual FX
 * Performance-optimized CSS animations
 */

@keyframes quantumFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes quantumPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes glowShift {
  0% {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
  }
}

@keyframes borderRotate {
  100% {
    transform: rotate(1turn);
  }
}

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

/* Reusable animation utility classes */
.anim-float {
  animation: quantumFloat 6s ease-in-out infinite;
}

.anim-pulse {
  animation: quantumPulse 4s ease-in-out infinite;
}

.anim-glow {
  animation: glowShift 5s ease-in-out infinite;
}

.anim-gradient-pan {
  background-size: 200% 200%;
  animation: gradientPan 8s ease infinite;
}

/* Glass card shine effect on hover */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.05) 25%,
    transparent 30%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.card-shine:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* Tech cursor dot indicator */
.cursor-dot {
  pointer-events: none;
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--accent, #00d4ff);
  border-radius: 50%;
  z-index: 99999;
  transition: transform 0.1s ease, opacity 0.2s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-outline {
  pointer-events: none;
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  z-index: 99998;
  transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .anim-float,
  .anim-pulse,
  .anim-glow,
  .anim-gradient-pan {
    animation: none !important;
  }
  .card-shine::after {
    display: none;
  }
}
