/* ==========================================
   HEADER (ÜST MENÜ) İSKELETİ
   ========================================== */
.top-header { 
    height: 120px; 
    display: flex; 
    align-items: center; 
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
    height: 100%; 
}

@keyframes flyIn {
    0% { transform: translate(80vw, 80vh) scale(4); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

.logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    animation: flyIn 2s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
}

.tagline {
    color: var(--text-light); 
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap; 
    opacity: 0;
    animation: dropBounce 1.2s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
    animation-delay: 1.5s; 
}

@keyframes dropBounce {
    0% { opacity: 0; transform: translateY(-30px); }
    50% { opacity: 1; transform: translateY(10px); }
    75% { transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   MENÜ LİNKLERİ VE UÇUŞ EFEKTLERİ
   ========================================== */
.nav-menu ul { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }

.nav-menu li { opacity: 0; }
.nav-menu li:nth-child(1) { animation: flyInNav1 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.nav-menu li:nth-child(2) { animation: flyInNav2 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.nav-menu li:nth-child(3) { animation: flyInNav3 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.nav-menu li:nth-child(4) { animation: flyInNav4 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.nav-menu li:nth-child(5) { animation: flyInNav5 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.nav-menu li:nth-child(6) { animation: flyInNav6 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

@keyframes flyInNav1 { 0% { transform: translate(-50vw, -50vh) scale(2); opacity: 0; } 100% { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes flyInNav2 { 0% { transform: translate(-20vw, 50vh) scale(2); opacity: 0; } 100% { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes flyInNav3 { 0% { transform: translate(10vw, -50vh) scale(2); opacity: 0; } 100% { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes flyInNav4 { 0% { transform: translate(30vw, 50vh) scale(2); opacity: 0; } 100% { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes flyInNav5 { 0% { transform: translate(50vw, -20vh) scale(2); opacity: 0; } 100% { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes flyInNav6 { 0% { transform: translate(60vw, 60vh) scale(2.5); opacity: 0; } 100% { transform: translate(0, 0) scale(1); opacity: 1; } }

.nav-menu a { font-size: 1rem; font-weight: 500; color: white; text-decoration: none; transition: color 0.3s ease; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--sarbot-red); }

/* ==========================================
   DİL SEÇİCİ
   ========================================== */
.lang-switch { display: flex; gap: 8px; align-items: center; color: var(--border-color); }
.lang-switch button { background: none; border: none; color: var(--text-main); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: color 0.3s ease; padding: 0; }
.lang-switch button.active { color: var(--sarbot-red); }
.lang-switch button:hover { color: var(--text-light); }

/* ==========================================
   MOBİL AYARLAR (KARANLIK EKRANI ÇÖZEN KISIM)
   ========================================== */
/* Sayfayı dışarı doğru esnetip karanlık boşluk yaratan taşmaları keser */
html, body { overflow-x: hidden; } 

.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }
.main-content { padding-top: 120px; }

@media (max-width: 1024px) {
    .nav-menu ul { gap: 15px; }
    .nav-menu a { font-size: 0.85rem; }
}

@media (max-width: 768px) {
    /* EKRANI AŞAĞI ESNETEN TÜM UÇUŞLARI KÖKTEN İPTAL EDİYORUZ */
    .logo-img, .nav-menu li, .tagline {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .top-header { height: 80px !important; }
    .main-content { padding-top: 80px !important; }
    .logo-img { height: 55px !important; }

    .menu-toggle { display: block; z-index: 1001; }
    .tagline { display: none; }
    .lang-switch { display: none; }
    
    .nav-menu {
        display: none; 
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        border-bottom: 2px solid var(--sarbot-red);
        padding: 30px 0;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-menu.active ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ==========================================
   ALT BİLGİ (FOOTER) - DLL DESIGN İMZASI
   ========================================== */
.dll-design {
    font-family: 'Courier New', Courier, monospace; /* Hesap makinesi / dijital ekran fontu */
    color: #ff0000; /* Canlı LED kırmızısı */
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8); /* Etrafa yayılan dijital ışık parlaması */
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-top: 10px;
    font-weight: bold;
    text-transform: lowercase;
    /* step-end özelliği, yumuşakça kaybolmak yerine dijital ekranlar gibi anında yanıp sönmesini sağlar */
    animation: ledBlink 1.2s step-end infinite; 
}

/* Keskin Aç-Kapat Animasyonu */
@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}