/* Tam ekran bölüm ayarı */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

/* Buton Stili */
.btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-blue);
  color: white !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #0d3691;
  transform: translateY(-2px);
}

.btn i {
  margin-left: 8px;
}

/* --- NAVBAR --- */
header {
  height: 100px !important; /* Yükseklik artık sabit, değişmez */
  background-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease; /* Sadece renk geçişi olsun, boy değişmesin */
  display: flex;
  align-items: center;
}

header.scrolled {
  background-color: #fff !important;
  padding: 0 !important; /* Boyutun değişmemesi için padding'i sıfırladık */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}
.logo-default {
  display: block; /* İlk logo görünsün */
}
.logo-sticky {
  display: none; /* İkinci logo gizlensin */
}

/* 2. Scroll Durumu (Aşağı inilince) */
/* Senin gönderdiğin 'header.scrolled' sınıfı aktif olduğunda çalışır */
header.scrolled .logo-default {
  display: none; /* İlk logoyu gizle */
}

header.scrolled .logo-sticky {
  display: block; /* İkinci logoyu göster */
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center; /* Dikeyde ortala */
  justify-content: flex-start; /* Logoyu sola yasla (veya center) */
  width: auto; /* Genişliği serbest bırak (sabit 120px olmasın) */
  min-width: 150px; /* En az bu kadar yer kaplasın */
  height: 100%; /* Header yüksekliği (80px) kadar olsun */
  overflow: visible; /* Taşan kısımları (zoom yaparsak) gizleme, gerekirse 'hidden' yapın */
  position: relative;
}

.logo-img {
  /* Sabit konumlandırma (absolute) yerine esnek yapı kullanıyoruz */
  position: relative;
  width: auto !important; /* Genişlik orantılı olsun */
  height: auto !important; /* Yükseklik orantılı olsun */

  /* Logoyu sınırlandırmak için maksimum değerler */
  max-height: 80px; /* Header 80px ise logo 60px olsun (padding gibi boşluk kalır) */
  max-width: 200px; /* Çok aşırı uzamasını engeller */

  /* Görselin kendisinde çok boşluk varsa aşağıdaki değeri artırın (örn: 1.3 veya 1.5) */
  transform: scale(1.2);

  object-fit: contain;
  margin: 0 !important;
  padding: 0 !important;

  /* Önceki absolute/transform kodlarını iptal ediyoruz */
  top: auto;
  left: auto;
}
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
header.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a:hover {
  color: white;
}

