/* === Responsive Star Layout CSS (Clamp Fix) === */
/* This final version uses the CSS clamp() function for a smoother, more reliable responsive behavior without media queries. */
/* UPDATED: Reduced overall size for better mobile compatibility. */

.star-wrapper {
  position: relative;
  /* Reduced size from 90vw to 75vw */
  width: 69vw;
  height: 69vw;
  /* Reduced max size from 400px to 350px */
  max-width: 330px;
  max-height: 330px;
  margin: 1rem auto;
  animation: star-rotate 20s linear infinite;
}

.star-center {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}
.star-center {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  /* Remove or comment out this transform line, as the animation will handle it */
  /* transform: translate(-50%, -50%); */
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  animation: star-counter-rotate-2 20s linear infinite;
}

.star-point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  height: 20%;
  margin-left: -10%;
  margin-top: -10%;
  /*
    UPDATED clamp() values to match the new smaller size.
    The translation distance is now smaller to keep logos within the new bounds.
  */
  transform: rotate(var(--angle)) translate(clamp(90px, 28.9vw, 135px)) rotate(calc(-1 * var(--angle)));
}

.logo-badge {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  text-align: center;
  padding: 5px;
  animation: star-counter-rotate 20s linear infinite;
}

.star-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  height: 75%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: 0;
}


/* === Keyframe Animations === */

@keyframes star-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes star-counter-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
