body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
}

.hero {
  position: relative;
  height: 100vh;
  background: #00b4ff;
  overflow: hidden;
  padding-bottom: 140px;
}

.cloud {
  position: absolute;
  width: 250px;
  opacity: 0.8;
  z-index: 1;
}

.cloud1 {
  left: -80px;
  top: -90px;
}

.cloud2 {
  left: 950px;
  top: -110px;
}

.cloud3 {
  left: 400px;
  top: -70px;
}

.cloud4 {
  left: 100px;
  top: 70px;
}

.cloud5 {
  left: 800px;
  top: 30px;
}

.cloud6 {
  left: 500px;
  top: -50px;
}

.cloud7 {
  left: -250px;
  top: -10px;
}

.cloud8 {
  left: -100px;
  top: 80px;
}

.cloud9 {
  left: -220px;
  top: 200px;
}

.cloud10 {
  left: -250px;
  top: -90px;
}

.foreground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.content {
  position: absolute;
  top: 5%;
  width: 100%;
  text-align: center;
  color: white;
  z-index: 3;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.4);
}

.content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.content p {
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 20px;
}

.btn-portal {
  background: linear-gradient(45deg, #ff7f00, #ff9900);
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(255, 127, 0, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-portal:hover {
  background: linear-gradient(45deg, #ff9900, #ff7f00);
  box-shadow: 0 6px 14px rgba(255, 153, 0, 0.7);
}

.btn-portal:active {
  box-shadow: 0 2px 6px rgba(255, 127, 0, 0.4);
}

.shape-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 720px;
  height: 110px;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 55px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  gap: 20px;
  flex-wrap: nowrap;
}

.shape-container .icon-item {
  flex: 1;
  min-width: 60px;
  text-align: center;
  color: white;
  font-size: 13px;
  white-space: nowrap;
  overflow: visible;
  position: relative;
  cursor: pointer;
}

.shape-container .icon-item img {
  width: 32px;
  margin-bottom: 6px;
  filter: brightness(1) invert(0);
  pointer-events: none;
}

.shape-container .icon-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.shape-container .icon-item:hover img {
  filter: drop-shadow(0 0 6px white) brightness(1.2) invert(0);
}

.footer-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: white;
  text-align: center;
  width: 100%;
  z-index: 10;
  pointer-events: none;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* responsive design untuk styling yang sudah ada */
/* Smartphone kecil (≤480px) */
@media (max-width: 480px) {
  .shape-container .icon-item {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .shape-container .icon-item img {
    width: 24px;
  }
}

/* Smartphone & tablet kecil (≤768px) */
@media (max-width: 768px) {
  .shape-container {
    width: 90%;
    bottom: 20px;
    max-width: none;
    height: auto;
    padding: 10px 20px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .shape-container .icon-item {
    flex: 0 1 33.33%;
    font-size: 12px;
    margin-bottom: 15px;
  }
  .shape-container .icon-item img {
    width: 28px;
  }
}

/* Tablet landscape dan laptop kecil (769px–1023px) – opsional */
@media (min-width: 769px) and (max-width: 1023px) {
  .shape-container {
    width: 95%;
    bottom: 80px;
    gap: 18px;
  }
  .shape-container .icon-item {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .shape-container .icon-item img {
    width: 32px;
  }
}

/* Laptop dan desktop standar (1024px–1599px) */
@media (min-width: 1024px) and (max-width: 1599px) {
  .shape-container {
    bottom: 50px;
    gap: 20px;
  }
  .shape-container .icon-item {
    font-size: 14px;
    margin-bottom: 0px;
  }
  .shape-container .icon-item img {
    width: 36px;
  }
}

@media (min-width: 1600px) {
  .shape-container {
    bottom: 230px;
    gap: 24px;
    width: 80%;
  }

  .shape-container .icon-item {
    font-size: 16px;
    margin-bottom: 0px;
  }

  .shape-container .icon-item img {
    width: 40px;
  }
}


/* Styling untuk Modal (Panel Informasi Besar) - Ditempatkan di bagian paling bawah */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Pastikan di atas semua elemen lain */
    visibility: hidden; /* Sembunyikan secara default */
    opacity: 0; /* Mulai dengan opacity 0 untuk transisi */
    transition: visibility 0.4s ease, opacity 0.4s ease;
}

.app-modal.active {
    visibility: visible;
    opacity: 1;
}

.app-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Latar belakang gelap */
    cursor: pointer;
}

.app-modal-content {
    background-color: #f7f7f7; /* Warna latar belakang modal, sesuaikan dengan screenshot */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1001; /* Di atas overlay */
    max-width: 90%; /* Lebar maksimum modal */
    width: 1000px; /* Lebar ideal */
    max-height: 90vh; /* Tinggi maksimum modal, agar bisa discroll */
    overflow-y: auto; /* Aktifkan scrolling jika konten terlalu panjang */
    padding: 30px 40px;
    display: flex; /* Untuk menempatkan tombol close */
    flex-direction: column; /* Untuk menempatkan tombol close di atas */
}

.app-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #555;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 1002;
}

.app-modal-close-btn:hover {
    color: #000;
    transform: rotate(90deg);
}

.modal-inner-content {
    flex-grow: 1; /* Agar konten mengisi sisa ruang di modal-content */
}

.app-modal-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: none; /* Hilangkan text-shadow dari .content h1 */
}

.app-modal-content .modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
    text-transform: none; /* Hilangkan text-transform dari .content p */
    font-weight: 400;
}

.modal-columns {
    display: flex;
    flex-wrap: wrap; /* Izinkan wrap ke baris baru */
    justify-content: space-between;
    gap: 20px; /* Jarak antar kolom */
    margin-bottom: 40px;
}

.modal-col {
    flex: 1 1 23%; /* Flex-grow, flex-shrink, basis (sekitar 4 kolom) */
    min-width: 200px; /* Minimum width untuk setiap kolom */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Jarak antar link di dalam kolom */
}

.modal-col a {
    color: #007bff; /* Warna link biru */
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.modal-col a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.modal-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: none; /* Pastikan tidak ada filter dari icon-item img */
}

.modal-footer-logo div p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    text-shadow: none;
    text-transform: none;
}

