html {
  scroll-behavior: smooth;
  scroll-padding-top: 45px; 
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: black;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background-color: #000000; 
    color: #ffffff;
    overflow: "hidden";
}

.navbar {
    display: flex;
    width: 100%;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.links-container {
    display: flex;
    margin-left: auto;     
    gap: 20px;             
}

.navbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.navbar-logo img {
    height: 35px;
    width: auto;
    display: block;
}


.navbar-link {
    color: white;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-left: auto;
}

.navbar-link:hover{
    background-color: #D2450C;
    color: white;
}

.cover{
    display: flex;
    height: 1000px;
    width: 100%;
    margin: 10px;
    font-size: 11pt;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

.box{
    display: flex;
    height: 100px;
    width: 100px;
    background-color: black;
    font-size: 11pt;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.left-box{
    scroll-margin-top: calc(50vh - 450px);
}

.box.active {
    animation: fadeInUp 1s ease-out forwards;
}

.section-container{
    background-color: #000000; 
    color: #ffffff; 
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    padding: 60px 10%; 
    box-sizing: border-box; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    align-items: flex-start;
}

.read-more-btn {
    font-size: clamp(11pt, 1.3vw, 14pt); 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: 500; 
    border-bottom: 1px solid transparent; 
    transition: border-color 0.2s ease;
    position: relative;
    z-index: 10;
    display: inline-block;
}

.read-more-btn:hover {
    border-bottom-color: #ffffff;
}


.dashboard-button {
    display: inline-block;
    background: linear-gradient(135deg, #D2450C, #6C2406);
    color: #ffffff;
    font-size: clamp(11pt, 1.4vw, 15pt);
    font-weight: 500;
    text-decoration: none;
    padding: 12px 45px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.footer {
    width: 100%;
    background-color: #000000; 
    color: #ffffff; 
    padding: 40px 20px; 
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(10pt, 1.2vw, 14pt);
    display: flex;
    justify-content: center; 
}

.footer-inner {
    width: 100%;
    max-width: 600px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.scene, .a3d-carousel{
    display: grid;
}

.scene{
    width: 100%;
    height: 650px;
    perspective: 56em;
    position: relative;
    mask-image: linear-gradient(90deg, 
    rgba(0,0,0,0) calc(50% - 800px), 
    rgba(0,0,0,1) calc(50% - 150px), 
    rgba(0,0,0,1) calc(50% + 150px), 
    rgba(0,0,0,0) calc(50% + 800px)
  );
  -webkit-mask-image: linear-gradient(90deg, 
    rgba(0,0,0,0) calc(50% - 800px), 
    rgba(0,0,0,1) calc(50% - 150px), 
    rgba(0,0,0,1) calc(50% + 150px), 
    rgba(0,0,0,0) calc(50% + 800px)
  );
  padding-bottom: 200px;
  margin: 100px 0;

}

.a3d-carousel{
    place-self: center;
    transform-style: preserve-3d;
    animation: ry 60s linear infinite;
}

.slideshow-container {
  width: 100%;
  height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1500px; 
  box-sizing: border-box;
  margin: 20px 0;
  pointer-events: none;
}

@keyframes ry {
    to{
        transform: rotateY(1turn);
    }
}

.card{
    --w: 40em;
    --ba: calc(1turn / var(--n));
    grid-area: 1 / 1;
    width: var(--w);
    aspect-ratio: 7 / 10;
    object-fit: cover;
    border-radius: 1.5em;
    backface-visibility: hidden;
    transform: rotateY(calc(var(--i) * var(--ba))) translateZ(calc(-1 * (0.5 * var(--w) + 0.5em)/tan(0.5 * var(--ba))));
    background-color: #222;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.5s ease-in-out;
    will-change: transform, opacity;
}

.card.loaded {
    opacity: 1;
}

.image-container {
    background-color: black; 
    width: 300px;
}

.semi-transparent {
    opacity: 0.6;
}

#home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, black 100%), url('imag/kolase.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    animation: fadeIn 1s ease-out forwards;

}

.social{
    text-decoration: none;
    padding: 20px;
    font-size: 30px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    filter:invert(100);
}

.social:hover{
    background-color: rgba(0, 186, 255);
    transform:scale(1.1);
}

.modal{
    display: none; 
    position: fixed; 
    z-index: 10; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: black;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    animation-name: animatetop;
    animation-duration: 0.4s;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: #D2450C;
    text-decoration: none;
    cursor: pointer;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.sponsor-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* ==== Gaya untuk hasil.html (peta hasil pemetaan) ====
   Semua aturan di bawah ini di-scope ke class .peta-page (ditaruh di <body> hasil.html)
   supaya tidak bocor / menimpa gaya halaman lain seperti index.html. */
  body.peta-page, body.peta-page * { box-sizing: border-box; }
  body.peta-page { margin: 0; padding: 0; height: 100%; font-family: 'Segoe UI', sans-serif; }

  #map { position: fixed; inset: 0; z-index: 0; }

  .topbar {
    position: fixed; top: 16px; left: 16px; right: 16px; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 22px;
    background: rgba(50, 62, 38, 0.55);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  }
  .topbar h1 {
    margin: 0; font-size: 17px; font-weight: 400; color: #fff; letter-spacing: .2px;
  }
  .topbar h1 b { font-weight: 700; font-style: italic; }
  .topbar a.home-link { text-decoration: none; }

  .hamburger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 4px;
  }
  .hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

  /* ==== Panel kanan ==== */
  #sidePanel {
    position: fixed; top: 92px; right: 16px; z-index: 1000;
    width: 290px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: 16px; padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform .25s ease, opacity .25s ease;
  }
  #sidePanel.hidden { transform: translateX(120%); opacity: 0; pointer-events: none; }

  .pill-btn {
    display: block; width: 100%; text-align: center; border: none; cursor: pointer;
    color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .3px;
    padding: 11px 0; border-radius: 999px; margin-bottom: 16px;
    background: linear-gradient(135deg, #ea6a1f, #c2410c);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
  }
  .pill-btn:hover { filter: brightness(1.06); }

  .layer-list { margin-bottom: 4px; }
  .layer-item {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    font-size: 14.5px; color: #1a1a1a;
  }
  .layer-item input[type="checkbox"] {
    width: 17px; height: 17px; accent-color: #1a1a1a; cursor: pointer; flex-shrink: 0;
  }
  .layer-item.disabled { color: #b3b3b3; }
  .layer-item.disabled input { cursor: not-allowed; }
  .layer-item .badge {
    font-size: 10.5px; color: #b3752e; background: #fdf1e4; padding: 1px 7px;
    border-radius: 999px; margin-left: 2px;
  }

  .layer-item.expandable { cursor: pointer; user-select: none; }
  .layer-item .expand-arrow {
    margin-left: auto; font-size: 11px; color: #888; transition: transform .2s ease;
    flex-shrink: 0;
  }
  .layer-item .expand-arrow.open { transform: rotate(90deg); }

  #shpSubList {
    display: none; margin: -4px 0 12px 27px; padding-left: 10px;
    border-left: 2px solid #eee;
    max-height: 260px; overflow-y: auto;
  }
  #shpSubList.open { display: block; }
  .shp-sub-item {
    display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
    font-size: 13px; color: #333;
  }
  .shp-sub-item input[type="checkbox"] {
    width: 15px; height: 15px; cursor: pointer; flex-shrink: 0;
  }
  .shp-sub-item .swatch {
    width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0;
  }
  .shp-sub-item .lyr-status {
    font-size: 10px; color: #c0392b; margin-left: auto;
  }

  #infoPanel {
    display: none; margin-top: 4px; font-size: 13.5px; color: #444; line-height: 1.6;
  }
  #infoPanel.open { display: block; }
  #infoPanel textarea {
    width: 100%; min-height: 120px; border: 1px solid #ddd; border-radius: 8px;
    padding: 10px; font-size: 13px; font-family: inherit; color: #333; resize: vertical;
  }

  #statusBanner {
    position: fixed; top: 92px; left: 16px; z-index: 1000;
    background: #b3261e; color: #fff; font-size: 12.5px; padding: 8px 14px;
    border-radius: 8px; display: none; max-width: 320px;
  }
  #statusBanner.show { display: block; }
