:root {
  --primary-color: #00AEEF;
  --primary-color-dark: #0090c5;
  --black-color: #121212;
  --black-color-light: #212121;
  --white-color: #ffffff;
  --header-height: 80px;
  --font-semi-bold: 600;
}



/*=============== NAVBAR PRINCIPAL ===============*/
.navbar {
  background-color: var(--black-color);
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}


.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  marker-start: none;
  padding: 0 2rem;
  height: var(--header-height);
}


/* Efeito de navbar menor ao rolar página */
.navbar-scrolled {
  --header-height: 70px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/*=============== LOGO ===============*/

.logo-container {
  display: flex;
  align-items: center;
  height: 50px;
  margin-right: 20px;
}

.navbar-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white-color);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease;
  line-height: 1; /* Garante alinhamento vertical consistente */
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 35px; /* Ajustando altura para melhor proporção */
  width: auto; /* Mantém proporção */
  filter: brightness(1.2); /* Ajuste sutil no brilho */
  transition: transform 0.3s ease, filter 0.3s ease;
}


.navbar-logo:hover {
  transform: scale(1.05);
}

/*=============== MENU DE NAVEGAÇÃO ===============*/
.nav-menu-container {
  margin-left: auto;
  margin-right: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
}


.nav__list {
  display: flex;
  column-gap: 1.5rem;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  text-decoration: none;
  padding: 10px 5px;
  display: block;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0; /* Garante que a largura se ajuste ao conteúdo */
  width: 0; /* Começa com largura zero */
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  margin: 0 auto; /* Centraliza a linha sob o texto */
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after,
.active .nav-link::after {
  width: 100%; /* Expande para ocupar 100% da largura do texto */
}

.active .nav-link {
  color: var(--primary-color);
}

/* Correção do dropdown para evitar vazamento */
.dropdown__menu {
  position: absolute;
  left: 50%; /* Centraliza o menu em relação ao item pai */
  transform: translateX(-50%) translateY(10px); /* Centraliza horizontalmente e aplica o deslocamento vertical */
  top: 100%;
  background-color: var(--black-color-light);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  min-width: 250px;
  width: auto; /* Ajusta automaticamente à largura do conteúdo */
  padding: 10px 0;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.dropdown__item:hover .dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px); /* Mantém centralizado ao aparecer */
}

.dropdown__link {
  display: block;
  padding: 10px 15px;
  color: var(--white-color);
  transition: all 0.3s;
  white-space: nowrap; /* Previne quebra de linha */
  text-decoration: none;
  font-size: 0.95rem;
  overflow: hidden; /* Esconde conteúdo que ultrapassa os limites */
  text-overflow: ellipsis; /* Adiciona reticências se o texto for muito longo */
}

/* Garantir que o link do dropdown não vaze */
.dropdown-item {
  width: 100%;
}

/* Correção para os itens ativos no dropdown */
.dropdown__menu .dropdown-item.active .dropdown__link {
  background-color: rgba(0, 174, 239, 0.15);
  color: var(--primary-color);
}

/*=============== DARK MODE TOGGLE ===============*/

.switch {
  margin-right: 20px; /* Espaço aumentado */
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  top: 5px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFD700;
  transition: .4s;
  border-radius: 25px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}



/*=============== BOTÃO DE CONTATO ===============*/
.botao-contato {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.botao-contato i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.botao-contato:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 174, 239, 0.4);
}

/*=============== BOTÃO MOBILE ===============*/
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background: var(--white-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animação do botão hamburguer */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 1rem;
  }
  
  .nav-menu-container {
    margin-right: 1rem;
  }
  
  .botao-contato {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }
  
  .nav-menu-container {
    display: none;
  }
  
  .botao-contato {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* Menu mobile */
  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--black-color);
    padding: 2rem;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .mobile-menu .nav-item {
    width: 100%;
  }
  
  .mobile-menu .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
  }
  
  .mobile-menu .dropdown__menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    box-shadow: none;
    padding: 10px 0 10px 20px;
    margin-top: 10px;
    background: transparent;
  }
  
  .mobile-menu .dropdown__item.active .dropdown__menu {
    display: block;
  }
  
  .mobile-menu .botao-contato {
    display: flex;
    margin-top: 2rem;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  :root {
    --header-height: 70px;
  }
  
  .navbar-logo {
    height: 40px;
  }
  
  .switch {
    width: 45px;
    height: 22px;
    margin-right: 10px;
  }
  
  .slider:before {
    height: 16px;
    width: 16px;
  }
  
  input:checked + .slider:before {
    transform: translateX(22px);
  }
}


/* CSS adicional para adicionar ao seu arquivo de estilos */

/* Melhorando indicador de item ativo */
.nav-item.active .nav-link {
  color: #00aeef;
  font-weight: 700;
}

.nav-item.active .nav-link::after {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Adicionando espaço para os ícones */
.nav-link i {
  margin-right: 6px;
  font-size: 0.95rem;
}

.dropdown__link i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Animações de hover aprimoradas */
.nav-link {
  transition: all 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link:hover i {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Animação suave para itens dropdown */
.dropdown__link {
  transition: all 0.25s ease-in-out;
}

.dropdown__link:hover {
  background-color: rgba(0, 174, 239, 0.1);
  padding-left: 20px;
  color: var(--primary-color);
}

.dropdown__menu {
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Garantir que o FontAwesome esteja carregado */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');


/*=============== LOGO ===============*/
.logo-container {
  display: flex;
  align-items: center;
  height: 50px; /* Altura fixa para o container */
  margin-right: 20px; /* Espaço à direita */
}

.navbar-logo-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white-color);
  font-family: 'Poppins';
  text-decoration: auto;
  letter-spacing: 1.5px;
  transition: transform 0.3s ease;
}

.navbar-logo-text span {
  color: var(--primary-color);
}



.navbar-logo-text:hover {
  transform: scale(1.05);
}

