/* Animations */
@import url('variables.css');

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

/* Scroll Animation Class */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fadeInUp {
    transform: translateY(20px);
}
.animate-on-scroll.slideInLeft {
    transform: translateX(-50px);
}
.animate-on-scroll.slideInRight {
    transform: translateX(50px);
}


.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}


/* Particle JS Overlay */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Data Flow SVG Animations */
.data-flow-svg-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    overflow: visible;
}

.data-flow-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.flow-line {
    stroke-dasharray: 20 280;
    stroke-dashoffset: 0;
}

.animate-flow-1 {
    animation: flowAnim 2.5s linear infinite;
    -webkit-animation: flowAnim 2.5s linear infinite;
    animation-delay: 0s;
}

.animate-flow-2 {
    animation: flowAnim 2.2s linear infinite;
    -webkit-animation: flowAnim 2.2s linear infinite;
    animation-delay: 0.8s;
}

.animate-flow-3 {
    animation: flowAnim 2.8s linear infinite;
    -webkit-animation: flowAnim 2.8s linear infinite;
    animation-delay: 0.3s;
}

.animate-flow-4 {
    animation: flowAnim 1.8s linear infinite;
    -webkit-animation: flowAnim 1.8s linear infinite;
    stroke-dasharray: 120 300;
    animation-delay: 0.1s;
}

@keyframes flowAnim {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -300;
    }
}
    100% {
        stroke-dashoffset: 0;
    }
}


@-webkit-keyframes flowAnim {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -300;
    }
}
    100% {
        stroke-dashoffset: 0;
    }
}
