.header-area {
  height: 100px;
}

header {
  position: fixed;
  width: 100vw;
  height: 100px;
  padding: 0 2rem;
  gap: 2rem;
  z-index: 100;
  transition: 0.5s ease;
  isolation: isolate;
  background: #fff;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu_area {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop_only {
  display: flex;
}

.nav_center {
  gap: 2rem;
}

.auth_right {
  display: flex;
  gap: 1rem;
}

.mobile_only,
.mobile_menu {
  display: none;
}

.hamburger svg {
  font-size: 2rem;
}

.overlay {
  position: fixed;
  top: 100px;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1;
}

.overlay.active {
    display: block;
}


/* menu */
.nav_menu {
  display: flex;
  gap: 2rem;
  border-radius: 30px;
  padding: 1rem 3rem;
  list-style: none;
  margin: 0;
}

.nav_menu a {
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

.nav_menu a:hover {
  color: #09BFE3;
  transition: 0.2s ease;
}


/* authbutton */
.auth_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.auth_buttons button {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
}

.auth_buttons .signup {
    background: #09BFE3;
    border: none;
}

.signup:hover {
    background-color: #eee;
    transition: 0.2s ease-in;
}

.auth_buttons .login {
    background: #eee;
    border: none;
}

.login:hover {
    background: #09BFE3;
    transition: 0.2s ease-in;
}

@media (max-width: 960px) {
  .desktop_only {
    display: none;
  }

  .mobile_only {
    display: block;
    cursor: pointer;
    z-index: 11;
  }

  .mobile_menu {
    flex-direction: column;
    position: absolute;
    top: 100px;
    right: 0;
    width: 50%;
    background: #fff;
    border-radius: 0 0 0 20px;
    padding: 2rem;
    z-index: 10;
  }

  .mobile_menu.open {
    display: flex;
    padding: 1rem;
    max-height: 100vh;
  }

  /* menu */
  .nav_menu {
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
  }

  .nav_menu a:hover {
    text-decoration: underline #09BFE3;
    width: 100%;
    text-align: center;
    transition: 0.2s ease;
  }


  .auth_buttons {
    display: flex;
    flex-direction: column;
  }

  .auth_buttons button {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .menu-area {
    display: flex;
    justify-content: space-between;
  }

  .menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav_menu {
    gap: 1rem;
  }
}