@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Urbanist', sans-serif;
  background: #0e1a1a;
  color: #e0f2f1;
  transition: background 0.3s ease, color 0.3s ease;
}
body.light-mode {
  background: #ffffff;
  color: #111;
}
body.light-mode .frame {
  background: #f4f4f4;
  color: #111;
}
body.light-mode .main-header,
body.light-mode footer {
  background: #e0f7e9;
  color: #111;
}
body.light-mode nav a {
  color: #111;
}

#preloader {
  position: fixed;
  inset: 0;
  background: #0e1a1a;
  color: #81c784;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  animation: fadeOut 1s 2s forwards;
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.main-header {
  background: #1b4332;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}
nav a {
  color: white;
  text-decoration: none;
}
nav a:hover {
  color: #ffd166;
}

.search-container {
  display: flex;
  gap: 0.5rem;
}
input[type="text"] {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  background: #263238;
  color: #fff;
}
.controls {
  display: flex;
  gap: 0.5rem;
}
select,
button {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
#toggleTheme {
  background: #43a047;
  color: white;
}

.frame {
  margin: 2rem;
  padding: 2rem;
  background: #1e2e2e;
  border-radius: 16px;
  animation: fadeUp 0.6s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery-item {
  width: 160px;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-item:hover {
  transform: scale(1.05);
}
.gallery-item img {
  width: 100%;
  border-radius: 10px;
}
.video-container iframe {
  border-radius: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
textarea {
  min-height: 100px;
}
button[type="submit"] {
  background: #43a047;
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: 6px;
}
footer {
  text-align: center;
  padding: 1.5rem;
  background: #1b4332;
  color: white;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    display: none;
    width: 100%;
  }
  nav.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hamburger {
    display: block;
    margin-top: 0.5rem;
  }
  .search-container,
  .controls {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.map-frame {
  width: 100%;
  height: 300px;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 160px;          /* Atau ukuran tinggi seragam lain */
  object-fit: cover;      /* Penting: Biar gambar tetap proporsional */
  border-radius: 10px;
}
