.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100vw;
  background-color: rgba(238, 238, 238, 0.7);
  display: flex;
  justify-content: center;
  z-index: 20;
  transition: all ease-in-out 0.3s;
  backdrop-filter: blur(5px);
}

.navbar-scrolled {
  background-color: #fff;
  top: 15px;
  width: 70vw;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 8px 8px 24px 0px rgba(255, 255, 255, 1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  width: 50vw;
  margin: auto;
}

.logo {
  width: 70px;
}

.navbar-btn-container {
  display: flex;
  justify-content: center;
}

.desktop-nav {
  display: flex;
  justify-content: space-between;
  margin: auto;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
}

.mobile-nav {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: -100vh;
  left: 0;
  z-index: 19;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  background-color: #eee;
  padding: 80px 30px 20px 30px;
  transition: all ease-in-out 0.4s;
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-nav-change {
  top: 0;
}

.mobile-nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  padding: 0;
}

.nav-link {
  color: #333;
  text-decoration: none;
  margin-right: 40px;
  transition: all ease-in-out 0.3s;
}

.nav-link:hover {
  color: #999;
}

.language-btn {
  cursor: pointer;
  background: none;
  border: none;
  margin-right: 20px;
  transition: all ease-in-out 0.3s;
}

.language-btn:hover {
  opacity: 0.5;
}

.navbar-btn {
  cursor: pointer;
  display: none;
  margin: auto;
}

.bar1,
.bar2,
.bar3 {
  width: 17px;
  height: 2.5px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 6px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -5px) rotate(45deg);
}

@media only screen and (max-width: 1200px) {
  .navbar-container {
    width: 90%;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none;
  }

  .navbar-btn {
    display: block;
  }

  .navbar-scrolled {
    width: 90vw;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 767px) {
  .navbar-scrolled {
    width: 95%;
    top: 15px;
  }

  .mobile-nav > ul:first-child {
    margin-bottom: 40px;
    margin-top: 0;
  }

  .mobile-nav > ul:last-child {
    position: static;
    padding: 10px 0;
    margin-top: 0;
  }

  .mobile-nav .nav-link {
    padding: 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .mobile-nav .language-btn {
    margin-right: 0;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #fff;
  }
}

@media only screen and (max-width: 425px) {
  .logo {
    width: 60px;
  }
}
