header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1%;
  height: 65px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  button {
    background-color: black;
    display: flex;
    padding: 0px 15px;
    justify-content: space-around;
    align-items: center;
    height: 45px;
    width: 150px;
    color: white;
    border-radius: 10px;
    font-size: larger;
    font-weight: 500;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    &:hover {
      transform: scale(1.02);
      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.7);
      cursor: pointer;
      color: rgba(255, 255, 255, 0.8);
    }
  }
}

.logo-wrapper {
  display: flex;
  align-items: center;
  min-width: 135px;
  justify-content: space-between;
  cursor: pointer;
  p {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: sans-serif;
  }
}

.nav-links {
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  width: 540px;
  justify-content: space-between;
  a {
    position: relative;
    padding: 15px;
    text-decoration: none;
    color: black;
    &::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: black;
      transform-origin: bottom right;
      transform: scaleX(0);
      transition: transform 0.3s ease-in-out;
    }
    &:hover::after {
      transform-origin: bottom left;
      transform: scaleX(1);
    }
  }
}

.burger-menu {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin: 10px;
  border: 0.2px rgba(0, 0, 0, 0.2) solid;
  .material-symbols-outlined {
    cursor: pointer;
    transition: transform 0.5s ease;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 5px;
    background-color: #ffffff;
    border-top: 5px solid black;
    border-bottom: 5px solid black;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.5s ease;
    overflow: hidden;
    animation: slideIn 1s;
    a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px;
      text-decoration: none;
      font-size: 1.2rem;
      position: relative;
      &:hover {
        background-color: #00000020;
      }
      span {
        margin-left: 10px;
      }
    }
  }
  &.open {
    .material-symbols-outlined {
      transform: rotate(90deg);
    }
    .mobile-nav {
      transform: scaleY(1);
    }
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-250px);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .burger-menu {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nav-links {
    display: none;
  }
  header button {
    display: none !important;
  }
}

.lang-cv-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select {
  margin-left: 5px;
  position: relative;
  display: inline-block;
  &:hover {
    transform: scale(1.03);
  }
}

.dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 35px;
  border: 1px solid #ccc;
  background-color: #000000b2;
  z-index: 1;
  border-radius: 15px;
}

.dropdown-options div {
  padding: 8px;
  cursor: pointer;
  &:hover {
    transform: scale(1.2);
  }
}

.selected-option {
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  border: 1px solid #ccc;
}

.custom-select:hover .dropdown-options {
  display: block;
}
