/* --- Electric / Neon Border Effects --- */

.magnetic-btn {
  display: inline-block;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Electric/Glow effect on primary buttons */
.btn-primary.electric-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.btn-primary.electric-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(212, 175, 55, 0.8),
    transparent 30%
  );
  animation: rotate-border 4s linear infinite;
  z-index: -2;
}

.btn-primary.electric-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #111;
  border-radius: inherit;
  z-index: -1;
  transition: background 0.3s ease;
}

.btn-primary.electric-btn:hover {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  color: #fff;
}

.btn-primary.electric-btn:hover::after {
  background: #1a1a1a;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}
