.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo-text {
  letter-spacing: 1px;
}

.logo-x {
  color: var(--secondary-color);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}
.navbar.scrolled .nav-links a {
    color: var(--dark-color);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:not(.btn):after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover:after,
.nav-links a.active:not(.btn):after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-btn {
  margin-left: 15px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 1001;
}

.menu-toggle:focus {
  outline: none;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 15px 0;
  }

  .nav-btn {
    margin-left: 0;
    margin-top: 20px;
  }
}
@media (max-width: 576px) {
  .nav-links {
    width: 100%;
  }
  
  .logo {
    font-size: 1.5rem;
  }
}