/* ============================
   CONNECT CYCLE SECTION
   ============================ */

.connect-products-section {
  display: flex;
  justify-content: center;
}

.connect-products-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.connect-products-content {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 100px;
  align-items: center;
}

.connect-products-text {
  max-width: 450px;
  text-align: left;
}

.connect-products-visual {
  /* Visual container for the cycle */
}

.connect-cycle {
  position: relative;
  height: 440px;
  max-width: 440px;
  margin: 0 auto;
  --rotation-duration: 12s;
  --orbit-outer-radius: 140px;
  --orbit-inner-radius: 100px;
}

.connect-cycle .cycle-ring {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 280px;
  height: 280px;
  border: 1px solid var(--brand-black);
  opacity: 0.15;
  background: transparent;
}

.connect-cycle .cycle-ring::before,
.connect-cycle .cycle-ring::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--brand-black);
}

.connect-cycle .cycle-ring::before {
  width: 200px;
  height: 200px;
}

.connect-cycle .cycle-ring::after {
  width: 120px;
  height: 120px;
}

.connect-cycle .cycle-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  z-index: 10;
}

.cycle-center-text {
  font-weight: 600;
  color: var(--text-primary);
}

.cycle-center-logo {
  max-width: 80px;
  height: auto;
  object-fit: contain;
}

@keyframes orbitAround {
  0% { 
    transform: translate(-50%, -50%) rotate(0deg) translateY(calc(var(--orbit-outer-radius) * -1)) rotate(-0deg); 
  }
  100% { 
    transform: translate(-50%, -50%) rotate(360deg) translateY(calc(var(--orbit-outer-radius) * -1)) rotate(-360deg); 
  }
}

@keyframes orbitAroundInner {
  0% { 
    transform: translate(-50%, -50%) rotate(0deg) translateY(calc(var(--orbit-inner-radius) * -1)) rotate(-0deg); 
  }
  100% { 
    transform: translate(-50%, -50%) rotate(-360deg) translateY(calc(var(--orbit-inner-radius) * -1)) rotate(360deg); 
  }
}

.connect-cycle .cycle-item {
  position: absolute;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 40px;
  height: 40px;
  transition: box-shadow 0.2s ease;
  font-size: var(--font-size-3xs);
  color: var(--brand-blue);
  left: 50%;
  top: 50%;
  animation: orbitAround var(--rotation-duration) linear infinite;
}

.connect-cycle .cycle-item i {
  font-size: 22px;
}

.connect-cycle .cycle-item.item-1 {
  animation-name: orbitAround;
  animation-delay: 0s;
}

.connect-cycle .cycle-item.item-2 {
  animation-name: orbitAroundInner;
  animation-delay: 0s;
}

.connect-cycle .cycle-item.item-3 {
  animation-name: orbitAround;
  animation-delay: calc((var(--rotation-duration) / -5) * 1);
}

.connect-cycle .cycle-item.item-4 {
  animation-name: orbitAroundInner;
  animation-delay: calc(var(--rotation-duration) / -4);
}

.connect-cycle .cycle-item.item-5 {
  animation-name: orbitAround;
  animation-delay: calc((var(--rotation-duration) / -5) * 2);
}

.connect-cycle .cycle-item.item-6 {
  animation-name: orbitAroundInner;
  animation-delay: calc((var(--rotation-duration) / -4) * 2);
}

.connect-cycle .cycle-item.item-7 {
  animation-name: orbitAround;
  animation-delay: calc((var(--rotation-duration) / -5) * 3);
}

.connect-cycle .cycle-item.item-8 {
  animation-name: orbitAroundInner;
  animation-delay: calc((var(--rotation-duration) / -4) * 3);
}

.connect-cycle .cycle-item.item-9 {
  animation-name: orbitAround;
  animation-delay: calc((var(--rotation-duration) / -5) * 4);
}

.platform-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .connect-products-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .connect-products-text {
    max-width: 100%;
    text-align: center;
  }

  .connect-cycle {
    height: 360px;
    max-width: 360px;
    --orbit-outer-radius: 120px;
    --orbit-inner-radius: 80px;
  }

  .connect-cycle .cycle-ring {
    width: 240px;
    height: 240px;
  }

  .connect-cycle .cycle-ring::before {
    width: 160px;
    height: 160px;
  }

  .connect-cycle .cycle-ring::after {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 640px) {
  .connect-products-content {
    gap: 28px;
  }

  .connect-products-visual {
    order: 1;
    margin-top: -50px;
  }

  .connect-products-text {
    order: 2;
  }

  .connect-cycle {
    height: 280px;
    max-width: 280px;
    --rotation-duration: 15s;
    --orbit-outer-radius: 100px;
    --orbit-inner-radius: 60px;
  }

  .connect-cycle .cycle-center {
    padding: 6px;
  }

  .connect-cycle .cycle-center-logo {
    max-width: 56px;
  }

  .connect-cycle .cycle-ring {
    width: 200px;
    height: 200px;
  }

  .connect-cycle .cycle-ring::before {
    width: 120px;
    height: 120px;
  }

  .connect-cycle .cycle-ring::after {
    width: 60px;
    height: 60px;
  }

  .connect-cycle .cycle-item {
    width: 32px;
    height: 32px;
  }

  .connect-cycle .cycle-item i {
    font-size: 18px;
  }

  .platform-logo {
    width: 14px;
    height: 14px;
  }
}
