.projects-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0 auto;
  width: 100%;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.project-item:hover img {
  filter: blur(3px) brightness(0.8);
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:hover .overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .project-item img {
    height: 180px;
  }
}
