/* Custom animation for flowing line */
@keyframes flowingDot {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.flowing-dot {
  animation: flowingDot 4s linear infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.6);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(59, 130, 246, 1);
  }
}

/* Custom animations for elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
  }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

.animate-bounce-slow {
  animation: bounce 3s infinite;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .timeline-box {
    margin-left: 2rem;
    width: calc(100% - 2rem);
  }

  .timeline-dot {
    left: 1rem;
  }
}

/* Text gradient */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Skill bar animation */
.skill-bar {
  animation: skillFill 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes skillFill {
  0% {
    width: 0%;
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

/* Technology badge styles */
.badge-laravel {
  background-color: rgba(239, 68, 68, 0.3);
  color: rgb(252, 165, 165);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-bootstrap {
  background-color: rgba(124, 58, 237, 0.3);
  color: rgb(196, 181, 253);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-mysql {
  background-color: rgba(59, 130, 246, 0.3);
  color: rgb(147, 197, 253);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-jquery {
  background-color: rgba(14, 165, 233, 0.3);
  color: rgb(125, 211, 252);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-codeigniter {
  background-color: rgba(239, 68, 68, 0.3);
  color: rgb(252, 165, 165);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-javascript {
  background-color: rgba(245, 158, 11, 0.3);
  color: rgb(253, 230, 138);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-react {
  background-color: rgba(59, 130, 246, 0.3);
  color: rgb(147, 197, 253);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-php {
  background-color: rgba(79, 70, 229, 0.3);
  color: rgb(165, 180, 252);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.badge-css {
  background-color: rgba(14, 165, 233, 0.3);
  color: rgb(125, 211, 252);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-html {
  background-color: rgba(249, 115, 22, 0.3);
  color: rgb(254, 215, 170);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-git {
  background-color: rgba(239, 68, 68, 0.3);
  color: rgb(252, 165, 165);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-tailwind {
  background-color: rgba(6, 182, 212, 0.3);
  color: rgb(103, 232, 249);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-wordpress {
  background-color: rgba(59, 130, 246, 0.3);
  color: rgb(147, 197, 253);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-woocommerce {
  background-color: rgba(124, 58, 237, 0.3);
  color: rgb(196, 181, 253);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
