.main-nav a.is-current { color: var(--text-primary); }

.portfolio-hero { padding: 5rem 0 3rem; }
.portfolio-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.02em; margin: 0 0 1.1rem; max-width: 760px; }
.portfolio-hero .lead { font-size: 1.1rem; color: var(--text-secondary); max-width: 620px; margin: 0; }

.portfolio-list { padding-top: 0; }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}

.portfolio-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-card:not(.portfolio-card-soon):hover {
  border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 30px 60px rgba(22,21,28,0.08);
}

.portfolio-card-preview {
  position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.preview-headstodot {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.5), transparent 55%),
    linear-gradient(135deg, #e7dfd2, #c9402a 120%);
}
.preview-wordmark {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; letter-spacing: 0.02em;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.preview-aura {
  background:
    radial-gradient(circle at 75% 25%, rgba(201,169,110,0.35), transparent 55%),
    linear-gradient(145deg, #1c1c1c, #0a0a0a 70%);
}
.preview-wordmark-aura {
  font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.25em; font-size: 1.4rem;
  color: #c9a96e; text-shadow: none;
}

.preview-mes {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%),
    linear-gradient(145deg, #2c3e50, #1a252f 70%);
  position: relative;
}
.preview-mes::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(241,196,15,0.15) 25%, rgba(241,196,15,0.15) 26%, transparent 27%, transparent 74%, rgba(241,196,15,0.15) 75%, rgba(241,196,15,0.15) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(241,196,15,0.15) 25%, rgba(241,196,15,0.15) 26%, transparent 27%, transparent 74%, rgba(241,196,15,0.15) 75%, rgba(241,196,15,0.15) 76%, transparent 77%);
  background-size: 14% 14%;
}
.preview-wordmark-mes {
  position: relative; font-family: "Comic Sans MS", "Comic Neue", sans-serif; font-weight: 700;
  font-size: 1.15rem; color: #f1c40f; text-shadow: 2px 2px 0 #000;
}

.preview-freshcart {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.6), transparent 55%),
    linear-gradient(135deg, #a7f3d0, #10b981 120%);
}
.preview-wordmark-freshcart {
  font-family: -apple-system, "Inter", sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.3rem; color: #064e3b;
}

.preview-motorbazaar {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%),
    linear-gradient(135deg, #3b82f6, #1e3a8a 120%);
}
.preview-wordmark-motorbazaar {
  font-family: -apple-system, "Inter", sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.3rem; color: #fff;
}

.preview-propverify {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, #22c55e, #14532d 120%);
}
.preview-wordmark-propverify {
  font-family: -apple-system, "Inter", sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.3rem; color: #fff;
}

.preview-wayanad {
  background:
    radial-gradient(circle at 70% 20%, rgba(217,119,6,0.25), transparent 55%),
    linear-gradient(145deg, #1a3328, #0f1f17 75%);
}
.preview-wordmark-wayanad {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0.01em;
  font-size: 1.4rem; color: #f0fdf4;
}
.preview-wordmark-wayanad-light { font-weight: 300; font-style: italic; color: #d97706; }

.preview-neontick {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,46,159,0.5), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(170,255,0,0.35), transparent 55%),
    linear-gradient(135deg, #2a1b45, #161322 120%);
}
.preview-wordmark-neontick {
  font-family: "Baloo 2", -apple-system, sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.4rem; color: #fff;
}
.preview-wordmark-neontick-light { color: #ff2e9f; }

/* ---------- Our Products (real, live products — not concept pieces) ---------- */
.preview-myskilldb {
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.45), transparent 55%),
    linear-gradient(135deg, #ff6ec7, #7b61ff 120%);
}
.preview-wordmark-myskilldb {
  font-family: -apple-system, "Inter", sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.3rem; color: #fff;
}

/* HyntAi's actual product theme: black, with its signature fluoro-green accent. */
.preview-hyntai {
  background:
    radial-gradient(circle at 70% 25%, rgba(57,255,20,0.25), transparent 55%),
    linear-gradient(145deg, #111111, #000 75%);
}
.preview-wordmark-hyntai {
  font-family: "Rajdhani", -apple-system, sans-serif; font-weight: 700; letter-spacing: 0.02em;
  font-size: 1.5rem; color: #39ff14; text-shadow: 0 0 16px rgba(57,255,20,0.5);
}

.preview-videomaker {
  background:
    radial-gradient(circle at 30% 70%, rgba(255,122,0,0.4), transparent 55%),
    linear-gradient(135deg, #6a3bff, #1c1140 120%);
}
.preview-wordmark-videomaker {
  font-family: -apple-system, "Inter", sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.3rem; color: #fff;
}

.preview-carwash {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3), transparent 55%),
    linear-gradient(135deg, #22c1dc, #0b3d57 120%);
}
.preview-wordmark-carwash {
  font-family: -apple-system, "Inter", sans-serif; font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.15rem; color: #fff;
}

.preview-soon {
  background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 14px, var(--bg-card) 14px, var(--bg-card) 28px);
}
.preview-soon-mark {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--text-muted);
}

/* Admin-added cards (a link, not a template) — a real uploaded image
   instead of a hand-authored gradient; see portfolio.js. */
.portfolio-card-preview-image { background: var(--bg-soft); }
.portfolio-card-preview-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-card-preview-image.is-empty {
  background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 14px, var(--bg-card) 14px, var(--bg-card) 28px);
}
.portfolio-store-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.portfolio-store-badge {
  display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-secondary); text-decoration: none; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.portfolio-store-badge:hover { border-color: var(--accent); color: var(--accent-ink); }

.portfolio-card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.portfolio-card-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink);
}
.portfolio-card-body h3 { font-size: 1.25rem; margin: 0; letter-spacing: -0.01em; }
.portfolio-card-body p {
  font-size: 0.92rem; color: var(--text-secondary); margin: 0; flex: 1;
  /* A safety net, not the fix for the nested-<a> bug above — an
     admin-entered description has no hand-authored length discipline like
     the hardcoded template cards', so cap it instead of letting a long one
     stretch the card unpredictably next to its grid siblings. */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.portfolio-card-link { font-size: 0.88rem; font-weight: 600; color: var(--accent-ink); margin-top: 0.4rem; }
.portfolio-card-soon { cursor: default; }
.portfolio-card-soon .portfolio-card-tag { color: var(--text-muted); }
.portfolio-card-soon .portfolio-card-link { color: var(--text-muted); }

@media (max-width: 760px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .portfolio-card-body { padding: 1.1rem; gap: 0.4rem; }
  .portfolio-card-body h3 { font-size: 1rem; }
  .portfolio-card-body p { font-size: 0.78rem; }
  .portfolio-card-tag { font-size: 0.62rem; }
  .portfolio-card-link { font-size: 0.78rem; }
}
