﻿/* Fixed header, desktop menu, and mobile menu trigger base styles. */

nav,
footer {
  position: relative;
  display: flex;
  justify-content: center;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  align-items: center;
  padding: 0 40px;
  background:
    linear-gradient(
      180deg,
      rgba(5, 7, 11, 0.9) 0%,
      rgba(5, 7, 11, 0.86) 12%,
      rgba(5, 7, 11, 0.78) 25%,
      rgba(5, 7, 11, 0.66) 38%,
      rgba(5, 7, 11, 0.52) 50%,
      rgba(5, 7, 11, 0.39) 63%,
      rgba(5, 7, 11, 0.28) 75%,
      rgba(5, 7, 11, 0.2) 88%,
      rgba(5, 7, 11, 0.16) 100%
    );
  box-shadow: none;
}

nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.16) 0%, rgba(5, 7, 11, 0.08) 42%, rgba(5, 7, 11, 0) 100%);
  pointer-events: none;
}

nav .wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  max-width: 1200px;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-left: -20px;
}

.nav-logo img {
  width: auto;
  height: 40px;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav .menu {
  display: flex;
  gap: 2rem;
}

nav .menu-item {
  position: relative;
}

nav .menu-item::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background-color: var(--color-main);
  transition: width 0.2s ease;
}

nav .menu-item:hover::after {
  width: 100%;
}

nav .menu-item a {
  display: block;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  color: #f0c674;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

nav .menu-item a:hover {
  background: #f0c67433;
  color: #fff;
}

.toggler {
  display: none;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
