.project-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 4%, rgba(125, 211, 252, .2), transparent 25rem),
    linear-gradient(180deg, #f8fcff 0%, #f1f8fc 100%);
}

.project-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 34px;
}

.project-heading h2 {
  margin-bottom: 0;
}

.project-overview {
  padding: 22px 24px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #d6e8f2;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(30, 89, 121, .07);
  backdrop-filter: blur(10px);
}

.project-overview > p {
  margin: 0 0 16px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.85;
}

.project-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-overview li {
  padding: 6px 10px;
  color: #075985;
  background: #e9f7ff;
  border: 1px solid #c8e8f7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.project-grid {
  align-items: stretch;
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card:hover {
  border-color: #b9dbea;
  box-shadow: 0 18px 42px rgba(20, 61, 87, .1);
  transform: translateY(-5px);
}

.project-card > img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eaf5fb;
  transition: transform .35s ease;
}

.project-category,
.project-index {
  position: absolute;
  z-index: 2;
  top: 14px;
  line-height: 1;
}

.project-category {
  left: 14px;
  padding: 9px 11px;
  color: #064d73;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(191, 225, 241, .9);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 61, 88, .09);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.project-index {
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  color: #fff;
  background: rgba(3, 105, 161, .88);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}

.project-card:hover > img {
  transform: scale(1.018);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-card .project-type {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.55;
}

.project-card .project-desc {
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.85;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 18px 0 20px;
  list-style: none;
}

.project-tags li {
  padding: 4px 8px;
  color: #3d657d;
  background: var(--sky);
  border: 1px solid #d7e9f3;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.4;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}

.project-link:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .32);
  outline-offset: 4px;
  border-radius: 4px;
}

.project-link i {
  transition: transform .2s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

.project-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: none;
  margin: 28px 0 0;
  padding: 16px 18px;
  color: var(--body);
  background: rgba(255, 255, 255, .72);
  border: 1px solid #d8e9f2;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.8;
}

.project-note i {
  margin-top: 5px;
  color: var(--blue);
}

@media (max-width: 680px) {
  .project-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 26px;
  }

  .project-overview {
    padding: 18px;
  }

  .project-body {
    padding: 20px;
  }

  .project-card h3 {
    font-size: 17px;
  }

  .project-category {
    max-width: calc(100% - 72px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .project-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card > img,
  .project-link i {
    transition: none;
  }
}
