/* Scroll and Entrance Animations */
@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 fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Technical / Laser Animations */
@keyframes laserPulse {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 8px var(--color-laser-blue), 0 0 15px var(--color-laser-blue-glow);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px var(--color-laser-blue), 0 0 30px var(--color-laser-blue);
  }
}

@keyframes laserSparkle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(150px, 0) scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--color-laser-orange));
  }
  100% {
    transform: translate(300px, 0) scale(1);
    opacity: 0;
  }
}

@keyframes borderGlowLoop {
  0%, 100% {
    border-color: var(--border-cad);
  }
  50% {
    border-color: var(--color-laser-blue);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05);
  }
}

@keyframes gridScan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

@keyframes beamSweep {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

/* Applying Classes */
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Laser Line Cutting SVG Animation */
@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sparkMove {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}
