/* ============================================
   PORTFOLIO TABS — APPEND to style.css
   Category navigation with visual enhancement
   ============================================ */

/* ===== PORTFOLIO TABS ===== */
.portfolio-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.portfolio-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.portfolio-tab:hover {
  border-color: var(--gray-300);
  color: var(--gray-700);
  background: var(--gray-50);
}

.portfolio-tab--active,
.portfolio-tab--active:hover {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

/* Color variants when active */
.portfolio-tab--blue.portfolio-tab--active,
.portfolio-tab--blue.portfolio-tab--active:hover {
  background: linear-gradient(135deg, var(--deep-blue), var(--mid-blue));
  border-color: var(--deep-blue);
}

.portfolio-tab--teal.portfolio-tab--active,
.portfolio-tab--teal.portfolio-tab--active:hover {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  border-color: var(--teal);
}

.portfolio-tab--orange.portfolio-tab--active,
.portfolio-tab--orange.portfolio-tab--active:hover {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  border-color: #F59E0B;
}

.portfolio-tab__icon {
  display: flex;
  align-items: center;
}

.portfolio-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.portfolio-tab--active .portfolio-tab__count {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== PORTFOLIO CARD ENHANCEMENTS ===== */

/* Thumbnail image inside preview */
.portfolio-card__preview {
  display: block;
  text-decoration: none;
  position: relative;
  padding: 28px 24px 0;
  height: 220px;
  overflow: hidden;
}

.portfolio-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  position: absolute;
  top: 0;
  left: 0;
}

.portfolio-card__info h4 a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.2s;
}

.portfolio-card__info h4 a:hover {
  color: var(--teal);
}

/* View All button */
.portfolio-view-all {
  text-align: center;
  margin-top: 40px;
}

/* ===== UMKM MOCKUP ===== */
.portfolio-mockup-umkm {
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.pmu-header {
  height: 40px;
  background: linear-gradient(135deg, #FDE68A, #FCD34D);
  border-radius: 4px;
  margin-bottom: 10px;
}

.pmu-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.pmu-product {
  height: 70px;
  background: var(--gray-100);
  border-radius: 4px;
  border: 1px solid var(--gray-200);
}

.pmu-cta {
  height: 24px;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  border-radius: 4px;
  opacity: 0.7;
}

/* ===== PORTFOLIO CARD FILTER ANIMATION ===== */
.portfolio-card[data-category] {
  transition: all 0.4s var(--ease);
}

.portfolio-card.pf-hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
}

@media (max-width: 768px) {
  .portfolio-tabs {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12px;
  }
}
