/* semi circle rotaion sec  */
.semi-circle-rotate-sec {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
}

.semi-circle-content-container {
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.semi-circle-rotate-sec-content {
  padding: 0 5%;
  margin-bottom: 110px;
}

.semi-circle-content-container .row,
.semi-circle-content-container p,
.semi-circle-content-container h2 {
  pointer-events: auto;
}

.semi-circle-container-relative {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

/* Rotating Wheel Container */
.rotate-circle-container {
  position: absolute;
  left: 50%;
  --wheel-radius: clamp(330px, calc(42vw - 84px), 850px);
  top: calc(50% + var(--wheel-radius) * 0.65);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
}

.rotating-wheel {
  position: absolute;
  width: calc(2 * var(--wheel-radius));
  height: calc(2 * var(--wheel-radius));
  left: calc(-1 * var(--wheel-radius));
  top: calc(-1 * var(--wheel-radius));
  border-radius: 50%;
  transform-origin: center center;
  animation: rotateWheel 40s linear infinite;
}

.wheel-item {
  position: absolute;
  width: 168px;
  height: 205px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 22.5deg))
    translateY(calc(-1 * var(--wheel-radius)));
  transform-origin: center center;
}

.wheel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.wheel-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 991px) {
  /* semi circle rotaion sec  */
  .semi-circle-rotate-sec {
    height: 460px;
    padding-top: 0;
  }

  .semi-circle-container-relative {
    justify-content: flex-start;
    padding-top: 50px;
  }

  /* Left-align text content on mobile */
  .semi-circle-content-container .row {
    justify-content: flex-start !important;
  }

  .semi-circle-content-container .d-flex {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .rotate-circle-container {
    --wheel-radius: clamp(140px, calc(46vw - 20px), 220px);
    top: 100%;
  }

  .wheel-item {
    width: 48px;
    height: 58px;
  }

  .wheel-item img {
    border-radius: 8px;
  }
}
