/* css/portfolio.css */

/* ================================================
   MAIN
   ================================================ */
.portfolio-main {
  padding-top: 64px;
}

/* ================================================
   HERO
   ================================================ */
.portfolio-hero {
  position: relative;
  padding: 88px 40px 56px;
  text-align: center;
  overflow: hidden;
}

.portfolio-hero-blob {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.portfolio-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.portfolio-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 600;
  color: #f0eeff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 12px 0 18px;
}

.portfolio-hero-sub {
  font-size: 16px;
  color: #6b6880;
  line-height: 1.75;
  font-weight: 300;
}

/* ================================================
   FILTROS
   ================================================ */
.portfolio-filtros {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 40px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.filtro-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b6880;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.filtro-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.filtro-btn.ativo {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.4);
  color: #a78bfa;
  font-weight: 500;
}

/* ================================================
   GRID
   ================================================ */
.portfolio-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ================================================
   CARD
   ================================================ */
.porto-card {
  background: #0f0f1c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.2s;
}

.porto-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-3px);
}

/* transição do filtro */
.porto-card {
  transition:
    border-color 0.25s,
    transform 0.2s,
    opacity 0.25s ease,
    translate 0.25s ease;
}

/* ================================================
   IMAGEM + OVERLAY
   ================================================ */
.porto-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a18;
}

.porto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.9);
}

.porto-card:hover .porto-img-wrap img {
  transform: scale(1.04);
  filter: brightness(0.6);
}

.porto-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px 18px;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.porto-card:hover .porto-overlay {
  opacity: 1;
}

.porto-categoria {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(10, 10, 24, 0.75);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
}

.porto-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}

.porto-overlay-btn:hover {
  background: #6d28d9;
  color: #fff;
}

/* ================================================
   CONTEÚDO DO CARD
   ================================================ */
.porto-content {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.porto-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #f0eeff;
  letter-spacing: -0.2px;
}

.porto-content p {
  font-size: 13px;
  color: #6b6880;
  line-height: 1.65;
  font-weight: 300;
}

.porto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.porto-tag {
  font-size: 11px;
  color: #6b6880;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
}

/* ================================================
   TERMINAL PREVIEW (Music Downloader card)
   ================================================ */
.porto-img-terminal {
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
}

.terminal-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.terminal-bar {
  background: #1e1e1e;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }

.t-title {
  font-size: 11px;
  color: #555;
  margin-left: 8px;
  font-family: 'DM Sans', sans-serif;
}

.terminal-body {
  padding: 16px 18px;
  flex: 1;
  overflow: hidden;
}

.terminal-body p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
}

.t-gap { margin-top: 6px !important; }

.t-border   { color: #444; }
.t-white    { color: #e0e0e0; }
.t-muted    { color: #555; }
.t-green-txt { color: #28c840; }
.t-prompt   { color: #7c3aed; user-select: none; }
.t-cmd      { color: #a78bfa; }

/* Efeito de scanline sutil */
.porto-img-terminal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

 (mantido pra não quebrar outras páginas)
   ================================================ */
.botao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}

.botao:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.55);
  color: #c4b5fd;
}

/* ================================================
   RESPONSIVIDADE
   ================================================ */
@media (max-width: 768px) {
  .portfolio-hero    { padding: 72px 20px 44px; }
  .portfolio-filtros { padding: 0 20px 36px; }
  .portfolio-grid-section { padding: 0 20px 60px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}