/* Animated Effects - MoradoSolution */

/* Floating particles */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(100,181,246,0.2); }
  50% { box-shadow: 0 0 40px rgba(100,181,246,0.4), 0 0 60px rgba(100,181,246,0.1); }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

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

@keyframes border-glow {
  0%, 100% { border-color: rgba(100,181,246,0.2); }
  50% { border-color: rgba(100,181,246,0.5); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

/* Animated particle overlay */
.particle-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(100,181,246,0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; animation-duration: 6s; }
.particle:nth-child(3) { left: 35%; top: 30%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation-delay: 0.5s; animation-duration: 7s; }
.particle:nth-child(5) { left: 65%; top: 40%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(6) { left: 80%; top: 55%; animation-delay: 1.5s; animation-duration: 5s; }
.particle:nth-child(7) { left: 90%; top: 25%; animation-delay: 2.5s; animation-duration: 11s; }
.particle:nth-child(8) { left: 45%; top: 85%; animation-delay: 4s; animation-duration: 8s; }

/* Animated scan line effect */
.scan-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100,181,246,0.5), transparent);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
}

/* Shimmer loading effect */
.shimmer-effect {
  background: linear-gradient(90deg, transparent 0%, rgba(100,181,246,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* Glowing border animation */
.glow-border {
  animation: border-glow 2s ease-in-out infinite;
}

/* Data flow gradient */
.data-flow {
  background: linear-gradient(270deg, rgba(100,181,246,0.1), rgba(30,136,229,0.2), rgba(100,181,246,0.1));
  background-size: 400% 400%;
  animation: data-flow 8s ease infinite;
}

/* Rotating element */
.rotate-slow {
  animation: rotate-slow 20s linear infinite;
}

/* Blinking cursor */
.blink-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #64b5f6;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(100,181,246,0.2);
}

/* Pulse dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Matrix rain effect (subtle) */
.matrix-bg {
  position: relative;
  overflow: hidden;
}
.matrix-bg::before {
  content: '01001101 01001111 01010010 01000001 01000100 01001111';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  font-family: monospace;
  font-size: 12px;
  color: rgba(100,181,246,0.03);
  line-height: 1.5;
  word-break: break-all;
  animation: data-flow 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .particle, .scan-effect::after, .shimmer-effect, .glow-border, .data-flow, .rotate-slow, .blink-cursor::after, .matrix-bg::before {
    animation: none !important;
  }
}
