/* HİZMETLER – GÖRSELLİ KART TASARIMI
   ===================================== */
.services-section {
  background-color: #ffffff;
}

/* 4 kolon grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  margin-top: 28px;
}

/* Kartlar */
.service-card {
  position: relative;
  height: 350px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover'da hafif zoom + gölge */
.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 28px rgba(0,0,0,0.18);
}

/* Koyu overlay (METNİ OKUNUR YAPAN KISIM) */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);               /* her yerde koyu */
  transition: 0.3s ease;
}

.service-card:hover::before {
  background: rgba(0,0,0,0.8);                /* hover’da biraz daha koyu */
}

/* Yazı alanı – ortada */
.service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* dikey ortala */
  align-items: center;       /* yatay ortala */
  text-align: center;
  padding: 20px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* Başlık */
.service-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.9);     /* güçlü gölge */
}

/* Açıklama */
.service-overlay p {
  font-size: 1rem;
  max-width: 260px;
  margin: 0;
  color: #f8f8f8;
  opacity: 1;                                  /* tam görünür */
  text-shadow: 0 3px 8px rgba(0,0,0,0.9);     /* güçlü gölge */
}

/* Hover’da yazı hafif yukarı çıksın ama kaybolmasın */
.service-card:hover .service-overlay {
  transform: translateY(-6px);
}

/* RESPONSIVE – tablet */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    height: 300px;
  }
}

/* RESPONSIVE – mobil */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 240px;
  }

  .service-overlay h3 {
    font-size: 1.3rem;
  }

  .service-overlay p {
    font-size: 0.9rem;
  }
}
