header {
    background: linear-gradient(90deg,#d64e13bf);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 15px;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo img { height: 35px; }
}

nav {
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-links li a i {
    font-size: 16px;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.nav-links li a:hover i,
.nav-links li a.active i {
    opacity: 1;
    transform: scale(1.1);
}

html[dir="rtl"] .nav-links li a {
    flex-direction: row-reverse;
}

/* Hamburger */
.hamburger { display:none; flex-direction:column; gap:4px; width:28px; cursor:pointer; z-index:60; }
.hamburger span { height:3px; background:#fff; border-radius:3px; display:block; transition:0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:600px){
    .hamburger{display:flex;}
    .nav-links{
        display:none;
        position:absolute;
        top:64px;
        left:0;
        right:0;
        background: var(--nav-bg);
        flex-direction:column;
        padding:12px 20px;
        border-radius:0 0 10px 10px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    }
    .nav-links.active{display:flex;}
    .nav-links li a{color:#f9fafb; margin-bottom:8px;}
}

/* Language Switch */
.lang-switch-minimal { display: flex; gap: 4px; align-items: center; margin-right: 16px; }
.lang-btn-minimal { padding: 2px 10px; border-radius: 4px; background: #eaeaea; color: #222; text-decoration: none; font-size: 0.97em; border: 1px solid #ddd; transition: background 0.2s, color 0.2s; }
.lang-btn-minimal.active { background: #222; color: #fff; border-color: #222; }
.lang-btn-minimal:hover { background: #333; color: #fff; }

.lang-switch-modern {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2px;
    margin-right: 12px;
}

.lang-btn-modern {
    padding: 4px 12px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn-modern.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-weight: 500;
}

.lang-btn-modern:not(.active):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
