:root {
  --primary-color: #ed1c24; /* Strabag Kırmızısı */
  --bg-dark: #ffffff; /* Ana Arka Plan (Bembeyaz) */
  --card-bg: #f8f9fa; /* Kartlar ve Alt Alanlar İçin Hafif Gri/Beyaz */
  --border-color: #e2e8f0; /* Temiz ve Hafif Sınır Çizgileri */
  --text-light: #1a1a1a; /* Başlıklar İçin Koyu Gri/Siyah (Eski adı text-light kaldı ama görevi koyu oldu) */
  --text-muted: #64748b; /* Yardımcı Yazılar İçin Net Soluk Gri */
}

html {
  scroll-behavior: smooth;
  /* Ekrandan taşan bir öğe sayfayı yatayda kaydırmasın */
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}
/* --- HERO ALANI --- */
/* --- %100 KUSURSUZ HERO SLIDER DÜZENİ --- */
.hero {
  position: relative !important;
  height: 75vh !important;
  width: 100% !important;
  overflow: hidden !important;
  background-color: #000 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.hero .slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;

  /* Gizleme Elementleri */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  /* Pürüzsüz Geçiş efekti */
  transition:
    opacity 0.8s ease-in-out,
    visibility 0.8s ease-in-out !important;
  z-index: 1 !important;
}

/* Sadece aktif olan slayt öne çıksın ve tıklanabilsin */
.hero .slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

.hero-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.55) !important;
  z-index: 1 !important;
}

.hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 800px !important;
  color: #ffffff !important;
  margin: 0 auto !important;
}

/* OK BUTONLARININ SLIDER İÇİNE KİLİTLENMESİ */
.slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 2.2rem !important;
  padding: 12px 18px !important;
  cursor: pointer !important;
  z-index: 10 !important; /* Oklar en üstte kalmalı */
  transition:
    background-color 0.3s ease,
    transform 0.2s ease !important;
  border-radius: 4px !important;
}

.slider-arrow:hover {
  background-color: var(--primary-color, #ed1c24) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.prev-arrow {
  left: 30px !important;
}

.next-arrow {
  right: 30px !important;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-color, #3b82f6); /* Seçtiğin palete göre renk alacak */
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px 0;
}

.hero-content p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* Buton Tasarımları */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color, #3b82f6);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #000;
}

/* --- GRİD VE KARTLAR --- */
.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 30px;
}

.card {
  background: var(--card-bg, #172033);
  border: 1px solid var(--border-color, #2e3f5f);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color, #3b82f6);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

/* --- FAALİYET ALANLARI KARTLARI: HOVER'DA AÇIKLAMA ANİMASYONU --- */
.strabag-card .strabag-overlay {
  transition: background 0.35s ease;
}
.strabag-card:hover .strabag-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.1) 100%
  ) !important;
}
.strabag-content {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  z-index: 2;
}
.strabag-line {
  display: block;
  width: 42px;
  height: 3px;
  background: var(--primary-color, #ed1c24);
  margin-bottom: 14px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.strabag-card:hover .strabag-line {
  transform: scaleX(1);
}
.strabag-desc {
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease 0.05s,
    margin-top 0.4s ease;
}
.strabag-card:hover .strabag-desc {
  max-height: 140px;
  opacity: 1;
  margin-top: 10px;
}

.card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(237, 28, 36, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}
.card:hover .card-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary-color, #ed1c24);
}

.card-placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #1e293b,
    #0f172a
  ); /* Şık, karanlık bir geçici görsel */
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color, #3b82f6);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.card-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-content p {
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid var(--border-color, #2e3f5f);
  padding-top: 15px;
  margin-top: auto;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color, #ed1c24); /* açık renk kart üzerinde okunabilsin */
  transition: color 0.2s;
}

