/* ── PROJEKTET — PREMIUM PORTFOLIO ── */

.proj-page { background: var(--bg-page); }

/* Hero */
.proj-hero {
  padding: 48px 32px 64px;
  background: linear-gradient(160deg, #0d1f1e 0%, #1a3d3a 40%, #2d7a73 100%);
  color: #fff; position: relative; overflow: hidden;
}
.proj-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(255,255,255,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(240,165,0,.06) 0%, transparent 50%);
  pointer-events: none;
}
.proj-hero-inner {
  max-width: 1280px; margin: 0 auto; position: relative; z-index: 1;
}
.proj-hero .breadcrumb { color: rgba(255,255,255,.5); }
.proj-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.proj-hero .breadcrumb a:hover { color: #fff; }
.proj-hero .breadcrumb span { color: rgba(255,255,255,.35); }
.proj-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 6px 16px;
  font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.9);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 20px;
}
.proj-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px; max-width: 720px;
}
.proj-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #7ee8df 0%, #f0d080 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proj-hero-lead {
  font-size: 1.05rem; color: rgba(255,255,255,.75); line-height: 1.75; max-width: 560px;
}
.proj-hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12);
}
.proj-hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800; color: #7ee8df;
  letter-spacing: -1px;
}
.proj-hero-stat span { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }

/* Filters */
.proj-section { padding: 56px 32px 80px; background: var(--bg-page); }
.proj-section-inner { max-width: 1280px; margin: 0 auto; }
.proj-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.proj-filter {
  padding: 9px 20px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-mid);
  transition: all .25s ease; font-family: var(--font-body);
}
.proj-filter:hover { border-color: var(--brand); color: var(--brand); }
.proj-filter.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 4px 16px rgba(60,150,143,.3);
}

/* Grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.proj-card {
  grid-column: span 2;
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s;
  text-align: left; font-family: inherit; padding: 0;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.proj-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(72, 58, 42, .14);
  border-color: rgba(60,150,143,.35);
}
.proj-card.hidden { display: none; }
.proj-card--featured { grid-column: span 2; }
.proj-grid--three { grid-template-columns: repeat(6, 1fr); }

.proj-card-visual {
  position: relative; height: 240px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3);
}
.proj-card--featured .proj-card-visual { height: 280px; }
.proj-card-cover {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; transition: transform .5s ease;
}
.proj-card:hover .proj-card-cover { transform: scale(1.04); }
.proj-card-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}
.proj-card-pattern {
  position: absolute; inset: 0; opacity: .15;
  background-size: 24px 24px;
}
.proj-card-icon {
  font-size: 4rem; position: relative; z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.2));
  transition: transform .4s ease;
}
.proj-card:hover .proj-card-icon { transform: scale(1.08) translateY(-4px); }

.proj-card-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(253, 251, 247, .95); color: var(--text-dark);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}
.proj-card-badge--real {
  background: var(--brand); color: #fff;
}
.proj-card-year {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.3); padding: 4px 10px; border-radius: 8px;
  backdrop-filter: blur(6px);
}

.proj-card-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.proj-card-client {
  font-size: .72rem; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px;
}
.proj-card-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; letter-spacing: -.3px; line-height: 1.25;
  margin-bottom: 10px; color: var(--text-dark);
}
.proj-card--featured .proj-card-title { font-size: 1.3rem; }
.proj-card-desc {
  font-size: .86rem; color: var(--text-soft); line-height: 1.65;
  margin-bottom: 16px; flex: 1;
}
.proj-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.proj-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
  font-size: .7rem; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; background: var(--brand-light); color: var(--brand);
}
.proj-card-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .25s, color .25s, transform .25s;
}
.proj-card:hover .proj-card-arrow {
  background: var(--brand); color: #fff; transform: translateX(2px);
}
.proj-card-arrow svg { width: 16px; height: 16px; }

/* Gradient themes per project */
.proj-theme-library {
  background: linear-gradient(135deg, #1a3d5c 0%, #2d6a9f 50%, #4a90c4 100%);
}
.proj-theme-library .proj-card-pattern {
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
}
.proj-theme-capital {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 40%, #f0a500 100%);
}
.proj-theme-capital .proj-card-pattern {
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 20px 20px;
}
.proj-theme-health {
  background: linear-gradient(135deg, #0d4a42 0%, #2d7a73 60%, #7ee8df 100%);
}
.proj-theme-health .proj-card-pattern {
  background-image: radial-gradient(circle at 50% 50%, #fff 2px, transparent 2px);
  background-size: 30px 30px;
}
.proj-theme-gov {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
}
.proj-theme-shop {
  background: linear-gradient(135deg, #bf360c 0%, #e64a19 50%, #ff8a65 100%);
}
.proj-theme-ai {
  background: linear-gradient(135deg, #311b92 0%, #7b1fa2 50%, #ab47bc 100%);
}
.proj-theme-ai .proj-card-pattern {
  background-image: linear-gradient(0deg, transparent 48%, rgba(255,255,255,.3) 49%, rgba(255,255,255,.3) 51%, transparent 52%);
  background-size: 16px 16px;
}
.proj-theme-nab {
  background: linear-gradient(135deg, #1a1a1a 0%, #4a0000 50%, #8b0000 100%);
}

/* Modal */
.proj-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,31,30,.65); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.proj-modal-overlay.open { opacity: 1; pointer-events: all; }
.proj-modal {
  background: var(--surface); border-radius: var(--radius-xl);
  max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.25);
  transform: translateY(24px) scale(.97);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.proj-modal-overlay.open .proj-modal { transform: none; }
.proj-modal-header {
  position: relative; padding: 40px 36px 32px;
  color: #fff; overflow: hidden;
}
.proj-modal-header::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
}
.proj-modal-header > * { position: relative; z-index: 1; }
.proj-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.proj-modal-close:hover { background: rgba(255,255,255,.3); }
.proj-modal-client {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; opacity: .8; margin-bottom: 8px;
}
.proj-modal-title {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 800; letter-spacing: -.5px; line-height: 1.2;
}
.proj-modal-type {
  font-size: .82rem; opacity: .75; margin-top: 8px; font-weight: 500;
}
.proj-modal-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.proj-modal-gallery img {
  width: 100%; border-radius: var(--radius-md);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  object-fit: cover; object-position: top;
  max-height: 220px;
}
.proj-modal-stack {
  display: grid; gap: 10px; margin-bottom: 8px;
}
.proj-modal-stack div {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.proj-modal-stack strong {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--brand); margin-bottom: 4px;
}
.proj-modal-stack span { font-size: .84rem; color: var(--text-mid); line-height: 1.5; }
.proj-modal-body { padding: 32px 36px 36px; }
.proj-modal-desc {
  font-size: .95rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 28px;
}
.proj-modal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 28px;
}
.proj-modal-stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
}
.proj-modal-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800; color: var(--brand);
}
.proj-modal-stat span { font-size: .72rem; color: var(--text-soft); margin-top: 4px; display: block; }
.proj-modal-section h4 {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px;
  color: var(--text-dark);
}
.proj-modal-features {
  list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.proj-modal-features li {
  font-size: .88rem; color: var(--text-mid); padding-left: 20px; position: relative; line-height: 1.55;
}
.proj-modal-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}
.proj-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.proj-modal-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.proj-modal-cta .btn-primary,
.proj-modal-cta .btn-secondary { flex: 1; min-width: 160px; text-align: center; justify-content: center; }

/* Modal header themes */
.proj-modal-header.theme-library::before { background: linear-gradient(135deg, #1a3d5c, #2d6a9f); }
.proj-modal-header.theme-capital::before { background: linear-gradient(135deg, #2d3436, #636e72); }
.proj-modal-header.theme-health::before { background: linear-gradient(135deg, #0d4a42, #2d7a73); }
.proj-modal-header.theme-gov::before { background: linear-gradient(135deg, #1a237e, #3949ab); }
.proj-modal-header.theme-shop::before { background: linear-gradient(135deg, #bf360c, #e64a19); }
.proj-modal-header.theme-ai::before { background: linear-gradient(135deg, #311b92, #7b1fa2); }
.proj-modal-header.theme-nab::before { background: linear-gradient(135deg, #1a1a1a, #8b0000); }

/* CTA */
.proj-page .cta-band-light {
  background: var(--bg-page) !important;
  border-top: 1px solid var(--border);
  padding: 72px 32px;
}
.proj-page .cta-band-light::before { display: none !important; }
.cta-title-dark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--text-dark);
  letter-spacing: -.6px; line-height: 1.2;
}
.cta-sub-dark { font-size: .95rem; color: var(--text-mid); margin-top: 10px; line-height: 1.6; }

@media (max-width: 1100px) {
  .proj-grid, .proj-grid--three { grid-template-columns: 1fr; }
  .proj-card, .proj-card--featured { grid-column: span 1; }
}
@media (max-width: 768px) {
  .proj-card-img { height: 200px; }
  .proj-card-body { padding: 20px 18px 22px; }
}
@media (max-width: 640px) {
  .proj-hero, .proj-section { padding: 48px 20px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-modal-stats { grid-template-columns: 1fr; }
  .proj-modal-body { padding: 24px 20px 28px; }
  .proj-modal-header { padding: 32px 24px 24px; }
  .proj-hero-stats { gap: 24px; }
}

/* ── KRYEFAQJA — Projektet e Fundit (bento 2+1) ── */
.home-projects {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.home-projects::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60,150,143,.07) 0%, transparent 70%);
  pointer-events: none;
}
.home-projects::after {
  content: '';
  position: absolute; bottom: -100px; left: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,.05) 0%, transparent 70%);
  pointer-events: none;
}
.home-projects .section-inner { position: relative; z-index: 1; }

.home-proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* Kartë bazë */
.home-proj-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card, 0 2px 16px rgba(72, 58, 42, .06));
  transition: transform .4s cubic-bezier(.22, 1, .36, 1),
              box-shadow .4s ease,
              border-color .3s ease;
}
.home-proj-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.home-proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(72, 58, 42, .11);
  border-color: rgba(60, 150, 143, .28);
}
.home-proj-card:hover .home-proj-visual img { transform: scale(1.05); }
.home-proj-card:hover .home-proj-link { gap: 10px; color: var(--brand-dark); }

/* Visual */
.home-proj-visual {
  position: relative;
  height: 228px;
  overflow: hidden;
  background: #1a2420;
  flex-shrink: 0;
}
.home-proj-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.home-proj-visual-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(13,31,30,.55) 100%);
}
.home-proj-live {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .55px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(60, 150, 143, .88);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(60,150,143,.35);
}
.home-proj-index {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 800;
  letter-spacing: .4px;
  color: rgba(255,255,255,.9);
  background: rgba(13, 31, 30, .5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 5px 11px;
}

/* Body */
.home-proj-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.home-proj-client {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .75px;
  color: var(--brand); margin-bottom: 6px;
}
.home-proj-title {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 800;
  letter-spacing: -.4px; line-height: 1.25;
  margin-bottom: 8px; color: var(--text-dark);
}
.home-proj-desc {
  font-size: .84rem; color: var(--text-soft);
  line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}
.home-proj-foot {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.home-proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.home-proj-tag {
  font-size: .68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-mid);
}
.home-proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700;
  color: var(--brand); white-space: nowrap;
  transition: gap .25s, color .2s;
}

/* Kartë e 3-të — horizontale (jo e përdorur në home 2-kolona) */
.home-proj-card--wide { display: none; }

/* Loading */
.proj-detail-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 50vh; gap: 16px; color: var(--text-soft);
}
.proj-detail-loading-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  animation: projSpin .7s linear infinite;
}
@keyframes projSpin { to { transform: rotate(360deg); } }

.proj-detail-desc--lead {
  font-size: 1.02rem; color: var(--text-dark); font-weight: 500;
  margin-bottom: 14px;
}

/* Problem block */
.proj-detail-problem {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
}

/* Feature groups */
.proj-detail-fgroups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.proj-detail-fgroups--modules {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .proj-detail-fgroups--modules {
    grid-template-columns: repeat(2, 1fr);
  }
}
.proj-detail-fgroup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  transition: border-color .25s, box-shadow .25s;
}
.proj-detail-fgroup:hover {
  border-color: rgba(60,150,143,.3);
  box-shadow: var(--shadow-sm);
}
.proj-detail-fgroup-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.proj-detail-fgroup-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.proj-detail-fgroup-head h3 {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 800;
  color: var(--text-dark); letter-spacing: -.2px;
}
.proj-detail-fgroup-list {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
}
.proj-detail-fgroup-list li {
  font-size: .82rem; color: var(--text-mid); line-height: 1.55;
  padding-left: 14px; position: relative;
}
.proj-detail-fgroup-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

.proj-detail-fgroup-benefits {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.proj-detail-benefit {
  font-size: .72rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
}

.proj-detail-adv-tag--secure {
  background: rgba(60,150,143,.08);
  border-color: rgba(60,150,143,.25);
  color: var(--brand-dark);
}

.proj-detail-roles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.proj-detail-role {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}
.proj-detail-role h4 {
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 800;
  color: var(--brand); margin-bottom: 12px;
}
.proj-detail-role ul {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.proj-detail-role li {
  font-size: .8rem; color: var(--text-mid);
  padding-left: 14px; position: relative; line-height: 1.5;
}
.proj-detail-role li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--brand); font-size: .75rem;
}

.proj-detail-fgroups--services .proj-detail-fgroup { background: var(--bg-page); }

.proj-detail-bonus {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(135deg, #fff8eb 0%, var(--surface) 100%);
  border: 1px solid #e8d5a8;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-top: 8px;
}
.proj-detail-bonus-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.proj-detail-bonus .proj-detail-block-title { margin-bottom: 8px; }
.proj-detail-bonus p {
  font-size: .88rem; color: var(--text-mid);
  margin-bottom: 14px; line-height: 1.6;
}
.proj-detail-bonus-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 8px 16px;
}
.proj-detail-bonus-list li {
  font-size: .82rem; color: var(--text-dark); font-weight: 500;
  padding-left: 18px; position: relative;
}
.proj-detail-bonus-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 800; font-size: .78rem;
}

/* Advanced tags */
.proj-detail-advanced { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-detail-adv-tag {
  font-size: .78rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: border-color .2s, color .2s;
}
.proj-detail-adv-tag:hover { border-color: var(--brand); color: var(--brand); }

/* Result band */
.proj-detail-result {
  background: linear-gradient(135deg, #1a3d3a 0%, #2d7a73 100%);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  color: #fff;
  margin-top: 8px;
}
.proj-detail-result .proj-detail-block-title {
  color: #fff;
}
.proj-detail-result .proj-detail-block-title::before {
  background: linear-gradient(180deg, #7ee8df, var(--accent));
}
.proj-detail-result p {
  font-size: .95rem; line-height: 1.8; opacity: .92;
}

/* Stack detailed */
.proj-detail-stack-detailed { display: flex; flex-direction: column; gap: 16px; }
.proj-detail-stack-group h4 {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--brand); margin-bottom: 8px;
}
.proj-detail-stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-detail-stack-tag {
  font-size: .72rem; font-weight: 600;
  padding: 5px 10px; border-radius: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-mid);
}

/* ── FAQJA E DETAJEVE TË PROJEKTIT ── */
.proj-detail-page { background: var(--bg-page); }

.proj-detail-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image: url('../assets/images/projects/proj-hero-bg.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  padding: 28px 32px 32px;
}
.proj-detail-hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; width: 100%; margin: 0 auto;
  color: var(--text-dark);
}
.proj-detail-crumb { color: var(--text-mid); margin-bottom: 12px; }
.proj-detail-crumb a { color: var(--brand-dark); }
.proj-detail-crumb a:hover { color: var(--brand); }
.proj-detail-crumb span { opacity: .5; }
.proj-detail-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.proj-detail-live {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-light);
  border: 1px solid rgba(60,150,143,.35);
  color: var(--brand-dark);
}
.proj-detail-year {
  font-size: .72rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-mid);
}
.proj-detail-client {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--brand-dark); margin-bottom: 8px;
}
.proj-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  max-width: 780px; margin-bottom: 8px;
  color: var(--text-dark);
}
.proj-detail-type {
  font-size: .9rem; color: var(--text-mid);
  max-width: 640px; line-height: 1.55; margin-bottom: 0;
}

