/* Global Overflow Fix - Yatay Taşmayı Engelle */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: #080808; /* Saf, derin siyah */
    color: #ccc;
    font-size: 0.7rem;
    padding: 0;
    border-bottom: 1px solid #1a1a1a;
    font-family: var(--font-heading);
    letter-spacing: 0.8px;
    height: 50px; /* Biraz daha ferah */
    overflow: hidden; /* Taşmaları gizle */
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    flex-wrap: nowrap; /* Asla alt satıra geçme */
}

.tb-left {
    display: flex;
    align-items: center;
    height: 100%;
}

/* BFT Wrapper & Power Line Animation */
.bft-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.bft-power-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4px;
    height: 100%; /* Animasyon kaldırıldı, sabit açık */
    background: #cc0000;
    z-index: 2;
}

/* BFT Card Design */
.bft-card {
    display: flex;
    align-items: center;
    background: #fff;
    height: 40px; /* Barın içinde asılı duran kart */
    padding: 0 25px 0 20px;
    margin-left: 4px; /* Çizgi payı */
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); /* Keskin endüstriyel kesim */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); /* Glow efekti */
    transition: all 0.3s ease;
}

.bft-card:hover {
    padding-right: 35px;
    background: #fcfcfc;
}

.logo-area {
    padding-right: 15px;
    border-right: 1px solid #eee;
    margin-right: 15px;
}

.bft-logo {
    height: 22px;
    width: auto;
    display: block;
}

.text-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-name {
    font-weight: 900;
    font-size: 0.8rem;
    color: #cc0000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-status {
    font-size: 0.65rem;
    color: #222;
    font-weight: 600;
    text-transform: uppercase;
}

.tb-right {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap; /* İçeriklerin alt satıra kaymasını engeller */
    flex-shrink: 0; /* Sağ tarafın sıkışmasını engelle */
    height: 100%; /* Yüksekliği ebeveynle eşitle */
}

.contact-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Corporate Contact Design */
.corporate-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%; /* Dikey ortalama için şart */
}

.cc-link {
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.cc-link:hover {
    color: #fff;
}

.cc-link.phone {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.cc-sep {
    color: #333; /* İnce ayraç rengi */
    font-size: 0.8rem;
    margin-top: -1px;
}

/* Durum Noktası Stilleri (Status Dots) */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}
.status-dot.online {
    background-color: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
}
.status-dot.busy {
    background-color: #d62828;
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.7);
    animation: pulse-red 2s infinite;
}
.status-dot.offline {
    background-color: #999;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Main Header */
.site-header {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95); /* Hafif şeffaflık */
    backdrop-filter: blur(10px); /* Buzlu cam efekti */
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    position: relative;
}

/* Logo */
.logo a {
    transition: transform 0.3s;
    position: relative;
    display: inline-flex; /* Hizalama için */
    align-items: center;
    overflow: hidden; /* Parlama efektinin dışarı taşmasını engelle */
}

.logo a img {
    height: 50px; /* Header yüksekliğine uygun */
    width: auto;
    display: block;
}

/* Mobile Nav Header (Default Hidden) */
.mobile-nav-header {
    display: none;
}

/* Navbar */
.navbar ul {
    display: flex;
    gap: 25px;
    align-items: center; /* Tüm elemanları (buton dahil) dikeyde ortala */
}

.navbar a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    padding: 28px 0; /* Tıklama alanını genişlet */
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

/* Modern Alt Çizgi Animasyonu */
.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 22px; /* Çizgiyi metnin hemen altına taşıdık */
    left: 50%; /* Ortadan başla */
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.navbar a:hover {
    color: var(--primary-color);
}

.navbar > ul > li:hover > a::after { /* Sadece ana menüde */
    width: 100%; /* Tam genişlik yerine %80 daha şık durabilir ama %100 istendi */
}

/* Dropdown Oku (Desktop) */
.has-dropdown > a::before {
    content: '▾';
    font-size: 0.8em;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
    order: 2; /* Yazıdan sonra gelsin */
}

/* İletişim Butonu - Shine Efekti */
.btn-contact-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); /* Hafif derinlikli sade gradient */
    color: var(--white) !important;
    border-radius: 50px; /* Daha modern, oval yapı */
    transition: all 0.3s ease;
    padding: 11px 28px !important; /* İdeal, zarif boyut */
    box-shadow: 0 4px 15px rgba(192, 0, 0, 0.3); /* Soft, modern gölge */
    margin-left: 15px;
    font-size: 0.85rem !important;
    font-weight: 600 !important; /* Daha zarif ve kibar font */
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden; /* Parlama dışarı taşmasın */
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-contact-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 0, 0, 0.4);
}

/* Butonun altındaki çizgiyi kaldır */
.navbar a.btn-contact-nav::after {
    display: none !important;
    content: none;
}

/* 5 Saniyede Bir Geçen Parlama Efekti */
.btn-contact-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    animation: btnShine 5s infinite; /* 5 saniyede bir tekrarla */
    pointer-events: none;
}

