/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  line-height: 1.6;
}

/* Navbar Container */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
}

/* Ajuste no CSS para transição de altura e opacidade */
.navbar {
  width: 90%;
  background: inherit !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  backdrop-filter: blur(15px) !important;
  flex-direction: row;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  /* background: linear-gradient(90deg, rgb(128 128 128 / 40%), rgb(145 91 0 / 40%)); */
  border-radius: 100px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgb(195 195 195 / 50%);
  transition: max-height 0.5s ease, padding 0.5s ease;
  max-width: 1280px;
  margin: auto;
  max-height: 80px;
  overflow: hidden;
}

/* Navbar expanded */
.navbar.expanded {
  max-height: 400px;
  padding: 25px 20px;
}

/* Navbar Logo */
.logo {
  margin: auto;
  flex: 1;
  /* Faz a logo ocupar o máximo de espaço possível à esquerda */
  display: flex;
  justify-content: flex-start;
}

.logo img {
  max-height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  opacity: 1;
  pointer-events: auto;
  flex-direction: row;
  /* Alinha horizontalmente em telas grandes */
  margin: 0;
  padding: 0;
  flex: 2;
  /* Permite que os links ocupem o espaço disponível entre a logo e o menu */
  justify-content: center;
  /* Centraliza os itens de navegação */
}

.nav-links li {
  cursor: pointer;
  margin: 0 10px;
  /* Espaçamento horizontal entre itens */
  text-align: center;
  white-space: nowrap;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  /* padding: 10px 0; */
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #FF8C00;
  transform: translateY(-3px);
  /* Efeito sutil ao passar o mouse */
}

/* Transição para o menu-icon */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  /* Centraliza as barras */
  margin: auto;
  /* Alinha o ícone à direita em dispositivos móveis */
}

.menu-icon .bar {
  height: 2px;
  width: 20px;
  background-color: #ffffff;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.menu-icon.open {
  width: 50px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Ajustes de centralização para simetria */
.menu-icon.open .bar {
  position: absolute;
  /* Garante que as barras sejam posicionadas relativas ao contêiner */
  width: 25px;
  /* Garante que o "X" tenha o mesmo comprimento nos dois eixos */
}


.menu-icon.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(-4px, -4px);
}

.menu-icon.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.container-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

/* Layout para telas grandes */
@media screen and (max-width: 769px) {
  .menu-icon {
    display: none;
  }


  .nav-links a {
    font-size: 2rem !important;
  }

  /* .navbar {
      padding: 10px 40px; 
      flex-direction: row;
  }

  .nav-links {
      display: flex;
      flex-direction: row;
      justify-content: center; 
  }

  .nav-links li {
      margin: 5px 0;
  } */

  .menu-icon {
    display: none;
    /* Oculta o ícone do menu em telas grandes */
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: none;
  }

  .navbar {
    flex-direction: column;
    border-radius: 30px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    /* margin-top: 20px; */
    width: 100%;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
  }

  .navbar.expanded .nav-links {
    display: flex;
  }

  .menu-icon {
    display: flex;
    align-items: center;
  }
}
