.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: #333;
  position: relative;
  height: 60px;
  border-bottom-left-radius: 30%;
  border-bottom-right-radius: 30%;
}

/* Nav items */
.nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Space for last item (language) on desktop */
@media (min-width: 1025px) {
  .nav li:last-child {
    margin-left: 2rem;
  }
}

.nav a {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  display: block;
  border-radius: 12px;
  transition: background-color 0.3s;
}

.nav a:hover {
  background-color: #555;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  display: block;
  transition: 0.4s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px,6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px,-6px);
}

/* -------------------- Mobile -------------------- */
@media (max-width: 1024px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 12px 12px;
    z-index: 5;
  }

  .nav.show {
    max-height: 500px;
  }

  .nav li:last-child {
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
    color: #fff;
  }

  /* Keep language selector outside hamburger */
  .nav-wrapper {
    justify-content: space-between;
  }
}

/* Remove extra margin from nav items in general */
.nav li {
  margin: 0;
}