header.scrolled .nav-links a:hover {
  color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, #0a2558 0%, #1e1b4b 100%);
  color: white;
  padding-top: 120px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.hero-text h1 {
  font-size: 5.5rem;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-sub {
  max-width: 400px;
  text-align: right;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.hero-btn-container {
  margin-top: 50px;
  width: 100%;
}

.hero-btn-container .btn {
  background-color: white;
  color: var(--primary-blue) !important;
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* --- SERVICES SECTION --- */
.services {
  background-color: #fff;
  align-items: flex-start;
}

.section-header {
  margin-bottom: 70px;
  position: relative;
  width: 100%;
}

.section-header h2 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark-blue-text);
  text-transform: uppercase;
}

.section-header h2 span {
  color: var(--primary-blue);
}

.section-header p {
  margin-top: 20px;
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
}

.services-link {
  position: absolute;
  right: 0;
  top: 20px;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 24px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-box {
  width: 60px;
  height: 60px;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-blue-text);
}

.service-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- STATS SECTION (Hizmetlerden Sonra) --- */
.stats {
  background: linear-gradient(to right, #0a2558, #154cbd);
  color: white;
  min-height: auto;
  padding: 100px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  font-size: 4.5rem;
  font-weight: 900;
}

.stat-item p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* --- TESTIMONIAL --- */
.testimonial {
  background-color: #fff;
}

.testimonial-content {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.testimonial-text {
  flex: 1;
}
.testimonial-image {
  flex: 1;
  height: 500px;
}
.testimonial-image img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
}

.quote {
  font-family: "Poppins", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue-text);
  margin: 25px 0 40px 0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.author-initials {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- CTA SECTION --- */
.partners {
    padding: 100px 0;
    background-color: #ffffff; /* İsterseniz main.css'deki gri tonu kullanabilirsiniz */
}

.partners .section-header {
   
    margin-bottom: 60px;
}

.partners .section-header h2 {
    font-size: 3.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.partners .section-header h2 span {
    color: var(--primary-blue, #007bff); /* main.css'deki mavi değişkeniniz */
}

.partners .section-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Masaüstünde yan yana 5 logo */
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-item {
    width: 100%;
    height: 120px; /* Kutunun yüksekliği sabit kalsın */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd; 
    border-radius: 12px;
    padding: 0; /* İç boşluğu tamamen sıfırladık, logo kutuya dayansın */
    overflow: hidden; /* Eğer logo taşarsa kutunun dışına çıkmasın */
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.partner-item img {
    width: 90%; /* Genişlik kutunun %90'ını kaplasın */
    height: 90%; /* Yükseklik kutunun %90'ını kaplasın */
    object-fit: contain; /* Logoyu sünnetmeden/bozmadan olabildiğince büyütür */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1); /* Mouse ile gelince logo kutu içinde hafifçe şahlanmış olur */
}

.partner-item:hover {
    transform: scale(1.05); /* Sadece yukarı çıkmasın, biraz da büyüsün */
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.1); /* Mavi temalı hafif bir gölge */
    border-color: var(--primary-blue, #007bff);
    background: #fff;
}


/* Tablet ve Mobil Uyumluluk */
/* Masaüstü ayarları zaten sende var, en alta bunları ekle veya değiştir */

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr); /* Tablette yan yana 4 logo */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 60px 0; /* Mobilde dikey boşluğu biraz azalttık */
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr); /* Küçük tablette yan yana 3 logo */
        gap: 15px;
    }

    .partners .section-header h2 {
        font-size: 2rem; /* Başlık mobilde çok büyük kalmasın */
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* Telefonlarda yan yana 2 logo */
        gap: 10px;
    }

    .partner-item {
        height: 100px; /* Mobilde kutu boyunu biraz küçülttük */
        padding: 5px;
    }

    .partner-item img {
        width: 80%; /* Logolar mobilde kutuya çok yapışmasın */
    }
}


/* --- MOBİL MENÜ TASARIMI --- */
.menu-toggle {
  display: none; /* Masaüstünde gizli */
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}


.menu-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: var(--primary-blue);
  transition: 0.3s;
  border-radius: 2px;
}


.mobile-only {
  display: none;
} /* Masaüstünde gizle */

.btn-nav {
  background: var(--primary-blue);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}



/* --- MOBİL MENÜ KESİN ÇÖZÜM --- */
@media (max-width: 992px) {
  /* 1. Menü Paneli Ayarları */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important; /* Başlangıçta gizli */
    width: 280px !important;
    height: 100vh !important;
    background-color: #ffffff !important; /* Panel bembeyaz */
    display: flex !important;
    flex-direction: column !important; /* Linkleri alt alta diz */
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 100px 30px !important;
    transition: left 0.4s ease-in-out !important;
    z-index: 10000 !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  }

  /* Menü aktif olduğunda ekrana gelsin */
  .nav-links.active {
    left: 0 !important;
  }

  /* 2. Menü İçindeki Linklerin Görünürlüğü (En Kritik Kısım) */
  .nav-links li {
    width: 100% !important;
    list-style: none !important;
    margin-bottom: 15px !important;
  }

  .nav-links a {
    color: #0a2558 !important; /* Beyaz zeminde görünmesi için lacivert */
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    display: block !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
  }

  /* 3. Hamburger Butonu Her Zaman Üstte Kalsın */
  .menu-toggle {
    display: flex !important;
    z-index: 10001 !important;
    position: relative;
    cursor: pointer;
  }

  /* 4. Karartma Perdesi */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(4px);
  }

  .nav-overlay.active {
    display: block !important;
  }

  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

 .desktop-only {
    display: none !important;
  }

  /* Menü açıldığında butonun menüyle çakışmasını engellemek için */
  header .btn-nav {
    display: none !important;
  }
}

/* 1. Başlangıçta gizlenecek öğeler */
/* Buraya animasyonlu gelmesini istediğin tüm genel yapıları ekleyebilirsin */
h1,
h2,
h3,
.service-card,
.stat-item,
.testimonial-content,
.cta h2,
.footer-col,
.hero-sub,
p {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Daha akıcı bir geçiş */
  will-change: opacity, transform;
}

/* 2. Ekrana girince tetiklenecek sınıf */
.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 3. Yan yana duran öğeler için otomatik gecikme (Sıralı geliş efekti) */
/* Aynı kutu içindeki öğeler sırayla gelsin */
.is-visible:nth-child(2) {
  transition-delay: 0.1s;
}
.is-visible:nth-child(3) {
  transition-delay: 0.2s;
}
.is-visible:nth-child(4) {
  transition-delay: 0.3s;
}