.services-section {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 18%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.06), transparent 22%),
    #ffffff;
  overflow: hidden;
}

.services-header {
  max-width: 860px;
  margin: 0 auto 60px;
  text-align: center;
}

.services-title {
  margin-bottom: 20px;
}

.services-subtext {
  font-size: 1.04rem;
  line-height: 1.9;
  color: #475569;
  max-width: 820px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
  border-color: rgba(34, 197, 94, 0.18);
}

.service-image-wrap {
  position: relative;
  height: 250px;
  z-index: 1;  
}

.service-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.02));
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image {
  transform: scale(1.08);
}

.service-icon-badge {
  position: absolute;
  left: 24px;
  bottom: -30px;
  z-index: 10;

  width: 80px;
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;

  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #052e16;

  font-size: 1.2rem;
  font-weight: 800;

  border: 8px solid #ffffff;

  box-shadow:
    0 18px 40px rgba(34, 197, 94, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.15);

  transition: all 0.3s ease;
}

.service-icon-badge span {
  font-size: 1.05rem;
  font-weight: 800;
}

.service-card-body {
  padding: 46px 28px 30px;
}

.service-card-body h3 {
  font-size: 1.42rem;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 16px;
  font-weight: 800;
}

.service-card-body p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #475569;
  margin-bottom: 22px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.98rem;
  transition: var(--transition);
}

.service-link span {
  transition: transform 0.3s ease;
}

.service-card:hover .service-link span {
  transform: translateX(6px);
}

.service-link:hover {
  color: #15803d;
}

.services-action {
  margin-top: 46px;
  text-align: center;
}

/* Reuse reveal animation if already added */
.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Large laptops */
@media (max-width: 1200px) {
  .services-grid {
    gap: 22px;
  }

  .service-card-body {
    padding: 42px 24px 26px;
  }

  .service-card-body h3 {
    font-size: 1.28rem;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .services-header {
    margin-bottom: 46px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services-header {
    margin-bottom: 40px;
  }

  .services-subtext {
    font-size: 0.97rem;
    line-height: 1.8;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .service-image-wrap {
    height: 220px;
  }

  .service-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    left: 20px;
    bottom: -20px;
  }

  .service-card-body {
    padding: 40px 22px 24px;
  }

  .service-card-body h3 {
    font-size: 1.18rem;
  }

  .service-card-body p {
    font-size: 0.95rem;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .services-subtext {
    font-size: 0.93rem;
  }

  .service-image-wrap {
    height: 200px;
  }

  .service-card {
    border-radius: 22px;
  }

  .service-card-body {
    padding: 38px 18px 22px;
  }

  .service-card-body h3 {
    font-size: 1.08rem;
  }

  .service-link {
    font-size: 0.94rem;
  }
}

/* Extra small */
@media (max-width: 400px) {
  .service-image-wrap {
    height: 180px;
  }

  .service-icon-badge {
    width: 58px;
    height: 58px;
    font-size: 0.9rem;
  }
}