/* ===== NAVIGATION STYLES ===== */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
  background-color: #ffffff;
  z-index: 9999;
  border-bottom: 0.5px solid rgba(43, 43, 43, 0.1);
}

.nav-bar ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-bar ul li a {
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 300;
  font-size: 1rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 300;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-bar ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-bar ul li a:hover {
  color: #2b2b2b;
  transform: scale(1.05);
}

.nav-bar ul li a:hover::after {
  width: 100%;
}

.logo {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #2b2b2b;
  font-family: 'Helvetica Neue', sans-serif;
  font-variation-settings: "wght" 700;
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  background: unset;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  position: relative;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
  color: #2b2b2b;
  font-size: 1.5rem;
}

.nav-toggle:hover {
  background-color: unset;
}

.hamburger-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background-color: #2b2b2b;
  margin: 1.5px 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
  border-radius: 1px;
}

/* Transform hamburger to X when expanded */
.nav-bar.expanded .hamburger-line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-bar.expanded .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-bar.expanded .hamburger-line:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Add subtle background change when menu is open */
.nav-bar.expanded .nav-toggle {
  background-color: rgba(43, 43, 43, 0.08);
}

/* ===== MOBILE NAVIGATION (768px) ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
  }

  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 15px;
    background-color: #ffffff;
  }

  .nav-bar ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 1000;
    border-top: 0.5px solid rgba(43, 43, 43, 0.1);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .nav-bar.expanded ul {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-bar ul li a {
    color: #2b2b2b;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 400;
  }

  .logo {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Helvetica Neue', sans-serif;
    font-variation-settings: "wght" 700;
  }
}
