.animated-gradient-text {
  --gt-colors: #40ffaa, #4079ff, #40ffaa, #4079ff, #40ffaa;
  --gt-speed: 8s;

  position: relative;
  margin: 0 auto;
  display: inline-flex;
  max-width: fit-content;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.5s ease-out;
  overflow: hidden;
}

.gradient-text {
  --gt-colors: #40ffaa, #4079ff, #40ffaa, #4079ff, #40ffaa;
  --gt-speed: 8s;
}

.animated-gradient-text .gradient-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--gt-colors));
  background-size: 300% 100%;
  animation: gradient linear infinite;
  animation-duration: var(--gt-speed);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.animated-gradient-text .gradient-overlay::before {
  content: "";
  position: absolute;
  border-radius: inherit;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #060010;
  z-index: -1;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient-text .text-content,
.gradient-text {
  display: inline-block;
  position: relative;
  z-index: 2;
  background-image: linear-gradient(to right, var(--gt-colors));
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient linear infinite;
  animation-duration: var(--gt-speed);
}
