/* ─── PORTFOLIO ───────────────────────────────── */
.portfolio { background: var(--bg-surface); overflow: hidden; }

/* ─── Marquee track ───────────────────────── */
.pf-track-wrapper {
  overflow: hidden;
  padding: 4px 0 12px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.pf-track {
  display: flex;
  width: max-content;
  animation: pf-scroll 36s linear infinite;
}

.pf-track:hover { animation-play-state: paused; }

@keyframes pf-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Card ────────────────────────────────── */
.pf-card {
  flex-shrink: 0;
  width: 220px;
  margin-right: 18px;
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pf-card:hover {
  border-color: rgba(29,106,245,0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.09);
}

/* ─── Logo / Icon box ───────────────────── */
.pf-logo-box {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--bg-border);
}

.pf-logo-img {
  background: #f7f7f9;
  padding: 14px 20px;
}

.pf-logo-img img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  display: block;
}

.pf-icon-box svg {
  width: 44px;
  height: 44px;
}

.icon-rose  { background: rgba(244, 63,  94,  0.07); color: #f43f5e; }
.icon-teal  { background: rgba(20,  184, 166, 0.09); color: #0d9488; }
.icon-blue  { background: rgba(29,  106, 245, 0.07); color: var(--accent); }
.icon-sky   { background: rgba(14,  165, 233, 0.09); color: #0ea5e9; }

/* ─── Body ────────────────────────────────── */
.pf-body {
  padding: 12px 14px 8px;
  flex: 1;
}

.pf-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  line-height: 1.3;
}

.pf-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Footer badges ─────────────────────── */
.pf-footer {
  padding: 8px 14px 12px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.pf-type,
.pf-shipped,
.pf-source {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 100px;
}

.pf-type {
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
}

.pf-shipped {
  color: var(--green);
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.25);
}

.source-direct {
  color: var(--accent);
  background: rgba(29, 106, 245, 0.08);
  border: 1px solid rgba(29, 106, 245, 0.20);
}

.source-upwork {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

/* ─── Reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pf-track { animation: none; }
  .pf-track-wrapper {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    padding-bottom: 16px;
  }
}
