header {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  align-items: center;
  padding: 15px;
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

header .brand {
  display: flex;
  align-items: center;
  flex: 1;
}

header .brand img {
  width: 50px;
  margin-right: 5px;
  transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

header .brand img:hover {
  transform: rotate(360deg);
}

header .brand p {
  margin: 0;
  font-size: larger;
}

header .links {
  display: flex;
  justify-content: space-evenly;
  flex: 2.2;
}

header .links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-size: large;
  transition: color 0.2s ease;
}

header .links a:hover {
  color: rgba(255, 255, 255, 0.5);
}

header .socials {
  display: flex;
  justify-content: end;
  flex: 1;
}

header .socials a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-size: xx-large;
  transition: transform 0.3s ease;
}

header .socials a:hover {
  transform: scale(1.2) rotate(-15deg);
}

header .menu-toggle {
  display: none;
  font-size: xx-large;
}

@media screen and (max-width: 954px) {
  header .socials {
    display: none;
  }

  header .menu-toggle {
    display: block;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  header .menu-toggle:hover {
    cursor: pointer;
    transform: scale(1.2);
  }
}

@media screen and (max-width: 776px) {
  header .links {
    display: none;
  }
}

#mobile-menu {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  padding: 30px;
  border-radius: 10px;
  z-index: 1001;
  animation-name: splash-in;
  animation-duration: 0.2s;
  animation-timing-function: ease-out;
}

#mobile-menu .links {
  width: fit-content;
  display: flex;
  flex-direction: column;
}

#mobile-menu .links a {
  text-decoration: none;
  font-size: larger;
  margin: 3px;
}

#mobile-menu .socials {
  display: flex;
}

#mobile-menu .socials a {
  font-size: xx-large;
  color: rgba(255, 255, 255, 0.7);
  margin: 5px;
  transition: transform 0.3s ease;
}

#mobile-menu .socials a:hover {
  transform: scale(1.2) rotate(-15deg);
}

@keyframes splash-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

#mobile-menu .close-btn {
  color: white;
  font-size: xx-large;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#mobile-menu .close-btn:hover {
  transform: scale(1.2);
}
