/* Base */
body {
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

.navbar {
  background: linear-gradient(to right, #28a745, #1d7a3f);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar.navbar-dark .nav-link {
  color: #fff;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.navbar.navbar-dark .nav-link:hover {
  color: #d4edda;
  transform: translateY(-2px);
}

/* Garis bawah animasi saat hover */
.navbar.navbar-dark .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #d4edda;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar.navbar-dark .nav-link:hover::after {
  width: 70%;
  left: 15%;
}

/* Brand styling */
.navbar .navbar-brand {
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar .navbar-brand:hover {
  color: #d4edda;
}

 /* Optional: Efek shadow saat scroll */
 .navbar-scrolled {
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   background-color: #0056b3 !important;
 }
  
/* Section Height */
section {
  min-height: 100vh;
  padding-top: 80px; /* offset for fixed navbar */
}

.offcanvas-header {
     background: linear-gradient(to right, #6a11cb, #2575fc);
     color: white;
 }
 .list-group-item {
     border: none;
     border-radius: 8px !important;
     margin-bottom: 8px;
     transition: all 0.3s ease;
     padding: 12px 20px;
 }
 .list-group-item:hover {
     background-color: #e9ecef;
     transform: translateX(5px);
 }
 .list-group-item i {
     width: 24px;
     text-align: center;
     margin-right: 12px;
     color: #6c757d;
 }
 .menu-divider {
     padding: 8px 16px;
     font-size: 0.8rem;
     color: #6c757d;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
 }

/* Hero Section */
.hero-section {
  height: 100vh;
  overflow: hidden;
  padding-top: 0px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 8px;
}

/* Footer */
.bg-dark-green {
  background-color: #284b26;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}