.benefits-section {
  background-color: #f3f3f3;
  padding: 35px 20px;
  border-radius: 10px;
  margin: 60px 20px;
  width: auto;
}
.benefits-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
}
.benefits-text {
  max-width: 364px;
}
.benefits-text h3 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 38px;
}
.benefits-text h3 span {
  color: var(--primary-green);
}
.benefits-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
}
.benefits-visual {
  flex-shrink: 0;
  width: 373px;
  height: 350px;
  background-color: rgba(57, 164, 82, 0.8);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.visual-wrapper {
  width: 309px;
  height: 280px;
  background-color: var(--white);
  border-radius: 16px;
  position: relative;
}
.connection-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  font-size: 16px;
}
.connection-card .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
}
.card-1 {
  background-color: var(--black);
  color: var(--white);
  top: 40px;
      left: 20px;
  transform: rotate(-3.33deg);
  width: 267px;
}
.card-1 .dot { background-color: var(--primary-green); }
.card-2 {
  background-color: rgba(57, 164, 82, 0.8);
  color: var(--black);
  top: 110px;
     left: 20px;
  transform: rotate(6.09deg);
  width: 264px;
}
.card-2 .dot { background-color: var(--white); }
.card-3 {
  background-color: rgba(240, 238, 238, 0.83);
  color: var(--black);
  bottom: 40px;
      left: 20px;
  width: 261px;
}
.card-3 .dot { background-color: var(--dark-teal); }
.benefits-list {
  max-width: 390px;
}
.benefits-list h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-teal);
  margin: 0 0 5px;
}
.benefits-list p {
  font-size: 14px;
  color: #475569;
  margin: 0 0 20px;
}
/* individual animations with delays */
/* Initial hidden state - cards start above viewport */
.card-1, .card-2, .card-3 {
  transform: translateY(-140px) rotate(var(--r));
  opacity: 0;
}

/* Animation triggers when .animate class is added */
.animate.card-1 {
  animation: dropReturn 1.6s ease-in-out 2s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  --r: -3.33deg;
}
.animate.card-2 {
  animation: dropReturn 1.6s ease-in-out 0.2s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  --r: 6.09deg;
}
.animate.card-3 {
  animation: dropReturn 1.6s ease-in-out 0.4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  --r: 0deg;
}

@keyframes dropReturn {
  0% {
    transform: translateY(-140px) rotate(var(--r));
    opacity: 0;
  }
  40% {
    transform: translateY(20px) rotate(var(--r)); /* slight overlap touch */
    opacity: 1;
  }
  60% {
    transform: translateY(-6px) rotate(var(--r)); /* bounce up */
  }
  80% {
    transform: translateY(2px) rotate(var(--r)); /* small ground bounce */
  }
  100% {
    transform: translateY(0) rotate(var(--r)); /* back to original spot */
  }
}
/* ✅ RESPONSIVE CSS FOR BENEFITS SECTION ONLY */

/* 💻 Large Laptops (≤1440px) */
@media (max-width: 1440px) {
  .benefits-container {
    max-width: 95%;
    gap: 40px;
  }
  .benefits-text h3 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .benefits-text p {
    font-size: 15px;
  }
  .benefits-visual {
    width: 330px;
    height: 310px;
  }
  .visual-wrapper {
    width: 275px;
    height: 245px;
  }
  .connection-card {
    font-size: 15px;
    padding: 10px;
  }
  .card-1, .card-2, .card-3 {
    width: 240px;
  }
  .benefits-list h4 {
    font-size: 17px;
  }
  .benefits-list p {
    font-size: 13px;
  }
} 
@media  (max-width: 1025px) {
  .benefits-text {
    max-width: 249px;
}
}

/* 📱 Mobile Devices (≤768px) */
@media (max-width: 768px) {
    .benefits-text {
    max-width: 300px;
}
  .benefits-section {
    margin: 45px 10px;
    padding: 25px 12px;
    border-radius: 8px;
  }
  .benefits-container {
    flex-direction: column;
    gap: 40px;
  }
  .benefits-text h3 {
    font-size: 30px;
    margin-bottom: 25px;
  }
  .benefits-text p {
    font-size: 14px;
  }
  .benefits-visual {
    width: 270px;
    height: 270px;
    border-radius: 20px;
  }
  .visual-wrapper {
    width: 230px;
    border-radius: 14px;
  }
  .connection-card {
    font-size: 14px;
    padding: 8px;
  }
  .card-1, .card-2, .card-3 {
    width: 190px;
  }
  .benefits-list h4 {
    font-size: 16px;
  }
  .benefits-list p {
    font-size: 12px;
  }
}

/* 📳 Small Mobile (≤480px) */
@media (max-width: 480px) {
  .benefits-text h3 {
    font-size: 20px;
  }
  .benefits-text p {
    font-size: 13px;
  }
    .visual-wrapper {
        width: 202px;
    }
        .benefits-visual {
        width: 245px;
        }
  .connection-card {
    font-size: 13px;
    align-items: center
    ;
  }
  .card-1, .card-2, .card-3 {
    width: 165px;
  }
}
