
/* =====================================
   MODERN SITE HEADER
===================================== */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  width: 100%;
  padding: 12px 0;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  background: rgba(7, 13, 26, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #f1f5f9;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 15px;
  background: #101b2d;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-text strong {
  color: #f1f5f9;
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-text small {
  color: #94a3b8;
  font-size: 0.7rem;
  direction: ltr;
  text-align: right;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.nav-link {
  padding: 10px 11px;
  border-radius: 10px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
  background: rgba(59, 130, 246, 0.1);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-right: 5px;
  padding: 11px 15px;
  border-radius: 11px;
  background: linear-gradient(110deg, #2563eb, #0891b2);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.nav-contact:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #67e8f9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Tablet and mobile */
@media (max-width: 991.98px) {
  .site-header {
    top: 6px;
    padding: 6px 0;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    order: 3;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    padding-top: 12px;
    border-top: 1px solid rgba(96, 165, 250, 0.16);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px;
    white-space: normal;
  }

  .nav-contact {
    justify-content: space-between;
    margin: 5px 0 0;
    padding: 13px;
  }
}

@media (max-width: 575.98px) {
  .site-nav {
    border-radius: 16px;
  }

  .brand-avatar {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-text small {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-contact,
  .nav-toggle span {
    transition: none;
  }
}
