.service-hero-bg {
  position: relative;
  overflow: hidden;
}

.service-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/HOME-LIGHT.png") no-repeat center 80%;
  background-size: cover;
  transform: scaleY(-1);
  top: -100px;
  z-index: 0;
}

.service-hero {
  position: relative;
  z-index: 1;
  min-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 300px;
}

.service-hero h1 {
  font-family: "Myriad Pro", sans-serif;
  margin: 0;
  max-width: 520px;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.12;
  font-weight: 700;
}

.service-hero p {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

.carousel {
  width: 100%;
  margin: -20px 0 24px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px clamp(24px, 5vw, 72px) 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  align-items: stretch;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel-track.is-dragging .service-card {
  transition: none !important;
  filter: none !important;
}

[data-carousel-track].is-dragging [data-carousel-item] {
  transition: none !important;
  filter: none !important;
}

.service-card {
  position: relative;
  flex: 0 0 clamp(340px, 30vw, 460px);
  box-sizing: border-box;
  height: clamp(440px, 38vw, 560px);
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  background: #0d1234;
  transform: scale(0.94) translateZ(0);
  opacity: 0.56;
  transition:
    transform 160ms ease-out,
    opacity 160ms ease-out,
    filter 160ms ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.service-card,
.service-content,
.service-overlay,
.service-card img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.carousel-track:not(:hover) .service-card.is-default-featured {
  transform: scale(1.01);
  opacity: 1;
  z-index: 3;
}

.carousel-track:hover .service-card {
  transform: scale(0.95);
  opacity: 0.46;
}

.carousel-track:hover .service-card:hover {
  transform: scale(1.01);
  opacity: 1;
  z-index: 3;
}

.carousel-track:hover .service-card:hover + .service-card {
  transform: scale(0.98);
  opacity: 0.95;
  z-index: 2;
}

.service-card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.service-card:hover .service-overlay::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160%; /* lebar lingkaran */
  height: 160px; /* tebal lingkaran */
  background: radial-gradient(
    ellipse at center bottom,
    rgb(39 50 50 / 0.95) 0%,
    rgb(39 50 50 / 0.6) 40%,
    transparent 70%
  );
  border-radius: 50%;
}

.service-content {
  color: #fff;
  padding: 30px;
}

.service-number {
  font-size: 14px;
  opacity: 0.9;
}

.service-content h3 {
  margin: 20px 0 8px;
  font-size: clamp(20px, 2vw, 40px);
  line-height: 1.06;
  font-weight: 400;
}

.service-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgb(154 154 153);
  max-width: 95%;
}

.services-grid-compact {
  width: 100%;
  margin: -20px 0 24px;
  padding: 12px clamp(24px, 5vw, 72px) 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.services-grid-compact .service-card--grid {
  flex: none;
  width: 100%;
  height: clamp(280px, 22vw, 340px);
  scroll-snap-align: initial;
  border-radius: 14px;
  transform: none;
  opacity: 1;
  transition: transform 180ms ease;
}

.services-grid-compact .service-card--grid img {
  height: 42%;
}

.services-grid-compact .service-card--grid .service-content {
  padding: 16px 18px 18px;
}

.services-grid-compact .service-card--grid .service-number {
  font-size: 12px;
}

.services-grid-compact .service-card--grid .service-content h3 {
  margin: 10px 0 6px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.15;
}

.services-grid-compact .service-card--grid .service-content p {
  font-size: 11px;
  line-height: 1.4;
}

@media (hover: hover) {
  .services-grid-compact .service-card--grid:hover {
    transform: scale(1.02);
    opacity: 1;
    z-index: 2;
  }
}

.services-grid-compact .service-card--grid:hover .service-overlay::after {
  bottom: -30px;
  width: 150%;
  height: 150px;
}

@media (max-width: 1100px) {
  .services-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: -12px 0 48px;
  }
}

@media (max-width: 680px) {
  .services-grid-compact {
    grid-template-columns: 1fr;
    padding: 8px 16px 12px;
  }
}

.service-cards-grid {
  margin: 96px auto 120px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-grid-card {
  position: relative;
  min-height: 190px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #111936 0%, #0d1431 100%);
  padding: 200px 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .service-grid-card:hover {
    transform: scale(1.02);
  }
}

.service-grid-card span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.service-grid-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.1;
  font-weight: 400;
}

.service-grid-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .service-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 72px auto 88px;
    gap: 14px;
  }

  .service-grid-card {
    padding: 32px 18px 20px;
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .service-hero-bg::before {
    background-position: center 0%;
  }

  .service-hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 56px;
    margin-left: 0;
  }

  .service-hero p {
    max-width: none;
    font-size: 15px;
  }

  .services-grid-compact {
    margin: -12px 0 48px;
    gap: 14px;
    padding: 8px 16px 12px;
    padding-inline: max(16px, env(safe-area-inset-left, 0))
      max(16px, env(safe-area-inset-right, 0));
  }

  .services-grid-compact .service-card--grid {
    height: clamp(340px, 88vw, 400px);
  }

  .services-grid-compact .service-card--grid .service-content {
    padding: 22px 18px 26px;
  }

  .services-grid-compact .service-card--grid .service-content h3 {
    font-size: clamp(18px, 4.6vw, 22px);
  }

  .services-grid-compact .service-card--grid .service-content p {
    font-size: 12px;
    line-height: 1.5;
  }

  .service-cards-grid {
    margin: 40px auto 72px;
    gap: 12px;
  }

  .service-grid-card {
    padding: 24px 16px 18px;
    border-radius: 14px;
  }

  .service-grid-card h3 {
    font-size: clamp(18px, 4.2vw, 22px);
  }

  .service-grid-card p {
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  .service-hero {
    padding-top: 106px;
    padding-bottom: 40px;
  }

  .service-hero h1 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .service-hero p {
    font-size: 14px;
    line-height: 1.55;
  }

  .carousel {
    margin-bottom: 40px;
  }

  .service-card {
    flex: 0 0 min(86vw, 320px);
    height: min(380px, 92vw);
  }

  .service-cards-grid {
    grid-template-columns: 1fr;
    margin: 32px auto 56px;
    gap: 12px;
  }

  .service-grid-card span {
    font-size: 11px;
  }
}
