/* ══════════════════════════════════════════
   HUD PANEL
══════════════════════════════════════════ */

#hud-panel {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  bottom: var(--footer-h);
  background: var(--bg);
  z-index: 500;
  opacity: 0; pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex; flex-direction: column;
}
#hud-panel.visible {
  opacity: 1; pointer-events: all;
  transform: translateY(0) scale(1);
}

#hud-panel[data-theme="work"] { --accent: #2196F3; }
#hud-panel[data-theme="services"]  { --accent: #9C27B0; }
#hud-panel[data-theme="about"]     { --accent: #ff0000; }
#hud-panel[data-theme="contact"]   { --accent: #ffd600; }

/* Accent strip at top */
#hud-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transition: background 0.3s;
  z-index: 1;
}

/* HUD NAV */
.hud-nav {
  display: grid; grid-template-columns: 1fr auto;
  align-items: stretch;
  height: 48px; border-bottom: var(--grid);
  flex-shrink: 0;
}
.hud-tabs { display: flex; overflow: hidden; }

.hud-tab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  background: transparent; border: none; border-right: var(--grid);
  color: var(--white-dim); padding: 0 22px; cursor: none;
  transition: all 0.2s; position: relative; white-space: nowrap;
  flex-shrink: 0;
}
.hud-tab::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--tab-c);
  transform: scaleX(0); transition: transform 0.25s;
}
.hud-tab:hover { color: var(--white); background: rgba(255,255,255,0.03); }
.hud-tab[data-section="work"] { --tab-c: #2196F3; }
.hud-tab[data-section="services"]  { --tab-c: #9C27B0; }
.hud-tab[data-section="about"]     { --tab-c: #ff0000; }
.hud-tab[data-section="contact"]   { --tab-c: #ffd600; }
.hud-tab.active { color: var(--white); background: rgba(255,255,255,0.05); }
.hud-tab.active::after { transform: scaleX(1); }
@media (max-width: 768px) {
  .hud-tab { cursor: default; padding: 0 14px; font-size: 10px; letter-spacing: 0.1em; flex: 1; justify-content: center; display: flex; align-items: center; }
  .hud-tab .tab-full { display: none; }
  .hud-tab .tab-short { display: inline; }
}
@media (min-width: 769px) {
  .hud-tab .tab-full { display: inline; }
  .hud-tab .tab-short { display: none; }
}

.hud-nav-right { display: flex; align-items: stretch; border-left: var(--grid); }
.hud-close {
  width: 48px; background: transparent; border: none;
  color: var(--white-dim); font-size: 20px; cursor: none;
  transition: all 0.2s;
}
.hud-close:hover { color: var(--pink); background: rgba(255,29,120,0.08); }
@media (max-width: 768px) { .hud-close { cursor: default; } }

/* HUD BODY */
.hud-body {
  flex: 1; display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hud-body { grid-template-columns: 1fr; }
}

.hud-left {
  border-right: var(--grid); overflow-y: auto;
  padding: 28px 22px;
}
@media (max-width: 768px) { .hud-left { display: none; } }

.hud-section { display: none; }
.hud-section.active { display: block; }

.hud-code {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--white-dim); display: block; margin-bottom: 14px;
}
.hud-title {
  font-family: var(--cond); font-size: 50px; font-weight: 900;
  line-height: 0.9; color: var(--accent);
  margin-bottom: 18px; letter-spacing: 0.01em;
  transition: color 0.3s;
  text-transform: uppercase;
}
.hud-intro {
  font-size: 13px; line-height: 1.8; color: var(--white-dim); font-weight: 300;
}

/* Corner decoration */
.hud-left::after {
  content: '';
  position: fixed;
  bottom: calc(var(--footer-h) + 12px);
  left: 12px;
  width: 20px; height: 20px;
  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  opacity: 0.4;
  transition: border-color 0.3s;
}

.hud-right { overflow-y: auto; position: relative; }

/* HUD BUTTON */
.hud-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cond); font-size: 16px; font-weight: 700;
  letter-spacing: 0.12em; text-decoration: none;
  background: var(--accent); color: var(--bg);
  padding: 12px 26px; transition: all 0.2s; cursor: none;
  clip-path: polygon(0 0, 95% 0, 100% 25%, 100% 100%, 5% 100%, 0 75%);
}
.hud-btn:hover { background: var(--white); }
@media (max-width: 768px) { .hud-btn { cursor: default; } }
