/* ============================================================
   projects.css - Product + Consulting surfaces for projects/now
   ============================================================ */

.intro-header.project-header,
.intro-header {
  position: relative;
  margin-bottom: 0;
}

.projects-header-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(81, 212, 255, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(7, 18, 34, 0.84) 0%, rgba(12, 24, 44, 0.90) 100%);
  z-index: 0;
}

.intro-header.project-header .container,
.intro-header .container {
  position: relative;
  z-index: 1;
}

.projects-list-section,
.project-single {
  background:
    linear-gradient(180deg, #f4f8ff 0%, #eef4fb 100%);
}

.projects-list-section {
  padding: 56px 0 72px;
}

.projects-intro {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--pc-ink-soft);
  font-size: 19px;
  line-height: 1.85;
}

.pj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cards-carousel-outer {
  position: relative;
  overflow: hidden;
}

.cards-carousel-track {
  display: flex;
  gap: 20px;
  align-items: stretch;
  will-change: transform;
}

.cards-carousel-slide {
  flex: 0 0 calc((100% - 40px) / 3);
}

.cards-carousel-slide .pj-card-link,
.cards-carousel-slide .pj-card,
.pj-grid .pj-card-link,
.pj-grid .pj-card {
  height: 100%;
}

.pj-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.pj-card-link:hover,
.pj-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.pj-card {
  width: 100%;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(17, 58, 116, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: 0 22px 50px rgba(18, 44, 86, 0.10);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pj-card-link:hover .pj-card,
.pj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 110, 233, 0.16);
  box-shadow: 0 28px 60px rgba(18, 44, 86, 0.14);
}

.pj-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pj-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pj-badge--live { color: #0f8f61; background: #e7fbf2; }
.pj-badge--in-progress { color: #176ee9; background: #edf4ff; }
.pj-badge--shipped { color: #7b5bdb; background: #f1edff; }
.pj-badge--archived { color: #66788f; background: #edf2f8; }
.pj-badge--featured { color: #0c8298; background: #e7fafd; }

.pj-badge--lg {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.pj-card-title {
  margin: 0 0 12px;
  color: var(--pc-ink);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pj-card-summary {
  margin: 0 0 18px;
  color: var(--pc-ink-soft);
  font-size: 16px;
  line-height: 1.8;
  flex-grow: 1;
}

.pj-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pj-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f2f6fb;
  color: #4d627d;
  font-size: 12px;
  font-weight: 700;
}

.pj-read-more {
  margin-top: 18px;
  color: var(--pc-accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pj-card-link:hover .pj-read-more {
  color: var(--pc-accent);
}

.projects-empty {
  margin-top: 24px;
  color: var(--pc-muted);
  font-size: 16px;
}

.project-single {
  padding: 64px 0 92px;
}

.pj-back-link {
  margin-bottom: 28px;
}

.pj-back-link a {
  color: var(--pc-accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.pj-back-link a:hover {
  color: var(--pc-accent);
  text-decoration: none;
}

.pj-section {
  margin-bottom: 34px;
}

.pj-section-heading {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 57, 110, 0.08);
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pj-section p,
.pj-body {
  color: var(--pc-ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.pj-body {
  margin-bottom: 30px;
}

.pj-body p + p,
.pj-section p + p {
  margin-top: 16px;
}

.pj-outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pj-outcomes li {
  position: relative;
  padding: 0 0 0 22px;
  color: var(--pc-ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.pj-outcomes li + li {
  margin-top: 12px;
}

.pj-outcomes li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pc-accent) 0%, var(--pc-accent-teal) 100%);
}

.pj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.pj-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.pj-link-btn--github {
  background: #0f172a;
  color: #ffffff;
}

.pj-link-btn--demo {
  background: linear-gradient(135deg, #37a8ff 0%, #1679f2 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(22, 121, 242, 0.20);
}

.pj-link-btn--post,
.pj-link-btn--case {
  background: #ffffff;
  border-color: rgba(15, 40, 80, 0.10);
  color: var(--pc-ink);
}

.pj-link-btn:hover,
.pj-link-btn:focus {
  text-decoration: none;
}

@media (max-width: 1199px) {
  .pj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .pj-grid {
    grid-template-columns: 1fr;
  }

  .cards-carousel-outer {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cards-carousel-track {
    flex-direction: column;
    gap: 16px;
    transform: none !important;
    transition: none !important;
  }

  .cards-carousel-slide {
    width: 100%;
    flex-basis: auto;
  }

  .cards-carousel-slide[aria-hidden="true"] {
    display: none;
  }

  .project-single,
  .projects-list-section {
    padding-top: 46px;
    padding-bottom: 62px;
  }
}

@media (max-width: 767px) {
  .projects-intro,
  .pj-card-summary,
  .pj-body,
  .pj-section p,
  .pj-outcomes li {
    font-size: 16px;
  }

  .pj-card {
    padding: 24px;
    border-radius: 24px;
  }

  .pj-card-title {
    font-size: 26px;
  }
}
