/* === Genel Stil Ayarları === */
:root {
  --primary-color: #e63946;
  --primary-dark: #c92a38;
  --gradient-accent: linear-gradient(90deg, #ff6b6b, #ffa502);
  --text-dark: #1b1b1b;
  --text-muted: #6c757d;
  --bg-light: #f9f9fb;
}

/* === Anasayfa Hizmetler Bölümü === */
.services-preview {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.services-preview h2 {
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.services-preview p {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* === Grid Yapısı === */
.services-preview .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
}

.services-preview .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* === Kart Tasarımı === */
.service-card {
  transition: all 0.4s ease;
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.service-detail-card {
  max-width: 900px;
  transform: translateX(-20px);
}

.service-detail-card .service-image-wrapper {
  height: 600px; /* Sabit yükseklik */
  overflow: hidden;
}

.service-detail-card .service-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Resim kart boyutuna uyar, kırpma yapar */
  transition: transform 0.5s ease;
}

.service-detail-card:hover .service-image {
  transform: scale(1.05);
}


.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-detail-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 40px 20px;
}


/* === Görseller === */
.service-image-wrapper {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.07);
  filter: brightness(1.05);
}

/* === Kart İçeriği === */
.card-body {
  padding: 2rem;
  text-align: center;
}

.card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.card-body p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* === Buton Stilleri === */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* === “Tüm Hizmetleri Gör” Butonu === */
.services-preview .text-center a.btn-primary {
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  padding: 12px 40px;
  margin-top: 40px;
}

/* === Hover Efektleri === */
.hover-zoom {
  transition: transform 0.4s ease;
}

.hover-zoom:hover {
  transform: scale(1.02);
}

/* === Responsive Ayarlar === */
@media (max-width: 992px) {
  .service-image {
    height: 220px;
  }

  .services-preview h2 {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .service-detail-wrapper {
    flex-direction: column;
    padding: 20px 10px;
    min-height: auto;
  }

  .service-detail-card {
    width: 100%;
    max-width: 100%;
    transform: none; /* X kaydırmasını kaldır */
    border-radius: 10px;
  }

  .service-detail-card .service-image-wrapper {
    height: 200px; /* Mobilde daha uygun yükseklik */
  }

  .service-detail-card .service-image {
    height: 100%;
    object-fit: cover;
  }

  .card-body {
    padding: 1.5rem;
    text-align: center;
  }

  .card-body h2 {
    font-size: 1.5rem;
  }

  .card-body p {
    font-size: 0.95rem;
  }

  .card-body .btn-primary {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
}

/* Küçük telefonlar için ekstra uyum */
@media (max-width: 576px) {
  .service-detail-card .service-image-wrapper {
    height: 180px;
  }

  .card-body h2 {
    font-size: 1.3rem;
  }

  .card-body p {
    font-size: 0.9rem;
  }
}