/* ========================================================= */
/* 0. GENEL AYARLAR VE RESET */
/* ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #004a99; /* Kurumsal Koyu Mavi */
    --secondary-color: #ff9900; /* Dinamik Turuncu/Sarı Vurgu */
    --text-color: #333;
    --text-light: #f8f9fa;
    --bg-light: #f4f6f8;
    --top-bar-bg: #003366; /* Header Üstü Koyu Mavi */
    --nav-bar-height: 85px;
    --top-bar-height: 30px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: calc(var(--nav-bar-height) + var(--top-bar-height)); /* Header yüksekliğine göre sayfa başlangıcı */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================================= */
/* BUTONLAR */
/* ========================================================= */
.btn {
    padding: 10px 25px;
    border-radius: 50px; 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}
 
/* ========================================================= */
/* 1. HEADER ALANI - PROFESYONEL YAPI */
/* ========================================================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* 1.1. TOP BAR (Üst Bilgi Çubuğu) */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--text-light);
    font-size: 0.85em;
    padding: 8px 0;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.social-icons a {
    color: var(--text-light);
    margin-left: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* 1.2. NAV BAR (Ana Navigasyon) */
.nav-bar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: var(--nav-bar-height);
    display: flex;
    align-items: center;
    transition: height 0.3s; /* Scroll'da küçülme için */
}
 
/* SCROLLED HEADER STİLİ (JS ile eklenir) */
.nav-bar.scrolled {
    height: 60px;
}
.nav-bar.scrolled .logo a {
    font-size: 1.5em;
}
.nav-bar.scrolled .btn {
    padding: 8px 20px;
}


.nav-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    transition: font-size 0.3s;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    padding: 0 18px;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--primary-color);
}

.btn-quote {
    margin-left: 15px;
}
 
.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}

/* ========================================================= */
/* 2. HERO SECTION */
/* ========================================================= */
.hero-section {
    padding: 200px 0 150px 0;
    /* GÖRSEL DÜZENLEMESİ: Test amaçlı placeholder resim kullanıldı. */
    background: url('https://www.sustainableplaces.eu/wp-content/uploads/2017/02/SmartBuilding.jpg') no-repeat center center/cover;
    color: white;
    text-align: left; 
    position: relative;
    min-height: 70vh;
}

.hero-dark-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
}

.hero-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.hero-actions .btn {
    margin-right: 15px;
}
.hero-actions .btn i {
    margin-right: 8px;
}

/* ========================================================= */
/* 3. AVANTAJLAR */
/* ========================================================= */
.avantajlar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.avantaj-card {
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-color);
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.avantaj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.avantaj-card i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ========================================================= */
/* 4. ÖZELLİKLER */
/* ========================================================= */
.bg-light {
    background-color: var(--bg-light);
}
 
.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-text, .feature-image {
    flex: 1;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-text h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-text ul {
    list-style: none;
    margin-top: 15px;
}

.feature-text ul li {
    padding: 5px 0;
}
.feature-text ul li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 5px;
}


/* ========================================================= */
/* 7. FOOTER */
/* ========================================================= */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
}
 
.footer-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #ccc;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col .social-links a {
    color: #ccc;
    font-size: 1.2em;
    margin-right: 15px;
}

.footer-col .social-links a:hover {
    color: var(--secondary-color);
}
 
.contact-info p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}


/* ========================================================= */
/* MOBİL UYUMLULUK (Media Query) */
/* ========================================================= */
@media (max-width: 992px) {
    body {
        padding-top: 60px; /* Top bar kaybolduğu için sadece nav bar yüksekliği kalır */
    }
    
    .top-bar {
        display: none; /* Mobil'de üst çubuğu gizle */
    }

    .nav-bar {
        height: 60px;
    }
    
    .logo a {
        font-size: 1.5em;
    }

    .main-nav {
        display: none; /* JS ile açılıp kapanır */
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .header-cta {
         display: flex !important;
        gap: 8px;
    }

   .menu-toggle {
    display: block;
    position: absolute;
    right: 60px;       /* Sağdan boşluk */
    top: 15px;         /* Yukarıdan boşluk */
    font-size: 28px;   /* Boyut — istersen 32px yapabilirsin */
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;     /* Her şeyin üstünde kalır */
}

.menu-toggle:focus {
    outline: none;
}

@media (max-width: 992px) {
    .nav-bar-content {
        position: relative; /* Menü butonunun konumunu düzgün hizalar */
    }
}

    .hero-section {
        padding: 150px 0 100px 0;
    }

    .hero-content h1 {
        font-size: 3em;
    }
    
    .avantajlar-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 4'lü sütunları 2'li yap */
    }

    .feature-item {
        flex-direction: column; /* Özellik kartlarını alt alta getir */
    }

    .feature-item.reverse {
        flex-direction: column; /* Ters sırayı da alt alta getir */
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2em;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
    }
    
    .hero-actions .btn {
        margin: 10px 0;
    }

    .avantajlar-grid, .footer-grid {
        grid-template-columns: 1fr; /* Hepsini tek sütun yap */
    }
}

