/* ====== UNIVERSAL HEADER FOR ALL PAGES ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(3, 15, 35, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
}

/* Brand (Logo + Text) */
header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .brand img {
  height: 70px;
  width: 70px;
  border-radius: 14px;
  object-fit: cover;
}

header h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

header h1 span {
  color: #3b82f6;
}

/* Navigation Menu */
nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 4px;
  transition: 0.25s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #3b82f6;
  transition: width 0.25s;
}

nav a:hover {
  color: #ffffff;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 22px;
  justify-content: space-between;
}

.menu-toggle span {
  height: 3px;
  background: #ffffff;
  border-radius: 999px;
  transition: 0.25s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive */
@media (max-width: 900px) {
  header {
    padding: 10px 16px;
  }

  header .brand img {
    height: 56px;
    width: 56px;
  }

  header h1 {
    font-size: 20px;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(3, 15, 35, 0.97);
    text-align: center;
    padding: 16px 0 22px;
    position: absolute;
    top: 72px;
    left: 0;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
