/* =====================================================
   HEADER & NAVIGATION — Elevated Floating Glass Island Dock
   ===================================================== */

.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding: 0 1.25rem;
  pointer-events: none; /* Allows clicks around the dock */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
  max-width: 1060px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(231, 226, 215, 0.85);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.65rem 0.42rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.05),
              0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  pointer-events: auto;
  transition: all 0.25s ease;
}

/* Subtle elevation on page scroll */
.site-header.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px -4px rgba(28, 25, 23, 0.08),
              0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  border-color: rgba(231, 226, 215, 0.95);
}

/* Brand Group */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-color);
  padding-right: 0.5rem;
}

.brand-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--orange-border);
  display: block;
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.3px;
  color: var(--text-color);
  white-space: nowrap;
}

.brand-name .brand-accent {
  color: var(--main-color);
}

/* Nav Links Container */
#nav-links-all {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-links-all li {
  list-style: none;
}

#nav-links-all a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

#nav-links-all a .nav-icons {
  display: none;
}

#nav-links-all a:hover {
  color: var(--main-color);
  background: var(--main-color-light);
  transform: translateY(-1px);
}

#nav-links-all a.active {
  color: var(--main-color);
  background: var(--main-color-light);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.08);
}

/* Nav Actions Right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-hire-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1.15rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-hire-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.nav-hire-btn i {
  font-size: 0.95rem;
  color: #ffffff !important;
}

/* Mobile Toggle Hamburger Button */
.nav-toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--secondry-bg-color);
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-toggle-btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: var(--main-color-light);
}

/* Mobile Dropdown Menu */
.mobile-nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1rem;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
  pointer-events: auto;
  z-index: 1001;
  transform-origin: top center;
  animation: mobileMenuDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileMenuDrop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mobile-nav-menu.open {
  display: flex;
}

.mobile-nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.mobile-nav-menu a i {
  width: 20px;
  color: var(--main-color);
  font-size: 0.95rem;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
  background: var(--main-color-light);
  color: var(--main-color);
}

.mobile-nav-menu .mobile-hire-btn {
  margin-top: 0.4rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 600;
  justify-content: center;
  border-radius: var(--radius-pill);
}

.mobile-nav-menu .mobile-hire-btn i {
  color: #ffffff !important;
}

/* ── Responsive Navbar Breakpoints ── */
@media (max-width: 900px) {
  #nav-links-all {
    display: none; /* Collapses to mobile drawer */
  }
  .nav-toggle-btn {
    display: inline-flex;
  }
  .nav-container {
    padding: 0.45rem 0.75rem;
  }
  .nav-brand {
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .site-header {
    top: 0.75rem;
    padding: 0 0.85rem;
  }
  .nav-hire-btn span {
    display: none;
  }
  .nav-hire-btn {
    padding: 0.48rem 0.75rem;
  }
}
