/* ── Blinking cursor effect ── */
.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #00ff88;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── Skill bar — starts at 0, JS sets width, CSS transitions it ── */
.skill-fill {
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Scroll hint float animation ── */
.scroll-hint {
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ── Avatar status dot pulse ── */
.status-dot {
  box-shadow: 0 0 6px #00ff88;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 6px #00ff88;
  }
  50% {
    box-shadow: 0 0 14px #00ff88;
  }
}

/* ── Terminal line styles (injected by JS, need colour classes) ── */
.term-line {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre;
}
.term-line .prompt {
  color: #00ff88;
}
.term-line .cmd {
  color: #ffffff;
}
.term-line .out {
  color: rgba(255, 255, 255, 0.45);
}
.term-line .hi-cyan {
  color: #00d4ff;
}
.term-line .hi-green {
  color: #00ff88;
}

/* ── Active nav link — underline indicator ── */
.nav-link.active {
  color: #00ff88;
  position: relative;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: #00ff88;
}

/* ── Navbar scrolled — extra shadow via JS class toggle ── */
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* ── Hamburger open state ── */
#hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#hamburger.open span:nth-child(2) {
  opacity: 0;
}
#hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
