.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  transition: all 0.6s ease;
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled a {
  color: var(--gray-dark);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transition-delay: 0.2s;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    color: #fff;
    padding: 1rem;
    display: block;
  }

  .nav-links a::after {
    height: 1px;
    background-color: #fff;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav.scrolled .bar {
    background-color: var(--gray-dark);
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Adiciona delay na animação de cada item do menu */
  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links li:nth-child(6) {
    transition-delay: 0.6s;
  }
  .nav-links li:nth-child(7) {
    transition-delay: 0.7s;
  }

  /* Ajusta o menu quando scrollado */
  .main-nav.scrolled .nav-links a {
    color: #fff;
  }

  .main-nav.scrolled .nav-links a::after {
    background-color: #fff;
  }
}
