/* Slider Button Animations */
/* From Uiverse.io by satyamchaudharydev */

.showcase-slide .btn.btn-primary {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.showcase-slide .btn.btn-primary {
  --primary-color: #ffffff;
  --hovered-color: #b19cd9;
  position: relative;
  display: flex;
  font-weight: 600;
  font-size: 20px;
  gap: 0.5rem;
  align-items: center;
  width: fit-content;
}

.showcase-slide .btn.btn-primary .btn-text {
  margin: 0;
  position: relative;
  font-size: 20px;
  color: var(--primary-color);
}

.showcase-slide .btn.btn-primary::after {
  position: absolute;
  content: "";
  width: 0;
  left: 0;
  bottom: -7px;
  background: var(--hovered-color);
  height: 2px;
  transition: 0.3s ease-out;
  max-width: calc(100% - 25px);
}

.showcase-slide .btn.btn-primary .btn-text::before {
  position: absolute;
  content: attr(data-text);
  width: 0%;
  left: 0;
  top: 0;
  color: var(--hovered-color);
  overflow: hidden;
  transition: 0.3s ease-out;
  white-space: nowrap;
}

.showcase-slide .btn.btn-primary:hover::after {
  width: calc(100% - 25px);
}

.showcase-slide .btn.btn-primary:hover .btn-text::before {
  width: 100%;
}

.showcase-slide .btn.btn-primary:hover .btn-icon {
  transform: translateX(4px);
  color: var(--hovered-color);
}

.showcase-slide .btn.btn-primary .btn-icon {
  color: var(--primary-color);
  transition: 0.2s;
  position: relative;
  width: 15px;
  transition-delay: 0.2s;
}

/* Dark mode support */
.dark-mode .showcase-slide .btn.btn-primary {
  --primary-color: #ffffff;
  --hovered-color: #b19cd9;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .showcase-slide .btn.btn-primary {
    font-size: 18px;
  }
  
  .showcase-slide .btn.btn-primary .btn-text {
    font-size: 18px;
  }
}