/* selectedprojects.css
   Styles ONLY the "Selected projects" section on index.html
   (the section that contains .section-head + .project-grid + .project-card)
*/

/* keep spacing clean and prevent weird stacking */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

/* the list layout */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* the card itself (index-only) */
.project-grid .project-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  padding: 26px;
  border-radius: 22px;

  background: rgba(10, 14, 28, 0.55);
  border: 1px solid rgba(125,211,252,0.14);
  box-shadow: 0 18px 64px rgba(0,0,0,0.45);

  display: flex;
  flex-direction: column;

  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-grid .project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125,211,252,0.26);
  box-shadow: 0 26px 90px rgba(0,0,0,0.55);
  z-index: 3; /* prevents “overlap” vibe on hover */
}

/* top area */
.project-grid .project-top {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.project-grid .project-badge {
  width: fit-content;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(125,211,252,0.10);
  border: 1px solid rgba(125,211,252,0.18);
  color: rgba(229,231,235,0.90);
}

.project-grid .project-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.project-grid .project-card p {
  margin: 0;
  margin-top: 2px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 78ch;
}

/* tags row */
.project-grid .project-tags {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-grid .project-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;

  background: rgba(125,211,252,0.08);
  border: 1px solid rgba(125,211,252,0.16);
  color: rgba(229,231,235,0.92);
}

/* responsive polish */
@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-grid .project-card {
    padding: 22px;
  }
}
