/*
 * Lider Metal - Neler Yapıyoruz Sayfası Stilleri
 * Hakkimizda.css ile uyumlu tasarım
 * Mobil & Tablet: 2 sütun | Top row altına boşluk | Genel boşluklar ferahlatıldı
 */

/* ============================================
   Services Section (Ana Konteyner)
   ============================================ */

.services-section {
  position: relative;
  padding: 80px 0 120px;
  z-index: 2;
  margin-bottom: 6rem;
  width: 100%;
}

/* ============================================
   Services Grid - Temel Yapı
   ============================================ */

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: center;
  align-items: stretch;
}

/* Top Row - 4 Kart (masaüstü) */
.services-grid-top {
  margin-bottom: 60px;           /* top row'un altına belirgin boşluk */
}

/* Bottom Row - 3 Kart (masaüstü) */
.services-grid-bottom {
  /* flex-wrap ile otomatik hallediliyor, ekstra class'a gerek yok */
}

/* Service Card - Temel Stil */
.service-card {
  background: #f0f0f0;
  padding: 35px 25px;
  border-radius: 40px 0 40px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 250px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(30px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #31508E 0%, #2C4475 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 40px 0 40px 0;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(49, 80, 142, 0.24);
  background: transparent;
  color: white;
}

.service-card:hover h3 {
  color: white;
}

/* Highlight Kart (orta kart - masaüstünde) */
.service-highlight {
  background: linear-gradient(135deg, #31508E 0%, #2C4475 100%);
}

.service-highlight::before {
  display: none;
}

.service-highlight:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 14px 28px rgba(49, 80, 142, 0.32);
}

/* Başlık */
.service-card h3 {
  font-size: 15px;
  color: #31508c;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-highlight h3 {
  color: #ffffff;
}

/* ============================================
   RESPONSIVE - EKSIKSIZ
   ============================================ */

/* Masaüstü - 992px ve üstü */
@media (min-width: 992px) {
  .services-grid-bottom {
    max-width: 820px;
    margin: 0 auto;
  }
  
  .service-card {
    width: 250px;
  }
}

/* Tablet: 768px - 991px → 2 sütun */
@media (max-width: 991px) {
  .services-section {
    padding: 70px 0 100px;
  }
  
  .services-grid {
    gap: 30px;
  }
  
  .services-grid-top {
    margin-bottom: 50px;
  }
  
  .service-card {
    width: calc(50% - 15px);     /* 2 sütun + gap yarısı */
    max-width: 380px;
    padding: 32px 24px;
  }
  
  .service-card h3 {
    font-size: 15px;
  }
}

/* Mobil: 576px - 767px → 2 sütun */
@media (max-width: 767px) {
  .services-section {
    padding: 60px 0 90px;
  }
  
  .services-grid {
    gap: 24px;
  }
  
  .services-grid-top {
    margin-bottom: 45px;         /* mobil için de top row altına boşluk */
  }
  
  .service-card {
    width: calc(50% - 12px);
    max-width: 340px;
    padding: 28px 20px;
    min-height: 160px;
  }
  
  .service-card h3 {
    font-size: 14.5px;
    margin-bottom: 14px;
  }
}

/* Küçük mobil: ≤ 575px → hala 2 sütun */
@media (max-width: 575px) {
  .services-section {
    padding: 50px 0 80px;
  }
  
  .services-grid {
    gap: 20px;
  }
  
  .services-grid-top {
    margin-bottom: 40px;
  }
  
  .service-card {
    width: calc(50% - 10px);
    padding: 26px 18px;
    border-radius: 32px 0 32px 0;
  }
  
  .service-card h3 {
    font-size: 14px;
  }
}

/* Çok küçük ekranlar: ≤ 379px → hala 2 sütun (çok dar değilse) */
@media (max-width: 379px) {
  .services-grid {
    gap: 16px;
  }
  
  .service-card {
    width: calc(50% - 8px);
    padding: 24px 16px;
  }
  
  /* Eğer çok dar gelirse tek sütun istersen bu kısmı aç:
  .service-card {
    width: 100%;
    max-width: 100%;
  }
  */
}