/* GLOBAL VARIABLES */
:root {
  --bg-color: #080a0c;
  --primary: #00d4ff;
  --accent: #00ffaa;
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
  --navbar-bg: rgba(8, 10, 12, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* NAVBAR STRUCTURE */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  position: fixed;
  width: 100%;
  top: 0;
  background: var(--navbar-bg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- PERBAIKAN LOGO --- */
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem; /* Sedikit dikecilkan agar teks panjang tidak overload */
  font-weight: 700;
  z-index: 1100;
  white-space: nowrap;
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center; /* Menjaga logo & teks sejajar tengah secara vertikal */
}

/* Style khusus untuk file gambar logo */
.logo-img {
  height: 35px; /* Sesuaikan tinggi logo Anda */
  width: auto;
  margin-right: 12px;
  object-fit: contain;
}

.logo span {
  color: var(--primary);
}

/* --- NAV LINKS --- */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.9rem;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1100;
}

/* RESPONSIVE BREAKPOINT 1024px */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px 5%;
  }

  .logo {
    font-size: 1.1rem; /* Mengecilkan teks logo sedikit di mobile */
  }

  .logo-img {
    height: 30px; /* Logo sedikit lebih kecil di mobile */
  }

  .menu-toggle {
    display: block;
  }

  .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background: var(--text-main);
    transition: 0.4s;
  }

  /* Hamburger Animation */
  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--primary);
  }
  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--primary);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(8, 10, 12, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1050;
    gap: 25px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
    transition: 0.4s ease forwards;
  }

  /* Staggered Delay */
  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .nav-links li a {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
  }
}
