body {
  background-image: url("../media/imgs/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.portfolio-h1 {
  position: relative;
  margin-top: 100px;
  margin-left: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 2.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  transform-origin: center center;
}

.project-title {
  margin-top: 0.75rem;
  font-size: 22px;
  color: rgb(66, 94, 155);
  background-color: white;
  width: fit-content;
  padding: 0.25rem 0.5rem;
  font-style: italic;
}

.project-card:hover img {
  animation: wiggle 0.4s ease-in-out infinite;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
