/* --- 1. GENEL SAYFA YAPISI --- */
.hizmet-anlayisimiz-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  animation: fadeIn 0.8s ease-in-out;
}

/* --- 2. MASTER WRAPPER (Ana Kart) --- */
.hizmet-anlayisimiz-wrapper {
  background: linear-gradient(145deg, #0f3d2e 0%, #002b20 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 50px;
  position: relative;
  overflow: hidden;
  /* min-height kaldırıldı */
}

/* Dekoratif Arka Plan İkonu */
.hizmet-anlayisimiz-wrapper::before {
  content: "\f275"; /* FontAwesome Industry Icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 15rem;
  color: rgba(74, 222, 128, 0.03);
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

/* --- 3. ANA BAŞLIK --- */
.hizmet-anlayisimiz-alt-baslik {
  position: relative;
  z-index: 2;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(to right, #ffffff, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 5px solid #009d6c;
  padding-left: 15px;
}

.hizmet-anlayisimiz-alt-baslik i {
  color: #4ade80;
  -webkit-text-fill-color: initial;
}

/* --- 4. NAVİGASYON (DÜZELTİLEN KISIM) --- */
.nav-bar-container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.navbar {
  display: flex;
  flex-direction: row; /* Yan yana diz */
  justify-content: center; /* Ortala */
  align-items: center;
  gap: 10px; /* Butonlar arası boşluk */
  flex-wrap: wrap; /* Sığmazsa aşağı geçsin (Masaüstü için) */
}

/* Navigasyon Linkleri (Butonlar) */
.navbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px; /* İç boşluğu optimize ettik */
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap; /* Yazı asla alt satıra inmez, buton tek satır kalır */
}

/* Hover Efekti */
.navbar a:hover {
  background: rgba(74, 222, 128, 0.15);
  color: #fff;
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateY(-2px);
}

/* AKTİF LİNK */
.navbar a.active-link {
  background: #4ade80;
  color: #000;
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
  font-weight: 700;
}

/* --- 5. İÇERİK SEKSİYONLARI --- */
.hizmet-content {
  display: none; /* Varsayılan gizli */
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  animation: fadeUp 0.5s ease-out;
}

.hizmet-content.active {
  display: block; /* Aktif olanı göster */
}

.hizmet-content h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #4ade80;
  display: inline-block;
  padding-bottom: 5px;
}

.hizmet-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.hizmet-content strong {
  color: #4ade80;
}

/* --- 6. LİSTE YAPISI --- */
.hizmet-content ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.hizmet-content li {
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid #4ade80;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hizmet-content li:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(74, 222, 128, 0.2);
}

.hizmet-alt-baslik {
  color: #4ade80;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.hizmet-alt-icerik {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- 7. ALINTI KUTUSU --- */
.quote-anlayis {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(
    90deg,
    rgba(0, 157, 108, 0.15) 0%,
    transparent 100%
  );
  border-radius: 20px;
  border-left: 6px solid #009d6c;
  font-style: italic;
  font-size: 1.15rem;
  color: #fff;
  position: relative;
}

.quote-anlayis::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: rgba(74, 222, 128, 0.1);
}

/* --- 8. ANİMASYONLAR --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================================
   KATIDIR - MOBİL UYUMLULUK YAMASI
   (Mevcut tüm media query'lerin yerine geçecek)
   ========================================= */

@media (max-width: 1024px) {
  /* Tablet ve Küçük Laptoplar için Güvenlik Önlemi */
  .hizmet-content ul {
    /* 350px zorlamasını kaldırıp esnek yapıyoruz */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  /* 1. ANA KONTEYNERİ EHLİLEŞTİRME */
  .hizmet-anlayisimiz-container {
    padding: 10px !important; /* Dış boşluğu azalt */
    width: 100% !important;
    overflow-x: hidden !important; /* Taşmayı kesin engelle */
  }

  .hizmet-anlayisimiz-wrapper {
    padding: 25px 15px !important; /* İç boşluğu daralt */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important; /* Padding şişirmesin */
    border-radius: 20px !important;
  }

  /* 2. SUÇLUYU DÜZELTME (GRID SİSTEMİ) */
  .hizmet-content ul {
    display: flex !important; /* Grid yerine Flex kullan */
    flex-direction: column !important; /* Alt alta diz */
    width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    gap: 15px !important;
  }

  .hizmet-content li {
    width: 100% !important;
    max-width: 100% !important; /* Asla taşma yapma */
    min-width: 0 !important; /* Flexbox bug'ını önle */
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* 3. METİN BOYUTLARINI DENGELEME */
  .hizmet-anlayisimiz-alt-baslik {
    font-size: 1.6rem !important;
    white-space: normal !important; /* Başlık uzunsa alt satıra insin */
  }

  .hizmet-content h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  .hizmet-content p,
  .hizmet-alt-icerik {
    font-size: 0.95rem !important;
    text-align: left !important; /* Mobilde sola dayalı daha iyi okunur */
    word-wrap: break-word !important; /* Uzun kelime varsa böl */
  }

  /* 4. ALINTI KUTUSU */
  .quote-anlayis {
    margin-top: 20px !important;
    padding: 20px !important;
    font-size: 1rem !important;
  }
}
