nav {
  max-width: 1178px;
  width: calc(100% - 75px);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #e8ecef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 1rem;
  border: 2px solid transparent;
  box-shadow: 4px 4px 0 0 transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

nav.scrolled {
  border-color: #2e282a;
  box-shadow: 4px 4px 0 0 #2e282a;
}

#logo {
  font-size: 18px;
  font-weight: bold;
  color: #1c2b48;
  transition: letter-spacing 0.3s ease;
}

#logo:hover, #logo:active {
  letter-spacing: 0.2em;
}

nav .menu-icon {
  display: none;
  color: #2e282a;
  transition: 0.3s ease-in;
}

#nav-links {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  background: #e8ecef;
}

.contact-link,
.resume {
  font-weight: bold;
  background: #1c2b48;
  color: #e8ecef;
  border-radius: 5rem;
  border: 2px solid #2e282a;
  box-shadow: #2e282a 4px 4px 0 0;
  transition: 0.3s ease-in;
  text-transform: capitalize;
  padding: 0.5rem 1rem;
}

.contact-link:active,
.resume:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.contact-link:hover,
.resume:hover {
  background: transparent;
  color: #2e282a;
}

@media (max-width: 800px) {
  nav {
    padding: 1rem 2rem;
    width: calc(100% - 107px);
  }

  nav .menu-icon {
    display: block;
  }

  #nav-links {
    border: 2px solid #2e282a;
    border-radius: 10px;
    padding: 1rem;
    position: absolute;
    top: -500px;
    bottom: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    height: fit-content;
    transition: 0.3s ease-in;
  }

  #nav-links.active {
    top: 50px;
  }
}