/* Layout dasar */
body, html {
  height: 100%;
  margin: 0;
}

/* HERO SECTION */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10%;
  text-align: left;
  overflow: hidden; /* penting biar layer ga bocor */
  padding-top: 100px; /* untuk navbar fixed */
}

/* Layer gelap */
.hero-section::after {
  content: ""; /* pastikan ada content kalau mau pseudo-element */
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); /* cukup tipis */
  z-index: 1;
  pointer-events: none; /* biar ga ganggu klik */
}


/* Layer untuk gambar */
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  z-index: 0;
}

.hero-bg.show {
  opacity: 1; /* ini bikin kelihatan */
}

/* Text di atas background */
.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}
.hero-text.show {
  opacity: 1;
}

.hero-text h1 {
  font-size: 4em;
  font-weight: bold;
  text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
}

.hero-text p {
  font-size: 1.8em;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* NAVBAR */
.navbar-custom {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(0px);
}

/* Saat scroll */
.navbar-custom.scrolled {
  background-color: #001f66;
  box-shadow: 0 2px 8px #001f66;
}

/* Navbar brand fix */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.navbar-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.navbar-brand div {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  color: white;
  max-width: 100%; /* Desktop: full width, panjang */
  word-wrap: break-word;
}

.navbar .nav-link {
  color: white !important;
  font-weight: 500;
}

.navbar .dropdown-menu {
  background-color: white;
}

.navbar .dropdown-item {
  color: #000;
}

.navbar .dropdown-item:hover {
  background-color: #f1f1f1;
}

/* SECTION LAYANAN */
.layanan-section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #000000;
}

