/* ==========================================================================
   02. SITE HEADER, BRAND & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 75px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 75%, transparent 100%);
  backdrop-filter: blur(6px);
}

.brand-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.brand-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  transition: transform 0.2s ease;
}

/* Green Halftone Pixel Underlay (الطبقة السفلية الخضراء بنمط البيكسل المبعثر) */
.brand-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: url("../assets/images/characters/green-pixel-underlay.webp") no-repeat center / contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 5px rgba(0, 255, 102, 0.5));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Avatar Image (الصورة مقصوصة بنمط البيكسل العشوائي وبدون أي بوردر أملس) */
.brand-avatar-wrap img {
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;
  position: relative;
  z-index: 2;
  display: block;
}

.brand-profile:hover .brand-avatar-wrap {
  transform: scale(1.04);
}

.brand-profile:hover .brand-avatar-wrap::before {
  opacity: 1;
  filter: drop-shadow(0 0 9px rgba(0, 255, 102, 0.85));
}

.brand-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-first {
  font-family: "Press Start 2P", VT323, monospace;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.15;
  -webkit-font-smoothing: none;
  text-shadow: none;
}

.brand-last {
  display: inline-block;
  font-family: Caveat, "Brush Script MT", cursive;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #4ade80;
  line-height: 1.1;
  font-style: normal;
  text-shadow: none;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 18, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 5px 6px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.75),
    inset 0 0 12px rgba(0, 255, 102, 0.03);
}

.nav-item {
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  color: #d8e2dc;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-item:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
}

.nav-item.active {
  background: var(--neon-pill);
  color: #041508;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(38, 217, 98, 0.55);
  text-shadow: none;
}

.cv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(18, 23, 20, 0.92);
  border: 1px solid rgba(0, 255, 102, 0.28);
  border-radius: 999px 26px 8px 999px;
  padding: 3px 20px 3px 3px;
  gap: 11px;
  text-decoration: none;
  color: #ffffff;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(0, 255, 102, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cv-btn:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.35);
}

.cv-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--neon-pill);
  display: grid;
  place-items: center;
  color: #041508;
  box-shadow: 0 0 12px rgba(38, 217, 98, 0.6);
  flex-shrink: 0;
}

.cv-icon-circle svg {
  width: 18px;
  height: 18px;
  stroke: #041508;
  stroke-width: 2.2;
  fill: none;
}

.cv-text {
  font-family: 'Silkscreen', monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  white-space: nowrap;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 3px 3px 0px #063818;
}

.section-title .brackets {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.8);
}

.glow-divider {
  width: 340px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #00ff66 20%, #b8ffd6 50%, #00ff66 80%, transparent 100%);
  box-shadow: 0 0 18px 2px rgba(0, 255, 102, 0.75);
  margin-bottom: 28px;
}



/* Active CV Button Glow */
.cv-btn.active {
  border-color: var(--neon);
  box-shadow: 0 0 22px rgba(0, 255, 102, 0.45);
  background: rgba(10, 32, 18, 0.96);
}
