nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 100;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);
  border-bottom: 0.1rem solid rgba(23, 28, 30, 0.08);
  box-shadow: var(--shadow-nav, 0 1.2rem 3.2rem rgba(23, 28, 30, 0.06));
}

nav ul {
  list-style: none;
  column-gap: 0.5rem;
  position: relative;
  z-index: 2;
}

nav ul li a {
  font-size: 1.6rem;
  color: var(--color-dark, #171c1e);
  font-weight: 600;
  font-family: var(--font-heading, inherit);
  padding: 1rem;
  white-space: nowrap;
  border-radius: 0.6rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav ul li a:hover {
  background: rgba(23, 28, 30, 0.08);
  color: var(--color-dark, #171c1e);
}

#logo img {
  height: 6rem;
  margin-right: 0.5rem;
}

#logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  z-index: 1;
  margin-top: 1%;
}

#logo .logo-title {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  font-size: 2.7rem;
}

#logo-bg {
  width: 47rem;
  position: absolute;
  left: 0;
  height: 140%;
  background: linear-gradient(
    135deg,
    var(--color-dark, #171c1e) 0%,
    var(--color-dark-soft, #2a3236) 100%
  );
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  box-shadow: 0.4rem 0.8rem 2rem rgba(23, 28, 30, 0.25);
}

#navbar-contact {
  column-gap: 2rem;
}

nav ul li:last-child a {
  background: linear-gradient(
    135deg,
    var(--color-accent, #ef7c00),
    var(--color-accent-hover, #d96e00)
  );
  color: var(--color-surface, #fff);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-left: 2rem;
  padding-right: 2rem;
  box-shadow: 0 0.4rem 1.4rem rgba(239, 124, 0, 0.35);
}

nav ul li:last-child a:hover {
  border-radius: 0;
  transform: scale(1.02);
  box-shadow: 0 0.6rem 2rem rgba(239, 124, 0, 0.45);
}

#hamburger-button {
  display: none;
}

.hamburger-stick {
  width: 4rem;
  height: 0.3rem;
  background: #ef7c00;
  margin-bottom: 0.8rem;
  position: relative;
  right: 0;
  transition: all 0.3s ease;
}

.hamburger-stick:last-child {
  margin-bottom: 0;
}

#mobile-navbar {
  position: fixed;
  z-index: 100;
  top: 8rem;
  right: -100%;
  background: #171c1e;
  /* background: linear-gradient(225deg,#fd9e38,#f5c592); */
  width: 100%;
  font-size: 1.8rem;
  border-top: 0.2rem solid #ef7c00;
  list-style: none;
  transition: all 0.3s ease;
  box-shadow: 1rem 1rem 1rem #171c1e52;
}

#mobile-navbar a {
  padding: 2rem 0;
  display: inline-block;
  width: 100%;
  font-weight: bold;
  color: white;
  border-bottom: 0.2rem solid #c26400;
}

#mobile-navbar li:last-child a {
  border: none;
}

@media screen and (max-width: 1500px) {
  nav ul {
    column-gap: 0.2rem;
  }

  nav ul li a {
    padding: 0.8rem 0.6rem;
    font-size: 1.5rem;
  }

  nav ul li:last-child {
    margin-left: 0;
  }

  nav ul li:last-child a {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

@media screen and (max-width: 1300px) {
  nav ul li a {
    padding: 0.6rem 0.4rem;
  }

  nav ul li:last-child a {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media screen and (max-width: 1200px) {
  nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #logo {
    margin-top: 0;
    color: var(--color-dark, #171c1e);
  }

  #logo-bg {
    display: none;
  }

  nav ul {
    display: none !important;
  }

  #hamburger-button {
    display: flex;
    position: relative;
  }

  #hamburger-button.mobile .hamburger-stick:nth-child(2) {
    right: -200px;
  }

  #hamburger-button.mobile .hamburger-stick:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 0;
  }

  #hamburger-button.mobile .hamburger-stick:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 0;
  }

  #mobile-navbar.mobile {
    right: 0;
  }
}
