.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(var(--white),0.04);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(var(--black),0.08);
  overflow: hidden;
  text-decoration: none;
  color: rgb(var(--white));
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.project-card:hover {
  transform: scale(1.045);
  box-shadow: 0 6px 32px 0 rgba(var(--black), 0.18);
  z-index: 2;
}
.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #181a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.project-card:hover .project-image img {
  transform: scale(1.07) rotate(-1deg);
}
.project-info {
  padding: 1.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.tag {
  font-size: 0.85rem;
  padding: 0.25em 0.9em;
  border-radius: 1em;
  background: rgba(var(--white),0.13);
  color: rgb(var(--white));
  border: 1px solid rgba(var(--white),0.18);
  margin-right: 0.2em;
  margin-bottom: 0.2em;
  transition: background 0.2s;
}

@media (min-width: 999px) {
  .projects {
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
  }
  .project-card {
    flex: 1 1 0;
    max-width: 350px;
    min-width: 0;
  }
}
