/* ================= NAVBAR ================= */
.navbar {
  background-color: #151b1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 20;
  color: #b3c2cb;
}

/* Flex middle wrapper */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.nav-links li a {
  text-decoration: none;
  color: #b3c2cb;
  font-weight: 400;
  font-family: "Inria Serif", serif;

  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ccc;
}

.btn-nav {
  background: #fff;
  color: #1d262b;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.03em;
  transition: background 0.3s ease;
}

.btn-nav:hover {
  background: #ddd;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001; /* higher than .nav-links (900) */
  position: relative; /* make z-index effective */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

  .navbar {
    padding: 1rem;
  }
  .nav-center {
    flex: none;
  }

  /* .nav-links {
    position: fixed;
    top: -100%; 
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: top 0.3s ease-in-out;
    backdrop-filter: blur(12px);
  } */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    /* hide it initially */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;

    transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(21, 27, 30, 0.35);
    z-index: 900;
  }

  .nav-links.active {
    transform: translateY(0); /* slide down smoothly */
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 80%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1); /* glass button */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .mobile-book {
    display: block;
  }
  .mobile-book a {
    background: #fff !important;
    color: #151b1e !important;
    font-weight: 700;
  }

  .mobile-book a:hover {
    background: #ddd !important;
  }

  /* Hide desktop BOOK NOW */
  .desktop-book {
    display: none;
  }

  body.menu-open #main-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
  }
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger span {
  transition: all 0.3s ease;
}
