body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* === FIXED NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050; /* pastikan di atas carousel & overlay */
  background-color: #252275 !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

/* Efek bayangan ketika scroll */
.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  background-color: #1f1d65 !important;
}
.navbar-brand img {
  height: 35px;
}
.navbar-brand, .navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
}
.navbar-nav .nav-link:hover {
  color: #f5a207 !important;
}

/* === ACTIVE LINK === */
.navbar-nav .nav-link.active {
  color: #f5a207 !important;
  border-bottom: 3px solid #f5a207;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.navbar-toggler { border: none; }
.navbar-toggler-icon { filter: invert(100%); }

/* === OVERLAY MENU MOBILE === */
.menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #252275;
  transition: right 0.4s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 30px 30px;
}
.menu-overlay.show { right: 0; }
.menu-overlay .close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
}
.menu-overlay ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.menu-overlay ul li { margin-bottom: 1.5rem; }
.menu-overlay ul li a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}
.menu-overlay ul li a:hover { color: #ffe5b4; }
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 15px;
}
.submenu.show { max-height: 300px; }
.submenu li a { font-size: 1.2rem; }
@media (min-width: 992px) { .menu-overlay { display: none !important; } }

/* === SLIDER === */
.carousel-item img {
  height: clamp(280px, 60vh, 550px);
  min-height: 200px;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 768px) {
  .carousel-item img { height: clamp(200px, 50vh, 300px); }
  .carousel-caption {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 10px 15px;
  }
}

/* === GALLERY === */
.gallery .card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
}
.gallery .card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}
.gallery .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.gallery .card img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .gallery .card img { height: 200px; }
}
.btn-warning {
  background-color: #f5a207;
  border: none;
}
.btn-warning:hover {
  background-color: #e59400;
  color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

/* === FOOTER === */
footer {
  background-color: #212529;
  color: #ddd;
  padding: 40px 0;
  margin-top: 50px;
}
footer p { margin: 0; font-size: 0.9rem; }
