#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#project-container {
  padding: 20px 50px 50px 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.project-item {
  width: 250px;
  height: 250px;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  transition: box-shadow 0.3s ease;
}

.project-item:hover {
  box-shadow: 0 0 15px #cad3d5;
}
#project-container > a {
  background-size: cover;
  border-radius: 10px;
}
#project-container > a:nth-child(1) {
  background-image: url(/assests/images/medical.png);
}
#project-container > a:nth-child(2) {
  background-image: url(/assests/images/hotel.webp);
}
#project-container > a:nth-child(3) {
  background-image: url(/assests/images/tic-tac-toe.webp);
}
#project-container > a:nth-child(4) {
  background-image: url(/assests/images/movie.webp);
}

.project-overlay {
  height: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(255, 255, 255, 0)
  );
  & p,
  h5 {
    color: white;
    margin: 0;
  }
  & p {
    padding-bottom: 40px;
  }
  & i {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
}
.project-overlay:hover {
  opacity: 1;
}