.proj-detail-body { padding: 28px 32px 80px; }
.proj-detail-inner { max-width: 1280px; margin: 0 auto; }

.proj-detail-inner--layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "preview sidebar"
    "main sidebar"
    "gallery gallery";
  gap: 24px 36px;
  align-items: start;
}
.proj-detail-inner--layout .proj-showcase--preview {
  grid-area: preview;
  padding: 0;
}
.proj-detail-inner--layout .proj-detail-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 92px;
}
.proj-detail-inner--layout .proj-detail-main {
  grid-area: main;
  min-width: 0;
}
.proj-detail-inner--layout .proj-detail-block--gallery {
  grid-area: gallery;
}

/* ── Pamje të Sistemit — preview (kompakt, në fillim) ── */
.proj-showcase {
  padding: 0;
  background: transparent;
}
.proj-showcase-inner {
  max-width: 1280px; margin: 0 auto;
}
.proj-showcase-head {
  margin-bottom: 14px;
}
.proj-showcase-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 1px solid rgba(60,150,143,.25);
  padding: 6px 12px; border-radius: 999px;
}
.proj-showcase--preview .proj-showcase-grid.is-preview {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: clamp(10px, 2vw, 18px);
  max-width: 480px;
  margin: 0;
}
.proj-showcase--preview .proj-showcase-item {
  flex: 1;
  min-width: 0;
  max-width: 260px;
  margin: 0;
}
.proj-showcase--preview .proj-showcase-item:first-child {
  transform: rotate(-1.5deg);
}
.proj-showcase--preview .proj-showcase-item:last-child:not(:first-child) {
  transform: rotate(1.5deg) translateY(6px);
}
.proj-showcase--preview .proj-showcase-item:only-child {
  transform: none;
  max-width: 280px;
}
.proj-showcase-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(26,36,32,.09), 0 2px 6px rgba(26,36,32,.04);
  transition: transform .35s ease, box-shadow .35s ease;
}
.proj-showcase--preview .proj-showcase-item:hover .proj-showcase-frame {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(26,36,32,.12);
}
.proj-showcase--preview .proj-showcase-item:first-child:hover .proj-showcase-frame {
  transform: translateY(-3px) rotate(-1.5deg);
}
.proj-showcase--preview .proj-showcase-item:last-child:not(:first-child):hover .proj-showcase-frame {
  transform: translateY(-3px) rotate(1.5deg);
}
.proj-showcase-chrome {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #f8f6f2 0%, #f0ebe3 100%);
  border-bottom: 1px solid var(--border);
}
.proj-showcase-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ddd8ce;
  flex-shrink: 0;
}
.proj-showcase-dot:nth-child(1) { background: #e8a5a0; }
.proj-showcase-dot:nth-child(2) { background: #e8d4a0; }
.proj-showcase-dot:nth-child(3) { background: #a8d4a0; }
.proj-showcase-url {
  flex: 1; margin-left: 4px;
  font-size: .58rem; font-weight: 500;
  color: var(--text-soft);
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-showcase-screen {
  background: #fff;
  line-height: 0;
}
.proj-showcase--preview .proj-showcase-screen img {
  width: 100%; display: block;
  object-fit: cover; object-position: top center;
  max-height: 130px;
}

/* ── Pamje të Sistemit — galeri e plotë (në fund) ── */
.proj-detail-block--gallery {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
}
.proj-gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}
.proj-gallery-full .proj-showcase-item {
  margin: 0;
}
.proj-gallery-full .proj-showcase-frame {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(26,36,32,.1), 0 2px 8px rgba(26,36,32,.04);
}
.proj-gallery-full .proj-showcase-chrome {
  padding: 10px 14px;
  gap: 7px;
}
.proj-gallery-full .proj-showcase-dot {
  width: 10px; height: 10px;
}
.proj-gallery-full .proj-showcase-url {
  font-size: .72rem;
  padding: 5px 10px;
  margin-left: 6px;
}
.proj-gallery-full .proj-showcase-screen img {
  width: 100%; display: block;
  object-fit: contain; object-position: top center;
  max-height: none;
  height: auto;
}
.proj-gallery-full .proj-showcase-item:hover .proj-showcase-frame {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(26,36,32,.14);
}

.proj-detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 22px;
  max-width: 720px;
}
.proj-detail-stat {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px; text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition: border-color .25s, box-shadow .25s;
}
.proj-detail-stat:hover {
  border-color: rgba(60,150,143,.35);
  box-shadow: var(--shadow-md);
}
.proj-detail-stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800; color: var(--brand);
  letter-spacing: -.5px;
}
.proj-detail-stat span {
  font-size: .76rem; color: var(--text-soft);
  margin-top: 6px; display: block; line-height: 1.4;
}

.proj-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px; align-items: start;
}
.proj-detail-block { margin-bottom: 40px; }
.proj-detail-block:last-child { margin-bottom: 0; }
.proj-detail-block-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -.3px; margin-bottom: 16px;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
}
.proj-detail-block-title::before {
  content: ''; width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 2px; flex-shrink: 0;
}
.proj-detail-desc {
  font-size: .98rem; color: var(--text-mid);
  line-height: 1.85;
}