/* Ana Renkler (Varsayılan olarak kabul edilmiştir) */
:root {
    --primary-color: #0056b3; /* Koyu Mavi */
    --secondary-color: #007bff; /* Açık Mavi */
    --accent-color: #28a745; /* Yeşil */
    --bg-light: #f4f7f6;
    --light-text-color: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Çözüm Odaklı Bölüm Stilleri */
.solutions {
    background-color: var(--bg-light); /* Hafif arka plan */
}

.solutions h2 {
    /* Genel H2 stili korunur */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.solutions h2::after {
    /* Başlık altındaki çizgi stili */
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease; /* Hover efekti için */
}

.service-item:hover {
    transform: translateY(-3px); /* Hafif kaldırma efekti */
}

.service-item i {
    font-size: 2.5em;
    color: var(--accent-color); /* İkon rengi (Yeşil) */
    margin-right: 25px; /* İkon ile yazı arasındaki boşluk */
    padding-top: 5px;
    min-width: 40px; /* İkonların hizalı durması için */
    text-align: center;
}

.service-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.service-item p {
    color: #555;
}

/* Mobil Uyumluluk (Opsiyonel: Genel CSS'inizde yoksa ekleyin) */
@media (max-width: 600px) {
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    .service-item i {
        margin: 0 auto 15px;
        padding-top: 0;
    }
}

/* --- Referanslar ve Sayaçlar Bölümü Stilleri (ESKİ GÜÇLÜ GÖRÜNÜM) --- */

.references-section {
    background-color: #fff;
    padding: 80px 0;
}

.references-section h2 {
    /* BAŞLIK ORTALANMIŞ VE KORUNMUŞTUR */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    text-align: center; 
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.stats-counter-new {
    /* Eski görünümü korumak için grid yapısı */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
    text-align: center;
}

.stat-item-new {
    /* Dikdörtgen Kutular ve Belirgin Görünüm */
    padding: 30px 15px;
    background-color: var(--bg-light); /* Hafif arka plan */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Belirgin kutu gölgesi */
    border: none;
    transition: all 0.3s ease;
}

.stat-item-new:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
    transform: translateY(-5px); 
}

/* İkon ve Rakam Stilleri */
.stat-item-new i {
    font-size: 3em; 
    color: var(--accent-color); /* Yeşil ikon */
    margin-bottom: 15px;
}

.counter-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em; 
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    line-height: 1.1;
}

.stat-item-new p {
    color: #555;
    font-size: 1em; 
    margin: 0;
}

/* --- Bitiş Çağrısı (CTA) Stilleri (Korunmuştur) --- */
.cta-final-new {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-final-new .cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final-new .cta-btn {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 15px 35px;
    font-size: 1.2em;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-final-new .cta-btn:hover {
    background-color: #218838;
}

.cta-final-new .cta-btn i {
    margin-left: 10px;
}

/* --- Mobil Uyumluluk --- */
@media (max-width: 768px) {
    .stats-counter-new {
        grid-template-columns: repeat(2, 1fr);
    }
    .counter-value {
        font-size: 2.5em;
    }
}
@media (max-width: 480px) {
    .stats-counter-new {
        grid-template-columns: 1fr;
    }
}
.main-nav .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--bg-light);
    background: #fff;
}

.main-nav .mobile-cta .btn {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}





/* ============================
   MOBILE FIXES FINAL VERSION
   ============================ */
@media (max-width: 992px){

    /* LOGO küçültme */
    .site-logo{
        max-height:38px !important;
        width:auto !important;
    }

    .logo{
        display:flex;
        align-items:center;
    }

    /* HEADER hizalama */
    .nav-bar-content{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
    }

    /* Mobil giriş/kayıt ol */
    .mobile-auth{
        display:flex !important;
        gap:6px;
        align-items:center;
    }

    .mobile-auth .btn{
        padding:5px 10px !important;
        font-size:11px !important;
        border-radius:6px !important;
        white-space:nowrap !important;
    }

    /* Masaüstü CTA gizle */
    .header-cta{
        display:none !important;
    }

    /* Menü toggle */
    .menu-toggle{
        display:block !important;
        position:relative !important;
        right:0 !important;
        top:0 !important;
        margin-left:5px !important;
        z-index:9999 !important;
        font-size:26px !important;
    }

    /* Menü sağa kaydır */
    .main-nav{
        position:absolute !important;
        top:60px !important;
        left:12px !important;
        width:calc(100% - 24px) !important;
        background:#fff !important;
        border-radius:10px !important;
        overflow:hidden !important;
        box-shadow:0 4px 20px rgba(0,0,0,0.12) !important;
        z-index:5000 !important;
    }

    /* Mobil menü CTA */
    .main-nav .mobile-cta{
        display:flex !important;
        flex-direction:column !important;
        padding:15px 20px !important;
        gap:12px !important;
        border-top:1px solid #eee !important;
    }

    .main-nav .mobile-cta .btn{
        width:100% !important;
        padding:12px 0 !important;
        font-size:14px !important;
        border-radius:10px !important;
        text-align:center !important;
    }
}


/* === MENU SLIGHTLY LEFT FIX === */
@media(max-width:992px){
    .main-nav{
        left:5px !important;
        width:calc(100% - 10px) !important;
    }
}
