* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
}

/* =========================
   NAVBAR DI BERANDA (TETAP TRANSPARAN SESUAI GAMBAR)
========================= */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Tetap transparan dan melayang */
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.48),
    rgba(15, 23, 42, 0.08)
  ) !important;

  border: none !important;
  box-shadow: none !important;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 65px; /* Angka diperbesar dari 45px, silakan sesuaikan lagi jika kurang pas */
  height: auto;
  object-fit: contain;
}

/* Menyamakan font teks logo dengan keseluruhan web */
.logo h2 {
  color: #1f2d3d;
  font-size: 26px; /* Sedikit dibesarkan agar seimbang dengan logo */
  font-weight: 800; /* Dibuat lebih tebal */
  font-family: Arial, sans-serif; /* Menyamakan font dengan seluruh website */
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s ease;
  padding: 6px 0;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #c59b5f !important;
  font-weight: bold;
}

/* Kunci utama: Selektor harus spesifik & gunakan !important */
.nav-menu li a.active {
  color: #1f2d3d !important; /* Mengubah warna teks menjadi biru gelap pekat agar kontras di langit terang */
  font-weight: 800;
}

/* Garis bawah penanda menu aktif (biarkan tetap emas) */
.nav-menu li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #c59b5f; /* Garis bawahnya tetap emas sebagai aksen */
  border-radius: 2px;
}

.btn-navbar {
  text-decoration: none;
  background-color: #c59b5f;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-navbar:hover {
  background-color: #a67d45;
}

/* =========================
   NAVBAR KHUSUS HALAMAN LAIN (TENTANG, LAYANAN, PORTOFOLIO)
   Otomatis warna teks jadi putih cerah agar kontras di latar biru gelap
========================= */
.navbar.navbar-halaman-lain .logo h2 {
  color: #ffffff;
}

.navbar.navbar-halaman-lain .nav-menu li a {
  color: #e5e7eb;
}

.navbar.navbar-halaman-lain .nav-menu li a:hover,
.navbar.navbar-halaman-lain .nav-menu li a.active {
  color: #c59b5f !important;
}

/* =========================
   HEADER HALAMAN DALAM (TENTANG, LAYANAN, PORTOFOLIO)
========================= */
.header-layanan {
  background-color: #1f2d3d;
  color: white;
  text-align: center;
  padding: 140px 20px 70px 20px; /* Jarak pas agar teks judul tepat di bawah navbar */
}

.header-layanan p {
  color: #c59b5f;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.header-layanan h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.header-layanan span {
  color: #d8d8d8;
  font-size: 16px;
}

/* =========================
   HERO / GAMBAR TERANG & BOLD
========================= */

.logo h2 {
  color: #1f2d3d;
  font-size: 24px;
}

/* =========================
   NAVBAR & ACTIVE STATE
========================= */

.nav-menu {
  display: flex;
  list-style: none;
  gap: 80px;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s ease;
  padding: 6px 0;
  display: inline-block;
  position: relative;
}

.nav-menu li a:hover {
  color: #c59b5f;
}

/* Kunci utama: Selektor harus spesifik & gunakan !important */
.nav-menu li a.active {
  color: #c59b5f !important;
  font-weight: bold;
}

/* Garis bawah penanda menu aktif */
.nav-menu li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #c59b5f;
  border-radius: 2px;
}

/* TOMBOL NAVBAR */

.btn-navbar {
  text-decoration: none;

  background-color: #c59b5f;
  color: white;

  padding: 12px 20px;
  border-radius: 5px;

  font-size: 14px;
  transition: 0.3s;
}

.btn-navbar:hover {
  background-color: #a67d45;
}

/* =========================
   HERO / BERANDA DENGAN BACKGROUND BLUR & GAMBAR
========================= */

