.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.project-card {
  position: relative;
  width: calc(33.333% - 16px);
  overflow: hidden;
  border-radius: 8px;
}

.project-img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity 0.3s ease;
}

.project-title {
  font-size: 18px;
  margin: 0 0 4px;
}

.project-category {
  font-size: 14px;
  margin: 0;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
  .project-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 575px) {
  .project-card {
    width: 100%;
  }
}
