/* NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: max(1rem, var(--sat)) max(3.5%, var(--sar)) 1rem max(3.5%, var(--sal));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glow);
  transition: var(--transition-haunted);
}

header.scrolled {
  padding: max(0.75rem, var(--sat)) max(3.5%, var(--sar)) 0.75rem max(3.5%, var(--sal));
  background: var(--pure-black);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  min-width: 0;
  flex-shrink: 0;
}

.logo-container img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--halloween-primary);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

header h1 {
  color: var(--halloween-vivid);
  text-shadow: 0 0 12px rgba(255, 179, 71, 0.4);
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.35vw, 1.35rem);
  letter-spacing: 0.5px;
}

nav {
  flex-shrink: 0;
  min-width: 0;
}

nav ul {
  display: flex;
  gap: clamp(0.6rem, 1.1vw, 1.25rem);
  list-style: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--ghostly-white);
  font-size: clamp(0.64rem, 0.76vw, 0.72rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-haunted);
  position: relative;
  font-weight: 600;
  white-space: nowrap;
}

nav a:hover {
  color: var(--halloween-vivid);
  text-shadow: 0 0 18px var(--halloween-primary);
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--halloween-vivid);
  transition: var(--transition-premium);
}

nav a:hover::after {
  width: 100%;
}
