header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4%;
  background:linear-gradient(to top, #255fe7, rgb(81, 87, 207));
  
}
/* Adiciona a transição suave */
header {
  transition: top 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1002;
}

/* Classe para esconder o header */
header.hide {
  top: -100px;
}


.logo img {
  height: 40px;
}

.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
}

/* Menu padrão para desktop */
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-family: 'Poppins', sans-serif;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  transition: background 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

/* Responsivo: Sidebar */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    background:linear-gradient(to right, #255fe7, rgb(81, 87, 207));
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    padding: 60px 20px;
    z-index: 1001;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: #fff;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
  }

  .menu-overlay.active {
    display: block;
  }
}