.proj-detail-features {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.proj-detail-features li {
  font-size: .92rem; color: var(--text-mid);
  padding: 14px 16px 14px 44px;
  position: relative; line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .2s;
}
.proj-detail-features li:hover { border-color: rgba(60,150,143,.35); }
.proj-detail-features li::before {
  content: '✓'; position: absolute; left: 16px; top: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.proj-detail-sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 100px;
}
.proj-detail-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.proj-detail-side-card h3 {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 800;
  margin-bottom: 14px; letter-spacing: -.2px;
}
.proj-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-detail-stack { display: flex; flex-direction: column; gap: 8px; }
.proj-detail-stack-item {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.proj-detail-stack-item strong {
  display: block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--brand); margin-bottom: 4px;
}
.proj-detail-stack-item span {
  font-size: .82rem; color: var(--text-mid); line-height: 1.5;
}
.proj-detail-cta-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--brand-xlight) 100%);
  border-color: rgba(60,150,143,.25);
}
.proj-detail-cta-card p {
  font-size: .86rem; color: var(--text-mid);
  line-height: 1.65; margin-bottom: 18px;
}
.proj-detail-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.proj-detail-actions .btn-primary,
.proj-detail-actions .btn-secondary {
  width: 100%; justify-content: center; text-align: center;
}
.proj-detail-back {
  display: block; text-align: center;
  font-size: .82rem; font-weight: 600;
  color: var(--text-soft); text-decoration: none;
  padding-top: 6px; transition: color .2s;
}
.proj-detail-back:hover { color: var(--brand); }

