/* ─── Desktop Nav ───────────────────────────────────────── */
.headerBar {
  position: static;
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 300;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  padding-top: 0.75rem;
}

.headerBar > ul {
  width: 100%;
  height: 8vh;
  margin: 0;
  padding: 0 2rem;
  box-sizing: border-box;
  list-style: none;
  display: flex;
  justify-content: flex-end; /* push links to the right */
  align-items: center;
}

.headerBar a {
  height: 100%;
  padding: 0 1vw 1vw;
  text-decoration: none;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: white;
  transition: 0.3s ease;
}

.headerBar li:not(:first-child) a:hover {
  transform: scale(1.2);
}

/* Site name — pushed to the left with auto margin */
.headerBar li:first-child {
  margin-right: auto;
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: 0;
  white-space: nowrap;
}

/* Hamburger icon — hidden on desktop */
.menu-icon {
  display: none;
}

/* ─── Underline Hover Animation ─────────────────────────── */
.headerBar * {
  position: relative;
}

.headerBar *::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.headerBar a:hover::after {
  width: 100%;
  left: 0;
}


/* ─── Mobile Breakpoint ─────────────────────────────────── */
@media (max-width: 800px) {
  /* Hide nav links, show hamburger instead */
  .hideonmobile {
    display: none;
  }
  .menu-icon {
    display: flex;
  }

  /* Fix header on mobile/tablet so hamburger stays accessible while scrolling */
  .headerBar {
    position: fixed;
    top: 0;
    z-index: 400;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
  }
}
