html,
body {
    margin: 0;
    font-size: 100%;
    scroll-behavior: smooth;
    /* overflow-x:hidden; */
    font-family: 'Inter' !important;
    padding:0 !important;
    /* overflow: auto; */
    /* scrollbar-width: none;  */
    -ms-overflow-style: none;
}

/* * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
} */

/* Scrollbar track (background) */
body::-webkit-scrollbar {
  width: 12px; /* lebar scrollbar */
}

body::-webkit-scrollbar-track {
  background: #28A8E0; /* background merah */
}

/* Thumb (scrollbar-nya sendiri) */
body::-webkit-scrollbar-thumb {
  background: #d9d7d7;
  border-radius: 6px; /* rounded */
  /* TANPA border — supaya thumb full-width = sama dengan track */
}

body::-webkit-scrollbar-thumb:hover {
  background: #d9d7d7;
}


[data-bs-theme=dark]{
    --bg : #ececec;
    --scroll : white;
}

[data-bs-theme=light]{
   --bg: #ececec
   --scroll : black;
}

.vh-75{
    height: 75vh !important;
}

.w-40{
    width: 40% !important;
}

.sub-menu{
  list-style: none;
  counter-reset: my-counter;
  padding-left: 0;
}

.sub-menu li {
  counter-increment: my-counter;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sub-menu li::before {
  content: "0" counter(my-counter);
  font-size: inherit; /* ikut ukuran h3 */
  font-weight: inherit;
  color: white;
  flex-shrink: 0;
}

.sub-menu li h3 {
  margin: 0;
}

.btn-active{
    background-color: #115F74 !important;
    color:white !important;
    padding:0.375rem 1rem !important;
}

.btn-call-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Gelombang */
.btn-call-wrap::before,
.btn-call-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.25);
  animation: ripple 2.5s ease-out infinite;
  pointer-events: none;
}

.btn-call-wrap::after {
  animation-delay: 0.6s;
}

@keyframes ripple {
  0%   { transform: scale(1);   opacity: 0.6; }
  45%  { transform: scale(1);   opacity: 0.6; }   /* jeda, nunggu getaran */
  100% { transform: scale(2.2); opacity: 0; }
}

.btn-call {
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-duration: 2.5s;        /* total siklus: getar + jeda */
  animation-timing-function: ease;
}

.sosmed-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}

.text-main{
    color: #115F74 !important;
}
.text-second{
    color:#E1BF1A !important;
}

.btn-sosmed {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffffff;
    color: #115F74; /* default biru facebook */
    border: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s;
}

.btn-sosmed:hover {
    transform: scale(1.1);
}

#banner{
    background-color: var(--bg);
    background-image: url('../img/banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#mainNavbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 998;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

#mainNavbar.scrolled {
  position: fixed !important;
}

/* Wrapper tengah: pill + tombol menu berdampingan */
.nav-middle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;                 /* di atas pill */
}

/* Pill: posisi absolute, hanya wrapping konten pill (bukan tombol menu) */
.nav-pill {
  position: absolute;
  top: 50%;
  left: 50%;                          /* center relatif ke navbar */
  transform: translate(-50%, -50%);
  height: 56px;
  width: 480px;
  border-radius: 16px;
  /* From https://css.glass */
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(9.1px);
-webkit-backdrop-filter: blur(9.1px);
  pointer-events: none;
  z-index: 1;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.6s ease,
              height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#mainNavbar.scrolled .nav-pill {
  width: calc(100% - 3rem);   /* melebar tapi tidak full, ada padding */
  height: 100%;               /* tinggi = tinggi navbar saja */
  border-radius: 12px;
  /* From https://css.glass */
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(9.1px);
-webkit-backdrop-filter: blur(9.1px);
}

/* Konten pill: logo + tombol */
.nav-pill-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 8px 16px;
}


/* Tombol menu: z-index 1 agar di atas pill */
#sidescreen {
  position: relative;
  z-index: 1;
}

/* Saat scrolled, teks Layanan jadi gelap */
#mainNavbar.scrolled .nav-layanan {
  color: #333 !important;
}

.nav-focus{
    background: rgba(255, 255, 255, 0.60);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-banner{
    background-color: rgba(0, 166, 255, 0.3);
}

.text-banner{
    top:50%;
    left:0;
    transform: translate(0, -50%);
}

.text-banner h1{
    font-size: 66px;
    font-weight:300;
}

.scroll-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}

#kotak1 {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 140vh;
  background: #c5c5c5;
  border-radius: 30% 30% 0 0 / 8% 8% 0 0;
  z-index: 1001;
  transform: translateY(100%);          /* awal: sembunyi bawah */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#kotak1.show { transform: translateY(0%); }    /* naik masuk */
#kotak1.gone { transform: translateY(-100%); } /* keluar ke atas */

