.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-menu a.nav-active {
  color: #a259ff;
  background-image: linear-gradient(#a259ff, #a259ff);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.nav-menu.hide-during-search {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-menu a.nav-contactButton {
  background-color: #478df7;
  color: #fff;
  font-weight: 600;
  z-index: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

/* Border wash layer */
.nav-menu a.nav-contactButton::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Transparent background wash */
.nav-menu a.nav-contactButton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  transition: left 0.4s ease;
  z-index: -2;
}

/* Hover effects */
.nav-menu a.nav-contactButton:hover {
  background-color: transparent;
  border-color: #a259ff;
}

.nav-menu a.nav-contactButton:hover::before {
  opacity: 1;
}

.nav-menu a.nav-contactButton:hover::after {
  left: 0;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 870px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: rgba(18, 18, 18, 0.95);
    padding: 2rem 1rem;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    font-size: 1.25rem;
    padding: 1rem 0;
    text-align: center;
    width: auto;
  }

  .nav-contactButton {
    padding: 0.75rem 1.5rem;
    width: auto;
    margin-top: 1rem;
  }

  .hamburger {
    display: flex;
    margin-right: 2rem;
  }
}