.modal-footer-logo div p:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

/* Styling untuk Modal Layanan (Layanan) */
.layanan-section {
    margin-bottom: 25px; /* Jarak antar bagian */
}

.layanan-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee; /* Garis bawah untuk judul bagian */
    display: inline-block; /* Agar border-bottom hanya selebar teks */
}

.layanan-section ul {
    list-style: none; /* Hilangkan bullet point default */
    padding: 0;
    margin: 0;
}

.layanan-section ul li {
    margin-bottom: 8px;
}

.layanan-section ul li a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.layanan-section ul li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.layanan-group-columns {
    display: flex; /* Untuk membuat Layanan Publik dan Aplikasi Publik berdampingan */
    flex-wrap: wrap; /* Izinkan wrap di layar kecil */
    gap: 30px; /* Jarak antar kolom */
    margin-bottom: 30px;
}

.layanan-group-columns .layanan-section {
    flex: 1 1 45%; /* Setiap bagian mengambil sekitar 45% lebar, agar ada jarak */
    min-width: 250px; /* Lebar minimum sebelum wrap */
    margin-bottom: 0; /* Hilangkan margin bawah dari section di dalam group ini */
}

.modal-footer-message {
    background-color: #f0f8ff; /* Warna latar belakang kotak pesan (biru muda) */
    border: 1px solid #cce5ff; /* Border yang cocok */
    color: #004085; /* Warna teks */
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 30px;
}


/* Responsive untuk Modal Layanan */
@media (max-width: 768px) {
    .layanan-group-columns {
        flex-direction: column; /* Ubah menjadi satu kolom di layar kecil */
        gap: 20px;
    }
    .layanan-group-columns .layanan-section {
        flex: 1 1 100%; /* Ambil lebar penuh */
    }
}

@media (max-width: 480px) {
    .layanan-section h3 {
        font-size: 1rem;
    }
    .layanan-section ul li a {
        font-size: 0.85rem;
    }
    .modal-footer-message {
        font-size: 0.8rem;
        padding: 12px 15px;
    }
}

/* Responsive Modal */
@media (max-width: 992px) {
    .modal-columns {
        gap: 15px;
    }
    .modal-col {
        flex: 1 1 48%; /* 2 kolom untuk tablet */
    }
    .app-modal-content {
        padding: 25px 30px;
    }
    .app-modal-content h2 {
        font-size: 1.8rem;
    }
    .modal-section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .modal-columns {
        flex-direction: column; /* Satu kolom untuk mobile */
        gap: 10px;
    }
    .modal-col {
        flex: 1 1 100%;
        min-width: unset;
    }
    .app-modal-content {
        max-width: 95%;
        padding: 20px 25px;
    }
    .app-modal-content h2 {
        font-size: 1.5rem;
    }
    .app-modal-close-btn {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
    .modal-footer-logo {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .app-modal-content {
        padding: 15px 20px;
    }
    .app-modal-content h2 {
        font-size: 1.3rem;
    }
    .modal-subtitle {
        font-size: 0.85rem;
    }
    .modal-section-title {
        font-size: 1.1rem;
    }
    .modal-col a {
        font-size: 0.8rem;
    }
    .modal-footer-logo img {
        width: 40px;
        height: 40px;
    }
    .modal-footer-logo div p {
        font-size: 0.8rem;
    }
    .modal-footer-logo div p:first-child {
        font-size: 1rem;
    }
}