:root {
  --primary-glow: #38bdf8;
  --bg-dark: #070b14;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
}

.circle-solution-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-image: linear-gradient(
      rgba(19, 28, 71, 0.685),
      rgba(8, 12, 30, 0.445)
    ),
    url("https://png.pngtree.com/thumb_back/fh260/background/20240528/pngtree-background-of-operation-room-in-hospital-health-care-concept-image_15733972.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 4vw;
  box-sizing: border-box;
}

.circle-solution-section #particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Make sure content is above canvas/bg */
.circle-solution-section > * {
  z-index: 2;
}

/* ---------------------------------------------------------
   TITLE (Top, Full Width)
--------------------------------------------------------- */
.circle-solution-section .circle-title {
  text-align: center;
  margin-bottom: 100px;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
}

.circle-solution-section .content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex: 1;
}

/*  ---------------------------------------------------------
   LEFT SIDE: CIRCLE WRAPPER
--------------------------------------------------------- */

.circle-solution-section .circle-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* CENTER CIRCLE - Dark with UNILOG and 3 RING LAYERS */
.circle-solution-section .center-circle {
  position: relative;
  width: 45%;
  height: 45%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  /* FIRST RING - 2px white border */
  border: 2px solid var(--white);
  /* SECOND RING - 10px gap + THIRD RING - 1px border */
  box-shadow: 0 0 0 10px rgba(15, 23, 42, 0.95),
    0 0 0 11px rgba(255, 255, 255, 0.9), 0 0 50px rgba(139, 162, 200, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
}

.circle-solution-section .center-circle img {
  width: 70%; /* Slightly larger for visibility */
  height: 70%;
  object-fit: contain;
  display: block;
}

.circle-solution-section .inner-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 31;
}

/* OUTER DECORATIVE DASHED RING */
.circle-solution-section .ring-1 {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 155%;
  height: 155%;
  border: 1.5px dashed var(--white);
  pointer-events: none;
  animation: spin 80s linear infinite;
  z-index: 1;
}

/* MAIN ORBITAL RING - Clean single white ring */
.circle-solution-section .ring-2 {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  border: 2px solid var(--white);
  box-shadow: 0 0 30px rgba(147, 167, 203, 0.25);
  pointer-events: none;
  z-index: 5;
}

/* ORBIT CONTAINER */
.circle-solution-section .orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* WHITE CIRCULAR ORBIT ITEMS - Premium Style */
.circle-solution-section .orbit-item {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--white);

  /* Clean border with subtle shadow */
  border: 2px solid rgba(220, 225, 235, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  padding: 12px;
}

.circle-solution-section .orbit-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  object-fit: cover;
  /* Dark navy blue for icons */
  filter: brightness(0) saturate(100%) invert(15%) sepia(35%) saturate(2000%)
    hue-rotate(200deg) brightness(0.9);
}

.circle-solution-section .orbit-item .icon-box {
  font-size: 8.5px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

/* TOP-LEFT circle */
.circle-solution-section .orbit-item:nth-child(1) {
  top: 5%;
  left: 10%;
  transform: translate(-50%, -50%);
}

/* TOP-RIGHT circle */
.circle-solution-section .orbit-item:nth-child(2) {
  top: 5%;
  right: 10%;
  transform: translate(50%, -50%);
}

/* BOTTOM-RIGHT circle */
.circle-solution-section .orbit-item:nth-child(3) {
  bottom: 5%;
  right: 10%;
  transform: translate(50%, 50%);
}

/* BOTTOM-LEFT circle */
.circle-solution-section .orbit-item:nth-child(4) {
  bottom: 5%;
  left: 10%;
  transform: translate(-50%, 50%);
}

/* Line to TOP-LEFT circle - diagonal */
.circle-solution-section .orbit-item:nth-child(1)::before {
  height: 65px;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  transform: rotate(-45deg) translateX(-50%);
}

/* Line to TOP-RIGHT circle - diagonal */
.circle-solution-section .orbit-item:nth-child(2)::before {
  height: 65px;
  bottom: 50%;
  right: 50%;
  transform-origin: bottom;
  transform: rotate(45deg) translateX(50%);
}

/* Line to BOTTOM-RIGHT circle - diagonal */
.circle-solution-section .orbit-item:nth-child(3)::before {
  height: 65px;
  top: 50%;
  right: 50%;
  transform-origin: top;
  transform: rotate(-45deg) translateX(50%);
}

/* Line to BOTTOM-LEFT circle - diagonal */
.circle-solution-section .orbit-item:nth-child(4)::before {
  height: 65px;
  top: 50%;
  left: 50%;
  transform-origin: top;
  transform: rotate(45deg) translateX(-50%);
}

/* CONNECTION DOTS on the ring - Premium style */
.circle-solution-section .orbit-item::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(200, 210, 230, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(200, 210, 230, 0.6), 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: -2;
}

/* Position dots at diagonal angles on the ring */
.circle-solution-section .orbit-item:nth-child(1)::after {
  bottom: -22px;
  right: -22px;
}

.circle-solution-section .orbit-item:nth-child(2)::after {
  bottom: -22px;
  left: -22px;
}

.circle-solution-section .orbit-item:nth-child(3)::after {
  top: -22px;
  left: -22px;
}

.circle-solution-section .orbit-item:nth-child(4)::after {
  top: -22px;
  right: -22px;
}

/* ACTIVE STATE - Premium blue glow */
.circle-solution-section .orbit-item.active {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.5), 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: scale(1.08);
}

.circle-solution-section .orbit-item.active::before {
  background: linear-gradient(
    to bottom,
    rgba(96, 165, 250, 0.7),
    rgba(96, 165, 250, 0.4)
  );
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
  width: 2px;
}

