.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.project:hover img {
  transform: scale(1.1);
}

.project .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(255, 0, 127, 0.85);
  width: 100%;
  text-align: center;
  color: white;
  padding: 10px;
  font-weight: bold;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.project:hover .overlay {
  transform: translateY(0);
}
