/* Infrastructure Section - Base Styles */
.infrastructure {
  padding: 0px 80px;
  background: white;
  position: relative;
}

.infrastructure > .container {
  margin: 0 auto;
}

.infrastructure-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 27px;
}

.infrastructure-header h2 {
  flex: 1;
  margin-bottom: 0;
}

.infrastructure-intro {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.infrastructure-intro p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #212529;
  margin: 0;
  padding-top:50px;
}

.infrastructure h2 {
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 60px;
  line-height: 59px;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 20px;
}

.infrastructure h2 .blue-text {
  color: #204f9d;
}

.infrastructure h2 .red-text {
  color: #ee3025;
}

.carousel-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 30px;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 400px;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  height: 100%;
  width: 100%;
  transition: all 1.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Sangat fluid */
}

.service-item {
  flex: 0 0 auto;
  transition: all 1.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* 1.4 detik */
  position: relative;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.service-item.active {
  opacity: 1;
  transform: scale(1) translateY(0) translateZ(0);
  z-index: 3;
  transition-delay: 0.25s;
}

.service-item.left {
  opacity: 0.85;
  transform: scale(0.93) translateX(-70px) translateY(8px) translateZ(-20px);
  z-index: 2;
  transition-delay: 0.2s;
}

.service-item.right {
  opacity: 0.85;
  transform: scale(0.93) translateX(70px) translateY(8px) translateZ(-20px);
  z-index: 2;
  transition-delay: 0.2s;
}

.service-item:not(.active):not(.left):not(.right) {
  opacity: 0.5;
  transform: scale(0.86) translateY(12px) translateZ(-40px);
  z-index: 1;
  transition-delay: 0.1s;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: visible;
  cursor: pointer;
}

/* Style untuk gambar carousel */
.carousel-image {
  width: 100%;
  height: 100%;
  border-radius: 150px;
  opacity: 1;
  position: relative;
  top: 5px;
  box-shadow: 0px 24px 35px -29px #000000cc;
  object-fit: cover;
}

.image-container:hover h3 {
  background: #ee3025;
  color: white;
  transition: all 0.3s ease;
}

.image-container h3 {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  background: #d9d9d9;
  width: 200px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6c757d;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: #ee3025;
}

/* Navigation Arrows */
.nav-arrows {
  left: -150px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 20px 5% 0 0;
  z-index: 20;
  pointer-events: none;
  margin-top: 40px;
}

.arrow-btn {
  width: 80px;
  height: 80px;
  border: 2px solid #204f9d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 21;
}

.arrow-btn:hover {
  background: #ee3025;
  border-color: #ee3025;
  transform: scale(1.1);
}

.arrow-icon {
  width: 20px;
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(19%) sepia(70%) saturate(1555%)
    hue-rotate(201deg) brightness(94%) contrast(89%);
}

.arrow-icon.flip {
  transform: scaleX(-1);
}

.arrow-btn:hover .arrow-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* View All Button Bottom */
.view-all-bottom {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
}

/* ===== DESKTOP STANDARD (1024px - 1439px) ===== */
@media (min-width: 1024px) and (max-width: 1439px) {
  .carousel-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .carousel-container {
    max-width: 100vw;
    height: 450px;
    position: relative;
  }

  /* Ukuran untuk desktop standard (1024px - 1439px) */
  .service-item {
    width: 600px;
    height: 320px;
  }

  .service-item.active {
    width: 700px;
    height: 380px;
  }

  .carousel-image {
    border-radius: 200px;
  }

  .image-container h3 {
    font-size: 32px;
    width: 350px;
    height: 70px;
    border-radius: 35px;
  }

  /* Nav arrows untuk desktop standard */
  .nav-arrows {
    /* position: absolute !important; */
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    /* justify-content: space-between !important; */
    /* align-items: center !important; */
    padding: 0 5% !important;
    margin-top: 0 !important;
    z-index: 30 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: 0 !important;
  }

  .arrow-btn {
    width: 70px !important;
    height: 70px !important;
  }
}

/* ===== LARGE DESKTOP (1440px+) ===== */
@media (min-width: 1440px) {
  .carousel-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .carousel-container {
    max-width: 100vw;
    height: 500px;
    position: relative;
  }

  /* UPDATED: SEMUA ITEM SAMA UKURAN DI DESKTOP LARGE */
  .service-item {
    width: 1009px;
    height: 427px;
  }

  .service-item.active {
    width: 1009px;
    height: 427px;
    transform: none;
    opacity: 1;
    z-index: 3;
  }

  .service-item.left,
  .service-item.right {
    width: 702px;
    top: 10%;
    height: 297px;
    opacity: 0.7;
    transform: translateY(20px);
    z-index: 2;
  }

  .service-item:not(.active):not(.left):not(.right) {
    width: 1009px;
    height: 427px;
    opacity: 0.4;
    transform: translateY(30px);
    z-index: 1;
  }

  .carousel-image {
    border-radius: 300px;
  }

  .image-container h3 {
    font-size: 44px;
    width: 495px;
    height: 97px;
    border-radius: 48.5px;
  }

  /* Nav arrows untuk large desktop */
  .nav-arrows {
    /* position: absolute !important; */
    top: 50% !important;
    left: 0px !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    /* justify-content: space-between !important; */
    /* align-items: center !important; */
    padding: 0 6% !important;
    margin-top: 0 !important;
    z-index: 30 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: 0 !important;
  }

  .arrow-btn {
    width: 80px !important;
    height: 80px !important;
  }
}

/* ===== TABLET STYLES (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .infrastructure {
    padding: 0px 40px;
  }

  .infrastructure > .container {
    padding: 0 40px;
  }

  .infrastructure-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 27px;
  }

  .infrastructure-header h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .infrastructure-intro p {
    font-size: 20px;
    line-height: 1.4;
  }

  .carousel-wrapper {
    margin-top: 30px;
  }

  .carousel-container {
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 100%;
    width: 100%;
    transition: all 0.5s ease;
  }

  /* Service Items - Tablet */
  .service-item {
    width: 350px;
    height: 250px;
    opacity: 0.4;
    transform: scale(0.9);
    transition: all 0.5s ease;
  }

  .service-item.active {
    width: 400px;
    height: 300px;
    opacity: 1;
    transform: scale(1);
    z-index: 3;
  }

  .service-item.left,
  .service-item.right {
    opacity: 0.7;
    transform: scale(0.95);
    z-index: 2;
  }

  .service-item:not(.active):not(.left):not(.right) {
    opacity: 0.4;
    transform: scale(0.9);
    z-index: 1;
  }

  .carousel-image {
    border-radius: 60px;
    object-fit: cover;
  }

  .image-container h3 {
    font-size: 20px;
    width: 250px;
    height: 50px;
    border-radius: 25px;
    bottom: 10px;
  }

  /* ===== UPDATED: NAV ARROWS POSITION - TABLET ===== */
  .nav-arrows {
    position: absolute !important;
    top: 56% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 6% !important;
    margin-top: 0 !important;
    z-index: 30 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: 0 !important;
  }

  .arrow-btn {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #204f9d !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 31 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
  }

  .arrow-btn:hover {
    background: #ee3025 !important;
    border-color: #ee3025 !important;
    transform: scale(1.1) !important;
  }

  .arrow-icon {
    width: 25px !important;
    transition: all 0.3s ease !important;
    filter: brightness(0) saturate(100%) invert(19%) sepia(70%) saturate(1555%)
      hue-rotate(201deg) brightness(94%) contrast(89%) !important;
  }

  .arrow-btn:hover .arrow-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
      hue-rotate(0deg) brightness(100%) contrast(100%) !important;
  }

  /* Dots Indicator - Tablet */
  .carousel-dots {
    margin-top: 30px;
  }

  /* View All Button - Tablet */
  .view-all-bottom {
    margin-top: 30px;
  }
}
