/* ═══════════════════════════════════════════════
   PROJECTS PAGE · projects.css
═══════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────── */
.projects-hero {
  padding-top: 140px;
  padding-bottom: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}

/* Dodaj to nad .projects-title */
.section-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--chrome-2);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, var(--chrome-1), var(--chrome-2));
}

/* Poprawka tytułu, aby używał Twoich głównych kolorów gradientu */
.projects-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin: 0 0 20px;
  /* Zmienione na Twoje zmienne chrome */
  background: linear-gradient(120deg, var(--chrome-1) 0%, var(--chrome-2) 50%, var(--chrome-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-desc {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.8;
  max-width: 520px;
}

/* ── GRID ─────────────────────────────────────── */
.projects-grid-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 36px 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ── PROJECT CARD ─────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--g-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,142,247,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  border-radius: inherit;
}

.project-card:hover {
  border-color: rgba(79,142,247,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(79,142,247,0.1);
}
.project-card:hover::before { opacity: 1; }

/* image area */
.project-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--g-border);
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.project-card:hover .project-card-img img {
  transform: scale(1.04);
}

/* placeholder gdy brak zdjęcia */
.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg,
    rgba(79,142,247,0.08) 0%,
    rgba(139,92,246,0.08) 100%);
}

/* body */
.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--t1);
}

.project-card-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.75;
  flex: 1;
}

.project-card-footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--g-border);
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--f-mono);
  color: var(--blue);
  transition: gap .2s;
}
.project-card:hover .project-card-link { gap: 10px; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .projects-hero { padding-top: 110px; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .projects-hero,
  .projects-grid-section { padding-left: 20px; padding-right: 20px; }
}