
.what-we-do-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Styling untuk setiap gambar */
.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1);
  /*will-change: transform, opacity;*/
  /*transition:*/
  /*  opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),*/
  /*  transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);*/
  will-change: transform;
  opacity: 0.5;

  transition:
    transform 850ms cubic-bezier(0.16, 1, 0.45, 1);
}

/* Gambar yang sedang aktif */
.fade-img.active {
  transform: scale(1.06);
  opacity: 1;
  z-index: 2;
}

/* Overlay gelap agar teks tetap terbaca jelas */
.background-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5; /* Di atas gambar, di bawah teks */
}

.content-wrapper {
  width: 100%; /* Default 100% */
  max-width: 1920px; /* Batas maksimal */
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 48px 24px;
  align-items: flex-start;
}

.label {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.48px;
}

.services-list {
  list-style: none;
  text-align: left;
  max-width: 692px;
}

.services-list li {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 58px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -1.74px;
  opacity: 0.5;
  cursor: pointer;
  transition: color 0.3s ease;
}

.services-list li:hover,
.services-list li.highlight {
  color: #ffffff;
  opacity: 1;
}

.services-list li a.what-we-do-service-link {
  color: inherit;
  text-decoration: none;
}

.services-list li a.what-we-do-service-link:hover {
  color: inherit;
}


/* Tablet / small desktop: must come BEFORE the mobile block so max-width:767 rules can override. */
@media (max-width: 1024px) {
  .what-we-do-section {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  .services-list li {
    font-size: 42px;
  }

  .fade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 767px) {
  .what-we-do-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  .content-wrapper {
    padding: 34px 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: start;
    gap: 24px;
  }

  .label {
    color: #fff;
    font-family: "General Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.48px;
  }

  .services-list li {
    color: #fff;
    font-family: "General Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.72px;
  }

  .fade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}