/* Enhanced Orbit Animation with guaranteed visibility */
.product-orbit {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 1.5rem;
}

/* Pulsing center logo with glow */
.product-orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: pulse-center 3s ease-in-out infinite;
}

.product-orbit-center img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 24px rgba(56, 111, 168, 0.5));
}

@keyframes pulse-center {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* Orbital rings - visible paths */
.product-orbit::before,
.product-orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(56, 111, 168, 0.15);
  pointer-events: none;
}

.product-orbit::before {
  width: 180px;
  height: 180px;
  animation: ring-pulse 4s ease-in-out infinite;
}

.product-orbit::after {
  width: 260px;
  height: 260px;
  animation: ring-pulse 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes ring-pulse {
  0%, 100% {
    border-color: rgba(56, 111, 168, 0.15);
  }
  50% {
    border-color: rgba(56, 111, 168, 0.3);
  }
}

/* Inner ring - 3 products */
.product-orbit-ring.inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  margin-top: -90px;
  animation: orbit-inner 18s linear infinite;
}

/* Outer ring - 2 products, opposite direction */
.product-orbit-ring.outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  margin-left: -130px;
  margin-top: -130px;
  animation: orbit-outer 28s linear infinite reverse;
}

.product-orbit-ring img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: auto;
  margin-left: -27px;
  margin-top: -27px;
  filter: drop-shadow(0 0 12px rgba(43, 129, 211, 0.4));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  animation: product-float 3s ease-in-out infinite;
}

/* Position products on inner ring */
.product-orbit-ring.inner img:nth-child(1) {
  transform: rotate(0deg) translate(90px) rotate(0deg);
  animation-delay: 0s;
}

.product-orbit-ring.inner img:nth-child(2) {
  transform: rotate(120deg) translate(90px) rotate(-120deg);
  animation-delay: -1s;
}

.product-orbit-ring.inner img:nth-child(3) {
  transform: rotate(240deg) translate(90px) rotate(-240deg);
  animation-delay: -2s;
}

/* Position products on outer ring */
.product-orbit-ring.outer img:nth-child(1) {
  transform: rotate(30deg) translate(130px) rotate(-30deg);
  animation-delay: -0.5s;
}

.product-orbit-ring.outer img:nth-child(2) {
  transform: rotate(210deg) translate(130px) rotate(-210deg);
  animation-delay: -1.5s;
}

@keyframes orbit-inner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-outer {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes product-float {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(43, 129, 211, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(43, 129, 211, 0.6));
  }
}

/* Hover effects */
.product-orbit-ring img:hover {
  filter: drop-shadow(0 0 28px rgba(250, 155, 21, 1)) !important;
  transform: rotate(0deg) translate(90px) rotate(0deg) scale(1.4) !important;
  z-index: 20;
  animation-play-state: paused;
}

.product-orbit-ring.outer img:hover {
  transform: rotate(30deg) translate(130px) rotate(-30deg) scale(1.4) !important;
}

/* Pause all motion on orbit hover */
.product-orbit:hover .product-orbit-ring {
  animation-play-state: paused;
}

.product-orbit:hover .product-orbit-center {
  animation-play-state: paused;
}

/* Add particle effect background */
.product-orbit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(56, 111, 168, 0.03), transparent 70%);
  border-radius: 50%;
  animation: particle-spin 30s linear infinite;
  z-index: 0;
}

@keyframes particle-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile responsive */
@media (max-width: 991.98px) {
  .product-orbit {
    width: 280px;
    height: 280px;
  }

  .product-orbit-center img {
    height: 56px;
  }

  .product-orbit::before {
    width: 160px;
    height: 160px;
  }

  .product-orbit::after {
    width: 230px;
    height: 230px;
  }

  .product-orbit-ring.inner {
    width: 160px;
    height: 160px;
    margin-left: -80px;
    margin-top: -80px;
  }

  .product-orbit-ring.outer {
    width: 230px;
    height: 230px;
    margin-left: -115px;
    margin-top: -115px;
  }

  .product-orbit-ring img {
    width: 48px;
    margin-left: -24px;
    margin-top: -24px;
  }

  .product-orbit-ring.inner img:nth-child(1) {
    transform: rotate(0deg) translate(80px) rotate(0deg);
  }

  .product-orbit-ring.inner img:nth-child(2) {
    transform: rotate(120deg) translate(80px) rotate(-120deg);
  }

  .product-orbit-ring.inner img:nth-child(3) {
    transform: rotate(240deg) translate(80px) rotate(-240deg);
  }

  .product-orbit-ring.outer img:nth-child(1) {
    transform: rotate(30deg) translate(115px) rotate(-30deg);
  }

  .product-orbit-ring.outer img:nth-child(2) {
    transform: rotate(210deg) translate(115px) rotate(-210deg);
  }
}