/* 
   1. GENEL AYARLAR
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Santral Bakım Yeni Renk Paleti */
:root {
    --lacivert: #1a2942; /* Daha tok, çok klas bir mühendislik laciverti */
    --bebe-mavisi: #5FA8D3; /* Logodaki rengi ufak detaylarda kullanmak için tutalım */
    --turuncu: #F26722; /* Enerji turuncusu (sitenin her yerinde bu ton) */
    --acik-gri: #f4f6f8;
    --koyu-gri: #333333;
}

body {
    background-color: var(--acik-gri);
    color: var(--koyu-gri);
    line-height: 1.6;
}

/* 
   2. HEADER VE MENÜ DÜZENİ 
*/
.site-header {
    background-color: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-gorseli {
    width: 200px; /* Logonun genişliğini buradan ayarlayabilirsin */
    height: auto;
}

.ana-menu ul {
    list-style: none;
    display: flex;
    gap: 34px;
}

.ana-menu a {
    text-decoration: none;
    color: var(--koyu-gri); /* Menü linkleri okunaklı koyu gri */
    font-weight: 600;
    font-size: 17.5px; /* Varsayılan 16px'ten biraz büyük */
    transition: color 0.3s;
    white-space: nowrap;
}

.ana-menu a:hover {
    color: var(--turuncu); /* Üzerine gelince yine turuncu vurgusu */
}

/* 
   3. HERO BÖLÜMÜ (Karşılama Ekranı - Videolu)
*/
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Ekranın %80'ini kaplasın */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden; /* Dışarı taşan videoyu kes */
}

/* Videonun Kendisi */
.arka-plan-videosu {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%); /* Videoyu tam merkeze hizalar */
    object-fit: cover; /* Videoyu sündürmeden ekrana doldurur */
    z-index: 1; /* En alt katman */
}

/* Yarı Saydam Lacivert Filtre (Overlay) */
.video-filtresi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 41, 66, 0.7); /* Bizim kurumsal lacivertin %70 saydam hali */
    z-index: 2; /* Videonun üstü, yazıların altı */
}

/* Yazıların Olduğu Kısım */
.hero-icerik {
    position: relative;
    z-index: 3; /* En üst katman, tıklanabilir olması için */
    max-width: 800px;
    padding: 0 20px;
}

.hero-icerik h2 {
    font-size: 48px; /* Yazıyı biraz daha büyüttük */
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Videoda daha iyi okunması için hafif gölge */
}

.hero-icerik p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Buton Tasarımı */
.buton {
    display: inline-block;
    background-color: var(--turuncu);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Butona hafif bir gölge ekledik */
}

.buton:hover {
    background-color: #d15017;
}
/* 
   5. HİZMETLER BÖLÜMÜ (CSS GRID KULLANIMI)
*/
.hizmetler-alani {
    padding: 80px 50px;
    background-color: var(--acik-gri);
}

.bolum-basligi {
    text-align: center;
    color: var(--lacivert);
    font-size: 32px;
    margin-bottom: 50px;
}

/* Izgara (Grid) Sistemi */
.hizmet-grid {
    display: grid;
    /* Yan yana 3 sütun olsun, ekran küçülürse otomatik alt alta geçsin: */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px; /* Kartlar arası boşluk */
}

/* Tekil Kart Tasarımı */
.hizmet-karti {
    background-color: var(--bebe-mavisi); /* Hamburger menüde kullanılan ferah bebe mavisi tonu */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    color: #333; /* Yazıların okunması için koyu gri */
}

/* Başlıkları da kurumsal lacivert (veyahut koyu gri) yapıyoruz */
.hizmet-karti h4 {
    color: var(--lacivert);
    margin-bottom: 15px;
    font-size: 20px;
}

