* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

@keyframes orbit {
  0%   { transform: rotate(0deg) translateX(var(--radius)); }
  100% { transform: rotate(360deg) translateX(var(--radius)); }
}
@keyframes orbit-with-move {
  0%   { transform: rotate(180deg) translateX(var(--radius)); }
  100% { transform: rotate(540deg) translateX(var(--radius)); }
}

@keyframes orbit-reverse {
  0%   { transform: rotate(0deg) translateX(var(--radius)); }
  100% { transform: rotate(-360deg) translateX(var(--radius)); }
}
@keyframes orbit-reverse-with-move {
  0%   { transform: rotate(-180deg) translateX(var(--radius)); }
  100% { transform: rotate(-540deg) translateX(var(--radius)); }
}

.animate-orbit {
  animation: orbit var(--duration) linear infinite;
}
.animate-orbit-moved {
  animation: orbit-with-move var(--duration) linear infinite;
}

.animate-orbit-reverse {
  animation: orbit-reverse var(--duration) linear infinite;
}
.animate-orbit-reverse-moved {
  animation: orbit-reverse-with-move var(--duration) linear infinite;
}

.line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 10rem;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #3c8b76, transparent);
  animation: moveAcross 15s ease-in-out infinite;
  z-index: 1;
}

.wrapper-circle {
  transition: 1s ease-in-out;
}

.wrapper-circle.active {
  transform: scale(1.3) translateY(-12px);
}

@keyframes moveAcross {
  0% { left: 0; }
  50% { left: calc(100% - 2px); }
  100% { left: 0; }
}

/* Container for sparkles around the line */
.sparkles-container {
  position: absolute;
  width: 12rem;
  height: 8rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Each sparkle */
.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #3b2f2f 0%, #000 100%);
  opacity: 0;
  animation: sparkleMove linear infinite;
}

/* Sparkles move left → right */
@keyframes sparkleMove {
  0% { transform: translateX(0) scale(0.8); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateX(50px) scale(1.2); opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateX(100px) scale(0.6); opacity: 0; }
}

.circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(153, 153, 153, 0.59);
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 20px -12px rgba(0,0,0,0.2);
}

.size-12 { width: 28px; height: 28px; }
.size-16 { width: 64px; height: 64px; }

/* Base static gray beam */
.beam {
  fill: none;
  stroke: #d1d5db;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.5;
}

/* Pulse overlay */
.pulse {
  fill: none;
  stroke: url(#beamGradient);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px #00ffff) drop-shadow(0 0 15px #009dff);
  stroke-dasharray: 10 400;
  opacity: 0;
}

.pulse.active {
  opacity: 1;
  animation: travel 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes travel {
  0% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  70% {
    opacity: 1;
    stroke-dashoffset: 50;
    filter: drop-shadow(0 0 12px #00ffff) drop-shadow(0 0 20px #0088ff);
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}