/* Bu dosya assets/header.css */

/* --- FONT AWESOME ÇAKIŞMA DÜZELTMESİ (YENİ EKLENDİ) --- */
/* Bu kurallar, ikonların her zaman doğru fontu kullanmasını sağlar */
i.fa, 
i.fa-solid, 
i.fas {
    /* (Bu, 'Inter' fontu tarafından ezilmeyi önler) */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

i.fa-brands, 
i.fab {
    /* (Bu, 'Inter' fontu tarafından ezilmeyi önler) */
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}
/* --- Düzeltme Sonu --- */


/* --- Genel Ayarlar --- */
/* (Geri kalan kodlar aynı) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    /* Fixed header için üstten boşluk */
    padding-top: 100px;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Alanı --- */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    
    /* Sabit Header */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Sabit yükseklik */
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    /* Logoyu büyüt (Revize 1) */
    max-width: 250px; /* Logo genişliği */
    min-width: 200px;
    flex-shrink: 0; /* Küçülmesin */
}

.logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80px; /* Yüksekliği sınırladık */
}

/* --- Navigasyon --- */
/* Logo, Menü ve Buton yerleşimi için */
.main-nav {
    display: flex;
    justify-content: space-between; /* Menü (ortada) ve Buton (sağda) ayır */
    align-items: center;
    flex-grow: 1; /* Kalan tüm alanı kapla */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    
    /* Menüyü tam ortaya al */
    margin: 0 auto; 
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0.2rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

/* Aktif link (hover gibi) */
.nav-links a.active-link {
    color: #009441; /* Kurumsal Yeşil */
}
.nav-links a.active-link::after {
    width: 100%;
}


/* Masaüstü hover efekti */
@media (min-width: 993px) {
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #009441; /* Kurumsal Yeşil */
        transition: width 0.3s ease;
    }

    .nav-links a:hover {
        color: #009441; /* Kurumsal Yeşil */
    }

    .nav-links a:hover::after {
        width: 100%;
    }
    
    /* Aktif linkin alt çizgisi hep kalsın */
    .nav-links a.active-link::after {
        width: 100%;
    }
}


/* --- CTA (Bayilik) Butonu Wrapper --- */
.nav-cta-wrapper {
    /* (Sağa yaslanması .main-nav'daki justify-content ile sağlandı) */
}

/* --- Hamburger Menü Butonu --- */
.menu-toggle {
    display: none; /* Masaüstünde gizli */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: #333;
    z-index: 102; /* Mobil menünün üstünde */
}


/* --- MOBİL UYUMLULUK (Breakpoint: 992px) --- */
@media (max-width: 992px) {
    body {
        padding-top: 80px; /* Mobil header yüksekliği */
    }
    
    .header-container {
        height: 80px; /* Mobil header yüksekliği */
    }

    .logo {
        max-width: 180px;
    }

    .menu-toggle {
        display: block; /* Mobilde göster */
    }

    .main-nav {
        /* Mobil menü (Açıkken) */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
        /* Başlangıçta gizli (sağda) */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        
        /* İçerik */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* YENİ: Yukarıdan başlat */
        align-items: center;
        padding-top: 120px; /* Header'dan boşluk */
        
        /* Efekt */
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Mobil Menü Aktif Olduğunda */
    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin: 0;
    }

    .nav-links a {
        font-size: 1.8rem; /* Mobil font boyutu */
    }
    
    .nav-links a:hover {
        color: #009441; /* Mobilde de hover rengi */
    }

    /* CTA Butonu Mobilde */
    .nav-cta-wrapper {
        margin-top: 3rem; /* Menüden ayır */
    }
}

/* --- CTA (Bayilik) Butonu Stili --- */
.cta-button a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #009441; /* Kurumsal Yeşil */
    color: #ffffff;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* Animasyon */
    animation: pulse 2s infinite;
}

.cta-button a:hover {
    background-color: #007a36; /* Daha koyu yeşil */
    transform: scale(1.05);
    animation: none; /* Hover'da animasyonu durdur */
}

/* Yanıp sönme animasyonu */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 148, 65, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 148, 65, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 148, 65, 0);
    }
}