.hizmet-karti:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Üzerine gelince gölge */
}
.hamburger-menu {
    display: none !important; /* !important ekleyerek bu kuralın kesinlikle uygulanmasını sağlıyoruz */
    font-size: 30px;
    cursor: pointer;
    color: var(--lacivert);
}
/* 
   7. İLETİŞİM BÖLÜMÜ
*/
.iletisim-bilgileri p {
    margin-bottom: 15px;
    font-size: 15px;
}

.iletisim-bilgileri strong {
    color: white; /* Başlıklar (Adres, Tel) bembeyaz olsun */
}

/* Form Tasarımı */
.iletisim-formu form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iletisim-formu input,
.iletisim-formu textarea {
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: inherit; /* Sitenin genel yazı tipini kullan */
}

/* Harita Tasarımı */
.harita-alani iframe {
    display: block; /* iframe altında kalan ince boşluğu kaldırır */
}

/* 
   8. ALT SAYFALAR (HAKKIMIZDA VB.) İÇİN ORTAK TASARIMLAR
   (Bu kodlar @media bloğunun DIŞINDA olmalı)
*/
.sayfa-basligi {
    background-color: var(--lacivert);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 5px solid var(--turuncu);
}

.sayfa-basligi h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hakkimizda-icerik {
    display: flex; 
    align-items: center;
    padding: 80px 50px;
    gap: 50px;
    background-color: white;
}

.hakkimizda-metin {
    flex: 1; 
}

.hakkimizda-metin h3 {
    color: var(--lacivert);
    margin-bottom: 15px;
    margin-top: 30px;
}

.hakkimizda-metin p {
    margin-bottom: 15px;
}

.hakkimizda-gorsel {
    flex: 1; 
}
/* 
   HAKKIMIZDA SLIDER BÖLÜMÜ
*/
.hakkimizda-slider-alani {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    background-color: #f9f9f9;
}

.slider-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.slide {
    display: none; /* Varsayılan olarak hepsi gizli */
    padding: 80px 60px 60px 60px;
    text-align: center;
    animation: sagaKayma 0.5s ease-in-out; /* Kayma animasyonu */
}

.slide.aktif {
    display: block; /* Sadece aktif olan slayt görünür */
}

.slide-icerik h3 {
    color: var(--turuncu); /* Turuncu başlık */
    margin-bottom: 20px;
    font-size: 28px;
}

.slide-icerik p {
    color: #444;
    font-size: 18px;
    line-height: 1.6;
}

/* Yön Tuşları (Oklar) */
.slider-buton {
    cursor: pointer;
    position: absolute;
    top: 45%;
    width: auto;
    padding: 16px;
    color: white;
    background-color: rgba(26, 41, 66, 0.3); /* Yarı saydam lacivert */
    font-weight: bold;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s;
    user-select: none;
}

.slider-buton:hover {
    background-color: var(--lacivert); /* Hover durumunda tam lacivert */
}

.onceki { left: 15px; }
.sonraki { right: 15px; }

/* Noktalar */
.slider-noktalar {
    text-align: center;
    padding-bottom: 20px;
}

