.portfolio-header {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-soft);
  text-align: center;
}

.portfolio-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.portfolio-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* CARD CLIENTE */
.client-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.client-card img {
  width: 100%;
  aspect-ratio: 4/5;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.96);
}

.client-card:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.client-card:hover {
  height: 100%;
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.client-overlay {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.05)
  );
}

.client-overlay span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.client-overlay h3 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

/* =========================
   DARK MODE
========================= */

body.dark-mode .client-card {
  border-color: var(--border);
}

body.dark-mode .client-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92),
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.08)
  );
}

/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 992px) {
  .portfolio-header h1 {
    font-size: 2.5rem;
  }

  .client-card img {
    height: 420px;
  }

  .client-overlay h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .portfolio-header {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .portfolio-header h1 {
    font-size: 2.2rem;
  }

  .portfolio-header p {
    font-size: 0.95rem;
  }

  .client-card img {
    height: 350px;
  }

  .client-overlay {
    padding: 25px;
  }

  .client-overlay h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .portfolio-header h1 {
    font-size: 1.9rem;
  }

  .portfolio-header p {
    font-size: 0.9rem;
  }

  .client-card {
    border-radius: 15px;
  }

  .client-card img {
    height: 280px;
  }

  .client-overlay {
    padding: 20px;
  }

  .client-overlay span {
    font-size: 0.8rem;
  }

  .client-overlay h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .portfolio-header h1 {
    font-size: 1.7rem;
  }

  .client-card img {
    height: 240px;
  }

  .client-overlay h3 {
    font-size: 1.15rem;
  }
}
