/* 1. GENEL AYARLAR VE GEÇİŞLER */
html {
    scroll-behavior: smooth;
    /* Menü yüksekliği kadar (yaklaşık 80px) kaydırma payı ekler, 
       böylece Hakkımızda'ya basınca başlık menünün altında kalmaz */
    scroll-padding-top: 70px; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.transition-300 {
    transition: all 0.3s ease-in-out;
}

/* 2. NAVBAR VE NAVİGASYON */
header.sticky-top {
    height: 70px;          /* Navbar yüksekliği sabit */
    overflow: visible;     /* Logo taşabilir */
    display: flex;
    align-items: center;
}

header .container,
header .navbar {
    overflow: visible;     /* Logo taşabilir */
    height: 100%;
}

.navbar-brand {
    color: #b89253 !important;
    overflow: visible;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: #b89253 !important;
    transform: translateY(-1px);
}

/* 3. HERO (GİRİŞ) ALANI - BEYAZ BOŞLUK DÜZELTİLDİ */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../img/inşaatgörseli.jpg') no-repeat center center;
    background-size: cover;
    
    /* 100vh ekranın tamamını kaplar, altındaki beyaz boşluğu yok eder */
    height: 100vh; 
    width: 100%;
    margin-bottom: 0 !important; /* Alt boşluğu kesin olarak sıfırlar */
    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-line {
    width: 80px;
    height: 4px;
    background-color: #b89253;
    margin: 0 auto 30px;
}

/* 4. BÖLÜM AYARLARI */
section {
    /* Bölümlerin birbirine yapışmaması ve şık durması için */
    padding: 80px 0;
    margin: 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-wrap h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: #b89253;
    margin: 10px auto 0;
}

/* 5. HİZMET KARTLARI */
.service-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    height: 320px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.service-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    z-index: 2;
}

.service-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card:hover .service-bg {
    transform: scale(1.1);
}

.service-card:hover .service-content h5 {
    color: #b89253;
}

/* 6. PROJELER - KAYAN GALERİ (3 GÖRSEL AYNI ANDA) */
.project-slider-row {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.project-track {
    display: flex;
    /* 47 slayt * 33.33vw ≈ 1566vw */
    animation: slideProjectsLeft 222s linear infinite;
}

.project-slide {
    position: relative;
    /* Her slayt ekranın 1/3'ünü kaplar → 3 slayt = tam ekran */
    width: calc(33.33vw - 16px);
    height: 420px;
    margin: 0 8px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-slide:hover img {
    transform: scale(1.05);
}

.project-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.project-slide-overlay span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b89253;
    display: block;
}

/* 47 slayt * 33.33vw ≈ 1566vw */
@keyframes slideProjectsLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-1566vw); }
}

@media (max-width: 768px) {
    .project-slide {
        width: calc(50vw - 12px);
        height: 220px;
        margin: 0 6px;
    }
    @keyframes slideProjectsLeft {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-2350vw); }
    }
}

/* 7. REFERANSLAR VE LOGOLAR */
.grayscale-logo {
    filter: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.grayscale-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* 8. BUTONLAR */
.btn-warning {
    background-color: #b89253 !important;
    border: none !important;
    color: white !important;
    padding: 12px 30px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #a07a3f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 146, 83, 0.4);
}

/* 9. İSTATİSTİK SAYAÇ BÖLÜMÜ */
#rakamlar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.stat-item {
    padding: 20px 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #b89253;
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: #b89253;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    .stat-plus {
        font-size: 1.3rem;
    }
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

/* 10. İLETİŞİM FORMU */
#contactForm .form-control::placeholder,
form[action*="formsubmit"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

#contactForm .form-control:focus,
form[action*="formsubmit"] .form-control:focus {
    border-color: #b89253;
    box-shadow: 0 0 0 0.15rem rgba(184, 146, 83, 0.25);
    background: transparent;
    color: white;
}

form[action*="formsubmit"] .form-control {
    color: white !important;
}

/* 9. FOOTER VE İMLEÇ DÜZENLEMESİ */
/* İmleci/İkonu kaldırmak için kullanılan sınıfı gizle (eğer HTML'den silemezsen) */
.footer-icon-circle i.bi-geo-alt-fill {
    display: none !important;
}

.footer-icon-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(184, 146, 83, 0.15);
    color: #b89253;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(184, 146, 83, 0.3);
}

footer.bg-dark {
    border-top: 4px solid #b89253 !important;
}

