/* ─── Portfolio Page ─── */

/* Nav links for portfolio pages */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--fg2);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-link-active { color: var(--accent2); font-weight: 500; }

/* Hero */
.port-hero {
  padding: 8rem 5% 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1a0a2e 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
.port-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.port-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.port-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.port-hero-sub {
  font-size: 1.05rem;
  color: var(--fg2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* Grid */
.port-grid-section {
  padding: 4rem 5% 6rem;
  background: var(--bg);
}
.port-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Card */
.port-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.port-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  border-color: rgba(124,58,237,0.3);
}

/* Card image */
.port-card-image {
  position: relative;
  overflow: hidden;
  background: #0a0e1a;
}
.port-card-image.portrait {
  aspect-ratio: 4/5;
}
.port-card-image.landscape {
  aspect-ratio: 16/9;
}
.port-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.port-card:hover .port-card-image img {
  transform: scale(1.04);
}

/* Badge */
.port-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}
.port-badge-icon { font-size: 0.9rem; }

/* Card body */
.port-card-body {
  padding: 1.5rem 1.8rem 2rem;
}
.port-card-meta {
  margin-bottom: 0.6rem;
}
.port-card-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}
.port-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.port-card-client {
  font-size: 0.85rem;
  color: var(--fg2);
  margin-bottom: 0.5rem;
}
.port-card-client strong {
  color: var(--fg);
  font-weight: 500;
}
.port-card-brief {
  font-size: 0.88rem;
  color: var(--fg2);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Deliverables */
.port-card-deliverables {
  margin-bottom: 1.2rem;
}
.port-deliverables-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg2);
  margin-bottom: 0.5rem;
}
.port-card-deliverables ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.port-card-deliverables li {
  font-size: 0.78rem;
  background: rgba(124,58,237,0.12);
  color: var(--accent2);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(124,58,237,0.2);
}

/* Result */
.port-card-result {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: 10px 14px;
}
.port-result-icon {
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 700;
}
.port-result-text {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}

/* CTA */
.port-cta {
  padding: 6rem 5%;
  background: linear-gradient(180deg, var(--bg) 0%, #1a0a2e 50%, var(--bg) 100%);
  text-align: center;
}
.port-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.port-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.port-cta-inner p {
  font-size: 1rem;
  color: var(--fg2);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.port-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.port-cta-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
}

/* Responsive */
@media (max-width: 768px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-hero { padding: 6rem 5% 3rem; }
  .port-card-body { padding: 1.2rem 1.4rem 1.6rem; }
  .nav-links { gap: 1rem; }
}
@media (max-width: 480px) {
  .port-hero { padding: 5rem 5% 2rem; }
  .port-grid-section { padding: 2rem 5% 4rem; }
  .port-card-title { font-size: 1.1rem; }
}
