body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #050505;
  font-family: sans-serif;
}

/* The Mirror Reflection */
.container {
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.neon-btn {
  position: relative;
  display: inline-block;
cursor: pointer;
  padding: 25px 50px;
  color: #ff00ff;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-decoration: none;
  font-size: 24px;
  overflow: hidden;
  transition: 0.5s;
}

/* Hover Glow Effect */
.neon-btn:hover {
  background: #ff00ff;
  color: #050505;
  box-shadow: 0 0 5px #ff00ff,
              0 0 25px #ff00ff,
              0 0 50px #ff00ff,
              0 0 200px #ff00ff;
}

.neon-btn span {
  position: absolute;
  display: block;
}

/* 1. TOP SIDE */
.neon-btn span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff00ff);
  animation: btn-anim1 1s linear infinite;
}
@keyframes btn-anim1 {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* 2. RIGHT SIDE */
.neon-btn span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #ff00ff);
  animation: btn-anim2 1s linear infinite;
  animation-delay: 0.25s; /* Quarter second delay */
}
@keyframes btn-anim2 {
  0% { top: -100%; }
  50%, 100% { top: 100%; }
}

/* 3. BOTTOM SIDE */
.neon-btn span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(270deg, transparent, #ff00ff);
  animation: btn-anim3 1s linear infinite;
  animation-delay: 0.5s; /* Half second delay */
}
@keyframes btn-anim3 {
  0% { right: -100%; }
  50%, 100% { right: 100%; }
}

/* 4. LEFT SIDE */
.neon-btn span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #ff00ff);
  animation: btn-anim4 1s linear infinite;
  animation-delay: 0.75s; /* Three-quarter delay */
}
@keyframes btn-anim4 {
  0% { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}