/* ServicesSection: match Problems section background */
#services.service-area.style-four {
  background: var(--sdg-slate-50) !important;
}

#services-ai-automation,
#services-customer-support {
  scroll-margin-top: 96px;
}

@media (max-width: 991px) {
  #services-ai-automation,
  #services-customer-support {
    scroll-margin-top: 72px;
  }
}

/* ServicesSection: equal-height grid */
#services .services-grid-row {
  align-items: stretch;
}

#services .services-grid-row > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

#services .techno-sinlge-service-box.service-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 455px;
  height: 100%;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 40px 38px 30px;
  border-radius: 15px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 0 16px rgb(26 46 85 / 13%);
  transition: 0.5s;
  margin-bottom: 30px;
}

/* Gradient fill + decorative shape (style-four hover) */
#services .service-card::before {
  position: absolute;
  content: "";
  z-index: 0;
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0;
  background: var(--sdg-gradient-btn);
  transition: 0.5s;
  border-radius: 15px;
}

#services .service-card::after {
  position: absolute;
  content: "";
  z-index: 0;
  bottom: 0;
  left: 0;
  height: 0%;
  width: 0%;
  clip-path: polygon(0% 0%, 100% 100%, 100% 100%, 0% 100%);
  transition: 1s;
  border-radius: 15px;
}

#services .service-card--blue::after {
  background: var(--sdg-blue);
}

#services .service-card--purple::after {
  background: var(--sdg-purple);
}

#services .service-card--red::after {
  background: var(--sdg-red);
}

#services .service-card .techno-service-box-inner,
#services .service-card .techno-service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

#services .service-card .techno-service-title {
  flex: 1;
}

#services .service-card .techno-service-icon {
  margin-bottom: 25px;
}

#services .service-card .techno-service-icon i {
  font-size: 52px;
  display: inline-block;
  margin: 0;
  height: 90px;
  width: 90px;
  line-height: 90px;
  text-align: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: 0.5s;
}

#services .service-card .techno-service-icon i::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  border-radius: 50%;
  z-index: -1;
  transform: scale(0);
  transition: 1s;
}

#services .service-card .techno-service-title h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 20px;
  min-height: 3.9em;
  position: relative;
  line-height: 1.3;
  transition: 0.5s;
}

#services .service-card .techno-service-title h2::after {
  display: none;
}

#services .service-card .techno-service-title h2::before {
  position: absolute;
  content: "";
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 43px;
  height: 2px;
  transition: 0.5s;
}

#services .service-card .techno-service-title p {
  color: var(--sdg-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  transition: 0.5s;
}

/* Brand variants — default state */
#services .service-card--blue {
  border: 1px solid rgba(48, 128, 255, 0.25);
}

#services .service-card--purple {
  border: 1px solid rgba(162, 28, 175, 0.22);
}

#services .service-card--red {
  border: 1px solid rgba(251, 44, 54, 0.22);
}

#services .service-card--blue .techno-service-icon i {
  color: var(--sdg-blue);
  background: rgba(48, 128, 255, 0.08);
}

#services .service-card--purple .techno-service-icon i {
  color: var(--sdg-purple);
  background: rgba(162, 28, 175, 0.08);
}

#services .service-card--red .techno-service-icon i {
  color: var(--sdg-red);
  background: rgba(251, 44, 54, 0.08);
}

#services .service-card--blue .techno-service-icon i::after {
  background: var(--sdg-blue);
}

#services .service-card--purple .techno-service-icon i::after {
  background: var(--sdg-purple);
}

#services .service-card--red .techno-service-icon i::after {
  background: var(--sdg-red);
}

#services .service-card--blue .techno-service-title h2 {
  color: var(--sdg-blue-dark);
}

#services .service-card--purple .techno-service-title h2 {
  color: var(--sdg-purple);
}

#services .service-card--red .techno-service-title h2 {
  color: var(--sdg-red);
}

#services .service-card--blue .techno-service-title h2::before {
  background: var(--sdg-blue);
}

#services .service-card--purple .techno-service-title h2::before {
  background: var(--sdg-purple);
}

#services .service-card--red .techno-service-title h2::before {
  background: var(--sdg-red);
}

/* Hover — style-four gradient reveal */
#services .service-card:hover::before {
  height: 100%;
  background: var(--sdg-gradient-btn) !important;
}

#services .service-card:hover::after {
  height: 35%;
  width: 50%;
}

#services .service-card--blue:hover::after {
  background: var(--sdg-blue) !important;
}

#services .service-card--purple:hover::after {
  background: var(--sdg-purple) !important;
}

#services .service-card--red:hover::after {
  background: var(--sdg-red) !important;
}

#services .service-card:hover .techno-service-icon i {
  color: #fff !important;
  background: transparent !important;
}

#services .service-card:hover .techno-service-icon i::after {
  transform: scale(1);
}

#services .service-card--blue:hover .techno-service-icon i::after {
  background: var(--sdg-blue) !important;
}

#services .service-card--purple:hover .techno-service-icon i::after {
  background: var(--sdg-purple) !important;
}

#services .service-card--red:hover .techno-service-icon i::after {
  background: var(--sdg-red) !important;
}

#services .service-card:hover .techno-service-title h2,
#services .service-card:hover .techno-service-title p {
  color: #fff !important;
}

#services .service-card:hover .techno-service-title h2::before {
  background: #fff !important;
}

#services .service-card:focus-visible {
  outline: 2px solid var(--sdg-blue);
  outline-offset: 2px;
}

#services .services-cta-row {
  margin-top: 10px;
  padding-bottom: 20px;
  justify-content: center;
}

#services .services-cta-row .col-lg-12 {
  display: flex;
  justify-content: center;
  text-align: center;
}

#services #services-cta.dreamit-btn {
  display: inline-block;
  background: var(--sdg-gradient-btn);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  box-shadow: rgba(48, 128, 255, 0.22) 0 10px 24px;
  border: none;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.3s ease;
  cursor: pointer;
}

#services #services-cta.dreamit-btn:hover {
  color: #fff;
  box-shadow: rgba(48, 128, 255, 0.32) 0 12px 28px;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  #services .dreamit-section-title {
    text-align: left !important;
    position: relative;
  }

  /* responsive.css repositions ::after on the title block — anchor decor on h5 instead */
  #services .dreamit-section-title::after {
    display: none !important;
  }

  #services .dreamit-section-title h5 {
    position: relative;
    display: inline-block;
  }

  #services .dreamit-section-title h5::after {
    content: "";
    position: absolute;
    left: -12px;
    top: -16px;
    background: url(../images/resource/section1.png);
    width: 63px;
    height: 63px;
    display: inline-block;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  #services .techno-sinlge-service-box.service-card {
    min-height: 400px;
  }

  #services .service-card .techno-service-title h2 {
    min-height: auto;
  }
}