#kotak2 {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1rem; /* p-3 dari class bootstrap */
}

#kotak2.visible {
  opacity: 1;
  pointer-events: all;
}

.isi-kotak2 {
  background: #D9D9D9;
  border-radius: 50px;
  height: 100%;           /* isi penuh kotak2 */
  overflow: hidden;       /* cegah child keluar */
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.isi-kotak2 .row {
  flex: 1;
  overflow: hidden;       /* row tidak boleh keluar */
  min-height: 0;          /* penting agar flex child bisa shrink */
}

.isi-kotak2 .col-md-6 {
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.isi-kotak2 .col-md-6::-webkit-scrollbar {
  display: none;
}

.cloz{
  top:6%;
  right:4%;
  z-index: 2;
}

#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #115F74;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#analytic {
  background-color: #115F74;
  height: 500vh;
  position: relative;
}

/* Wrapper sticky tunggal yang menampung SEMUA konten */
.analytic-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.analytic-scroll-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.analytic-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform;
}

.main-box,
.grid-cell {
  position: absolute;
  overflow: hidden;
}

.main-box img,
.grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* analy-con dan analy-card: absolute di dalam sticky-wrapper */
.analy-con {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analy-card {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  height: 100%;
  z-index: 11;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

/* Words: hidden awal */
#analy-h1 .word {
  display: inline-block;
  opacity: 0;
  -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 50%);
  mask-image: linear-gradient(135deg, black 0%, transparent 50%);
  -webkit-mask-size: 300% 300%;
  mask-size: 300% 300%;
  -webkit-mask-position: 100% 100%;
  mask-position: 100% 100%;
  transition: opacity 0.4s ease, -webkit-mask-position 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), mask-position 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: pre-wrap;
}

#analy-h1 .word.revealed {
  opacity: 1;
  -webkit-mask-position: 0% 0%;
  mask-position: 0% 0%;
}

#analy-h1 .word.hidden-up {
  opacity: 0;
  -webkit-mask-position: -100% -100%;
  mask-position: -100% -100%;
}

/* flex-item: hidden awal */
.flex-grid .flex-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: auto;
}

.flex-grid .flex-item.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Delay bertahap per item */
.flex-grid .flex-item:nth-child(1) { transition-delay: 0s; }
.flex-grid .flex-item:nth-child(2) { transition-delay: 0.1s; }
.flex-grid .flex-item:nth-child(3) { transition-delay: 0.2s; }
.flex-grid .flex-item:nth-child(4) { transition-delay: 0.3s; }

.flex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.flex-item {
  width: 230px;
  height: 230px;
  padding: 16px;
  background: rgba(17, 95, 116, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: grid;
  grid-template-rows: 1fr auto;
}

.flex-item .text-top {
  align-self: start;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flex-item .text-bottom {
  align-self: end;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .flex-item { flex: 1 1 calc(50% - 8px); }
}

@media (max-width: 480px) {
  .flex-item { flex: 1 1 100%; }
}

#service {
  height: 800vh; /* ruang scroll untuk navigasi 6 item */
  position: relative;
  background-color: #28A8E0;
}

.service-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.cir-out{
    border-radius: 1000px;
    width:25px;
    height:25px;
    border: 1px solid transparent;
    transition: border 0.3s ease;
}

.cir-in{
    border-radius: 1000px;
    width:9px;
    height:9px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.inner-grid {
  display: grid;
  grid-template-columns: 20% calc(80% - 12px);
  gap: 12px;
  position: relative;
}

/* Garis vertikal menerus */
.inner-grid::before {
  content: '';
  position: absolute;
  top: var(--line-top);
  bottom: var(--line-bottom);
  left: calc(10%);
  width: 2px;
  background: white;
  z-index: 0;
  transform: translateX(-50%);
}

/* Circle harus di atas garis */
.inner-item:nth-child(odd) {
  position: relative;
  z-index: 1;
}
.inner-item.active .cir-out {
  border: 1px solid white;
}

.inner-item.active .cir-in {
  background-color: white;
}

/* Teks layanan */
.inner-item a h5 {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  transition: font-size 0.3s ease, color 0.3s ease;
  margin: 0;
  white-space: nowrap;      /* ← tambah ini, cegah wrap */
  overflow: hidden;
  text-overflow: ellipsis;
}

.inner-item.active a h5 {
  font-size: 1.3rem;
  color: white;
}

/* Detail kanan */
.svc-detail {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.svc-detail.show {
  opacity: 1;
  transform: translateY(0);
}

.svc-img {
  max-height: 250px;
  object-fit: cover;
}

.main-title{
    font-size:70px;
}

#produces {
  background-color: #f3ffff;
  height: 500vh;
  position: relative;
}

.produces-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.pro-box {
  position: absolute;
  top: 50%;
  left: 50%;
  /* HAPUS: transform: translate(-50%, -50%); */
  overflow: hidden;
  border-radius: 20px;
  width: 40vw;
  height: 40vh;

  will-change: width, height;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pro-box img {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  max-width: none;
}

.overlay-blue {
  background: rgba(17, 123, 169, 0.4);
}

.overlay-pr {
  z-index: 2;
}

#map{
    background-color: #D1D1D1;
}

.loc-1{
  position:absolute;
  top:35%;
  left:40%;
}

.loc-2{
  position:absolute;
  top:43%;
  left:32%;
}

.loc-3{
    position:absolute;
    top:50%;
    left:37%;
}

/* ── Marker animasi ─────────────────────────────────────────────────── */
.fa-map-marker {
  font-size: 28px;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(220,53,69,0.4));
  transform-origin: bottom center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.fa-map-marker:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 8px 16px rgba(220,53,69,0.7));
  animation-play-state: paused;
}

