.main-header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    background: var(--glass-bg); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0; 
    border-bottom: 1px solid var(--glass-border);
    /* Transition güncellendi: Transform eklendi */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- YENİ EKLENEN DURUM SINIFLARI --- */

/* Aşağı inerken header'ı yukarı saklar */
.main-header.header-hidden {
    transform: translateY(-100%);
}

/* Yukarı çıkarken veya kaydırılmış durumdayken stil günceller */
.main-header.header-scrolled {
    background: rgba(10, 10, 20, 0.9); /* Biraz daha koyu bir cam efekti */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* --- MEVCUT DİĞER KODLARIN (DOKUNULMADI) --- */

.main-header nav { display: flex; justify-content: space-between; align-items: center; }
/* .logo { display: flex; align-items: center; text-decoration: none; } */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    height: 53px; /* Header yüksekliğine göre ayarlı kalsın */
    width: 60px;  /* Logolarının genişliğine göre burayı değiştirebilirsin */
}
/* .logo img { height: 53px; width: auto; transition: transform 0.4s ease; } */
.logo img {
    position: absolute; /* Logoları üst üste bindirir */
    left: 0;
    height: 100%;
    width: auto;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
}
/* Hover öncesi durum */
.logo-large {
    opacity: 0; /* Büyük logo başlangıçta görünmez */
}

/* Masaüstünde Fare Üzerine Geldiğinde (Hover) */
@media (min-width: 1025px) {
    .logo:hover .logo-small {
        opacity: 0; /* Küçük logo kaybolur */
        transform: scale(0.50); /* Hafif küçülme efekti */
    }

    .logo:hover .logo-large {
        opacity: 1; /* Büyük logo görünür olur */
        transform: scale(1.10); /* Hafif büyüme efekti */
    }
}

/* Mobilde sadece varsayılan logo görünsün */
@media (max-width: 1024px) {
    .logo-large {
        display: none;
    }
}


.logo:hover img { transform: rotate(5deg) scale(1.05); }

.main-nav { list-style: none; display: flex; align-items: center; }
.main-nav li { margin-left: 2.5rem; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 500; transition: all 0.3s ease; padding-bottom: 5px; }
.main-nav a:hover { color: rgba(255, 255, 255, 0.3); text-shadow: 0 0 8px var(--glow-color); }

.cta-button {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 0.4rem 1.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--glow-color);
}

.lang-switcher-container { display: flex; align-items: center; margin-left: 30px; }
.lang-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; padding-bottom: 4px; color: #fff; font-weight: 600; }
.underline { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: #fff; }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.header-right-mobile { display: flex; align-items: center; gap: 1.2rem; z-index: 1001; }




/* --- MOBİL GÖRÜNÜM (768px Altı) --- */
@media (max-width: 768px) {
    /* İkonun kutucuk çıkmasını engelleyen zorunlu ayarlar */
    .mobile-menu-btn i {
        font-family: "Font Awesome 6 Free" !important; /* Font ailesini ezmemesi için */
        font-weight: 900 !important; /* fa-bars-staggered için zorunludur */
        display: inline-block !important;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        color: #fff;
        font-size: 1.6rem;
    }

    .mobile-menu-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Masaüstündeki dil seçiciyi menü listesinden gizle */
    .main-nav .lang-switcher-container {
        display: none; 
    }

    .main-nav { 
        display: none; 
        flex-direction: column;
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; 
        background: rgba(10, 10, 20, 0.98); 
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        
        justify-content: center; 
        align-items: center;     
        
        padding: 0;
        border-bottom: 1px solid var(--glass-border);
        z-index: 1000;

        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        pointer-events: none; 
        transform: translateY(-10px);
    }

    .main-nav.active {
        display: flex !important;
        opacity: 1;
        pointer-events: auto; 
        transform: translateY(0);
    }

    .main-nav li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        list-style: none;
    }

    .main-nav a {
        font-size: 1.8rem; 
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .main-nav .cta-button {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.8rem 2.5rem;
        font-size: 1.2rem;
        width: auto;
    }
}

/* Masaüstünde Hamburger Menü Butonunu Gizle */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    /* Masaüstü görünümünde ikon hatası olmaması için genel tanımlama */
    .main-header i {
        font-style: normal;
    }
}