header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86),
    box-shadow 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  z-index: 9999;
}

.top-sticky-container {
  position: sticky;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
  transition: padding 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  height: 90px;
  font-family: "Montserrat", "serif";
}

.logo {
  width: auto;
  height: 110px;
  background: none;
  transition: all 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  opacity: 0;
  margin-top: 35px;
}

.logo.appear {
  animation: logoReveal 0.8s ease 0.1s forwards;
}
@keyframes logoReveal {
  from {
    transform: translateX(-300px);
    opacity: 1;
  }
  to {
    transform: translateX(0px);
    opacity: 1;
  }
}

.spacer {
  flex-grow: 1;
}

.nav-links {
  display: flex;
  gap: 45px;
  transition: all 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transform: translateY(-5px);
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links a {
  text-decoration: none;
  position: relative;
  padding-bottom: 7px;
  transition: all 0.3s ease-in-out;
  transform: translateY(-100px);
}

.nav-links.appear a {
  animation: navReveal 0.7s ease forwards;
}
.nav-links.appear a:nth-child(1) {
  animation-delay: 0s;
}
.nav-links.appear a:nth-child(2) {
  animation-delay: 0.1s;
}
.nav-links.appear a:nth-child(3) {
  animation-delay: 0.2s;
}
.nav-links.appear a:nth-child(4) {
  animation-delay: 0.3s;
}
.nav-links.appear a:nth-child(5) {
  animation-delay: 0.4s;
}
.nav-links.appear a:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes navReveal {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0px);
  }
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: black;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Shrink on scroll */
header.shrink .container {
  padding: 3px 120px;
}
header.shrink {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 90px;
}

header.shrink .logo {
  width: auto;
  height: 81px;
  margin-top: 0px;
}

header.shrink .nav-links {
  transform: translateY(0px);
}

.fade-in {
  opacity: 1;
}

/* Shrink on scroll */
header.shrink .container {
  padding: 3px 120px;
}
header.shrink {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header.shrink .logo {
  width: auto;
  height: 81px;
}

header.shrink .nav-links {
  transform: translateY(0px);
}

@media (max-width: 900px) {
  header {
    display: none;
  }
}