/* Delay berbeda tiap marker biar tidak sync */
.loc-1 { animation-delay: 0s; }
.loc-2 { animation-delay: 0.4s; }
.loc-3 { animation-delay: 0.8s; }


/* Pulse ring di belakang marker */
.fa-map-marker::before {
  position: relative;
  z-index: 2;
}

.marker-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-wrap::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.3);
  bottom: -2px;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* ── Modal ──────────────────────────────────────────────────────────── */
#mapModal .modal-dialog {
  max-width: 600px;
}

#mapModal .modal-content {
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

#mapModal .modal-body {
  padding: 0;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none;
}

#mapModal .modal-body::-webkit-scrollbar {
  display: none;
}

#mapModal .modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

#mapModal .modal-body-content {
  padding: 24px;
}

#mapModal .modal-title-text {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #115F74;
}

#mapModal .modal-desc-text {
  color: #555;
  line-height: 1.7;
  margin-top: 12px;
}

#mapModal .btn-close-custom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

#mapModal .btn-close-custom:hover {
  transform: scale(1.1);
}


#news{
    background-color: white;
}
.info-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.info-carousel-viewport {
  overflow: hidden;
  flex: 1;
}

.info-carousel {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card {
  flex: 0 0 calc(100% / 3);   /* selalu 3 card tampil */
  padding: 16px 24px;
  border-right: 1px solid rgba(0,0,0,0.15);
  box-sizing: border-box;
}

/* Card terakhir yang tampil: hilangkan border kanan */
.info-card:nth-child(3n) {
  border-right: none;
}

.info-card p {
  font-size: 14px;
}

.info-card h1 {
  font-size: 2.5rem;
}

/* Tombol prev/next */
.info-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #115F74;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s;
}

.info-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.run-text {
  font-size: 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.run-text .word {
  --fill-color: #115F74;
  position: relative;
  display: inline-block;
  font-weight: 700;
  -webkit-text-stroke: 2px var(--fill-color);
  background: linear-gradient(var(--fill-color) 0 100%) left / 0% no-repeat;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.thmb-news{
  height: 200px;
}

.news-card{
  font-family: 'Poppins';
  background-color: white;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  transition: .5s;
}

.news-card:hover{
  background:black;
  cursor: pointer;
  color:white !important;
}


#sustain {
  background-image: url('../img/an8.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sustain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

#sustain > * {
  position: relative;
  z-index: 1;
}
footer{
    background-color: #D1D1D1;
}

/* Responsive */

@media (max-width: 1780px) {
    
}

/* 1366 x 768 - Laptop Standard */
@media (max-width: 1367px) {
    
}

/* 1280 x 780 - Small Laptop */
@media (max-width: 1280px) {
    
}

@media (max-width: 1280px) and (max-height: 800px) {
    
}

/* 1151 x 600 */
@media (max-width: 1151px) {
    
}

/* 1080 x 576 */
@media (max-width: 1025px) {
    
}

@media (max-width: 1025px) and (max-height: 600px) {
    
}

/* Tablet & Mobile Breakpoint */
@media (max-width: 992px) {
    
}

@media (max-width: 920px) {
    
}

@media (max-width: 860px) {
}

/* 780 x 487 */
@media (max-width: 780px) {
    
}

/* Tablet Portrait */
@media (max-width: 768px) {
    
}

@media (max-width: 668px) {
    
}

@media (max-width: 640px) {
    
}

/* Large Phone Landscape */
@media (max-width: 576px) {
    
}

@media (max-width: 451px) {
    
}

@media (max-width: 431px) {
    
}

@media (max-width: 420px) {
    
}

@media (max-width: 391px) {
    
}

@media (max-width: 384px) {
    
}

/* iPhone SE, Small Phones */
@media (max-width: 375px) {
    
}

@media (max-width: 361px) {
    
}

@media (max-width: 345px) {
    
}

/* Very Small Phones */
@media (max-width: 320px) {
    
}

/*--//Responsive--*/