/* NAVBAR + DRAWER (dipisah dari styles.css) */

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  background: rgba(218, 255, 43, 0);
  border-bottom: 3px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  background: #daff2b;
  border-bottom: 3px solid #000000;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-brand img,
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 769px) {
  .navbar-brand img,
  .brand-logo {
    height: 56px;
  }
}

/* ========== NAVBAR LINKS (IMPROVED STYLE) ========== */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.navbar-links a {
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  color: #222;
  transition: 0.25s ease;
}

.navbar-links a:hover {
  background: rgba(0,0,0,0.08);
  color: #000;
  transform: translateY(-1px);
}

.navbar-links a.active {
  background: #000;
  color: #daff2b;
  font-weight: 800;
  border-radius: 8px;
}

/* ========== BURGER ========== */
.navbar-burger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 140;
  position: relative;
}

@media (min-width: 1024px) {
  .navbar-inner {
    max-width: 100%;
    padding: 0.4rem 3rem;
  }
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  background: #000;
}

.burger-lines {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  position: relative;
  transition: transform 0.2s ease;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease,
    bottom 0.2s ease;
}

.burger-lines::before {
  top: -6px;
}

.burger-lines::after {
  bottom: -6px;
}

.navbar-burger.is-active .burger-lines {
  transform: rotate(45deg);
}

.navbar-burger.is-active .burger-lines::before {
  top: 0;
  transform: rotate(-90deg);
}

.navbar-burger.is-active .burger-lines::after {
  bottom: 0;
  opacity: 0;
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0.8rem 1.25rem;
  }

  .navbar-links {
    display: none;
  }

  .navbar-burger {
    display: inline-flex;
  }
}

/* ========== DRAWER + OVERLAY ========== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 110;
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 55vw;
  max-width: 320px;
  background: #daff2b;
  border-left: 3px solid #000000;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  z-index: 120;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 30%;
  align-items: center;
}

.mobile-drawer.show {
  transform: translateX(0);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.9rem;
  text-align: flex-start;
}

.mobile-drawer-nav a {
  opacity: 0.9;
  color: #000;
}

.mobile-drawer-nav a:hover {
  opacity: 1;
}

@media (min-width: 769px) {
  .drawer-overlay,
  .mobile-drawer {
    display: none;
  }
}
