#header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 120px;
  padding: 0 1rem;
  box-sizing: border-box;
}

#logo {
  height: 100%;
  display: flex;
  align-items: center;
}

#logo img {
  height: 100%;
  width: auto;
  max-height: 100px;
}

#menuExpander {
  display: none;
  position: relative;
  width: 45px;
  height: 45px;
  cursor: pointer;
}

#menuExpander .bar {
  position: absolute;
  display: block;
  width: 35px;
  left: 5px;
  height: 5px;
  background: black;
  border-radius: 2px;
  transition: all 0.4s ease;
}

#highBar { top: 8px; }
#midBar1 { top: 18px; transform-origin: 50% 50%; }
#midBar2 { top: 18px; transform-origin: 50% 50%; }
#lowBar  { top: 28px; }

.midBar1Morph { transform: rotateZ(45deg); }
.midBar2Morph { transform: rotateZ(-45deg); }
.hide { opacity: 0; }

#menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu li {
  font-size: 1rem;
}

#menu a {
  text-decoration: none;
  color: black;
  transition: color 0.3s;
}

#menu li:hover a {
  color: #007bff;
}

/* Mobile Menu */
@media (max-width: 768px) {
  #header {
    height: 80px;
  }

  #logo img {
    max-height: 60px;
  }

  #menuExpander {
    display: block;
  }

  #menu {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: #f2f2f2;
    transform: rotateY(90deg);
    transform-origin: 100% 50%;
    transition: transform 0.4s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    z-index: 100;
  }

  .menuExpand {
    transform: rotateY(0deg) !important;
  }

  #menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ccc;
    font-size: 1.1rem;
    padding: 1rem 0;
  }

  #menu li:hover {
    background: #c3e3ff;
    box-shadow: inset 0 2px 4px lightgreen;
    text-shadow: 1px 1px 3px lightblue;
  }
}
