/* ============================================================
   PORTFOLIO PAGE — DARK EDITORIAL DESIGN
   ============================================================ */

/* ── Base ── */
body { background: #0d0d0d; color: #d4d4d4; }

/* ══ HERO ══ */
.port-hero {
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  padding: 100px 0 56px;
  text-align: center;
}

.port-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.port-hero-inner h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.port-hero-inner p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

/* ══ FILTER TABS ══ */
.port-filters {
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  padding: 20px 0;
  position: sticky;
  top: 70px;
  z-index: 50;
}

.port-tab-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.port-tab {
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #1e1e1e;
  background: #111;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.port-tab:hover { color: #ccc; border-color: #333; }

.port-tab.active {
  background: #7A1C2E;
  border-color: #7A1C2E;
  color: #fff;
}

/* ══ GRID ══ */
.port-grid-section {
  padding: 56px 0 40px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* ══ CARDS ══ */
.port-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  overflow: hidden;
  transition: border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.port-card:hover { border-color: #2a2a2a; }

.port-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #111;
}

.port-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  max-width: none;
  transition: transform 0.5s ease;
  filter: brightness(0.85);
}

.port-card:hover .port-card-img img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Tags overlay */
.port-card-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ptag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.ptag-infra { background: rgba(30,30,30,0.85); color: #aaa; border: 1px solid #333; }
.ptag-fin   { background: rgba(122,28,46,0.85); color: #fff; }
.ptag-seo   { background: rgba(30,30,30,0.85); color: #aaa; border: 1px solid #333; }
.ptag-ecom  { background: rgba(30,30,30,0.85); color: #aaa; border: 1px solid #333; }
.ptag-web   { background: rgba(30,30,30,0.85); color: #aaa; border: 1px solid #333; }
.ptag-new   { background: rgba(122,28,46,0.9); color: #fff; }

/* Card body */
.port-card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1a1a1a;
}

.port-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8e8e8;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.port-card-body p {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.port-case-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  width: fit-content;
}

.port-case-link:hover { color: #e0e0e0; }

/* ══ STATS ══ */
.port-stats {
  background: #080808;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 72px 0;
  text-align: center;
}

.port-stats-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.port-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.port-stat-item {
  padding: 0 16px;
}

.port-stat-num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #7A1C2E;
  letter-spacing: -0.03em;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 6px;
}

.port-stat-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.port-stat-item p {
  font-size: 0.8rem;
  color: #444;
  line-height: 1.65;
  max-width: 220px;
  margin: 0 auto;
}

/* ══ CTA ══ */
.port-cta {
  background: #0d0d0d;
  padding: 88px 0;
}

.port-cta-inner {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
}

.port-cta-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.port-cta-inner p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 32px;
}

.port-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: #7A1C2E;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.port-cta-btn:hover { background: #9b2335; }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .port-cta-inner { padding: 40px 28px; }
  .port-filters { position: static; }
}

@media (max-width: 480px) {
  .port-tab-row { gap: 4px; }
  .port-tab { padding: 7px 12px; font-size: 0.75rem; }
}