* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
}

/* Navbar */
nav {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem;
  position: fixed;
  top: 0;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  background: hsl(263, 88%, 36%);
  padding: 10px 0;
  color: white;
}

.container {
  width: 85%;
  margin: auto;
}

.navbar-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* supaya logo & menu tidak bertumpuk */
  max-width: 12000px; /* batas lebar */
  margin: 0 auto; /* biar rata tengah */
  padding: 0 20px;
}

.menu {
  display: flex;
  flex-direction: row; /* selalu horizontal */
  flex-wrap: wrap; /* biar tidak keluar layar di HP */
  gap: 15px;
  list-style: none;
  margin: 0;
}

.menu li {
  display: inline-block;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}

.menu a:hover {
  background: #fea10d;
  color: black;
}

/* Tombol menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  left: 50%; /* geser ke tengah horizontal */
  top: 50%; /* geser ke tengah vertikal */
  transform: translate(-50%, -50%); /* pas tengah 100% */
}

/* Responsive: perkecil jarak di layar kecil */
@media (max-width: 768px) {
  .menu {
    display: none; /* disembunyikan */
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px; /* turun dikit dari navbar */
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    margin: 0;
    width: 200px; /* kotak menu */
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15); /* 🎨 kotak ungu */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .menu.aktif {
    display: flex; /* tampil saat ditekan */
    max-height: 300px; /* buka menu dengan animasi */
  }

  .menu-toggle {
    display: block; /* icon muncul */
  }
  .menu li a {
    text-decoration: none;
    color: black; /* 🖋 tulisan hitam */
    font-weight: bold;
    display: block;
    padding: 8px 15px;
    text-align: center;
  }
}

/* Logo */
.logo-kiri,
.logo-kanan {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 50%;
}
/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode .navbar {
  background-color: #222;
}

.dark-mode footer {
  background-color: #111;
}

.dark-mode a {
  color: #9ecbff;
}

/* Dark Mode */
.mode-container {
  position: fixed; /* selalu nempel layar */
  top: 15px; /* jarak dari atas */
  right: 20px; /* jarak dari kanan */
  z-index: 10000; /* biar di atas elemen lain */
}

.mode-container button {
  padding: 10px 20px; /* lebih besar */
  background: #0509f5;
  color: white;
  border: none;
  border-radius: 8px; /* sudut lebih halus */
  cursor: pointer;
  font-size: 1rem; /* font sedikit lebih besar */
  font-weight: bold; /* lebih tegas */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease; /* animasi halus */
}

.mode-container button:hover {
  background: #01070d;
  transform: scale(1.05); /* efek membesar saat hover */
}

/* Hero */
/* Gambar Geser*/
.slider {
  height: 100vh; /* full tinggi layar */
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Gambar di dalam slider */
.slide {
  position: relative; /* jadi acuan teks */
  width: 100%;
  height: 100vh; /* selalu penuh 1 layar */
  flex-shrink: 0;
}

.slides img {
  width: 100%;
  height: 100vh;
  object-fit: cover; /* biar gambar proporsional penuh */
}
/* Tulisan di slider */
.teks-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 20px;
}

.teks-banner h1 {
  font-size: 3rem;
  margin: 0 0 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.teks-banner p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}
/* Hero */
.hero {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
}

/* Klikk */
.btn-add-cart {
  background: hsl(263, 88%, 36%);
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
}
.btn-add-cart:hover {
  background: #010201;
}

/* Profil dan Sejarah */
/* Profil Desa */
.Profil p {
  padding: 5%;
  margin: 0;
  text-align: justify;
}
.judul-web {
  text-align: center;
  margin: 30px 0;
  font-size: 2.5rem;
  color: hsl(263, 88%, 36%);
}
/* Daftar kepala desa */
.content-section {
  padding: 20px;
}
.content-section h3 {
  text-align: center;
}

.content-section ol,
.content-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.kepala-desa li {
  margin-bottom: 5px;
}

/* Lokasi */
.lokasisempu iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 30px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  margin: 10px;
  min-width: 200px;
}

.footer-section h4 {
  margin-bottom: 10px;
  color: #fea10d;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 5px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: white;
}

.social-icons img {
  margin: 5px;
}

.copyright {
  text-align: center;
  padding-top: 10px;
  font-size: 0.9rem;
  border-top: 1px solid #555;
}
