/* Portfólio de sistemas no visual original da Nyxcode (usa as variáveis do tema original) */
.nx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.nx-tab {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.nx-tab small { color: var(--text-faint); margin-left: 4px; font-size: 11px; }
.nx-tab:hover { color: var(--text); border-color: var(--accent); }
.nx-tab.active { color: var(--accent-light); background: var(--accent-dim); border-color: #8b5cf659; }
.nx-tab.active small { color: var(--accent-light); }

.nx-cases { display: grid; gap: 28px; }
.nx-case.project-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 24px; overflow: visible;
}
.nx-case.project-card:hover { transform: none; }

.nx-media { min-width: 0; }
.nx-shot {
  display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.nx-shot:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -20px var(--accent); }
.nx-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.nx-bar span { width: 9px; height: 9px; border-radius: 50%; }
.nx-bar span:nth-child(1) { background: #ff5f57; } .nx-bar span:nth-child(2) { background: #febc2e; } .nx-bar span:nth-child(3) { background: #28c840; }
.nx-bar em {
  margin-left: 10px; flex: 1; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  background: var(--bg); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-elevated); }
.nx-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.nx-shot:hover .nx-img img { transform: scale(1.03); }
.nx-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 11, 18, .55); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 16px;
  opacity: 0; transition: opacity .25s;
}
.nx-shot:hover .nx-hover, .nx-shot:focus-visible .nx-hover { opacity: 1; }

.nx-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.nx-thumb {
  flex: 1; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: var(--bg); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s;
}
.nx-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nx-thumb:hover { opacity: .9; }
.nx-thumb.active { opacity: 1; border-color: var(--accent); }

.nx-info { display: flex; flex-direction: column; gap: 10px; }
.nx-info .project-card-top h3 { font-size: 22px; }
.nx-info h4 {
  margin: 6px 0 0; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-light);
}
.nx-info p { margin: 0; flex-grow: 0; }
.nx-info ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.nx-info li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: 14.5px; }
.nx-info li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.nx-info .project-links { margin-top: 8px; }

@media (max-width: 860px) {
  .nx-case.project-card { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
}
