.font-exo {
  font-family: 'Exo 2', sans-serif;
}

.radar-container {
  position: relative;
  width: 320px;
  height: 320px;
}

@media (max-width: 768px) {
  .radar-container {
      width: 280px;
      height: 280px;
  }
}

/* The grid lines (polar coordinates) */
.radar-grid span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.radar-grid .line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(34, 211, 238, 0.15);
}

/* The spinning sweep/scanner - CORRECTED IMPLEMENTATION */
@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Ensures the gradient is contained in a circle */
  animation: spin 4s linear infinite;
  /* This conic-gradient creates the wedge shape */
  background: conic-gradient(
          from -90deg at 50% 50%, /* Start from the top */ transparent 0deg,
          rgba(34, 211, 238, 0.4) 85deg, /* The main sweep color at the end of the wedge */ transparent 90deg /* Fade to transparent to create a soft edge */
  );
}

/* The pulsing targets (blips)  */
.blip {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(103, 232, 249, 0.4); /* Dim color by default */
  box-shadow: 0 0 5px rgba(103, 232, 249, 0.2);
  transition: all 0.1s ease-in-out; /* Smooth transition */
}

@keyframes pulse-lit {
  0% {
      transform: scale(1.1);
      box-shadow: 0 0 12px #67e8f9;
      opacity: 1;
  }
  50% {
      transform: scale(1.4);
      box-shadow: 0 0 25px #67e8f9;
      opacity: 1;
  }
  100% {
      transform: scale(1.1);
      box-shadow: 0 0 12px #67e8f9;
      opacity: 1;
  }
}

/* This class is added by JavaScript when the sweep passes over */
.blip.is-lit {
  background-color: #67e8f9; /* Bright color */
  animation: pulse-lit 1.5s infinite;
}
