/* ==========================================================================
   HEADER & NAVIGATION MODULE (Combined)
   ========================================================================== */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition); /* style.css'deki merkezi transition'ı kullandık */
}

/* Sayfa kaydırıldığında eklenecek sınıf */
#main-header.scrolled {
    background: rgba(11, 11, 11, 0.95);
    padding: 12px 0; /* Biraz daha daralır */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Navigasyon Yerleşimi */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Logo Stili */
.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: #fff; 
    letter-spacing: -1px; 
    text-decoration: none;
}

.logo span { 
    color: var(--primary-red); 
}

/* Menü Linkleri */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: auto;
    margin-right: 40px;
}

/* Rolling Link Animasyonu */
.nav-links a {
    overflow: hidden;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.2;
    opacity: 0.9;
    cursor: pointer;
}

.nav-links a span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    width: 100%;
}

.nav-links a::after {
    content: attr(data-replace);
    position: absolute;
    top: 100%;
    left: 0;
    display: inline-block;
    color: var(--primary-red);
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    width: 100%;
}

.nav-links a:hover span {
    transform: translateY(-100%);
}

.nav-links a:hover::after {
    transform: translateY(-100%);
}

/* Sağ Aksiyon Butonları */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.header-phone {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.header-phone i {
    color: var(--primary-red);
}

.header-phone:hover {
    opacity: 0.8;
}

/* Mobil Menü Butonu (Varsayılan Gizli) */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Mobil Uyumluluk Ayarları */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block; /* Sadece mobilde görünür */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Başlangıçta ekranın sağında gizli */
        width: 80%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        margin: 0;
        z-index: 1000;
    }

    /* Menü Açıldığında Gelecek Sınıf */
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem; /* Mobilde daha büyük dokunma alanı */
    }

    .header-actions {
        display: none; /* Mobilde butonları menü içine alabilir veya gizleyebilirsin */
    }
}