@keyframes btnShine {
    0% { left: -150%; }
    10% { left: 150%; } /* Hızlıca geç (0.5sn) */
    100% { left: 150%; } /* Geri kalan sürede bekle */
}

/* Nabız Animasyonu (Telefon İkonu İçin) */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(214, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0); }
}

/* Dropdown / Mega Menu Basit Hali */
.has-dropdown {
    position: relative;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    min-width: 260px;
    padding: 15px 0;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* Daha modern ve yumuşak gölge */
    min-width: 280px; /* Genişlik artırıldı */
    padding: 10px 0;
    border-top: 2px solid var(--primary-color); /* Çizgi inceltildi */
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(5px); /* Hareket mesafesi azaltıldı (daha stabil) */
    transition: all 0.2s ease-in-out;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.dropdown-menu a {
    padding: 14px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 12px 25px; /* Dikey boşluklar dengelendi */
    border-bottom: 1px solid rgba(0,0,0,0.04);
    text-transform: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    transition: all 0.3s;
    font-weight: 500; /* Font kalınlığı modernize edildi */
    font-size: 0.9rem;
    color: #444;
    transition: all 0.2s;
    position: relative;
}

.dropdown-menu a:hover {
    background: #fcfcfc;
    background: #f9f9f9;
    color: var(--primary-color);
    padding-left: 32px; /* Hover efekti */
    padding-left: 25px; /* Kayma efekti İPTAL EDİLDİ (Sabit kaldı) */
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover > a::before {
    transform: rotate(180deg);
}

/* Dropdown linklerinde hoverda sol tarafa küçük çizgi */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s;
    transition: width 0.2s;
}

.dropdown-menu a:hover::before {
    width: 4px;
    width: 3px; /* Sol tarafta beliren ince çizgi */
}

.dropdown-menu a::after { display: none; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(192, 0, 0, 0.04);
    border: 1px solid rgba(192, 0, 0, 0.1);
    border-radius: 50%;
    z-index: 1101;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.mobile-toggle:hover span { background-color: #fff; }

/* Toggle Active State (X Icon) */
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scale(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) { /* Tabletleri de kapsayacak şekilde genişletildi */
    /* Top Bar Mobile Design - Özel Tasarım */
    .top-bar { 
        display: block; 
        height: auto;
        padding: 5px 0;
        background: #080808;
        position: relative;
        z-index: 1102;
        border-bottom: 1px solid #222;
    }

    .top-bar .container {
        flex-direction: column;
        height: auto;
        gap: 5px;
        padding: 0 15px;
    }

    .tb-left {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    .bft-wrapper {
        justify-content: center; /* Kartı ortala */
        width: auto;
        height: 36px; /* Mobilde biraz daha kompakt */
    }

    .bft-card {
        background: #fff; /* Masaüstündeki beyaz premium kart yapısını koru */
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
        padding: 0 20px;
        margin: 0;
        width: auto;
        justify-content: center;
        clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%); /* Kesik köşe detayını koru */
        border-radius: 2px;
    }
    
    .bft-card:hover { padding-right: 20px; background: #fff; } /* Mobilde hover hareketini kısıtla */

    .logo-area { border-right: 1px solid #eee; padding-right: 10px; margin-right: 10px; }
    .bft-logo { height: 18px; }
    .brand-name { color: #de1f26; font-size: 0.7rem; }
    .brand-status { color: #222; font-size: 0.55rem; }

    .tb-right {
        width: 100%;
        justify-content: center;
        height: auto;
        gap: 10px;
        padding-top: 2px;
    }

    .corporate-contact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .cc-link { font-size: 0.8rem; }
    .cc-sep { display: none; }
    
    /* Mobilde Muhasebe'yi gizle, yer aç */
    .cc-link[href*="muhasebe"] { display: none; }
    
    /* Telefonu öne çıkar */
    .cc-link.phone {
        background: rgba(255,255,255,0.1);
        padding: 6px 18px;
        border-radius: 50px;
        color: #fff;
        font-weight: 700;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar { 
        display: block; 
        position: fixed;
        top: 0;
        right: 0; /* Sağdan açılması için */
        left: auto;
        width: 100%; 
        max-width: 400px; /* Tabletlerde çok geniş durmasın */
        height: 100vh;
        background: #ffffff;
        padding: 0;
        z-index: 1200;
        transform: translateX(100%); /* Varsayılan olarak gizli (sağda) */
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Premium Easing */
        overflow-y: auto;
        overflow-x: hidden; /* Yatay taşmayı engelle */
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
    }

    .navbar.active {
        transform: translateX(0);
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 1px solid #f5f5f5;
    }

    .mobile-nav-header .logo-mobile {
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-header .logo-mobile img {
        height: 40px;
        width: auto;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: 50%;
        color: #333;
        transition: all 0.3s ease;
        cursor: pointer;
        border: 1px solid #eee;
    }

    .close-btn:hover {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        transform: rotate(90deg);
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        margin: 0;
        list-style: none;
    }

    .navbar ul > li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        border-bottom: 1px solid #f9f9f9;
    }

    .navbar.active ul > li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Animation Delay (Sıralı Giriş Efekti) */
    .navbar.active ul > li:nth-child(1) { transition-delay: 0.1s; }
    .navbar.active ul > li:nth-child(2) { transition-delay: 0.15s; }
    .navbar.active ul > li:nth-child(3) { transition-delay: 0.2s; }
    .navbar.active ul > li:nth-child(4) { transition-delay: 0.25s; }
    .navbar.active ul > li:nth-child(5) { transition-delay: 0.3s; }
    .navbar.active ul > li:nth-child(6) { transition-delay: 0.35s; }
    .navbar.active ul > li:nth-child(7) { transition-delay: 0.4s; }

    .navbar a {
        padding: 18px 25px;
        border-bottom: none;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--secondary-color);
        letter-spacing: -0.5px;
        position: relative;
    }

    .navbar a span {
        position: relative;
        z-index: 1;
        transition: padding-left 0.3s ease;
    }

    .navbar a:hover span {
        padding-left: 10px;
        color: var(--primary-color);
    }

    /* Hoverda beliren sol çizgi */
    .navbar a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: var(--primary-color);
        transition: height 0.3s ease;
        border-radius: 0 4px 4px 0;
    }

    .navbar a:hover::before {
        height: 20px;
    }

    .navbar a::after { display: none; }

    /* Mobilde Dropdown Oku */
    .has-dropdown > a::after {
        display: block;
        content: '›';
        font-size: 1.2rem;
        color: #ccc;
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .has-dropdown > a:hover::after {
        color: var(--primary-color);
        transform: translateX(5px);
    }

    /* Masaüstü okunu gizle */
    .has-dropdown > a::before {
        display: none;
    }
    
    /* PREMIUM ACCORDION (AKIŞKAN) MENÜ YAPISI */
    .dropdown-menu {
        position: static; /* Sabit değil, akışkan */
        transform: none;
        width: 100%;
        height: auto;
        max-height: 0; /* Kapalı durum */
        overflow: hidden; /* Taşmayı gizle */
        background: #fcfcfc; /* Çok hafif gri premium zemin */
        padding: 0;
        display: block;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.5s cubic-bezier(0.65, 0.05, 0.36, 1); /* İpek gibi yumuşak geçiş */
        z-index: 1;
        border: none;
        box-shadow: inset 0 10px 20px -15px rgba(0,0,0,0.05); /* İçeri gömük hissi */
    }

    .dropdown-menu.active {
        max-height: 1000px; /* İçerik kadar açılması için */
    }

    /* Aktif Ana Menü Linki */
    .has-dropdown.active > a {
        color: var(--primary-color);
        background: #fff;
    }

    /* Ok İşareti Animasyonu */
    .has-dropdown > a::after {
        transition: transform 0.4s ease;
        transform-origin: center;
    }

    .has-dropdown.active > a::after {
        transform: rotate(180deg); /* Tam tersine dön */
        color: var(--primary-color);
    }

    /* Gereksiz elementleri gizle */
    .mobile-menu-head, .mm-back, .mm-title, .mm-close { display: none !important; }

    /* Eski Geri Butonunu Kaldır (Varsa) */
    .mobile-menu-back { display: none; }

    .dropdown-menu a {
        padding: 16px 25px 16px 40px; /* Hiyerarşi için soldan girinti */
        font-size: 0.95rem;
        font-weight: 500;
        color: #555;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-menu a:hover {
        background: #f5f5f5;
        color: var(--primary-color);
        padding-left: 45px; /* Hover hareketi */
    }

    /* Alt menü linklerine ok işareti ekle */
    .dropdown-menu a::after {
        content: ''; /* Alt menüde oka gerek yok, sade olsun */
    }
    
    .mobile-toggle { display: flex; }
    
    .region-info { display: none; } /* Mobilde sığmayabilir */

    /* İletişim Butonu Kapsayıcısı (li) - Çizgiyi kaldır */
    .navbar ul > li:last-child {
        border-bottom: none;
    }

    /* İletişim Butonu Mobilde Normal Link Gibi Görünsün veya Özelleştirilsin */
    .btn-contact-nav {
        margin: 30px 10px 50px 10px !important;
        width: calc(100% - 20px) !important;
        background: var(--primary-color) !important;
        color: #fff !important;
        justify-content: center !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        padding: 20px 20px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        border: none !important;
        letter-spacing: 3px; /* Geniş harf aralığı */
        text-transform: uppercase;
        position: relative;
    }
    .btn-contact-nav:hover {
        background: var(--primary-dark) !important;
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(192, 0, 0, 0.35);
    }
    /* İç Çerçeve Efekti (Lüks Dokunuş) */
    .btn-contact-nav::after {
        content: '';
        position: absolute;
        top: 3px; left: 3px; right: 3px; bottom: 3px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 17px;
        display: block !important;
        pointer-events: none;
    }
    .btn-contact-nav::before { display: none !important; }
}