/* Animated border CTA button for #new_button */
.btn-animated-border {
  --btn-animated-border-transition: 0.6s;
  --btn-animated-border-rotation-duration: 4s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1em 1.5em;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  color: #888888;
  background: #1a1a1a;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform var(--btn-animated-border-transition) ease,
    color var(--btn-animated-border-transition) ease,
    box-shadow var(--btn-animated-border-transition) ease;
}

.btn-animated-border__spark {
  position: absolute;
  inset: -3px;
  border-radius: 100px;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transition: filter var(--btn-animated-border-transition) ease;
}

.btn-animated-border__spark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    transparent 70deg,
    rgba(255, 255, 255, 0.1) 75deg,
    rgba(255, 255, 255, 0.2) 80deg,
    rgba(255, 255, 255, 0.4) 85deg,
    rgba(255, 255, 255, 0.6) 88deg,
    #ffffff 90deg,
    rgba(255, 255, 255, 0.6) 92deg,
    rgba(255, 255, 255, 0.4) 95deg,
    rgba(255, 255, 255, 0.2) 100deg,
    rgba(255, 255, 255, 0.1) 105deg,
    transparent 110deg,
    transparent 360deg
  );
  animation: btn-animated-border-rotate var(--btn-animated-border-rotation-duration) linear infinite;
}

.btn-animated-border__spark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #1a1a1a;
  border-radius: 100px;
}

.btn-animated-border__text {
  position: relative;
  z-index: 1;
  color : white !important;
  transition: text-shadow var(--btn-animated-border-transition) ease;
}

.btn-animated-border:hover {
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.btn-animated-border:hover .btn-animated-border__spark {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.btn-animated-border:hover .btn-animated-border__spark::before {
  animation-play-state: paused;
  /* background: conic-gradient(
    from 0deg at 50% 50%,
    #ffffff 0deg,
    #ffffff 360deg
  ); */
}

.btn-animated-border:hover .btn-animated-border__text {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-animated-border:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.btn-animated-border:active {
  transform: scale(0.98);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

@keyframes btn-animated-border-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-animated-border {
    transition: none;
  }

  .btn-animated-border__spark::before {
    animation: none;
    background: rgba(255, 255, 255, 0.8);
  }

  .btn-animated-border:hover,
  .btn-animated-border:active {
    transform: none;
    box-shadow: none;
  }

  .btn-animated-border:hover .btn-animated-border__spark {
    filter: none;
  }
}
