/* Top Header Styling */
.top-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    padding: 0 2rem;
    margin: 0 auto;
}

.top-header-contact a,
.top-header-social a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-header-contact a:hover,
.top-header-social a:hover {
    color: var(--accent-blue);
}

.top-header-social i {
    font-size: 1.2rem;
    margin-left: 1rem;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1000;
    position: fixed;
    width: 100%;
}

@media (min-width: 769px) {
    .navbar {
        top: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 0;
    }
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 1rem;
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--accent-primary);
}

.navbar-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover {
    color: var(--accent-blue) !important;
    background: rgba(46, 49, 146, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--accent-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 1001;
}

.language-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.language-btn:hover {
    background: rgba(46, 49, 146, 0.2);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 5px); /* Menü navbarın altına yerleşsin */
    right: 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    min-width: 150px;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    z-index: 1050; /* Daha yüksek z-index */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.language-option:hover {
    background: rgba(46, 49, 146, 0.2);
    color: var(--text-primary);
}

.language-option.active {
    background: rgba(46, 49, 146, 0.3);
    color: var(--accent-blue);
}

.flag-icon {
    font-size: 1.2rem;
}

/* Mobile Menu */
.navbar-toggler {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.navbar-toggler:hover {
    background: rgba(46, 49, 146, 0.2);
    border-color: var(--accent-blue);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1003;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mobile-nav-links a:hover {
    background: rgba(46, 49, 146, 0.2);
    color: var(--text-primary);
}

.mobile-language-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.mobile-language-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-language-section .language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-language-section .language-option:hover {
    background: rgba(46, 49, 146, 0.2);
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.mobile-language-section .language-option.active {
    background: rgba(46, 49, 146, 0.3);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.mobile-language-section .flag-icon {
    font-size: 1.2rem;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .navbar-nav-center {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }
}

@media (max-width: 992px) {
    .language-selector {
        display: none;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .language-btn span {
        display: none;
    }
    
    .language-btn .flag-icon {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    .navbar {
        top: 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 30px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .navbar-container {
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    .navbar-container {
        padding: 0 0.5rem;
    }
}