.header {
  padding: 40px;
  margin: 0 auto;
  justify-content: space-between;
  display: flex;
  align-items: center;
  background: var(--color-5);
  z-index: 30;
}
.header .logo {
  font-size: 2rem;
  line-height: 40px;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.menu a {
  font-size: 1.125rem;
  line-height: 1.3;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-1);
  position: relative;
}
.menu a::before,
.footer-contato a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 1px;
    background-color: #212121;
    transition: all 0.5s ease;
    transform: scale(0);
}
.menu a:hover::before,
.footer-contato a:hover::before {
    transform: scale(1);
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-1);
  transition: all 0.3s ease;
}
.mobile {
  display: none;
}

/*Navegação
**********************************************/
.navbar > .container {
  padding: 0 15px;
}
.navbar .navbar-brand {
  font-size: 30px;
  color: #fff;
  font-weight: 500;
  text-transform: capitalize;
  position: relative;
}
.navbar .navbar-brand i {
  font-size: 15px;
  position: absolute;
  top: 8px;
}
.navbar .nav-item {
  margin-left: 40px;
}
.navbar .nav-item .nav-link {
  font-size: 16px;
  color: #fff;
  text-transform: capitalize;
  font-weight: 400;
  padding: 5px 0;
  position: relative;
}
.navbar .nav-item .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  background-color: #fff;
  transition: all 0.5s ease;
  transform: scale(0);
}
.navbar .nav-item .nav-link.active::before,
.navbar .nav-item .nav-link:hover::before {
  transform: scale(1);
}


@media (max-width: 800px) {
  .header {
    gap: 40px;
    padding: 20px;
    background-color: var(--branco);
    color: var(--preto);
    position: sticky;
    top: 0;
  }
  .header a {
    border-radius: 4px;
    color: var(--color-1);
  }
  .header .logo {
  font-size: 1.5rem;
  line-height: 40px;
}
  .menu a::before {
    background-color: var(--color-1);
  }
  .mobile {
      display: block;
      float: right;
  }
  .mobile.active .bar:nth-child(2) {
      opacity: 0;
  }
  .mobile.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
  }
  .mobile.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
  }
  .menu {
      position: fixed;
      top: -100%;
      left: 0;
      gap: 0;
      border-radius: 0 0 20px 20px;
      background-color: var(--branco);
      text-align: center;
      flex-direction: column;
      width: 100%;
      transition: .4s;
  }
  .menu li {
      margin: 16px 0;
  }
  .menu.active {
      top: 10px;
  }
}
/******************************************************************************/

.header .logo {
  font-size: 2rem;
  line-height: 40px;
  font-weight: 800;
  background: var(--gradiente-texto);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.menu a {
  font-size: 1.125rem;
  line-height: 1.3;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-1);
  position: relative;
  transition: all 0.3s ease;
  border-radius: var(--borda-arredondada);
}

.menu a:hover {
  background: rgba(120, 87, 254, 0.1);
}

.menu a::before,
.footer-contato a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 1px;
    background-color: #212121;
    transition: all 0.5s ease;
    transform: scale(0);
}

.menu a:hover::before,
.footer-contato a:hover::before {
    transform: scale(1);
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-1);
  transition: all 0.3s ease;
}

/* Botão de idioma */
.language-switcher {
  margin-left: 20px;
  padding: 8px 12px;
  border: none;
  border-radius: var(--borda-arredondada);
  background: rgba(120, 87, 254, 0.1);
  color: var(--main-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-switcher:hover {
  background: rgba(120, 87, 254, 0.2);
}

.mobile {
  display: none;
}

@media (max-width: 800px) {
  .header {
    gap: 20px;
    padding: 15px 20px;
    background-color: var(--branco);
    color: var(--preto);
    position: sticky;
    top: 0;
  }
  
  .header a {
    border-radius: 4px;
    color: var(--color-1);
  }
  
  .header .logo {
    font-size: 1.5rem;
    line-height: 40px;
  }
  
  .menu a::before {
    background-color: var(--color-1);
  }
  
  .mobile {
    display: block;
    float: right;
  }
  
  .mobile.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .menu {
    position: fixed;
    top: -100%;
    left: 0;
    gap: 0;
    border-radius: 0 0 20px 20px;
    background-color: var(--branco);
    text-align: center;
    flex-direction: column;
    width: 100%;
    transition: .4s;
  }
  
  .menu li {
    margin: 16px 0;
  }
  
  .menu.active {
    top: 70px;
  }
  
  .language-switcher {
    margin-left: auto;
    margin-right: 15px;
  }
}