/* HUD NAV */
.hud-nav {
  position: fixed;
  top: 16px;
  left: 12px;   
  right: 12px; 
  transform: none;
  width: 100%;
  max-width: 1200px;
  padding: 0 12px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 14px 18px;
  z-index: 2000;

  background: rgba(8, 12, 22, 0.92);
  border: 1px solid rgba(120, 180, 170, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.45),
    inset 0 0 20px rgba(90, 255, 210, 0.03);
}

/* hide animation */
.hud-nav.hidden {
  transform: translateX(-50%) translateY(-140%);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}

.hud-nav,
.hud-show-btn {
  transition: 0.35s ease;
}

.hud-left {
  flex-shrink: 0;
  
}

.hud-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;

  border: 1px solid rgba(240, 217, 108, 0.9);

  box-shadow:
    0 0 4px rgba(240, 217, 108, 0.7);
}

.hud-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  border: 3px solid #09111b;
}

.hud-right {
  flex: 1;
  min-width: 0;
}

.hud-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hud-nav-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(70px, 1fr));
  gap: 10px;
  flex: 1;
}

.hud-nav-links button {
  position: relative;
  height: 22px;
  border: 1px solid rgba(117, 255, 210, 0.22);
  background: rgba(70, 255, 190, 0.16);
  color: #b8fff1;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s ease;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.hud-nav-links button::before {
  content: "";
  position: absolute;
  left: 10%;
  top: -6px;
  width: 80%;
  height: 2px;
  background: rgba(240, 217, 108, 0);
  box-shadow: 0 0 0 rgba(240, 217, 108, 0);
  transition: 0.25s ease;
}

.hud-nav-links button:hover,
.hud-nav-links button.active {
  color: #fff8d1;
  border-color: rgba(240, 217, 108, 0.8);
  box-shadow:
    0 0 10px rgba(240, 217, 108, 0.18),
    inset 0 0 10px rgba(240, 217, 108, 0.08);
}

.hud-nav-links button:hover::before,
.hud-nav-links button.active::before {
  background: rgba(240, 217, 108, 0.95);
  box-shadow: 0 0 8px rgba(240, 217, 108, 0.75);
}

.hud-progress-wrap {
  margin-top: 12px;
  margin-bottom: 10px;
}

.hud-progress-bar {
  width: 100%;
  height: 12px;
  border: 1px solid rgba(240, 217, 108, 0.7);
  background: rgba(10, 35, 28, 0.7);
  
  overflow: hidden;
  position: relative;
}

.hud-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(20% - 2px),
      rgba(8, 12, 22, 0.75) calc(20% - 2px),
      rgba(8, 12, 22, 0.75) 20%
    );
  pointer-events: none;
}

.hud-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #73ffd3, #54f0b5);
  box-shadow:
    0 0 10px rgba(84, 240, 181, 0.65),
    0 0 18px rgba(84, 240, 181, 0.35);
  transition: width 0.35s ease;
}

.hud-education {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(18, 20, 30, 0.75);
  width: fit-content;
  max-width: 100%;
}

.edu-text p:first-child {
  font-weight: 500;
  color: #e9ecef;
  margin: 0;
  font-size: 13px;
}

.edu-text p:last-child {
  margin: 2px 0 0;
  color: #88a1a3;
  font-size: 12px;
}

.hud-hide-btn,
.hud-show-btn,
.hamburger {
  background: rgba(15, 18, 28, 0.9);
  border: 1px solid rgba(240, 217, 108, 0.35);
  color: #f0d96c;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s ease;
}

.hud-hide-btn:hover,
.hud-show-btn:hover,
.hamburger:hover {
  box-shadow: 0 0 10px rgba(240, 217, 108, 0.15);
}

.hud-hide-btn {
  width: 36px;
  height: 36px;
  font-size: 20px;
  flex-shrink: 0;
}

.hud-show-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2100;
  padding: 8px 14px;
  display: none;
}

.hud-show-btn.visible {
  display: block;
}

.hamburger {
  display: none;
  width: 40px;
  height: 36px;
  flex-shrink: 0;
}

.hamburger i {
  font-size: 18px;
  color: #73ffd3;
}

/* give page room because nav is fixed */
body {
  padding-top: 170px;
}

/* sections scroll to correct spot */
section {
  scroll-margin-top: 190px;
}

/* MOBILE */
@media (max-width: 900px) {
  .hud-nav {
    align-items: stretch;
  }

  .hud-avatar {
    width: 74px;
    height: 74px;
  }

  .hud-top {
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
  }

  .hud-nav-links {
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 8px;
  }

  .hud-nav-links.active {
    display: grid;
  }

  .hud-nav-links button {
    height: 34px;
    font-size: 12px;
  }

  .hud-hide-btn {
    margin-left: auto;
  }

  body {
    padding-top: 150px;
  }

  section {
    scroll-margin-top: 170px;
  }
}