nav {
  position: fixed;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 80px;
  background-color: var(--background-white);
  z-index: 999;
}

.menu-items {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style-type: none;
  font-family: var(--font-regular);
  font-size: 24px;
}

.menu-items .menu-item::after, .menu-items .menu-item.active::after {
  position: absolute;
  content: "";
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gray);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s;
}
.menu-items .menu-item:hover::after, .menu-items .menu-item.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-items .menu-item,
.menu-items .menu-item:visited {
  color: var(--color-gray);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  position: relative;
  display: block;
  padding: 4px 0;
}

.menu-items .menu-item:hover {
  color: var(--accent-color-active);
}

.logo {
  width: auto;
  height: 100%;
}

.dropbtn {
  cursor: pointer;
  font-family: var(--font-regular);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
}

.contact-dropdown:hover .dropbtn {
  background-color: var(--accent-color-active);
}

.contact-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  flex-direction: column;
  padding: 5px 5px 0;
  position: absolute;
  right: 0;
  border: 2px solid var(--border-gray);
  background-color: var(--background-white);
  min-width: 320px;
  z-index: 99;
  border-radius: 5px;
}

.dropdown-content .contact-item {
  color: var(--color-gray);
  padding: 10px 20px;
  text-decoration: none;
  display: flex;
  gap: 20px;
  font-size: 24px;
  border-radius: 5px;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.dropdown-content .contact-item:hover {
  background-color: #ddd;
  color: black;
}

.contact-dropdown:hover .dropdown-content {
  display: block;
}

.contact-dropdown:hover .dropbtn {
  background-color: var(--accent-color);
}

@media only screen and (max-width: 1100px) {
  nav {
    padding: 30px 30px;
  }
  .menu-items {
    gap: 15px;
    font-size: 18px;
  }
}

@media only screen and (max-width: 800px) {
  nav {
    display: none;
  }
  .dropdown {
    margin-right: 20px;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dropdown-content {
  display: none; /* Start hidden */
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 1;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown .language-wrapper,
.dropdown .language-wrapper:visited {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--color-gray);
  font-family: var(--font-regular);
  text-decoration: none;
}
