/* ── portfolio overview page ── */

body {
  background: var(--color-bg);
  color: var(--color-text);
}

.pf-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.pf-wrap--narrow {
  max-width: 680px;
}

.pf-wrap--wide {
  max-width: 1260px;
}

.pf-wrap--wide .pf-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pf-wrap--wide .pf-header-title {
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

/* Header */
.pf-header {
  margin-bottom: 2rem;
}

.pf-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.pf-header-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Quick access cards */
.pf-quick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.pf-quick-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  text-decoration: none;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}

.pf-quick-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-text-muted);
}

.pf-quick-card:active {
  transform: scale(0.985);
}

.pf-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.pf-quick-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.pf-quick-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-quick-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-quick-arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Section heading */
.pf-section {
  margin-bottom: 2rem;
}

.pf-section-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 0.875rem;
}

/* Project grid — 2×2 */
.pf-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.pf-project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    transform 0.12s;
  cursor: pointer;
}

.pf-project-card:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.pf-project-card--soon {
  pointer-events: all;
  cursor: not-allowed;
}

.pf-project-card--soon:hover {
  border-color: var(--color-text-muted);
  transform: none;
}

.pf-project-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-project-tag {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  z-index: 1;
}

.pf-project-thumb-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-muted);
}

.pf-project-thumb-inner--soon {
  opacity: 0.4;
}

.pf-thumb-icon {
  opacity: 0.4;
}

.pf-project-body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pf-project-company {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.pf-project-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Testimonials grid */
.tm-grid {
  column-count: 3;
  column-gap: 1rem;
}

.tm-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  padding: 1.25rem 1.375rem;
  margin: 0 0 1rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s;
}

.tm-grid.js-anim .tm-card,
.tm-outro.js-anim {
  opacity: 0;
}

.tm-card:hover {
  border-color: var(--color-text-muted);
}

.tm-card::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 0.25rem;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.tm-card:hover::before {
  opacity: 0.12;
  transform: translateY(0);
}

.tm-body,
.tm-footer {
  position: relative;
  z-index: 1;
}

.tm-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.tm-strong {
  font-weight: 600;
  color: var(--color-text);
}

.tm-footer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  padding: 0;
  margin: auto 0 0;
}

.tm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.005em;
  flex-shrink: 0;
}

img.tm-logo {
  width: auto;
  height: 20px;
  max-width: 70px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

html[data-theme="light"] img.tm-logo {
  filter: none;
}

img.tm-logo[alt="Bukalapak"] {
  height: 14px;
  max-width: 88px;
}

img.tm-logo[alt="itemku"] {
  height: 16px;
  max-width: 60px;
}

img.tm-logo[alt="Rakuten"] {
  height: 16px;
  max-width: 56px;
}

img.tm-logo[alt="WegoPro"] {
  height: 18px;
  max-width: 70px;
}

img.tm-logo[alt="Kelas.com"] {
  height: 22px;
  max-width: 70px;
}

img.tm-logo[alt="Ayo.co.id"] {
  height: 22px;
  max-width: 44px;
}

img.tm-logo[alt="Gojek"] {
  height: 20px;
  max-width: 64px;
}

.tm-role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.tm-outro {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 0;
  text-align: center;
}

.tm-outro-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.tm-outro-link {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-border);
  transition: text-decoration-color 0.15s;
}

.tm-outro-link:hover {
  text-decoration-color: var(--color-text);
}

/* Light theme */
html[data-theme="light"] .pf-quick-card,
html[data-theme="light"] .pf-project-card,
html[data-theme="light"] .tm-card {
  background: #ffffff;
  border-color: #e5e5e5;
}

html[data-theme="light"] .pf-quick-card:hover {
  background: #f7f7f7;
  border-color: #b0b0b0;
}

html[data-theme="light"] .tm-card:hover {
  border-color: #b0b0b0;
}

html[data-theme="light"] .pf-project-thumb {
  background: #f5f5f5;
}

html[data-theme="light"] .pf-quick-icon {
  background: #f5f5f5;
  border-color: #e5e5e5;
}

/* Tablet */
@media (max-width: 900px) {
  .tm-grid {
    column-count: 2;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .pf-quick-cards {
    grid-template-columns: 1fr;
  }

  .pf-project-grid {
    grid-template-columns: 1fr;
  }

  .tm-grid {
    column-count: 1;
  }

  .pf-wrap {
    padding: 1.25rem 1rem 3rem;
  }
}