.proj-not-found {
  padding: 120px 32px 80px;
  text-align: center;
}
.proj-not-found-inner { max-width: 480px; margin: 0 auto; }
.proj-not-found h1 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 12px;
}
.proj-not-found p {
  color: var(--text-mid); margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .home-proj-grid { gap: 18px; }
  .proj-detail-inner--layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "preview"
      "main"
      "gallery";
    gap: 20px;
  }
  .proj-detail-inner--layout .proj-detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .proj-detail-fgroups { grid-template-columns: 1fr; }
  .proj-detail-roles { grid-template-columns: 1fr; }
  .proj-detail-bonus { flex-direction: column; padding: 22px 20px; }
  .proj-detail-bonus-list { grid-template-columns: 1fr; }
  .proj-detail-grid { grid-template-columns: 1fr; }
  .proj-detail-sidebar { position: static; }
}
@media (max-width: 768px) {
  .home-projects { padding: 48px 20px !important; }
  .home-proj-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-proj-visual { height: 200px; }
  .home-proj-body { padding: 18px 20px 20px; }
  .home-proj-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-proj-card:hover { transform: none; }
  .proj-detail-hero { padding: 20px 20px 24px; }
  .proj-detail-stats { margin-top: 18px; max-width: none; }
  .proj-detail-body { padding: 20px 20px 64px; }
  .proj-showcase--preview .proj-showcase-grid.is-preview {
    max-width: 100%;
    gap: 10px;
  }
  .proj-showcase--preview .proj-showcase-item {
    max-width: none;
  }
  .proj-showcase--preview .proj-showcase-item:first-child,
  .proj-showcase--preview .proj-showcase-item:last-child:not(:first-child) {
    transform: none;
  }
  .proj-showcase--preview .proj-showcase-screen img {
    max-height: 100px;
  }
  .proj-gallery-full {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .proj-detail-block--gallery {
    margin-top: 36px;
    padding-top: 32px;
  }
  .proj-detail-stats { grid-template-columns: 1fr; }
}
