* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-family: 'Poppins', sans-serif;
  background: #1a1919;
  height: 8vh;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
}

.nav__logo img {
  height: 30px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-list li a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 20px;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fea700;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.nav-list li a:hover {
  color: #fea700;
}

.nav-list li a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

.mobile-menu div {
  width: 32px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: 0.4s;
}

/* Responsivo */
@media (max-width: 999px) {
  .nav-list {
    position: absolute;
    top: 8vh;
    right: 20px;
    width: 70vw;
    height: auto;
    background: #2c2c35;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 24px;
    border-radius: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
    box-shadow: -5px 10px 20px rgba(0, 0, 0, 0.5);
  }

  .nav-list.active {
    transform: translateX(0);
  }

  .nav-list li {
    opacity: 0;
    transform: translateX(30px);
    animation: navLinkFade 0.5s ease forwards;
    width: 100%;
    text-align: center;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s ease;
  }

  .nav-list li a:hover {
    background-color: #fea700;
    color: #1a1a1d;
  }

  .nav-list.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-list.active li:nth-child(2) { animation-delay: 0.2s; }
  .nav-list.active li:nth-child(3) { animation-delay: 0.3s; }
  .nav-list.active li:nth-child(4) { animation-delay: 0.4s; }
  .nav-list.active li:nth-child(5) { animation-delay: 0.5s; }
  .nav-list.active li:nth-child(6) { animation-delay: 0.6s; }

  .mobile-menu {
    display: block;
    z-index: 11;
  }

  .mobile-menu div {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .mobile-menu.active .line1 {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  .mobile-menu.active .line2 {
    opacity: 0;
  }

  .mobile-menu.active .line3 {
    transform: rotate(45deg) translate(-6px, -6px);
  }
}


@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
