/* Genel Ayarlar ve Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease-in-out;
}

/* Renk Paleti ve Temel Ayarlar (Light Theme - Lacivert & Sarı) */
:root {
    --primary-color: #001F54; /* Lacivert (Ana Kurumsal Renk) */
    --secondary-color: #FFC300; /* Sarı (Vurgu ve Enerji Rengi) */
    --background-dark: #FFFFFF; /* Ana Arkaplan: Beyaz */
    --background-light: #F8F8F8; /* Bölüm Arkaplanı: Çok Açık Gri */
    --text-dark: #333333; /* Ana Metin: Koyu Gri */
    --text-light: #333333; /* Kullanılacak yerde Koyu Gri */
    --text-muted: #666666; /* İkincil Metin: Orta Gri */
    --red: #FF3B30; /* */
}
body {
    background-color: var(--background-dark);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: var(--primary-color);
}
a:hover {
    color: var(--secondary-color);
}
h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 700;
}

/* Header ve Navigasyon */
header {
    background-color: rgba(255, 255, 255, 0.98); /* Beyaz arkaplan */
    padding: 10px 5%; /* Logoya yer açmak için */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Hafif gölge */
    backdrop-filter: blur(5px);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
/* *** LOGO BOYUT SINIRLAMASI GÜNCELLENDİ *** */
.logo-container {
    height: 40px; /* HEADER CONTAINER YÜKSEKLİĞİ */
    display: flex;
    align-items: center;
}
.header-logo {
    height: 100%;
    max-height: 40px; /* MAKSİMUM YÜKSEKLİK SINIRI */
    width: auto;
    max-width: 200px; /* MAKSİMUM GENİŞLİK SINIRI */
    object-fit: contain;
}
/* *************************************** */

.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li a {
    color: var(--text-dark); /* Koyu metin */
    padding: 10px 18px;
    display: block;
    border-bottom: 2px solid transparent;
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color); /* Hover ve aktif metin rengi Lacivert */
    border-bottom: 2px solid var(--secondary-color); /* Sarı alt çizgi */
}
.hamburger {
    display: none; /* Masaüstünde gizle */
    background: none;
    border: none;
    color: var(--primary-color); /* Lacivert ikon */
    font-size: 1.8em;
    cursor: pointer;
}

/* CTA Butonu Stilleri */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-dark) !important; /* Lacivert üzerine Beyaz yazı */
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(0, 31, 84, 0.3);
}
.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark) !important; /* Sarı üzerine Koyu yazı */
    box-shadow: 0 5px 15px rgba(255, 195, 0, 0.6);
    transform: translateY(-2px);
}
.secondary-cta {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    box-shadow: none;
}
.secondary-cta:hover {
    background-color: var(--primary-color);
    color: var(--background-dark) !important;
    box-shadow: 0 5px 15px rgba(0, 31, 84, 0.4);
}


/* BÖLÜMLERİN GENEL STİLİ */
.content-section {
    padding: 100px 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.section-description {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 40px;
}
h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--primary-color); /* Ana başlıklar Lacivert */
}

/* 1. HERO (Giriş) Bölümü - SLIDER */
.hero-section {
    position: relative;
    height: 90vh; /* Ekran yüksekliğinin %90'ı */
    overflow: hidden;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.5s ease; /* Yumuşak geçiş */
}
.slide.active {
    opacity: 1;
}
/* Slider Metin Arka Plan Efekti */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Yazı okunurluğunu artırmak için gradient arkaplan */
    background: linear-gradient(to top, rgba(0, 31, 84, 0.5) 0%, rgba(0, 31, 84, 0.2) 50%, transparent 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2; /* Overlay'in üstünde olması için */
    max-width: 800px;
    text-align: center;
    padding: 20px;
}
.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white; /* Beyaz başlık */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.hero-content p {
    font-size: 1.4em;
    color: white; /* Beyaz metin */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Slider Navigasyon Okları */
.prev-slide, .next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 31, 84, 0.5); /* Lacivert yarı şeffaf */
    z-index: 3; /* İçeriğin ve overlay'in üstünde */
}
.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev-slide:hover, .next-slide:hover {
    background-color: var(--secondary-color); /* Sarı hover */
}

/* Slider Noktaları */
.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5); /* Beyaz yarı şeffaf */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.dot.active, .dot:hover {
    background-color: var(--secondary-color); /* Sarı aktif veya hover */
}


/* 2. ÇÖZÜMLER Bölümü */
.solutions-section {
    background-color: var(--background-light); /* Açık Gri arkaplan */
}
.solution-grid {
    display: grid;
    /* Masaüstünde 2 sütun */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 900px; /* 2x2 için ortalanmış maksimum genişlik */
    margin-left: auto;
    margin-right: auto;
}
.solution-card {
    background-color: var(--background-dark); /* Beyaz kartlar */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(255, 195, 0, 0.5);
}
.solution-card i {
    font-size: 3em;
    color: var(--secondary-color); /* İkonlar Sarı */
    margin-bottom: 15px;
}
.solution-card h3 {
    color: var(--primary-color); /* Başlıklar Lacivert */
    font-size: 1.5em;
    margin-bottom: 10px;
}
.solution-card p {
    color: var(--text-muted);
}


