/* 
=========================
HERO SLIDER ALANI 
=========================
*/
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(
    45rem,
    65vh,
    45rem
  ); /* Refined height for better visibility on high-res */
  min-height: 28rem;
  border-radius: 1.5rem;
  box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background-color: #0f172a;
  cursor: grab;
  user-select: none;
}

.hero-slider:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Slayt Geçiş Animasyonları */
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Resimlerin üzerindeki beyaz metinlerin kolay okunması için şık siyah karartma */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.4),
    rgba(15, 23, 42, 0.7)
  );
  z-index: 3;
}

/* Yazıların Ekrana Geliş Animasyonu */
.slide-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 0 2rem;
  transform: translateY(30px); /* İlk başta biraz aşağıda başlasın */
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s; /* Slayt geldikten hemen sonra yazılar havalı bir şekilde yukarı kaysın */
}

/* Active olunca yazılar görünür olsun */
.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h1 {
  font-size: clamp(2rem, 5vw, 4rem); /* Fluid typography */
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}

.slide-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: #e2e8f0;
  text-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.5);
}

/* Slider Pagination Styles */
.slider-pagination {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.dot {
  width: 0.6rem; /* Scaled down for better proportion */
  height: 0.6rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot.active {
  background-color: #ffffff;
  width: 2rem; /* Scaled down for better proportion */
  border-radius: 1rem;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Mobil için Slider Metinleri Uyumlu Hale Getirildi */
@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2.5rem;
  }
  .slide-content p {
    font-size: 1.1rem;
  }
}

/* 
=========================
ÖZELLİKLER (FEATURES) ALANI 
=========================
*/
/* Standard Card System */
.card-container {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 8vw, 12rem); /* Increased for more negative space */
  width: 100%;
}

.card {
  width: 100%;
  background-color: #ffffff;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.features-section.card-container {
  margin-top: 6rem;
  margin-bottom: 4rem;
}

.feature-card.card {
  display: flex;
  align-items: stretch;
  gap: clamp(2.5rem, 6vw, 10rem); /* More room to breathe */
  border-radius: 1.5rem;
  overflow: hidden;
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 38%; /* Reduced footprint for better balance with text */
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.07);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-image:hover img {
  transform: scale(1.04);
}

.feature-text.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0; /* Proportionally adjusted */
}

.feature-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); /* Increased for better hierarchy */
  font-weight: 800;
  color: #0f172a;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-text p {
  font-size: clamp(
    1rem,
    1.1vw,
    1.15rem
  ); /* Slightly increased for readability */
  color: #475569;
  line-height: 1.7;
  text-align: justify;
}

/* Mobilde ve Küçük Ekranda Responsive Tasarım */
@media (max-width: 900px) {
  .feature-card,
  .feature-card.reverse {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .feature-image {
    max-width: 90%;
    margin: 0 auto;
  }

  .feature-image img {
    height: auto;
    max-height: 300px;
  }
}

/* 
=========================
AVANTAJLAR (DEĞERLERİMİZ) ALANI 
=========================
*/
.advantages-section {
  margin-top: 6rem;
  margin-bottom: 6rem;
  background-color: transparent; /* Kutu havasından çıkıp sayfa ile bütünleştirdik */
  padding: 0;
  width: 100%;
}

.advantages-container.card-container.card-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: clamp(2rem, 4vw, 6rem); /* Increased spacing */
  align-items: stretch;
  margin: 0 auto;
  flex-wrap: wrap;
}

.advantage-card.card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background: transparent;
  padding: 2rem 0 0 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  transition:
    transform 0.4s ease,
    border-top-color 0.4s ease;
  border-top: 2px solid #e2e8f0;
}

.advantage-card.card:hover {
  transform: translateY(-5px);
  border-top-color: #3b82f6;
}

/* Gelişmiş SVG ikon düzenlemesi */
.adv-icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.advantage-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.2px;
}

.advantage-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  text-align: center; /* Yaslama (justify) özelliği kaldırılarak üst başlıkla uyumlu bir ortalama yapısı sağlandı */
}

@media (max-width: 1024px) {
  .advantages-container.card-container.card-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .advantages-container.card-container.card-grid {
    flex-direction: column;
    align-items: center;
  }
  .advantage-card.card {
    width: 90%;
    max-width: 90%;
  }
}

@media (max-width: 640px) {
  .advantages-container.card-container.card-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* 
=========================
REFERANSLAR ALANI 
=========================
*/
.references-section {
  padding: 4rem 0 5rem 0;
  background-color: #ffffff; /* Ana sayfa ile birebir aynı beyaz renge getirildi */
  border-bottom: 1px solid #e2e8f0; /* İstediğiniz gibi alt kısma bir sınır çizgisi eklendi */
}

.references-header {
  text-align: center;
  margin-bottom: 4.5rem; /* Çizgiden dolayı boşluk biraz artırıldı */
}

.references-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1.2rem;
  display: inline-block; /* Çizginin tamamen metin uzunluğuyla hizalanması için eklendi */
}

/* Başlığın altına belirginleştiren çizgi */
.references-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* Çizgi artık yazının birebir boyutunda */
  height: 4px;
  background-color: #e2e8f0; /* Avantajlar kartındaki ile aynı açık gri tona getirildi */
  border-radius: 2px;
}

/* Kayan Kutu Sınırları */
.references-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  cursor: grab;
  width: 100%;
}

.references-wrapper:active {
  cursor: grabbing;
}

.references-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.ref-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  min-width: 20rem;
  height: 11.25rem;
}

.ref-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  /* Tüm hover (yakınlaşma), grayscale gri yapma veya renkleriyle oynama durumları TAMAMEN KALDIRILDI */
}

/* Responsive (Tablets & Mobile) */
@media (max-width: 1024px) {
  .hero-slider {
    height: 25rem;
  }
  .references-header h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 22rem;
  }
  .slide-content h1 {
    font-size: 2.2rem !important;
  }
  .slide-content p {
    font-size: 1rem !important;
  }
  .features-section {
    margin-top: 3rem;
    gap: 4rem;
  }
  .ref-slide {
    min-width: 220px;
    height: 120px;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 18.75rem;
  }
  .slide-content h1 {
    font-size: 1.8rem !important;
  }
  .advantages-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
  .references-section {
    padding: 3rem 0;
  }
  .references-header h2 {
    font-size: 1.6rem;
  }
  .ref-slide {
    min-width: 180px;
    height: 100px;
  }
}