/* 1. Ok Simgelerini Küçült ve Beyaz Yap */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent !important;
    width: 2rem; /* Boyutu küçülttük (3.5rem'den 2rem'e) */
    height: 2rem;
    /* Saf beyaz ok ikonları */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    transition: transform 0.2s ease;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* 2. Arka Planı Tamamen Şeffaf Tut ve Hafif Gölgelendir (Beyazın her zeminde görünmesi için) */
.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Tıklama alanını daralttık */
    opacity: 0.4; /* Normalde çok şeffaf */
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.5)); /* Beyaz okun koyu resimlerde kaybolmaması için hafif gölge */
}

/* 3. Üzerine Gelince Belirginleşsin */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* ŞAKAAA */

/* Proje görsellerini her zaman merkezde tutar */
.project-img {
    width: 100%;
    height: 400px; /* Sabit yükseklik veriyoruz ki kaymasın */
    object-fit: cover; /* Görseli bozmadan alanı doldurur */
    object-position: center; /* Görselin tam merkezine odaklanır */
    display: block;
}

/* Tüm logolar eşit boyut - special-logo özel boyutu kaldırıldı */

/* Logo Kaydırıcı Ana Alanı */
.logo-slider {
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 20px 0; /* Üstten ve alttan biraz nefes alsın */
}

/* Kayan Şerit */
.logo-track {
    display: flex;
    /* Toplam genişlik: (Logo Genişliği + Boşluk) * Toplam Logo Sayısı */
    width: calc(200px * 24); 
    animation: scrollLogos 54s linear infinite;
    align-items: center; /* Logoları dikeyde hizalar */
}

.logo-track img {
    width: 140px; 
    height: 80px;
    object-fit: contain;
    margin: 0 30px; 
    
    /* RENKLİ YAPILDI: Filtre ve Opaklık Kaldırıldı */
    filter: none !important; 
    opacity: 1 !important; 
    
    transition: transform 0.3s ease;
}

/* Üzerine gelince hafif büyüme efekti */
.logo-track img:hover {
    transform: scale(1.1);
}



/* Kayma Animasyonu */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 12)); }
}

/* Mobilde Hız ve Boyut Ayarı */
@media (max-width: 768px) {
    .logo-track {
        animation: scrollLogos 54s linear infinite;
    }
    .logo-track img {
        width: 110px;
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    /* 1. Ana Başlık (BK Mühendislik vb.) */
    .hero-section h1 {
        font-size: 2.0rem !important; /* Dev boyutu 2.0'a çektik */
        line-height: 1.2 !important;
    }

    /* 2. Slogan (Güvenle Yükselen Yapılar) */
    /* Eğer bu yazı span, h2 veya p içindeyse hepsini kapsayacak şekilde: */
    .hero-section span, 
    .hero-section h2,
    .hero-section .slogan {
        font-size: 1.1rem !important;
        letter-spacing: 2px !important;
        display: block !important;
        margin-bottom: 10px !important;
    }

    /* 3. Açıklama Metni (Lead) */
    .hero-section .lead {
        font-size: 0.9rem !important;
        padding: 0 15px !important;
        margin-bottom: 25px !important;
    }

    /* 4. Buton (Bizimle İletişime Geçin) */
    .hero-section .btn {
        font-size: 0.85rem !important;
        padding: 10px 20px !important;
        width: auto !important;
    }

    /* 5. Altın Çizgi (Hero Line) */
    .hero-line {
        width: 50px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 991px) {
    /* 1. Menü açıldığında linklerin rengini beyaza zorla */
    .navbar-collapse .nav-link {
        color: #ffffff !important; /* Yazılar bembeyaz olsun */
        opacity: 1 !important;
        display: block !important;
        padding: 15px 0 !important;
        text-align: center !important;
        visibility: visible !important;
    }

    /* 2. Menü kutusunun göründüğünden emin olalım */
    .navbar-collapse {
        background: #111111 !important; /* Çok koyu gri/siyah yapalım ki beyaz yazılar parlasın */
        position: relative;
        z-index: 9999;
        margin-top: 10px;
        padding: 10px;
        border-radius: 8px;
    }

    /* 3. Linkin üzerine gelince veya aktifken altın rengi olsun */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #b89253 !important;
    }
}

/* 1. Menü butonunun dış çerçevesini düzenle */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5) !important; /* Hafif beyaz çerçeve */
    padding: 4px 8px !important;
}

/* 2. Görünmeyen o üç çizgiyi (ikonu) bembeyaz yap */
.navbar-toggler-icon {
    /* Bu filtre siyah ikonu beyaza çevirmenin en garanti yoludur */
    filter: invert(1) brightness(100%) contrast(100%) !important;
}

/* 3. Tıklanma anında efekt (isteğe bağlı) */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(184, 146, 83, 0.25) !important; /* Altın rengi hafif parlayış */
}