/* ---------- Header / nav base ---------- */
.Box {
  z-index: 999;
  position: sticky;
  top: 0;
  padding: 28px 5%;
  width: 100%;
  position: fixed;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px var(--highlight) inset;
  background: transparent;
}



/* layout nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}


/* logo */
.logo {
  font-weight: 700;
  font-size: 2.0rem;
  /* preserved your gradient text */
  background: linear-gradient(90deg, rgb(208, 8, 8) 20%, rgb(168, 52, 52) 68%, rgb(108, 0, 0) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Menu tradicional (desktop) ---------- */
.desktop-nav ul {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  opacity: 0.8;
}

/* ---------- Botão que abre o menu1 (visível sempre) ---------- */
.menu-toggle {
  display: block;
  /* visível em todas as telas */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

/* destaque ao passar o mouse */
.menu-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Menu mobile (inicialmente escondido) ---------- */
.menu1 {
  display: none;
  /* fica escondido até .active */
  background: transparent;
  padding: 16px 0;
  margin-top: 12px;
   margin-left: 0;
  right: 5%;
  max-width: 90vw;
  border-radius: 8px;
  position: relative;
  z-index: 998;
  right: 1%;
}

.menu1 ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.menu1 a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  padding: 8px 20px;
  display: block;
}

.menu1 a:hover{
  background: linear-gradient(90deg, rgb(255, 142, 142) 20%, rgb(255, 67, 67) 68%, rgb(255, 27, 27) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1.5;
}
/* quando ativo — vira flex */
.menu1.active {
  position: fixed;
  display: flex;
  animation: fade .18s ease;
  top: 12%;
  right: 5%;
  background-color: rgb(14, 13, 13);
  opacity: 0.8;
}

nav a:hover {
  padding: 1px;
  background: linear-gradient(90deg, rgb(255, 142, 142) 20%, rgb(255, 67, 67) 68%, rgb(255, 27, 27) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1.5;
}

/* animação */
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- ADAPTAÇÕES MOBILE (max-width: 768px) ---------- */
@media (max-width: 768px) {

  body{
    overflow-x: hidden;
  }

  .Box{
    width: 100%;
    position: fixed;
  }

  .logo{
    width: 100%;
    font-size: 25px;
    margin-left: 10%;
  }

 

  /* esconder o menu tradicional no mobile (porque o menu1 será usado) */
  .desktop-nav {
    display: none;
  }

  /* menu-toggle pode ficar maior no mobile */
  .menu-toggle {
    position: relative;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 10px;
  }


  .menu1.active {
  position: fixed;
  text-align: center;
  justify-content: center;
  animation: fade .18s ease;
  top: 13%;
  opacity: 0.8;
  
}
}

@media (max-width: 500px) {




  @keyframes autoRun {
    from {
      left: 100%;
    }

    to {
      left: -450px;
    }
  }

  @keyframes reverseRun {

    from {
      left: -450px;
    }

    to {
      left: 620%;
    }
  }

 



}