.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  margin-left: 40%;
  font-size: 16px;
  font-weight: 600;
  color: #e91e63;
  cursor: pointer;
  border: none;
  border-radius: 100px;
  overflow: hidden;
  background: transparent;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 750px) {
  .animated-button {
    margin-left: 25%;
  }
}

/* Rotating gradient border — true circular path */
.animated-button::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 100%;
  /* make it a big square, then round it into a circle */
  width: 220%;
  height: 220%;
  transform: translate(-50%, -50%) rotate(0turn);
  background: conic-gradient(#e91e63, #df00ff, #00ccff);
  border-radius: 50%;          /* ensures the rotating “disc” is perfectly round */
  animation: spin 4s linear infinite;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}

.animated-button::after {
  content: "";
  position: absolute;
  inset: 4px;                  /* border thickness */
  background: white;           /* or your button fill: e.g. #0e1538 */
  border-radius: 100px;
  z-index: -1;
}

@keyframes spin {
  to { transform: translate(-100%, -100%) rotate(1turn); }
}


.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #e91e63;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #e91e63;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover styles */
.animated-button:hover {
  color: #fff;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #fff;
}

.animated-button:active {
  scale: 0.95;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

