/* ============ NAV ============ */
.nav-link {
  position: relative;
  display: inline-flex;
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 200ms ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 200ms ease-out;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* ============ SHARED LABELS ============ */
.section-label {
  margin-bottom: 48px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--warn);
  text-transform: uppercase;
}

.section-label.mb-4 {
  margin-bottom: 16px;
}

.section-label.mb-6 {
  margin-bottom: 24px;
}

.social-link,
.card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 230, 222, 0.03);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 200ms ease-out, background 200ms ease-out, color 200ms ease-out;
}

.social-link {
  padding: 8px 14px;
}

.card-action {
  flex-shrink: 0;
  padding: 6px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.social-link:hover,
.card-action:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.06);
  color: var(--paper);
}

/* ============ CARDS ============ */
.glass-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 200ms ease-out, transform 200ms ease-out, background 200ms ease-out;
}

.glass-card:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: #111724;
  transform: translateY(-2px);
}

/* ============ SKILL TAGS ============ */
.skill-tag {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 230, 222, 0.03);
  padding: 5px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  transition: transform 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, background 150ms ease-out;
}

.skill-tag:hover {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.06);
  color: var(--paper);
  transform: scale(1.05);
}

/* ============ PROJECT TAGS ============ */
.proj-tag {
  border: 1px solid rgba(240, 160, 90, 0.24);
  border-radius: 7px;
  background: rgba(240, 160, 90, 0.08);
  padding: 3px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(232, 230, 222, 0.7);
  transition: transform 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, background 150ms ease-out;
}

.proj-tag:hover {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.06);
  color: var(--paper);
  transform: scale(1.05);
}

/* ============ CHAT BUBBLES ============ */
.chat-bubble-bot {
  max-width: 85%;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 4px 12px 12px 12px;
  background: rgba(94, 234, 212, 0.08);
  padding: 10px 14px;
  color: rgba(232, 230, 222, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.chat-bubble-user {
  max-width: 85%;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px 4px 12px 12px;
  background: rgba(232, 230, 222, 0.05);
  padding: 10px 14px;
  color: rgba(232, 230, 222, 0.8);
  font-size: 13px;
  line-height: 1.6;
}

.chat-bubble-bot.loading {
  color: rgba(232, 230, 222, 0.36);
  font-style: italic;
}

/* ============ CONTACT LINKS ============ */
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(232, 230, 222, 0.03);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 200ms ease-out, background 200ms ease-out, color 200ms ease-out, transform 200ms ease-out;
}

.contact-link:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.06);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ============ FLOATING CHAT ============ */
.chat-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  display: flex;
  width: 52px;
  height: 52px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  transition: transform 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}

.chat-fab:hover {
  transform: translateY(-2px);
  background: #7ff5e4;
}

.chat-fab:active {
  transform: translateY(0);
}

#chat-window {
  position: fixed;
  right: 28px;
  bottom: 92px;
  z-index: 998;
  display: flex;
  width: 340px;
  height: 460px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.chat-window-closed {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(0.98) !important;
}

.chat-window-open {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: translateY(0) scale(1) !important;
}

@media (max-width: 640px) {
  #chat-window {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .card-action {
    opacity: 1;
  }
}
