/* ==========================================================================
   Portfolio Page Styles (Project Grid, Metrics Strip, Category Tags)
   ========================================================================== */

.portfolio-hero {
  padding: 5rem 1rem 2rem;
  text-align: center;
}
.portfolio-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.portfolio-lead {
  font-size: 1.05rem;
  color: #4b5563;
  margin: 0 auto;
  max-width: 600px;
}
/* .portfolio-section {
  padding-bottom: 84px;
} */

.portfolio-section {
  padding-bottom: 5rem;
}

/* .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
} */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* .portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 16px 32px -8px rgba(13, 148, 136, 0.12);
} */

.portfolio-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.project-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.project-status {
  font-size: 0.76rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.portfolio-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-metrics {
  display: flex;
  gap: 24px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.metric strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.metric span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Filter button row */
.portfolio-filter-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  padding: 0.55rem 1.6rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* .filter-btn.active,
.filter-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
} */

.filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-btn.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* Card image banner */
.portfolio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-card, #ffffff);
}

/* .project-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
} */

.project-media {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f8fafc;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .project-media img {
  transform: scale(1.04);
}

/* .project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
} */

.project-content {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.4rem 0;
}

.project-tags {
  font-size: 0.825rem;
  color: #6b7280;
  margin: 0 0 1.25rem 0;
  line-height: 1.4;
}

.btn-view {
  margin-top: auto;
  display: block;
  width: 100%;
  text-align: center;
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* .btn-view:hover {
  background: #0369a1;
} */

.project-subtitle {
  color: var(--text-muted, #6b7280);
  font-size: 0.875rem;
  margin: 0.25rem 0 1rem;
}

.card-action {
  margin-top: auto;
  padding-top: 1.25rem;
}

.btn-card {
  display: block;
  text-align: center;
  width: 100%;
  padding: 0.625rem 1rem;
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-card:hover {
  background: #0369a1;
}

@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
