.header {
  background: linear-gradient(135deg, rgba(14, 14, 18, 0.98) 0%, rgba(20, 20, 30, 0.98) 50%, rgba(14, 14, 18, 0.98) 100%);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(229, 9, 20, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 60px;
  padding: 0 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(229, 9, 20, 0.25);
  transition: color 200ms ease, transform 200ms cubic-bezier(0.4, 0, 0.2, 1), text-shadow 250ms ease;
  white-space: nowrap;
}

.logo:hover,
.logo:focus-visible {
  color: #e50914;
  outline: none;
  text-shadow: 0 0 22px rgba(229, 9, 20, 0.45), 0 0 28px rgba(229, 9, 20, 0.28);
  transform: scale(1.02);
}

.pixel {
  animation: pixelGlow 3s ease-in-out infinite;
  background: linear-gradient(45deg, #e50914, #ff1525);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
  display: inline-block;
  flex-shrink: 0;
  height: clamp(12px, 2.5vw, 20px);
  width: clamp(12px, 2.5vw, 20px);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  background: rgba(229, 9, 20, 0.18);
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.18);
  color: #fff;
}

.nav-cta {
  background: linear-gradient(135deg, #e50914, #c40812);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.28);
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-weight: 700;
  justify-content: center;
  margin-left: 8px;
  padding: 12px 22px;
  text-decoration: none;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.34);
  filter: brightness(1.05);
  outline: none;
  transform: translateY(-1px);
}

.menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: none;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  position: relative;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
  width: 44px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.35);
  outline: none;
  transform: translateY(-1px);
}

.hamburger-line {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: 250ms ease;
  width: 18px;
}

.hamburger-line:nth-child(1) {
  top: 14px;
}

.hamburger-line:nth-child(2) {
  top: 21px;
}

.hamburger-line:nth-child(3) {
  top: 28px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
  left: 0;
  min-width: 180px;
  position: absolute;
  top: 100%;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-link {
  color: #fff;
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  background: rgba(229, 9, 20, 0.1);
  color: #e50914;
  outline: none;
}

@keyframes headerMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixelGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.7), 0 0 35px rgba(229, 9, 20, 0.3);
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  .nav-cta {
    padding: 11px 18px;
  }
}

@media (max-width: 768px) {
  .nav {
    align-items: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .nav-cta {
    order: 3;
    margin-left: 0;
  }

  .nav-menu {
    animation: headerMenuDrop 250ms ease-out;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 14px;
    order: 4;
    padding: 14px;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 14px 16px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 0 14px;
  }

  .logo {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
  }

  .nav-cta {
    min-width: 0;
    width: 100%;
  }
}
