.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  grid-area: header;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 60px;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
  z-index: -1;
  width: calc(100%);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.pc-nav,
.pri-nav,
.mob-nav-grid {
  display: none;
}

.mob-nav-grid {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 4rem 2rem 2rem;
  gap: 8px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-size: cover;
  background-position: center;
  overflow-y: auto;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  will-change: transform;
}

.mob-nav-grid::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7));
  z-index: -1;
  width: 100%;
  height: 100vh;
}

.mob-link {
  position: relative;
  color: #ececec;
  text-decoration: none;
  padding: 0.5rem;
  font-size: 2rem;
  font-weight: 900;
  font-weight: 600;
  border-radius: 0.5rem;
  margin: 0;
  transition:
    transform 0.3s ease,
    filter 0.1s ease;
  display: inline-block;
}

.mob-link:hover {
  transform: translateY(-2px);
}

.mob-link::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.mob-link:hover::after {
  transform: scaleX(1);
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.logo-text {
  color: var(--header-color);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  margin-left: 1rem;
  text-decoration: none;
  border-bottom: none;
}

.nav-link-grid {
  color: var(--header-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 0.5rem;
}

.nav-link-grid:hover {
  background-color: var(--accent-color);
}

.nav-link {
  color: var(--header-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 0.5rem;
}

.nav-link:hover {
  background-color: var(--accent-color);
}

.dropdown-nav-link {
  position: relative;
}

.dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  min-width: 200px;
  background-color: var(--secondary-color);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.dropdown.show {
  opacity: 1;
  visibility: visible;
  max-height: 95vh;
}

.dropdown-category h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.dropdown-category {
  display: grid;
  gap: 4px;
  margin: 16px;
}

.drop-link {
  color: var(--third-color);
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  margin: 0;
  transition:
    transform 0.1s ease,
    filter 0.1s ease;
  position: relative;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.drop-link:hover {
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  transform: translateY(-2px);
  background-color: transparent;
}

.drop-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0.25rem;
  left: 0;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.drop-link:hover::after {
  width: 100%;
}

.dropdown[data-align='center'] {
  left: 50%;
  transform: translate(-50%, 0);
}

.dropdown[data-align='right'] {
  right: 0;
  left: auto;
  transform: translate(-50%, 0);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.too-small {
  display: none;
}

.close-menu {
  display: none;
  position: fixed;
  top: 8px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: #ececec;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.close-menu:hover {
  color: var(--primary-color);
}

/*Phone specific styles*/
@media (768px > width) {
  .mob-nav,
  .menu-toggle {
    display: flex;
  }
}

/*Tablet specific styles*/
@media (1200px > width >= 768px) {
  .pri-nav,
  .menu-toggle {
    display: flex;
  }

  .pri-nav-grid {
    display: none;
  }
}

/*PC specific styles*/
@media (width >= 1200px) {
  .pc-nav {
    display: flex;
  }
}
