
.button-wrapper {
  position: relative;
}

.custom-btn {
  position: relative;
  display: inline-block;
  padding: 3px 5px; /* 露出的邊框寬度 */
  font-weight: 600;
  line-height: 1.5;
  background-color: #fafbfc; 
  border: none;
  cursor: pointer;
  border-radius: 0.75rem; 
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
  transition: transform 0.3s ease-in-out;
  text-decoration: none;
}

.custom-btn:hover {
  transform: scale(1.05);
}

.custom-btn:active {
  transform: scale(0.95);
}

.gradient-border {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 2px;
  background: linear-gradient(to right, #2dd4bf, #3b82f6, #a855f7); 
  opacity: 0;
  transition: opacity 0.5s;
}

.custom-btn:hover .gradient-border {
  opacity: 1;
}

.btn-content {
  position: relative;
  z-index: 10;
  display: block;
  padding: 12px 24px;
  border-radius: 0.75rem;
  background-color: #fff
}

.flex-items {
  display: flex;
  align-items: center;
  gap: 0.5rem; 
}


.text, .arrow-icon {
  transition: all 0.5s;
}

.custom-btn:hover .text,
.custom-btn:hover .arrow-icon {
  transform: translateX(4px);
}

.arrow-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.text {
  background: linear-gradient(
    to right, 
    #2dd4bf, #3b82f6, #a855f7, #2dd4bf
  ); 
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s linear infinite;
  font-weight: bold;
  transition: all 0.5s;
}


@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}