.circle-solution-section .orbit-item.active::after {
  background: rgba(96, 165, 250, 1);
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 15px rgba(96, 165, 250, 1), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Maintain positioning when active */
.circle-solution-section .orbit-item.active:nth-child(1) {
  transform: translate(-50%, -50%) scale(1.08);
}

.circle-solution-section .orbit-item.active:nth-child(2) {
  transform: translate(50%, -50%) scale(1.08);
}

.circle-solution-section .orbit-item.active:nth-child(3) {
  transform: translate(50%, 50%) scale(1.08);
}

.circle-solution-section .orbit-item.active:nth-child(4) {
  transform: translate(-50%, 50%) scale(1.08);
}

/* HOVER EFFECT - Subtle and premium */
.circle-solution-section .orbit-item:hover:not(.active) {
  transform: scale(1.05);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.25), 0 6px 18px rgba(0, 0, 0, 0.1);
}

.circle-solution-section .orbit-item:hover:not(.active)::before {
  background: linear-gradient(
    to bottom,
    rgba(96, 165, 250, 0.4),
    rgba(96, 165, 250, 0.2)
  );
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.circle-solution-section .orbit-item:hover:not(.active):nth-child(1) {
  transform: translate(-50%, -50%) scale(1.05);
}

.circle-solution-section .orbit-item:hover:not(.active):nth-child(2) {
  transform: translate(50%, -50%) scale(1.05);
}

.circle-solution-section .orbit-item:hover:not(.active):nth-child(3) {
  transform: translate(50%, 50%) scale(1.05);
}

.circle-solution-section .orbit-item:hover:not(.active):nth-child(4) {
  transform: translate(-50%, 50%) scale(1.05);
}

/* Spinning animation for outer ring */
@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 1024px) {
  .circle-solution-section .orbit-item {
    width: 75px;
    height: 75px;
    padding: 10px;
  }

  .circle-solution-section .orbit-item img {
    width: 28px;
    height: 28px;
  }

  .circle-solution-section .orbit-item .icon-box {
    font-size: 8px;
  }

  .circle-solution-section .orbit-item::before {
    height: 58px !important;
  }
}

@media (max-width: 768px) {
  .circle-solution-section .orbit-item {
    width: 65px;
    height: 65px;
    padding: 8px;
  }

  .circle-solution-section .orbit-item img {
    width: 24px;
    height: 24px;
  }

  .circle-solution-section .orbit-item .icon-box {
    font-size: 7px;
  }

  .circle-solution-section .orbit-item::before {
    height: 50px !important;
  }
}

.circle-container-section-btn {
  display: block;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 30px;
  cursor: pointer;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  width: fit-content;
  margin: 20px auto 0;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  position: relative;
  z-index: 5;
}

.circle-container-section-btn:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* ---------------------------------------------------------
   RIGHT SIDE: CARDS (2x2 Grid)
--------------------------------------------------------- */
.circle-solution-section .solution-cards {
  flex: 1;
  max-width: 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 15px;
  align-content: center;
}

.circle-solution-section .solution-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130px;
}

.circle-solution-section .solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: 0.3s;
}

.circle-solution-section .solution-card.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1), transparent);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-5px);
}

.circle-solution-section .solution-card.active::before {
  background: var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-glow);
}

.circle-solution-section .solution-card h3 {
  font-size: 1.1rem;
  margin: 5px 0;
  color: #fff;
}

.circle-solution-section .solution-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.circle-solution-section .stats-badge {
  display: inline-block;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(71, 85, 105, 0.5);
}

.circle-solution-section .stats-badge p {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.circle-solution-section .stats-number {
  color: var(--primary);
  font-weight: 700;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* ---------------------------------------------------------
   RESPONSIVE: TABLET & MOBILE
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .circle-solution-section .content-wrapper {
    flex-direction: column; /* Stack circle on top of cards */
    gap: 80px; /* Space for orbit items to bleed out */
    padding-top: 40px;
  }

  .circle-solution-section .solution-cards {
    max-width: 100%;
    width: 100%;
    grid-template-columns: repeat(2, 1fr); /* Keep 2 cols for tablets */
  }

  .circle-solution-section .circle-wrapper {
    width: 320px; /* Controlled size for tablets */
    height: 320px;
  }
}

@media (max-width: 640px) {
  .circle-solution-section {
    padding: 40px 20px;
    height: auto;
    min-height: 100vh;
  }

  .circle-solution-section .circle-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .circle-solution-section .content-wrapper {
    gap: 60px;
  }

  /* Shrink the circle for small screens */
  .circle-solution-section .circle-wrapper {
    width: 240px;
    height: 240px;
  }

  /* Small circles (orbit items) adjustment */
  .circle-solution-section .orbit-item {
    width: 85px;
    height: 85px;
  }

  .circle-solution-section .orbit-item img {
    width: 25px;
    height: 25px;
  }

  .circle-solution-section .orbit-item .icon-box {
    font-size: 9px;
  }

  /* Stack cards in 1 column for mobile */
  .circle-solution-section .solution-cards {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
  }

  .circle-solution-section .solution-card {
    min-height: auto;
    padding: 15px;
    text-align: center;
  }

  .circle-solution-section .solution-card h3 {
    font-size: 1rem;
  }

  .circle-solution-section .stats-badge {
    width: 90%;
    text-align: center;
    margin-top: 20px;
  }
}

/* Fix for very small devices (iPhone SE etc) */
@media (max-width: 380px) {
  .circle-solution-section .circle-wrapper {
    width: 200px;
    height: 200px;
  }

  .circle-solution-section .orbit-item {
    width: 70px;
    height: 70px;
  }
}
