header {
  width: 100%;
  padding: 18px 8%;
}

#navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav_logo {
  display: block;
}

#nav_list {
  display: flex;
  list-style: none;
  gap: 48px;
  border: 1px solid #1d1d1d;
  border-radius: 23.5px;
  padding: 10px 14px;
  font-weight: 600;
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 243, 229, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

#nav_list.scrolled-menu {
  border: 1px solid transparent; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: rgba(
    255,
    243,
    229,
    0.85
  ); 
}

.nav-item a {
  text-decoration: none;
  color: #1d1d1dad;
}

.nav-item.active a {
  color: #1d1d1d;
}

#mobile_btn {
  display: none;
}

#mobile_menu {
  display: none;
}

@media screen and (max-width: 1170px) {
  #nav_list,
  #navbar .btn-default {
    display: none;
  }

  #mobile_btn {
    display: block;
    border: none;
    background-color: transparent;
    font-size: 1.5rem;
    cursor: pointer;
  }

  #mobile_menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #mobile_nav_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0px;
  }

  #mobile_nav_list .nav-item {
    list-style: none;
    text-align: center;
  }
}