/* 3. HİZMETLERİMİZ Bölümü */
.why-us-section {
    background-color: var(--background-dark); /* Beyaz arkaplan */
}
.service-list {
    display: flex; /* Yeni eklenen düzenleme: listeyi yaymak için */
    flex-wrap: wrap; /* Yeni eklenen düzenleme: sığmayınca alta geçsin */
    justify-content: center; /* Yeni eklenen düzenleme: ortala */
    max-width: 900px; /* Yeni eklenen düzenleme: maksimum genişlik */
    margin: 40px auto 0; /* Yeni eklenen düzenleme: üstten boşluk ve ortalama */
}
.service-item {
    flex-basis: 45%;
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    border-left: 3px solid var(--secondary-color); /* Sarı çizgi */
}
.service-item i {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-right: 10px;
}
.service-item h4 {
    display: inline;
    font-size: 1.2em;
    color: var(--text-dark);
}


/* 4. PROJELER Bölümü */
.projects-section {
    background-color: var(--background-light); /* Açık Gri arkaplan */
}

/* 5. İLETİŞİM Bölümü */
.contact-section {
    background-color: var(--background-dark); /* Beyaz arkaplan */
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form input,
.contact-form textarea {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd; /* Açık gri sınır */
    background-color: var(--background-light); /* Çok hafif gri form alanı */
    color: var(--text-dark);
    border-radius: 5px;
}
.contact-form textarea {
    resize: vertical;
}
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact-info p {
    display: flex;
    align-items: center;
    color: var(--text-dark); /* Koyu metin */
    margin-bottom: 15px;
}
.contact-info i {
    color: var(--primary-color); /* Lacivert ikonlar */
    margin-right: 10px;
}
.social-links a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--text-muted);
}
.social-links a:hover {
    color: var(--primary-color);
}


/* FOOTER */
footer {
    background-color: var(--primary-color); /* Lacivert Footer (Kontrast için) */
    padding: 30px 5%;
    text-align: center;
    color: white; /* Beyaz metin */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.footer-logo-container {
    margin-bottom: 15px;
}
/* *** FOOTER LOGO BOYUT SINIRLAMASI GÜNCELLENDİ *** */
.footer-logo {
    height: 35px; /* Footer logosu boyutu */
    max-height: 35px; /* MAKSİMUM YÜKSEKLİK SINIRI */
    width: auto;
    max-width: 150px; /* MAKSİMUM GENİŞLİK SINIRI */
    object-fit: contain;
    filter: brightness(0) invert(1); /* Lacivert arkaplan üzerinde beyaz görünmesi için */
}
/* ******************************************* */
footer p {
    margin: 5px 0;
    font-size: 0.9em;
    color: white; /* Beyaz metin */
}


/* =================================== */
/* RESPONSIVE TASARIM */
/* =================================== */

/* Tablet ve Büyük Mobil Cihazlar (<= 992px) */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    h2 {
        font-size: 2.5em;
    }
    .service-item {
        flex-basis: 90%;
        margin: 10px 0;
    }
    .solution-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Daha esnek 2'li yapı */
    }
}

/* Mobil Cihazlar (<= 768px) */
@media (max-width: 768px) {
    /* Navigasyon (Hamburger Menü) */
    .hamburger {
        display: block; /* Hamburger ikonunu göster (GÜNCELLENDİ) */
    }
    
    .nav-links {
        display: none; /* Varsayılan olarak menüyü gizle (GÜNCELLENDİ) */
        flex-direction: column;
        width: 100%;
        position: absolute; /* Header içinde alt kısma yayılması için (GÜNCELLENDİ) */
        top: 60px; /* Logodan sonra başlasın (header yüksekliğinden biraz fazla) (GÜNCELLENDİ) */
        left: 0;
        text-align: center;
        background-color: var(--background-dark); /* Mobil menü arkaplanı Beyaz */
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Header'ın altında ama diğer içeriğin üstünde olsun */
    }
    
    .nav-links li {
        border-bottom: 1px solid var(--background-light);
    }
    .nav-links li a {
        color: var(--text-dark);
    }
    .hamburger {
        color: var(--primary-color);
    }
    
    /* Mobil menü aktif olduğunda GÖSTER */
    .nav-links.active {
        display: flex; /* Script çalışınca menüyü göster (YENİ EKLENEN KRİTİK KURAL) */
    }

    /* Header Logo'su mobil için biraz küçültülebilir */
    .logo-container {
        height: 35px;
    }
    .header-logo {
        max-height: 35px;
    }
    
    /* Hero */
    .hero-section {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .prev-slide, .next-slide {
        font-size: 20px;
        padding: 10px;
        margin-top: -15px;
    }
    
    /* Çözümler */
    .solution-grid {
        grid-template-columns: 1fr; /* Mobil tek sütun */
    }
    
    /* İletişim */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-info {
        text-align: center;
    }
    .contact-info p {
        justify-content: center;
    }
}

/* Küçük Mobil Cihazlar (<= 480px) */
@media (max-width: 480px) {
    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    h2 {
        font-size: 2em;
    }
    .content-section {
        padding: 60px 5%;
    }
}