/* header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 2000;
    padding: 15px 30px;
}
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#logoHeader {
    width: clamp(50px, 3vw, 80px);
    display: block;
}

#menuIcon {
    width: clamp(40px, 3vw, 50px);
    height: clamp(30px, 3vw, 40px);
    cursor: pointer;
    margin-top: clamp(18px, 3vw, 25px);
}

/* ------------------------------------------------------------- */
/* menu */
#menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 250px;
  height: 100%;
  background-image: linear-gradient(to right, rgb(159, 0, 0), rgb(255, 58, 58));
  box-shadow: 5px 0 20px rgba(0,0,0,0.2);
  font-family: 'assistant', sans-serif;
  padding: 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.4s ease , opacity 0.4s ease;
  opacity: 0;
  z-index: 2000;
}

@media (max-width: 768px) {
    #menu {
        width: 50%;
     }
   }

#menu.open {
  right: 0;
  opacity: 1;
}

#menu .menu-button {
  display: block;
  background-image: linear-gradient(to right, rgb(132, 0, 0), rgb(238, 27, 27));
  color: white;
  text-decoration: none;
  padding: 15px 18px;
  border-radius: 25px;
  text-align: center;
  font-size: clamp(16px, 3vw, 16px);
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
}

#menu .menu-button:hover {
  background: rgb(129, 129, 129);
  color: white;
  font-weight: 500;
  transform: scale(1.05);
}

#menu #closeBtn {
  background: transparent;
  color: white;
  font-size: 20px;
  font-weight: bold;
  align-self: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
}