.layanan-box {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.layanan-box.reveal {
  opacity: 1;
  transform: translateY(0);
}

.selectable {
  cursor: pointer;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.selectable:hover {
  background-color: #e9f7ef;
}

.selected {
  background-color: #198754 !important;
  color: white !important;
}

.selected h5,
.selected p,
.selected strong {
  color: white !important;
}

.deskripsi-singkat {
  color: #555;
  font-size: 20px;
  line-height: 1.5;
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
/* =============================== */
/*          RESPONSIVE CSS         */
/* =============================== */


/* =============================== */
/*           NAVBAR STYLE          */
/* =============================== */

/* Struktur dasar header */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.navbar-toggler {
  margin-left: auto; /* Burger selalu ke kanan */
}

/* Pastikan brand + burger sejajar */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* =============================== */
/*          HERO SECTION           */
/* =============================== */
.hero-section {
  /* default setting (desktop besar) */
}

.hero-text h1 { }
.hero-text p { }


/* =============================== */
/*          LAYANAN SECTION        */
/* =============================== */
.layanan-box { }
.layanan-box img { }

.section-title { }


/* =============================== */
/*     RESPONSIVE: MAX 992px       */
/* (Tablet & Laptop kecil)         */
/* =============================== */
@media (max-width: 992px) {
  /* --- HERO --- */
  .hero-section {
    padding-left: 5%;
    padding-right: 5%;
    justify-content: center;
    text-align: center;
  }
  .hero-text h1 { font-size: 2.5em; }
  .hero-text p { font-size: 1.2em; }

  /* --- NAVBAR --- */
  .navbar-brand img { width: 38px; height: 38px; }
  .navbar-brand div {
    font-size: 0.95rem;
    max-width: 150px;
    white-space: normal;
    line-height: 1.3;
  }
  .navbar .nav-link { font-size: 0.95em; padding: 8px; }
  .navbar-toggler { padding: 6px 10px; margin-left: auto; }

  /* --- LAYANAN --- */
  .section-title { font-size: 2em; }
  .layanan-box { padding: 18px; }
}


/* =============================== */
/*     RESPONSIVE: MAX 768px       */
/* (Tablet kecil & HP besar)       */
/* =============================== */
@media (max-width: 768px) {
  /* --- HERO --- */
  .hero-section {
    height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
    flex-direction: column;
  }
  .hero-text h1 { font-size: 2em; }
  .hero-text p { font-size: 1.1em; }

  /* --- NAVBAR --- */
  .navbar-custom {
    background-color: rgba(0, 0, 0, 0.85);
  }
  .navbar-brand img { width: 30px; height: 30px; }
  .navbar-brand div {
    font-size: 0.9rem;
    max-width: 150px;
    white-space: normal;
  }
  .navbar-toggler { padding: 6px 8px; margin-left: auto; }

  /* --- LAYANAN --- */
  .section-title { font-size: 1.8em; }
  .layanan-box { padding: 14px; }
  .layanan-box img { max-height: 60px; }
}


/* =============================== */
/*     RESPONSIVE: MAX 576px       */
/* (HP kecil)                      */
/* =============================== */
@media (max-width: 576px) {
  /* --- HERO --- */
  .hero-text h1 { font-size: 1.6em; }
  .hero-text p { font-size: 0.95em; }

  /* --- NAVBAR --- */
  .navbar {
    align-items: flex-start; /* Burger sejajar atas */
  }
  .navbar-brand { gap: 6px; }
  .navbar-brand img { width: 30px; height: 30px; }
  .navbar-brand div {
    font-size: 0.75rem;
    line-height: 1.2;
    max-width: 120px; /* supaya tidak tabrakan dengan burger */
    white-space: normal;
    word-wrap: break-word;
  }
  .navbar-toggler { padding: 5px 7px; margin-left: auto; }

  /* --- LAYANAN --- */
  .section-title { font-size: 1.5em; }
  .layanan-box { font-size: 0.9rem; padding: 12px; }
  .layanan-box img { max-height: 50px; }
}

/* =============================== */
/*   FIX NAVBAR HP (375 x 667)     */
/* =============================== */
@media only screen and (max-width: 576px) {
  .navbar-custom {
    background: #000 !important;  /* hitam solid */
    padding: 8px 12px !important;
  }

  .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .navbar-brand img {
    width: 30px !important;
    height: 30px !important;
  }

  .navbar-brand div {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    max-width: 120px !important;
    color: #fff !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .navbar-toggler {
    margin-left: auto !important;
    padding: 6px 8px !important;
    border: none !important;
  }
}


/* FOOTER */
.footer {
  background-color: #001f66;
  color: white;
  padding: 50px 20px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.container-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-col {
  flex: 1 1 300px;
  margin: 20px;
}

.footer-col h3 { font-size: 24px; margin-bottom: 10px; }
.footer-col p { font-size: 16px; color: #ccc; }
.footer-col h4 { font-size: 18px; margin-bottom: 15px; }

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 15px; }
.footer-col ul li i { margin-right: 10px; color: #fff; }

.visitor-counter iframe {
  border: none;
  background-color: #eee;
  padding: 5px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .container-footer {
    flex-direction: column;
    align-items: center;
  }
  .footer-col { text-align: center; margin: 10px 0; }
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background-color: #00f7ff; color: #001f66; }

@media (max-width: 768px) {
  .scroll-top {
    right: 15px;
    bottom: 20px;
    padding: 8px 10px;
    font-size: 16px;
  }
}

/* Penghitung Pengunjung */
.visitor-box {
  background-color: #ffffff22;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #ffffff44;
  backdrop-filter: blur(2px);
  color: #fff;
  max-width: 180px;
  width: 100%;
  font-size: 13px;
}

.visitor-box ul { list-style: none; padding: 0; margin: 0; }
.visitor-box li { margin: 4px 0; font-size: 13px; line-height: 1.4; }

.footer-col ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: #00bfff; }

.footer-bottom {
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #ffffff44;
  text-align: center;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rounded-shape {
  border: 5px solid;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  width: 220px;
  height: auto;
}

#layanan-utama h5 { font-weight: bold; }
#layanan-utama p { max-width: 500px; }

@media (max-width: 768px) {
  .rounded-shape {
    margin: 20px 0;
    width: 100%;
    clip-path: none;
    border-radius: 10px;
  }
}

.bidang-section { background-color: #f8f8f8; }
.bidang-section h2 { font-size: 36px; }

.btn-hover-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-hover-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hexagon */
.hexagon-frame {
  width: 280px;
  height: 280px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background-color: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hexagon-frame:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.hexagon-image {
  width: 98%;
  height: 98%;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background-color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hexagon-image img {
  width: 95%;
  height: 95%;
  object-fit: cover;
}

.hexagon-frame { border: 5px solid transparent; border-radius: 10px; overflow: hidden; }
.color-3-bg { border-color: #072cff; background-color: #072cff !important; }
.color-4-bg { border-color: #7c0e0e; background-color: #7c0e0e !important; }
.color-5-bg { border-color: #045315; background-color: #045315 !important; }
.color-6-bg { border-color: #d97706; background-color: #d97706 !important; }
.color-7-bg { border-color: #6b21a8; background-color: #6b21a8 !important; }
.color-8-bg { border-color: #0e7490; background-color: #0e7490 !important; }

.color-3-color { color: #072cff !important; }
.color-4-color { color: #7c0e0e !important; }
.color-5-color { color: #045315 !important; }
.color-6-color { color: #d97706 !important; }
.color-7-color { color: #6b21a8 !important; }
.color-8-color { color: #0e7490 !important; }

.color-3-bg:hover { background-color: #0057ff !important; }
.color-4-bg:hover { background-color: #5e0b0b !important; }
.color-5-bg:hover { background-color: #034d11 !important; }
.color-6-bg:hover { background-color: #bb6a05 !important; }
.color-7-bg:hover { background-color: #5c1992 !important; }
.color-8-bg:hover { background-color: #0c5d72 !important; }

@media (max-width: 767.98px) {
  .hexagon-frame { width: 200px; height: 200px; }
  .hexagon-image { width: 98%; height: 98%; }
}