/* Navbar Styling */
header {
  width: 100%;
  position: relative;
}

.navbar {
  position: fixed;
  top: -80px;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  z-index: 999;
  transition: top 0.5s ease;
}

@media only screen and (min-width: 1024px) {
  .navbar.desktop-only {
    display: flex;
    justify-content: space-between;

    .menu-items {
      display: flex;
      flex: 1;
      justify-content: center;
      align-items: center;
      gap: 3rem;
      min-height: 60px;

      li {
        a {
          font-size: var(--font-size-m);
          font-weight: 400;
        }
      }
    }

    .navbar-logo {
      margin-right: 25px;
    }
  }
}

/* Navbar */
.navbar.not-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}

.navbar.show {
  top: 0; /* Show the navbar after scroll */
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.line {
  width: 100%;
  height: 4px;
  background-color: var(--primary-color-dark);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Logo */
.navbar-logo {
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;

  img {
    width: 225px;
  }
}

/* Overlay (Burger menu) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  text-align: center;
}

.overlay.open {
  display: flex;
}

.menu-items {
  list-style: none;
  padding: 0;
}

.menu-items li {
  margin: 20px 0;
}

.menu-items a {
  text-decoration: none;
  color: var(--primary-color-dark);
  font-size: 24px;
  font-weight: bold;
}

/* Close Button */
.close {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 40px;
  color: var(--primary-color-dark);
  cursor: pointer;
}

/* Burger menu to cross animation */
.burger.open .line:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.burger.open .line:nth-child(2) {
  opacity: 0;
}

.burger.open .line:nth-child(3) {
  transform: rotate(-45deg);
  top: -10px;
}

/* Main content styling */
.content {
  padding: 20px;
  background-color: lightgray;
  min-height: 2000px;
  text-align: center;
}
