/* ==============================
  HEADER
   ============================== */

/* === Variables === */
:root {
    --color-primary: #2a2e60;
    --color-secondary: #35C4F5;
    --color-white: #ffffff;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 12vh;
  background-color: var(--color-primary);
  z-index: 1000;
}

.logo {
  color: rgb(237, 236, 236);
  width: 30%;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 5px;
}

.nav-link {
  display: flex;
  width: 40%;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link li {
  list-style: none;
}

.nav-link a {
  color: rgb(237, 236, 236);
  text-decoration: none;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 15px;
}

.nav-link a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  border-radius: 1px;
  background: rgb(237, 236, 236);
  transition: width .3s;
}

.nav-link a:hover::after {
  width: 100%;
  transition: width .3s;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  margin: 5px 0 5px 0;
  border-radius: 20px;
  background-color: rgb(193, 193, 193);
  transition: all 1s ease;
}

.toggle .burger-line1 {
  transform: translate(0px, 9px) rotate(-45deg);
}

.toggle .burger-line2 {
  opacity: 0;
}

.toggle .burger-line3 {
  transform: translate(0px, -7px) rotate(45deg);
}

.nav-link li.current-menu-item a::after,
.nav-link li.current_page_item a::after {
    width: 100%;
}

.nav-link li.current-menu-item a,
.nav-link li.current_page_item a {
    color: var(--color-white);
}

.language-switcher {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.language-switcher li {
    list-style: none !important;
    display: inline-flex !important;
    align-items: center;
}

.mobile-right {
    display: none;
}

.mobile-lang {
    display: flex;
}


/* Responsive Design */
@media screen and (max-width: 1024px) {
  .nav-link {
    width: 60%;
  }
}

@media screen and (max-width: 800px) {
html, body {
    overflow-x: hidden;
    position: relative;
  }
  
  nav {
    z-index: 9999;
  }
  
  .nav-link {
    position: absolute;
    right: 0px;
    height: 90vh;
    top: 12vh;
    width: 50%; 
    max-width: 100vw; 
    overflow-y: auto;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 9998;
  }
  
  .nav-link-activated {
    transition: transform 0.5s ease-in;
    transform: translateX(0%);
    z-index: 9998;
  }
  
  .nav-link li {
    opacity: 0;
  }
  
  .burger {
    display: block;
    z-index: 9999;
  }

  .desktop-lang {
    display: none !important;
  }
    
  .mobile-right {
    display: flex;
    align-items: center;
    gap: 40px;
  }
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}
