.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logoImg {
  display: block;
  object-fit: contain;
  filter: brightness(1);
}

.links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.navItemDropdown {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}

.chevron {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.navItemDropdown:hover .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.navItemDropdown > a {
  display: flex;
  align-items: center;
}

.links > a, .navItemDropdown > a {
  font-size: 0.75rem;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.links > a:hover, .navItemDropdown > a:hover {
  color: #fff;
}

.links a.active {
  color: var(--primary);
}

.submenu {
  position: absolute;
  top: 100%;
  left: -20px;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 4px;
  padding: 1.5rem;
  width: 450px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.navItemDropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenuGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.submenuItem {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.submenuItem:hover {
  background-color: var(--neutral);
}

.submenuIcon {
    width: 32px;
    height: 32px;
    background-color: var(--neutral);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.submenuItem:hover .submenuIcon {
    border-color: var(--primary);
    background-color: #000;
}

.submenuContent {
  display: flex;
  flex-direction: column;
}

.submenuTitle {
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

.submenuSubtitle {
  font-size: 0.65rem;
  color: #555;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tuningBtn {
  background-color: var(--primary);
  color: white;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  transition: background-color 0.2s;
}

.tuningBtn:hover {
  background-color: var(--primary-hover);
}


@media (max-width: 1024px) {
  .links {
    display: none;
  }

  .tuningBtn {
    display: none;
  }

  .mobileMenuBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
  }

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

@media (min-width: 1025px) {
  .mobileMenuBtn {
    display: none;
  }
}

/* Mobile Overlay */
.mobileOverlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: #0c0c0c;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobileMenuHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.closeBtn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobileNavLinks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobileNavLinks > a, .mobileDropdownBtn {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.mobileNavLinks > a:hover {
  color: var(--primary);
}

.mobileDropdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobileSubmenu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1rem;
  overflow: hidden;
}

.mobileSubmenuItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #888;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobileSubmenuItem:hover {
  color: #fff;
}

.mobileSubmenuIcon {
  color: var(--primary);
}

.mobileFooter {
  margin-top: auto;
  padding-top: 2rem;
}

.mobileTuningBtn {
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
}
