/* ================= GLOBAL ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #000;
  color: #fff;
  font-weight: 400;
}

/* ================= HEADER ================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  z-index: 100000;

  padding: 18px 0;

  background: transparent;

  transition: all 0.35s ease;
}

/* Hover / Scroll / Menu Open = Putih */
.header:hover,
.header.scrolled,
.header.menu-open {
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* Garis biru bawah */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, #1e3a8a, #2563eb, #1e40af);

  opacity: 0;
  transition: 0.3s;
}

/* Aktif */
.header:hover::after,
.header.scrolled::after,
.header.menu-open::after {
  opacity: 1;
}

/* Hide scroll */
.header.hide {
  transform: translateY(-120%);
}

/* ================= CONTAINER ================= */

.container {
  width: 90%;
  max-width: 1320px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= LOGO ================= */

.logo {
  z-index: 100001;
}

.logo img {
  height: 68px;

  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));

  transition: 0.3s;
}

.header:hover .logo img,
.header.scrolled .logo img,
.header.menu-open .logo img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  align-items: center;
  gap: 26px;
}

/* ================= NAV LINK ================= */

.navbar a {
  color: #ffffff;
  text-decoration: none;

  font-size: 15px;
  font-weight: 500;

  position: relative;
  padding: 6px 2px;

  transition: 0.25s;
}

/* Text jadi hitam */
.header:hover .navbar a,
.header.scrolled .navbar a,
.header.menu-open .navbar a {
  color: #111111;
}

/* ================= GOLD UNDERLINE ================= */

.navbar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;

  width: 0;
  height: 2px;

  background: linear-gradient(
    90deg,
    #b8860b,
    #d4af37,
    #f4d03f,
    #d4af37,
    #b8860b
  );

  transform: translateX(-50%);
  transition: width 0.3s ease;
}

/* Hover / Active */
.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* ================= HAMBURGER ================= */

.hamburger {
  display: none;

  width: 32px;
  height: 24px;

  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
  z-index: 100001;
}

.hamburger span {
  width: 100%;
  height: 3px;

  background: #ffffff;
  border-radius: 3px;

  transition: 0.3s;
}

/* Warna adaptif */
.header:hover .hamburger span,
.header.scrolled .hamburger span,
.header.menu-open .hamburger span {
  background: #1f2933;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Navbar fullscreen */
  .navbar {
    position: fixed;

    top: 78px;
    left: 0;

    width: 100%;
    height: calc(100vh - 78px);

    background: #ffffff;

    flex-direction: column;
    align-items: center;

    padding-top: 25px;

    opacity: 0;
    pointer-events: none;

    transition: 0.35s ease;

    z-index: 99999;
  }

  /* Active menu */
  .navbar.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile link */
  .navbar a {
    width: 100%;
    text-align: center;

    color: #1f2933;

    font-size: 18px;
    font-weight: 600;

    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .navbar a:hover {
    background: #f1f5f9;
    color: #b8860b;
  }

  /* Gold underline mobile */
  .navbar a::after {
    bottom: 6px;
  }

  .navbar a:hover::after,
  .navbar a.active::after {
    width: 35%;
  }

  /* Hamburger anim */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 600px) {
  .container {
    width: 92%;
  }

  .logo img {
    height: 69px;
  }
}
