/* Container Layout */
.popular-uses__wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Connectors SVG */
.popular-uses__connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.popular-uses__connector {
    fill: none;
    stroke: url(#popular-uses-gradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Continuous Moving Gradient Central Circle */
.popular-uses__circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    
    /* Continuous moving gradient background: Black to Luminous Green */
    background: linear-gradient(90deg, #4DB6AC, #C5BF88);
    background-size: 300% 300%;
    animation: movingGreenGradient 4s ease infinite alternate, circlePulse 2.5s ease-in-out infinite alternate;
    transform: scale(0.8);
    opacity: 0;
}

.popular-uses__circle span {
    font-size: 3.2rem;
    font-weight: 600;
    color: #ffffff;
    user-select: none;
    z-index: 2;
}

/* Rotating Outer Green Ring */
.popular-uses__ring {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 144px;
    height: 144px;
    pointer-events: none;
    animation: spin 7s linear infinite;
}

/* KEYFRAME ANIMATIONS FOR INFINITE MOTION */
@keyframes movingGreenGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Card Elements */
.popular-uses__card {
    position: absolute;
    width: 320px;
    padding: 1.5rem;
    background:#fafaf8;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid #ccc;
    z-index: 5;
    opacity: 0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.popular-uses__card:hover {
  border-color: #3FCAB5;
  transform: translateY(-6px) !important;
  box-shadow: 0 5px 5px rgb(0 0 0 / 10%);
}

.popular-uses__card h3 {
    font-size: 1.15rem;
    font-weight: 550;
    margin-bottom: 0.5rem;
}

.popular-uses__card p {
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Card Placement according to scheme */
.popular-uses__card--1 { top: 60px; left: 40px; }      /* Top Left */
.popular-uses__card--2 { top: 120px; right: 40px; }    /* Top Right */
.popular-uses__card--3 { bottom: 80px; left: 40px; }   /* Bottom Left */
.popular-uses__card--4 { bottom: 120px; right: 40px; }   /* Bottom Right */

/* Mobile Adaptations */
@media (max-width: 900px) {
  .popular-uses__wrapper {
    height: auto;
    flex-direction: column;
    padding: 40px 15px;
    gap: 2rem;
  }

  .popular-uses__connectors {
    display: none;
  }

  .popular-uses__card {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 450px;
    opacity: 1;
    transform: none;
  }

  .popular-uses__circle {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    margin: 20px 0;
  }
}