header {
  background: #f0f0f0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  position: relative;
  
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 100px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #000;
  font-size: 18px;
}


.hamburger {
  width: 32px;
  cursor: pointer;
  display: none; /* hidden on desktop */
  flex-direction: column;
  gap: 6px;
  z-index: 1003; /* above overlay */
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Desktop menu */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  color: black;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.menu li a:hover {
  background: #999;
}

/* ======================
   MOBILE STYLES
====================== */
@media (max-width: 768px) {
    
    header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 10px;
    font-size: 16px;
  }
    
  .hamburger {
    display: flex; /* show hamburger */
  }

  /* Hide desktop menu initially */
  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    flex-direction: column;
    background: #999;
    padding-top: 60px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1003;
  }

  .menu li {
    border-bottom: 1px solid #000;
  }

  .menu li a {
    color: black;
    display: block;
    text-align: left;
    padding: 1rem;
  }

  .menu li a:hover {
    background: #444;
  }

  .menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1002;
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hide desktop flex */
  .menu {
    display: flex;
    flex-direction: column;
  }
}