nav {
  background: var(--primary-color-gradient);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 8px 50px;
  justify-content: flex-start;
  gap: 10rem;
  opacity: 1;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  gap: 20px;
}

.logo img {
  height: 250px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  text-align: center;
  transition: background-color 0.3s;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.nav-links a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 1000px) {
  nav {
    gap: 60px;
  }

  .nav-links a {
    font-size: 1.8rem;
  }
}

@media (max-width: 1050px) {
  nav {
    gap: 40px;
  }
}

@media (max-width: 950px) {
  .nav-links a {
    font-size: 1.5rem;
  }

  nav {
    gap: 40px;
  }
}

@media (max-width: 880px) {
  nav {
    gap: 20px;
    padding: 20px;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin-left: auto;
  align-items: center;
  z-index: 1000;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

@media (max-width: 750px) {
  .nav-links {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: var(--primary-color-gradient);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.4s ease;
  }

  nav {
    padding: 8px 50px;
  }

  .nav-links.active {
    opacity: 1;
    max-height: 400px;
    visibility: visible;
    padding: 20px 0;
  }

  .hamburger {
    display: flex;
  }

  nav {
    gap: 10px;
    justify-content: space-between;
  }
}

@media (max-width: 500px) {
  .logo img {
    height: 200px;
  }
}

@media (max-width: 400px) {

  .logo img {
    height: 100px;
  }

}

.hamburger i {
  color: white;
  font-size: 2.5rem;
}

.hamburger.open i {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 2px 5px;
}

.nav-links {
  z-index: 999;
}

nav.menu-open {
  background: var(--primary-color-gradient) !important;
  z-index: 999;
}


