.services-section {
  background: #000;
  color: white;
  padding: 60px 20px;
  text-align: center;
  overflow-x: hidden;
}

.services-title {
  font-size: 3rem;
  margin-bottom: 40px;
  text-align: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.service-box {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, background-image 0.4s ease;
  width: 22%;
  min-width: 300px;
  max-width: 300px;
  height: 500px;
}

.service-box:hover {
  transform: scale(1.03);
}

.service-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 2;
  transition: opacity 0.4s ease;
  text-align: left;
}

.service-box:hover .service-content {
  opacity: 0;
}

.service-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.service-1 {
  background-image: url('img/Boutique.png');
}
.service-1:hover {
  background-image: url('img/Boutique2.png');
}

.service-2 {
  background-image: url('img/Vitrine.png');
}
.service-2:hover {
  background-image: url('img/Vitrine2.png');
}

.service-3 {
  background-image: url('img/ap2.png');
}
.service-3:hover {
  background-image: url('img/ap3.png');
}

.service-4 {
  background-image: url('img/m2.png');
}
.service-4:hover {
  background-image: url('img/m3.png');
}

@media (max-width: 768px) {
  .services-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 20px;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-box {
    flex: 0 0 calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    height: auto;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
    border-radius: 12px;
  }
    .services-section {
    margin-top: -110px;
  }
  .services-title {
    margin-top: -30px;
  }
}