/* HERO SLIDER BERANDA */
.main.hero-slider {
  min-height: 100vh;
  padding: 120px 8% 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

/* Lapisan foto */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.8s ease,
    transform 4.5s ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(37, 38, 58, 0.58) 0%,
    rgba(44, 62, 100, 0.25) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Teks di atas foto */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-content > p:not(.main-subtitle) {
  color: #1f2d3d;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

/* Tombol panah */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(31, 45, 61, 0.65);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-arrow:hover {
  background: #c59b5f;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

/* Indikator foto */
.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.hero-dot.active {
  width: 26px;
  border-radius: 10px;
  background: #c59b5f;
}

@media (max-width: 768px) {
  .main.hero-slider {
    min-height: 500px;
    padding: 70px 22px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }

  .hero-arrow {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .hero-dots {
    bottom: 18px;
  }
}

.main h1 {
  color: #1f2d3d;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

/*.main-content > p:not(.main-subtitle) {
  color: #1f2d3d;  Warna biru gelap pekat agar senada dengan judul
  font-size: 17px; Sedikit dibesarkan 
  font-weight: 500;  Ditebalkan sedikit agar tidak tipis 
  line-height: 1.7;
  margin-bottom: 30px;
  text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.9); 
}*/

.main-subtitle {
  color: #c59b5f;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.hero-button {
  display: flex;
  gap: 15px;
}

.btn-utama {
  display: inline-block;

  background-color: #c59b5f;
  color: white;

  text-decoration: none;

  padding: 14px 22px;
  border-radius: 5px;

  transition: 0.3s;
}

.btn-utama:hover {
  background-color: #a67d45;
}
.btn-kedua {
  display: inline-block;
  color: #1f2d3d !important;                   /* Teks diubah jadi putih terang */
  background-color: rgba(255, 255, 255, 0.15); /* Latar belakang putih semi-transparan (efek kaca) */
  text-decoration: none;
  padding: 14px 22px;
  border: 2px solid #1f2d3d !important;        /* Garis pinggir putih tegas */
  border-radius: 5px;
  font-weight: 600;
  backdrop-filter: blur(4px);                  /* Efek buram agar objek di balik tombol tidak tembus pandang */
  transition: all 0.3s ease;
}

.btn-kedua:hover {
  background-color: #ffffff !important;        /* Saat kursor diarahkan, tombol jadi putih solid */
  color: #1f2d3d !important;                   /* Teks berubah jadi gelap menyesuaikan */
}
.tentang {
  padding: 100px 10%;
  background-color: #f8f9fa; /* Warna dasar abu-abu sangat muda */
  /* Menambahkan efek titik-titik (dot pattern) */
  background-image: radial-gradient(#d1d5db 1px, transparent 1px);
  background-size: 30px 30px; /* Jarak antar titik */
}

.tentang-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tentang-content {
  width: 100%; /* max-width 700px dihapus agar teks menyesuaikan kolom */
}
.tentang-gambar img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.section-subtitle {
  color: #c59b5f;

  font-size: 14px;
  font-weight: bold;

  text-transform: uppercase;
  letter-spacing: 2px;

  margin-bottom: 15px;
}
.tentang h2 {
  color: #1f2d3d;
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 25px; /* Memberi jarak lebih jauh antara judul dan paragraf */
}
.tentang-content p:not(.section-subtitle) {
  color: #555555;
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 16px;
}

.tentang .btn-utama {
  display: inline-block;
  margin-top: 15px;
}
@media (max-width: 768px) {
  .navbar {
    padding: 20px;
    height: auto;
    flex-wrap: wrap;
    gap: 20px;
  }
  .nav-menu {
    gap: 15px;
    flex-wrap: wrap;
  }
  .btn-navbar {
    display: none;
  }
  .main {
    min-height: 500px;
    padding: 70px 8%;
  }
  .main h1 {
    font-size: 38px;
  }
  .hero-button {
    flex-direction: column;
    align-items: flex-start;
  }
  .tentang {
    padding: 70px 8%;
  }
  .tentang h2 {
    font-size: 32px;
  }
}
.header-layanan {
  background:
    linear-gradient(rgba(69, 87, 105, 0.85), rgba(31, 45, 61, 0.85)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?q=80&w=2070&auto=format&fit=crop")
      no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 140px 20px 70px 20px;
}

.header-layanan p {
  color: #c59b5f;

  font-size: 14px;
  font-weight: bold;

  letter-spacing: 2px;

  margin-bottom: 15px;
}

.header-layanan h1 {
  font-size: 45px;

  margin-bottom: 20px;
}

.header-layanan span {
  color: #d8d8d8;

  font-size: 17px;
}
.layanan {
  padding: 100px 10%;

  background-color: #f8f8f8;
}
.layanan-container {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}
.card-layanan {
  background-color: white;

  border-radius: 10px;

  overflow: hidden;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
}
.card-layanan:hover {
  transform: translateY(-8px);
}
.card-layanan img {
  width: 100%;

  height: 220px;

  object-fit: cover;
}
.card-content {
  padding: 25px;
}
.card-content h2 {
  color: #1f2d3d;

  font-size: 22px;

  margin-bottom: 15px;
}
.card-content p {
  color: #666;

  line-height: 1.7;

  margin-bottom: 20px;
}

.btn-detail {
  display: inline-block;

  text-decoration: none;

  color: #c59b5f;

  font-weight: bold;
}
.btn-detail:hover {
  color: #1f2d3d;
}
@media (max-width: 900px) {
  .layanan-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .layanan-container {
    grid-template-columns: 1fr;
  }
  .header-layanan h1 {
    font-size: 35px;
  }
}

.detail-layanan {
  padding: 80px 8%;
}

.detail-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.detail-gambar img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 15px;
}

.detail-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #1f2937;
}

.detail-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.detail-content h3 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-content h1 {
    font-size: 32px;
  }

  .detail-gambar img {
    height: 300px;
  }
}

.tentang-detail {
  padding: 80px 10%;
  background-color: #ffffff;
  width: 100%;
}

.tentang-detail-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.tentang-profil h2 {
  color: #1f2d3d;
  font-size: 34px;
  margin-bottom: 20px;
}

.tentang-profil p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 16px;
}

.tentang-keunggulan {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-keunggulan {
  background-color: #f8f9fa;
  padding: 20px 25px;
  border-radius: 10px;
  border-left: 5px solid #c59b5f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.card-keunggulan h3 {
  color: #1f2d3d;
  font-size: 18px;
  margin-bottom: 8px;
}

.card-keunggulan p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .tentang-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.portofolio-section {
  padding: 60px 8%;
  background-color: #f8fafc;
  min-height: 500px;
}

.portofolio-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 10px 22px;
  border-radius: 30px;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #c59b5f;
  color: #ffffff;
  border-color: #c59b5f;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

/* Card Container & Grid */
.portofolio-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.card-portofolio {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-portofolio:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.portofolio-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.portofolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portofolio-content {
  padding: 22px;
}

.badge-kategori {
  display: inline-block;
  background: #fef3c7;
  color: #d97706;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.portofolio-content h3 {
  margin: 8px 0;
  color: #0f172a;
  font-size: 1.2rem;
}

.portofolio-content p {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}
.portofolio-kosong {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 2px dashed #cbd5e1;
}

.kosong-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.portofolio-kosong h3 {
  color: #1e293b;
  margin-bottom: 8px;
}

.portofolio-kosong p {
  color: #64748b;
}
.portofolio-cta {
  text-align: center;
  padding: 50px 30px;
  margin-top: 60px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.portofolio-cta h2 {
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.portofolio-cta p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.btn-ajukan {
  display: inline-block;
  padding: 14px 32px;
  background: #c59b5f;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ajukan:hover {
  background: #b45309;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
@media (max-width: 900px) {
  .portofolio-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .portofolio-container {
    grid-template-columns: 1fr;
  }
}
.form-section {
  padding: 80px 8%;
  background-color: #f8f8f8;
}

.form-container {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1f2d3d;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c59b5f;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  margin-top: 10px;
}

.alert-sukses {
  background-color: #d1fae5;
  color: #065f46;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #a7f3d0;
}

.alert-gagal {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #fecaca;
}
/* =========================================
   STYLE USER / LANDING PAGE ALA DATAPEDIA BPS
========================================= */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Utama dengan Background Foto + Overlay Gelap */
.hero-user {
  background:
    linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)),
    url("https://images.unsplash.com/photo-1541888946425-d0fbb18f2f4c?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat fixed;
  padding: 80px 20px 60px;
  text-align: center;
  color: #ffffff;
}

.hero-user h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-user h1 span {
  color: #c59b5f; /* Akses Emas */
}

.hero-user p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Grid Kartu Fitur & Layanan */
.cards-user-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: -40px auto 60px; /* Bikin kartu sedikit 'floating' menumpuk ke atas hero */
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* KARTU TRANSMISI MODERN & BORDER GLOWING */
.card-user {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efek Hover Border Emas Bercahaya & Melayang */
.card-user:hover {
  transform: translateY(-10px);
  border-color: #c59b5f; /* Border berubah emas */
  box-shadow: 0 15px 30px rgba(197, 155, 95, 0.25); /* Glow emas */
}

.card-user .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.card-user h3 {
  color: #1f2d3d;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card-user p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.btn-user-card {
  display: inline-block;
  padding: 10px 22px;
  background-color: #1f2d3d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: 0.3s;
}

.card-user:hover .btn-user-card {
  background-color: #c59b5f; /* Tombol berubah warna emas saat kartu dihover */
}

/* Efek kartu melayang dengan border glowing saat hover */
.portal-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: #c59b5f; /* Garis emas menyala */
  box-shadow: 0 12px 30px rgba(197, 155, 95, 0.25);
}

/* Class Animasi Scroll Fade-In Up */
.scroll-animate {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}
/* =========================================
   STYLE TAMBAHAN PORTAL & FORM ULASAN
========================================= */

/* Portal Card dengan Border & Shadow 
.portal-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  border-color: #c59b5f;
  box-shadow: 0 10px 25px rgba(197, 155, 95, 0.2);
}*/

/* Animasi Scroll */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}
.form-ulasan-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 600px;
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease;
}

.form-ulasan-box:hover {
  border-color: #c59b5f;
}

.form-group-user {
  margin-bottom: 18px;
}

.form-group-user input[type="text"],
.form-group-user select,
.form-group-user textarea {
  width: 100%;
  padding: 13px 16px;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1e293b;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group-user input[type="text"]:focus,
.form-group-user select:focus,
.form-group-user textarea:focus {
  background-color: #ffffff;
  border-color: #c59b5f;
  box-shadow: 0 0 0 4px rgba(197, 155, 95, 0.18);
}
#starRating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 6px;
  font-size: 2.2rem;
  color: #cbd5e1;
}

#starRating input {
  display: none;
}

#starRating label {
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}

#starRating label:hover {
  transform: scale(1.15);
}

#starRating input:checked ~ label,
#starRating label:hover,
#starRating label:hover ~ label {
  color: #f59e0b;
}

/* Tombol Kirim Ulasan */
.btn-kirim-ulasan {
  width: 100%;
  padding: 14px;
  background-color: #c59b5f;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(197, 155, 95, 0.25);
}

.btn-kirim-ulasan:hover {
  background-color: #a67d45;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 95, 0.35);
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

/* Tablet dan HP */
@media screen and (max-width: 768px) {
  /* NAVBAR: susun logo dan menu secara vertikal */
  .navbar {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    background: #ffffff !important;
    box-sizing: border-box;
  }
  .navbar.navbar-halaman-lain {
    background: #1f2d3d !important;
  }

  .logo {
    width: 100%;
    max-width: 100%;
    gap: 10px;
    min-width: 0;
  }

  .logo img {
    width: 48px;
    height: auto;
    flex-shrink: 0;
  }

  .logo h2 {
    font-size: 19px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  /* Menu ditampilkan rapi ke bawah */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .nav-menu li {
    width: 100%;
    list-style: none;
    border-top: 1px solid #e5e7eb;
  }

  .navbar.navbar-halaman-lain .nav-menu li {
    border-top-color: rgba(255, 255, 255, 0.15);
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .nav-menu li a.active::after {
    width: 35px;
    bottom: 4px;
  }

  .btn-navbar {
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .main {
    width: 100%;
    min-height: 480px;
    padding: 65px 22px;
    box-sizing: border-box;
  }

  /*.main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }*/

  .main h1 {
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  /*.main-content > p:not(.main-subtitle) {
    font-size: 16px;
    line-height: 1.7;
  }*/

  .main-subtitle {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .hero-button {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-button a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
  }
  .scroll-animate > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    box-sizing: border-box;
  }
  /* Slider berita */
  #sliderContainer {
    width: 100%;
    height: 420px !important;
    min-width: 0;
  }

  .news-slide {
    padding: 22px !important;
    box-sizing: border-box;
  }

  .news-slide h3 {
    font-size: 1.15rem !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
  }

  .news-slide p {
    font-size: 0.85rem !important;
    line-height: 1.5;
  }

  .news-slide a {
    max-width: 100%;
    white-space: normal;
    box-sizing: border-box;
    line-height: 1.5;
  }

  .tentang-detail {
    padding: 50px 22px;
    box-sizing: border-box;
  }

  .tentang-detail-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    width: 100%;
  }

  .tentang-profil h2 {
    font-size: 27px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  /* Bagian layanan dan portofolio */
  .layanan {
    padding: 45px 20px;
  }

  .layanan-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .portofolio-section {
    padding: 40px 20px;
  }

  .portofolio-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .portofolio-cta {
    padding: 30px 20px;
  }

  .portofolio-cta h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  /* Form agar tidak melewati batas layar */
  .form-section {
    padding: 40px 18px;
  }

  .form-container {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
    box-sizing: border-box;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  .header-layanan {
    padding: 55px 20px 45px;
    box-sizing: border-box;
  }

  .header-layanan h1 {
    font-size: clamp(27px, 7vw, 35px);
    line-height: 1.3;
    overflow-wrap: break-word;
  }

  .header-layanan span {
    display: block;
    font-size: 15px;
    line-height: 1.7;
  }
}

/* HP kecil */
@media screen and (max-width: 480px) {
  .navbar {
    padding: 12px 15px;
  }

  .logo img {
    width: 42px;
  }

  .logo h2 {
    font-size: 17px;
  }

  .main {
    padding: 50px 18px;
  }

  .main h1 {
    font-size: 28px;
  }

  #sliderContainer {
    height: 450px !important;
  }

  .scroll-animate > div[style*="grid-template-columns"] {
    gap: 20px !important;
  }

  /*.portal-card {
    padding: 20px;
    min-width: 0;
    overflow-wrap: break-word;
  }*/

  .form-container {
    padding: 20px 15px;
  }
}

/* POPUP ULASAN */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  animation: popupFadeIn 0.25s ease;
}

.popup-box {
  width: 100%;
  max-width: 420px;
  padding: 32px 25px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: popupSlideIn 0.3s ease;
}

.popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  font-size: 38px;
  font-weight: bold;
}

.popup-icon.sukses {
  color: #15803d;
  background: #dcfce7;
}

.popup-icon.gagal {
  color: #b91c1c;
  background: #fee2e2;
}

.popup-box h2 {
  margin: 0 0 12px;
  color: #1e293b;
  font-size: 23px;
  line-height: 1.4;
}

.popup-box p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.popup-box .popup-caption {
  font-size: 13px;
}

.popup-button {
  width: 100%;
  margin-top: 15px;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: #d97706;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-button:hover {
  background: #b45309;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .popup-box {
    padding: 28px 20px;
  }

  .popup-box h2 {
    font-size: 21px;
  }
}

/* NAVBAR BERANDA: TRANSPARAN DAN TETAP JELAS */
.navbar:not(.navbar-halaman-lain) .nav-menu li a {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.navbar:not(.navbar-halaman-lain) .nav-menu li a:hover,
.navbar:not(.navbar-halaman-lain) .nav-menu li a.active {
  color: #f2bd70 !important;
  font-weight: 700;
}

.navbar:not(.navbar-halaman-lain) .nav-menu li a.active::after {
  background-color: #f2bd70;
}

.navbar:not(.navbar-halaman-lain) .logo h2 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.navbar:not(.navbar-halaman-lain) .btn-navbar {
  background: #c99e5f;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar:not(.navbar-halaman-lain) .btn-navbar:hover {
  background: #e0b575;
  color: #1f2d3d !important;
}
