/* Gradient wave effect for skill cards */
.skill-gradient-wave {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: box-shadow 0.3s;
}
.skill-gradient-wave::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #ffffff 0%, #000000 40%, #ffffff 80%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.skill-gradient-wave:hover::before {
  opacity: 0.1;
  animation: wave-pulse 0.1s;
}
@keyframes wave-pulse {
  0% {
  
    opacity: 0.3;
  }
  80% {
   
    opacity: 0.3;
  }
  100% {
  
    opacity: 0;
  }
}

/* Skills animated line effect (center to both sides) */
.skills-animated-line {
  height: 4px;
  width: 0%;
  max-width: 700px;
  background: linear-gradient(90deg, #38bdf8, #f472b6, #facc15, #38bdf8);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  animation: skills-line-grow-center 2.5s cubic-bezier(.4,0,.2,1) infinite;
}

@keyframes skills-line-grow-center {
  0% {
    width: 0%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
  }
  10% {
    opacity: 1;
  }
  50% {
    width: 80%;
    left: 10%;
    transform: translateX(0);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    width: 0%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
  }
}

/* Animated gradient for down arrow */
.gradient-arrow-down {
  background: linear-gradient(180deg, #38bdf8, #a259ff, #f7df1e, #e34f26);
  background-size: 100% 200%;
  background-position: top;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: gradient-move-down 2s linear infinite;
  display: inline-block;
}

@keyframes gradient-move-down {
  0% {
    background-position: top;
  }
  100% {
    background-position: bottom;
  }
}

/* Animated gradient for up arrow */
.gradient-arrow-up {
  background: linear-gradient(0deg, #38bdf8, #a259ff, #f7df1e, #e34f26);
  background-size: 100% 200%;
  background-position: bottom;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: gradient-move-up 2s linear infinite;
  display: inline-block;
}

@keyframes gradient-move-up {
  0% {
    background-position: bottom;
  }
  100% {
    background-position: top;
  }
}

/* Arrow icon gradients */
.gradient-down-icon {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  background: linear-gradient(180deg, #38bdf8 0%, #f472b6 50%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: moveGradientDown 2s ease infinite;
}

.gradient-up-icon {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  background: linear-gradient(180deg, #facc15 0%, #f472b6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: moveGradientUp 2s ease infinite;
}

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

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

/* Bouncing arrows animation */
.bounce-down {
  animation: bounceDown 1.5s ease-in-out infinite;
}

.bounce-up {
  animation: bounceUp 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes bounceUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
