/* Portfolio page — category tabs */

.pt-pf {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.pt-pf-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pt-pad-x, 1.5rem);
}

.pt-pf-intro {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  color: #6b6c86;
  font-size: 1.02rem;
  line-height: 1.65;
}

.pt-pf-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 2.25rem;
  padding: 0.4rem;
  max-width: 920px;
  background: #eef0f8;
  border: 1px solid rgba(66, 68, 151, 0.08);
  border-radius: 999px;
}

.pt-pf-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #5c5d78;
  font-family: "Sora", "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.pt-pf-tab:hover {
  color: #424497;
  background: rgba(255, 255, 255, 0.7);
}

.pt-pf-tab.is-active {
  background: #424497;
  color: #fff;
  box-shadow: 0 8px 20px rgba(66, 68, 151, 0.28);
}

.pt-pf-tab[data-filter="all"].is-active {
  background: #a47b1a;
  box-shadow: 0 8px 20px rgba(164, 123, 26, 0.3);
}

.pt-pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .pt-pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pt-pf-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.pt-pf-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pt-pf-item.is-hidden {
  display: none;
}

.pt-pf-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #1e1f45;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(30, 31, 69, 0.08);
}

.pt-pf-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pt-pf-card:hover img {
  transform: scale(1.06);
}

.pt-pf-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(0deg, rgba(30, 31, 69, 0.92) 0%, rgba(30, 31, 69, 0.35) 70%, transparent 100%);
  color: #fff;
}

.pt-pf-cap span {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
}

.pt-pf-cap h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pt-pf-empty {
  text-align: center;
  color: #8b8ca8;
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .pt-pf-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-radius: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pt-pf-tabs::-webkit-scrollbar {
    display: none;
  }
}
