/* ===============================
   GLOBAL RESET (ANTI MELEBAR)
=============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
}
/* ===============================
   NAVBAR FIXED & RESPONSIVE
=============================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;

  background: linear-gradient(90deg, #123524, #3E7B27);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.9rem 20px;

  display: flex;
  align-items: center;
}

/* Logo */
.navbar-logo img {
  height: 55px;
}

/* MENU */
.navbar-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 40px;   /* jarak dari logo */
}

/* PUSH ICON KE KANAN */
.navbar-icon {
  margin-left: auto;   /* INI YANG PENTING */
  display: flex;
  align-items: center;
  gap: 18px;
}



/* Menu Desktop */
.navbar-nav {
  display: flex;
  gap: 1.2rem;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: wrap;
}


.navbar-nav a {
  color: #EFE3C2;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.navbar-nav a:hover {
  color: #FFD700;
}

/* Right Side */
.navbar-icon {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Login Icon */
.login-icon {
  color: #EFE3C2;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s;
}

.login-icon:hover {
  color: #FFD700;
}

/* Hamburger */
#menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #EFE3C2;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 992px) {

  .navbar-nav {
    display: none;
  }

  #menu {
    display: block;
  }

  .login-icon {
    display: none;
  }
}

/* ===============================
   SIDEBAR DROPDOWN FROM TOP
=============================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;

  background: #123524;
  padding: 100px 30px 40px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  transform: translateY(-100%);
  transition: transform 0.4s ease;

  z-index: 9998;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Saat aktif */
.sidebar.show {
  transform: translateY(0);
}

/* Link */
.sidebar a {
  color: #EFE3C2;
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.sidebar a:hover {
  color: #FFD700;
  transform: translateX(8px);
}
/* Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;
  z-index: 9997;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}
.sidebar.show a {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown 0.4s forwards;
}

.sidebar.show a:nth-child(1) { animation-delay: 0.1s; }
.sidebar.show a:nth-child(2) { animation-delay: 0.2s; }
.sidebar.show a:nth-child(3) { animation-delay: 0.3s; }
.sidebar.show a:nth-child(4) { animation-delay: 0.4s; }
.sidebar.show a:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}