/* HEADER */
header {
  background: #151515;
  position: relative; /* alterar para fixed no mobile */
  z-index: 1000;
  width: 100%;
}

header img {
  margin-left: 10px;
  max-width: 150px;
}

/* Layout do header */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

/* Menu padrão desktop */
.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Hamburger escondido no desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 2000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

/* Mobile */
@media (max-width: 768px) {

  header {
    position: fixed; /* faz o header ficar fixo no topo */
    top: 0;
    left: 0;
    z-index: 2000;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: #151515;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .menu.active {
    transform: translateX(0);
  }

  .menu a {
    font-size: 42px;
    text-decoration: underline;
  }

  .hamburger {
    display: flex;
  }

  /* Animação para virar X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
