/* Primary CTA Button - Pulse Glow Effect */
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.btn-primary-animated {
  position: relative;
  overflow: visible;
}

.btn-primary-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 136, 229, 0.4);
  border-radius: inherit;
  z-index: -1;
  will-change: transform, opacity;
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary-animated:hover {
  animation: none;
  transform: translateY(-4px) scale(1.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Secondary Button - Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.btn-secondary-animated {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: -200% center;
}

.btn-secondary-animated:hover {
  animation: shimmer 1.5s ease-out;
  transform: translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tertiary/Outlined Button - Border Trace Effect */
@keyframes borderTrace {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.btn-outlined-animated {
  position: relative;
  overflow: hidden;
}

.btn-outlined-animated::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(30, 136, 229, 0.5),
    transparent
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.btn-outlined-animated:hover::before {
  opacity: 1;
  animation: borderTrace 1.2s linear infinite;
}

.btn-outlined-animated:hover {
  transform: scale(1.02);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}