.card:hover .card-link {
  color: var(--primary-color, #3b82f6);
}

/* Admin ve form alanları için açık tema input desteği */
input[type="text"],
input[type="password"],
textarea {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid #cbd5e1 !important;
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: #ed1c24 !important;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.2);
}

/* --- KURUMSAL FOOTER (İLETİŞİM) STILLERİ --- */
.site-footer {
  background-color: #0b0f19 !important; /* Ferah açık gri arka plan */
  border-top: 1px solid #1e293b !important;
  padding: 60px 0 0 0 !important;
  margin-top: 80px !important;
  font-family: sans-serif !important;
  color: #94a3b8 !important;
}
.footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr 1fr !important;
  gap: 40px !important;
  padding-bottom: 40px !important;
}

.footer-column h3 {
  color: #ffffff !important; /* Başlıklar bembeyaz ve net */
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  position: relative !important;
}

/* Başlıkların altına Strabag kırmızısı küçük çizgi */
.footer-column h3::after {
  content: "" !important;
  position: absolute !important;
  bottom: -6px !important;
  left: 0 !important;
  width: 35px !important;
  height: 3px !important;
  background-color: var(--primary-color, #ed1c24) !important;
}

/* Sol Sütun: Logo ve Açıklama */
.footer-logo img {
  height: 45px !important;
  margin-bottom: 15px !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.footer-desc {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #94a3b8 !important;
}

/* Hızlı Linkler Sütunu */
.footer-links ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links ul li {
  margin-bottom: 10px !important;
}

.footer-links ul li a {
  color: #cbd5e1 !important; /* Link renkleri açık gri */
  text-decoration: none !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
}

.footer-links ul li a:hover {
  color: var(
    --primary-color,
    #ed1c24
  ) !important; /* Hover'da Strabag Kırmızısı */
  padding-left: 5px !important;
}

/* İletişim Bilgileri Sütunu */
.footer-contact p {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 0 12px 0 !important;
  color: #94a3b8 !important;
}

.footer-contact strong {
  color: #ffffff !important; /* İkon yanındaki yazılar beyaz */
}

/* En Alt İnce Şerit (Bir ton daha koyu siyah) */
.footer-bottom {
  background-color: #070a10 !important;
  color: #64748b !important;
  text-align: center !important;
  padding: 20px 0 !important;
  font-size: 0.85rem !important;
  border-top: 1px solid #1e293b !important;
}

.footer-bottom p {
  margin: 0 !important;
}

/* Mobil Uyum Yapısı */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  /* 4. Slayt Oklarının Küçültülmesi ve Hizalanması */
  .slider-arrow {
    font-size: 1.2rem !important; /* Ok simgelerini mobilde küçülttük */
    padding: 8px 12px !important; /* Arka plan kutusunu daralttık */
    background-color: rgba(0, 0, 0, 0.5) !important;
  }
  .prev-arrow {
    left: 10px !important; /* Oku sol kenara iyice yanaştırdık */
  }
  .next-arrow {
    right: 10px !important; /* Oku sağ kenara iyice yanaştırdık */
  }
}
/* --- STRABAG SEKMELERI ANIMASYONLARI --- */
.strabag-card {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Kartın üzerine gelince fotoğraf katmanının hafifçe koyulaşması ve canlanması */
.strabag-card:hover .strabag-overlay {
  background: linear-gradient(
    to top,
    rgba(237, 28, 36, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.1) 100%
  ) !important; /* Alt tarafta Strabag kırmızısı parlaması */
}

.strabag-card:hover h3 {
  transform: scale(1.03) !important;
  transition: transform 0.3s ease !important;
}

/* Mobil Cihazlarda Düzenin Bozulmaması İçin (3 Sütundan Tek Sütuna Düşme) */
@media (max-width: 992px) {
  .strabag-about-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 576px) {
  .strabag-about-grid {
    /* minmax(0, 1fr): uzun başlık kelimeleri sütunu ekrandan geniş yapmasın */
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .strabag-about-grid h2 {
    overflow-wrap: break-word;
  }
}

/* Menüyü sağa gizleme kuralı */
.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 10001;
  /* Ekranın %100 sağında (dışında) bekletiyoruz */
  transform: translateX(100%);
  /* Pürüzsüz akıcı animasyon geçişi */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* JavaScript tetikleyince devreye giren sınıf */
.side-drawer.active {
  transform: translateX(0); /* Menüyü ekrana sokuyoruz */
}

/* Arka planı karartma ve blurlama efekti */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px); /* Modern cam blurlama efekti */
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  /* 1. Hero / Slayt Alanı Optimizasyonu */
  .hero {
    height: 55vh !important; /* Telefonlarda yüksekliği daralttık */
  }
  .hero-content h1 {
    font-size: 1.8rem !important; /* Başlığı okunabilir seviyeye çektik */
    margin-bottom: 15px !important;
  }
  .hero-content p {
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
  }

  /* 2. Kartlar ve Grid Düzenini Tek Sütuna Çekme */
  .grid {
    grid-template-columns: 1fr !important; /* Yan yana duran kartlar alt alta hizalanır */
    gap: 20px !important;
  }
  .card-img-wrapper {
    height: 160px !important; /* Kart fotoğraflarını küçülttük */
  }
  .card-content {
    padding: 16px !important; /* İç dolguları daraltarak alandan tasarruf ettik */
  }

  /* 3. Strabag Tarzı Faaliyet Alanı Kartları */
  .strabag-about-grid {
    grid-template-columns: minmax(0, 1fr) !important; /* Tek sütun */
    gap: 15px !important;
  }
  .strabag-card {
    height: 260px !important; /* Yükseklikleri mobil ekrana göre hafiflettik */
  }
  .strabag-card h3 {
    font-size: 1.4rem !important;
  }
}

/* --- KAYDIRMALI KART LİSTESİ (ana sayfa: öne çıkan projeler, haberler) --- */
.kaydirici {
  position: relative;
}
.kaydirici-iz {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* kaydırma çubuğu gizli, oklarla / parmakla kaydırılır */
  padding: 8px 2px 14px; /* kart gölgesi ve hover kalkması kesilmesin */
}
.kaydirici-iz::-webkit-scrollbar {
  display: none;
}
.kaydirici-iz > * {
  flex: 0 0 calc((100% - 60px) / 3); /* masaüstünde 3 kart */
  min-width: 0;
  scroll-snap-align: start;
}
.kaydirici-ok {
  position: absolute;
  top: 108px; /* kart görselinin ortası */
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
  display: none; /* kartlar sığıyorsa oklar gizli */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.kaydirici-tasiyor .kaydirici-ok {
  display: flex;
}
.kaydirici-ok:hover:not(:disabled) {
  background: var(--primary-color, #ed1c24);
  border-color: var(--primary-color, #ed1c24);
  color: #ffffff;
}
.kaydirici-ok:disabled {
  opacity: 0.35;
  cursor: default;
}
.kaydirici-ok[data-yon="-1"] {
  left: -23px;
}
.kaydirici-ok[data-yon="1"] {
  right: -23px;
}
.kaydirici-alt {
  text-align: center;
  margin-top: 26px;
}
.kaydirici-alt a {
  color: var(--primary-color, #ed1c24);
  font-weight: 700;
  text-decoration: none;
}
.kaydirici-bos {
  text-align: center;
  color: #64748b;
  padding: 40px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}
.haber-karti time {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.haber-karti .card-img-wrapper {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.haber-karti .haber-logo {
  width: 40% !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: 0.35;
}
@media (max-width: 1024px) {
  .kaydirici-iz > * {
    flex-basis: calc((100% - 30px) / 2); /* tablette 2 kart */
  }
}
@media (max-width: 640px) {
  .kaydirici-iz {
    gap: 16px;
  }
  .kaydirici-iz > * {
    flex-basis: 85%; /* telefonda 1 kart, yanındaki kart hafifçe görünür */
  }
  .kaydirici-ok {
    top: 80px;
    width: 38px;
    height: 38px;
  }
  .kaydirici-ok[data-yon="-1"] {
    left: 4px;
  }
  .kaydirici-ok[data-yon="1"] {
    right: 4px;
  }
}