.nokta {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.nokta.aktif, .nokta:hover {
    background-color: var(--turuncu); /* Aktif nokta turuncu olur */
}

/* Kayma Animasyonu Keyframe'i */
@keyframes sagaKayma {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobil için küçültmeler */
@media (max-width: 768px) {
    .slide { padding: 60px 20px 40px 20px; }
    .slide-icerik h3 { font-size: 24px; }
    .slide-icerik p { font-size: 16px; }
}

.gorsel-kutu {
    background-color: var(--acik-gri);
    height: 400px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* 
   10. GALERİ VE PROJELER SAYFASI
*/
.galeri-alani {
    padding: 80px 50px;
    background-color: var(--acik-gri);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.galeri-eleman {
    border-radius: 8px;
    overflow: hidden; /* Büyüyen resmin kutudan taşmasını engeller */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.galeri-eleman img {
    width: 100%;
    height: 300px; /* Tüm resimlerin aynı yükseklikte olmasını sağlar */
    object-fit: cover; /* Resmi sündürmeden kırparak alana oturtur */
    display: block;
    transition: transform 0.5s ease; /* Büyüme hızı */
}

.galeri-eleman:hover img {
    transform: scale(1.1); /* Fare üzerine gelince resmi %10 büyüt */
}

.whatsapp-buton {
    position: fixed; /* Sayfa kaysa bile sabit kalır */
    bottom: 30px; /* Aşağıdan 30px boşluk */
    right: 30px; /* Sağdan 30px boşluk */
    background-color: #25D366; /* Orijinal WhatsApp Yeşili */
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Tam yuvarlak yapar */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000; /* Her şeyin üstünde görünmesi için */
    transition: transform 0.3s ease;
}

.whatsapp-buton:hover {
    transform: scale(1.1); /* Fare üzerine gelince büyüsün */
}
/* 
   11. ÜST MENÜ SOSYAL MEDYA İKONLARI
*/
.ust-sosyal {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px; /* Menü ile arasına boşluk bırakır */
    border-left: 2px solid var(--acik-gri); /* Menüden ince bir çizgiyle ayrılır */
    padding-left: 20px;
}

.ust-sosyal a {
    color: var(--koyu-gri);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.ust-sosyal a:hover {
    color: var(--turuncu);
    transform: translateY(-2px);
}

.ust-sosyal .ust-wp {
    color: #25D366; /* WhatsApp yeşil kalsın */
}

.ust-sosyal .ust-wp:hover {
    color: #1ea952;
}

/* 
   12. REFERANSLAR SAYFASI
*/
.referanslar-alani {
    padding: 80px 50px;
    background-color: var(--acik-gri);
}

.referans-grid {
    display: grid;
    /* Logolar daha küçük olduğu için minmax değerini 150px'e düşürdük, yan yana daha çok logo sığar */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.referans-karti {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-decoration: none; /* Linkin alt çizgisini kaldırır */
}

/* Logoların ayarları ve büyüme (transition) hızı */
.referans-karti img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    transition: transform 0.3s ease; /* Büyümenin yumuşak olması için */
}

/* Fare kutunun üzerine geldiğinde İÇİNDEKİ RESMİ %10 büyüt */
.referans-karti:hover img {
    transform: scale(1.1);
}



/* Mobilde bu ikonları gizle, sadece menü içine alabiliriz veya hamburger menünün yanına koyabiliriz */
/* Telefon ekranları için düzeltme */
/* ------------------------------------------------ */
/* TELEFON VE TABLET GÖRÜNÜMÜ İÇİN KURALLAR         */
/* (1024px ve altında menü hamburger'e dönüşür)      */
/* ------------------------------------------------ */
@media (max-width: 1024px) {
    /* Bu kodu @media (max-width: 768px) içine, en sona ekle */
   /* Mobil görünümde sosyal medya ikonlarını hizalamak için */
    .ust-sosyal {
        margin-left: auto; /* İkonları sağa, hamburger menünün yanına iter */
        margin-right: 15px; /* Hamburger ikonla arasına boşluk bırakır */
        border-left: none; /* Mobilde dar alanda o dikey çizgiye gerek yok */
        padding-left: 0;
        gap: 10px; /* İkonların arasını biraz daraltır */
    }
    
    /* Hakkımızda sayfası telefonda alt alta geçsin diye: */
    .hakkimizda-icerik {
        flex-direction: column; 
        padding: 40px 20px;
    }

    /* 1. GİZLİ MENÜ */
    .ana-menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--bebe-mavisi);
        box-shadow: 0 8px 10px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 1000; 
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
    }
    
    .ana-menu a {
        color: var(--lacivert); 
        font-size: 18px; 
        font-weight: 700; 
        padding: 10px 0; 
    }

    .ana-menu a:hover {
        color: var(--turuncu);
    }

    .ana-menu ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    /* 2. AÇIK MENÜ */
    .ana-menu.acik {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 3. HAMBURGER (VE ÇARPI) İKONU */
    .hamburger-menu {
        display: block !important; 
        position: relative; 
        z-index: 1001; 
    }

    .site-header {
        padding: 15px 20px; 
        position: relative;
    }

    .logo-gorseli { width: 150px; }

    /* Hero yazıları telefonda küçülsün */
    .hero-icerik h2 { font-size: 32px; }
    .hero-icerik p { font-size: 17px; }

    /* Bölüm kenar boşlukları telefonda daralsın (taşmayı önler) */
    .hizmetler-alani,
    .galeri-alani,
    .referanslar-alani {
        padding: 50px 20px;
    }

    .sayfa-basligi h2 { font-size: 28px; }

    .whatsapp-buton { bottom: 20px; right: 20px; }
}
/* Küçük laptop ekranları: menü sığsın diye biraz sıkılaştır */
@media (min-width: 1025px) and (max-width: 1250px) {
    .site-header { padding: 20px 25px; }
    .logo-gorseli { width: 160px; }
    .ana-menu ul { gap: 20px; }
    .ana-menu a { font-size: 16.5px; }
    .ust-sosyal { margin-left: 15px; padding-left: 15px; gap: 12px; }
}

/* 
   9. KAYDIRMA (SCROLL) ANİMASYONLARI
*/

/* Başlangıç Durumu (Sayfa ilk yüklendiğinde veya nesne henüz ekranda değilken) */
.animasyonlu {
    opacity: 0; /* Tamamen şeffaf */
    transform: translateY(40px); /* 40 piksel daha aşağıda dursun */
    transition: all 0.7s ease-out; /* 0.7 saniyede, yavaşlayarak (ease-out) bitsin */
}

/* Bitiş Durumu (JS bu sınıfı eklediğinde devreye girecek) */
.animasyonlu.goster {
    opacity: 1; /* Tamamen görünür */
    transform: translateY(0); /* Orijinal konumuna geri dönsün */
}
/* 
   13. İLETİŞİM FORMU DURUM MESAJI
*/
.form-durum:empty {
    display: none;
}

.form-durum {
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 15px;
}

.form-durum.basarili {
    background-color: rgba(37, 211, 102, 0.15);
    border-left: 4px solid #25D366;
}

.form-durum.hata {
    background-color: rgba(242, 103, 34, 0.15);
    border-left: 4px solid var(--turuncu);
}

.iletisim-formu button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* 
   14. ANA SAYFA "NELER YAPIYORUZ?" AÇILIR KARTLAR
*/
.ozet-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    align-items: start; /* Açılan kart yanındakileri uzatmasın */
}

.ozet-kart {
    text-align: center;
    padding: 30px 20px;
    cursor: pointer;
    user-select: none;
}

.ozet-kart h4 {
    margin-bottom: 0;
}

.ozet-ok {
    display: block;
    width: fit-content;
    margin: 6px auto 0 auto; /* Başlığın altında, ortada */
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Gizli detay alanı: max-height ile yumuşak açılır */
.ozet-detay {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    text-align: left;
}

.ozet-detay ul {
    list-style: none;
    border-top: 1px solid rgba(26, 41, 66, 0.2);
    padding-top: 12px;
}

.ozet-detay li {
    color: var(--lacivert);
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0 6px 18px;
    position: relative;
}

.ozet-detay li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--turuncu);
}

.ozet-link {
    display: inline-block;
    margin-top: 10px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.ozet-link:hover {
    color: var(--lacivert);
}

/* Açık durum */
.ozet-kart.acik {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.ozet-kart.acik .ozet-detay {
    max-height: 400px;
    opacity: 1;
    margin-top: 15px;
}

.ozet-kart.acik .ozet-ok {
    transform: rotate(180deg);
}

.ozet-kart:focus-visible {
    outline: 3px solid var(--turuncu);
    outline-offset: 3px;
}
