/* ==== HEADER PRINCIPAL ==== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg1);
  box-shadow: 0 1px 0 var(--hover2);
  padding: 0 20px;
}

/* ==== LOGO ==== */
.logo-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-texto {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.dev { color: var(--cr); font-size: 32px; font-weight: bold; font-family: var(--font-bold); line-height: 1; }
.imags { color: var(--hover); font-size: 32px; font-weight: bold; font-family: var(--font-bold); line-height: 1; }

.slogan {
  font-family: var(--font-main);
  font-size: 10px;
  color: var(--cr1);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ==== NAVEGAÇÃO E LINKS ATIVOS ==== */
nav {
  background: var(--bg);
  padding: 10px 20px;
  border-radius: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

/* Link Normal */
nav ul li a {
  color: var(--cr1);
  font-family: var(--font-main);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
  border-left: 2px solid transparent; /* Espaço reservado para a borda ativa */
}

/* Link Ativo (Página Atual) */
nav ul li a.ativo {
  color: var(--hover) !important;
  background: var(--hover2) !important;
  border-left: 2px solid var(--hover) !important;
  font-weight: bold;
}

/* Hover apenas em quem NÃO é o ativo */
nav ul li a:not(.ativo):hover {
  color: var(--hover);
  background: var(--hover2);
}

/* ==== BOTÃO CTA LADO DIREITO ==== */
.header-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cr1);
  text-decoration: none;
  font-size: 14px;
}

.header-cta img {
  background-color: var(--bg2);
  border-radius: 50%;
  padding: 8px;
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.header-cta a:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* ==== HAMBURGUER (MOBILE) ==== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--cr);
  transition: 0.3s;
}

.hamburger.ativo span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.ativo span:nth-child(2) { opacity: 0; }
.hamburger.ativo span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==== MEDIA QUERY MOBILE ==== */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  #nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg1);
    flex-direction: column;
    padding: 20px;
  }
  #nav-menu.aberto { display: flex; }
  nav ul { flex-direction: column; }
}

