.tech-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 10, 16, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.header-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.35;
}

.header-glow-blue {
  background: rgba(10, 131, 227, 0.45);
  top: -90px;
  left: -40px;
}

.header-glow-purple {
  background: rgba(138, 49, 148, 0.35);
  top: -100px;
  right: -50px;
}

.header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10,131,227,0.22), rgba(138,49,148,0.22));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 22px rgba(10, 131, 227, 0.18);
}

.logo-text {
    max-width: 170px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.dropdown-btn {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  transition: 0.25s ease;
}

.nav-link:hover,
.dropdown-btn:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 999px;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: 0.25s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* وضعیت پیش‌فرض برای دسکتاپ و موبایل */
.dropdown-menu {
  /* ... بقیه استایل‌هایی که داشتی رو حفظ کن ... */
  display: block; /* برای مدیریت بهتر با JS */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none; /* مهم: وقتی بسته است، کلیک‌ها رو رد می‌کنه */
}

/* این کلاس رو JS اضافه/حذف می‌کنه */
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto; /* مهم: وقتی بازه، کلیک‌ها رو قبول می‌کنه */
}


.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  transition: 0.22s ease;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(10,131,227,0.16), rgba(138,49,148,0.14));
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.25s ease;
  white-space: nowrap;
}

.btn-outline {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 10px 30px rgba(10, 131, 227, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(138, 49, 148, 0.24);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid rgba(255,255,255,0.10);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 0 20px 18px;
  overflow-y: auto;
  max-height: 88vh;
}

.mobile-menu a,
.mobile-dropdown summary {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  list-style: none;
  cursor: pointer;
}

.mobile-dropdown {
  margin-top: 6px;
}

.mobile-dropdown-links {
  display: grid;
  gap: 2px;
  padding: 10px 0 0 10px;
}

.mobile-dropdown-links a {
  border-bottom: 0;
  padding: 10px 0;
}

.mobile-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
}

@media (max-width: 992px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu {
    display: none;
  }

  .tech-header.open .mobile-menu {
    display: block;
  }
}

@media (max-width: 576px) {
  .header-inner {
    padding: 14px 16px;
  }

  .logo-text {
    font-size: 0.98rem;
  }

  .mobile-actions {
    flex-direction: column;
  }

  .mobile-actions .btn {
    width: 100%;
  }
}