.services-grid {
  display: flex;
  gap: 1.54rem;
  justify-content: center;
  /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem; */
  margin-top: 2rem;
}

.service-card {
  position: relative;
  /* aspect-ratio: 5/4; */
  overflow: hidden;
  width: 100%;
  text-decoration: none;
  color: black;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  background-color: white;
}

.service-card:hover {
  transform: scale(1.02);
}

.image-wrapper {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  overflow: hidden;
  background: #474747;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.arrow {
  color: white;
  font-size: 3rem;
  transform: translateX(-10px);
  transition: transform 0.3s ease;
}

.service-card:hover .image-wrapper img {
  opacity: 0.5;
}

.service-card:hover .overlay {
  opacity: 1;
}

.service-card:hover .arrow {
  transform: translateX(0);
}

.service-card h3 {
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

@media screen and (max-width: 800px) {
  .service-card {
    width: 100%;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
  }
  .image-wrapper {
    aspect-ratio: 6 / 3;
  }
}
