/* ==========================================================================
   ASILGEN MÜHENDİSLİK — About Section CSS
   Hakkımızda bölümü; arka plan görseli, overlay, yıldız katmanı, metin
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section Kapsayıcı
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Arka Plan Görseli
   Dosya bulunamazsa CSS renk fallback'i devreye girer.
   -------------------------------------------------------------------------- */
.about-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;

  /* Yavaş zoom efekti ve tema geçişi için opacity */
  transform: scale(1.05);
  transition: transform 8s ease-out, opacity 0.8s ease;
}

/* Görsel yüklenince animasyonu başlat */
.about-bg-image.is-loaded {
  transform: scale(1);
}

/* Tema Görsel Geçişi (Yumuşak Crossfade) */
.about-bg-dark {
  opacity: 1;
}

.about-bg-light {
  opacity: 0;
}

[data-theme="light"] .about-bg-dark {
  opacity: 0;
}

[data-theme="light"] .about-bg-light {
  opacity: 1;
}

/* CSS Fallback — görsel yoksa bu renk görünür */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827 0%, #1f2937 40%, #111111 100%);
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Karartma Overlay (z-index: 1)
   -------------------------------------------------------------------------- */
.about-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  /* Görseli soluklaştırmaması için karartma kaldırıldı */
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Metin İçerik Alanı (z-index: 3 — yıldız canvas'ının üstünde)
   -------------------------------------------------------------------------- */
.about-content {
  position: relative;
  z-index: 3;
  max-width: clamp(320px, 55%, 680px);
  padding: 80px 60px;
}

/* --------------------------------------------------------------------------
   Üst Etiket
   -------------------------------------------------------------------------- */
.about-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  padding: 4px 12px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
  border-radius: 100px;
  background: rgba(var(--color-accent-rgb), 0.08);
}

/* --------------------------------------------------------------------------
   Section Başlık
   -------------------------------------------------------------------------- */
.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.15;

  /* Giriş animasyonu — scroll triggered JS ile tetiklenir */
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-title.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Metin Paragrafı
   -------------------------------------------------------------------------- */
.about-text {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);

  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.about-text.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   İstatistik Kutuları
   -------------------------------------------------------------------------- */
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.about-stats.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-stat__number {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.about-stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* .about-deco tamamen kaldırıldı */

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .about-content {
    padding: 60px 32px;
    max-width: 100%;
  }

  .about-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-content {
    padding: 48px 24px;
  }
}

/* --------------------------------------------------------------------------
   Aydınlık (Light) Tema Metin Renkleri & Okunabilirlik
   -------------------------------------------------------------------------- */
[data-theme="light"] .about-title {
  color: #000000;
}

[data-theme="light"] .about-text {
  color: #000000;
  font-weight: 500; /* İnce fontu biraz daha kalınlaştırdık */
}

[data-theme="light"] .about-stat__label {
  color: #000000;
  font-weight: 600;
}