@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  padding-top: 60px;
}

/* ============================================
   NAVBAR
============================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  width: 100%;
  padding: 0 48px;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* ========== BRAND ========== */
nav .navbar-brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

nav .navbar-brand a img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

nav .navbar-brand a p {
  font-family: "League Spartan", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 1px;
}

nav .navbar-brand a p span {
  color: #f0ad21;
}

/* ========== MENU ========== */
nav .navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav .navbar-menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

nav .navbar-menu li a:hover {
  background: #f0ad21;
  color: #1a1a2e;
}

/* Active menu (opsional, tambahkan class active di PHP) */
nav .navbar-menu li a.active {
  background: #f0ad21;
  color: #1a1a2e;
}

/* ========== HAMBURGER ========== */
nav .navbar-hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

nav .navbar-hamburger i {
  font-size: 1.5rem;
  color: #1a1a2e;
  transition: all 0.3s ease;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   NAVBAR - MOBILE VERSION (≤ 768px)
============================================ */
@media screen and (max-width: 768px) {
  nav {
    padding: 0 20px;
    height: 60px;
  }

  nav .navbar-brand a img {
    width: 35px;
    height: 35px;
  }

  nav .navbar-brand a p {
    font-size: 1rem;
  }

  /* Tampilkan hamburger */
  nav .navbar-hamburger {
    display: block;
  }

  /* Menu Mobile - FULL HEIGHT (nyentuh bawah) */
  nav .navbar-menu {
    position: fixed;
    top: 60px; /* Mulai dari bawah navbar */
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px); /* Full height sampai bawah */
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start; /* Menu dari atas */
    gap: 8px;
    padding: 20px 20px;
    margin: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto; /* Scroll jika konten kelebihan */
  }

  /* Menu saat aktif */
  nav .navbar-menu.active {
    right: 0;
  }

  nav .navbar-menu li {
    width: 100%;
    list-style: none;
  }

  nav .navbar-menu li a {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    transition: all 0.2s ease;
  }

  nav .navbar-menu li a:hover,
  nav .navbar-menu li a.active {
    background: #f0ad21;
    color: #1a1a2e;
  }

  /* Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ========== DESKTOP LARGE ========== */
@media screen and (min-width: 1400px) {
  nav {
    padding: 0 80px;
  }
}
