ساختار فیزیکی یکسان برای هر دو زبان/* ===== هدر و نویگیشن - تم شیشه‌ای پیشرفته ===== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* جهت‌دهی ناوبری بر اساس زبان */
html[lang="fa"] .nav {
    direction: rtl;
}

html[lang="en"] .nav {
    direction: ltr;
}

/* منوی اصلی - طراحی شیشه‌ای پیشرفته */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    padding: 0.8rem 2rem;
    border-radius: 60px;
    box-shadow: 
        0 12px 40px rgba(16, 185, 129, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* جهت منو بر اساس زبان - ساختار فیزیکی یکسان */
html[lang="fa"] .nav-menu,
html[lang="en"] .nav-menu {
    left: 50%;
    transform: translateX(-50%);
}

/* جهت متن منو */
html[lang="fa"] .nav-menu {
    text-align: right;
}

html[lang="en"] .nav-menu {
    text-align: left;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    position: relative;
    font-size: 0.95rem;
    display: block;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.1),  /* نارنجی */
        rgba(16, 185, 129, 0.05)  /* سبز */
    );
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #f97316; /* نارنجی برای هاور */
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link.active {
    color: #059669; /* سبز برای حالت فعال */
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.15),  /* نارنجی */
        rgba(5, 150, 105, 0.1)     /* سبز */
    );
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, 
        #f97316,  /* نارنجی */
        #10b981   /* سبز */
    );
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ===== زیرمنوی پیشرفته ===== */
.nav-item-has-submenu {
    position: relative;
}

/* آیکون فلش برای زیرمنو - فارسی */
html[lang="fa"] .nav-item-has-submenu > .nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%);
}

/* آیکون فلش برای زیرمنو - انگلیسی */
html[lang="en"] .nav-item-has-submenu > .nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%);
}

.nav-item-has-submenu:hover > .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.submenu {
    position: absolute;
    top: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    min-width: 280px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* موقعیت زیرمنو بر اساس زبان - ساختار فیزیکی یکسان */
html[lang="fa"] .submenu {
    right: 0;
    left: auto;
    text-align: right;
}

html[lang="en"] .submenu {
    left: 0;
    right: auto;
    text-align: left;
}

.nav-item-has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px) scale(1);
}

/* پیکان بالای زیرمنو - فارسی */
html[lang="fa"] .submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    transform: rotate(45deg);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 1px solid rgba(16, 185, 129, 0.2);
}

/* پیکان بالای زیرمنو - انگلیسی */
html[lang="en"] .submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    transform: rotate(45deg);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 1px solid rgba(16, 185, 129, 0.2);
}

.submenu li {
    list-style: none;
    position: relative;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.8rem;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
    position: relative;
    overflow: hidden;
}

/* انیمیشن hover برای فارسی */
html[lang="fa"] .submenu-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(249, 115, 22, 0.1),  /* نارنجی */
        rgba(16, 185, 129, 0.05)  /* سبز */
    );
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* انیمیشن hover برای انگلیسی */
html[lang="en"] .submenu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(249, 115, 22, 0.1),  /* نارنجی */
        rgba(16, 185, 129, 0.05)  /* سبز */
    );
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu-link:hover {
    color: #f97316; /* نارنجی برای هاور */
}

/* پدینگ در حالت hover برای فارسی */
html[lang="fa"] .submenu-link:hover {
    padding-right: 2.2rem;
    padding-left: 1.8rem;
}

/* پدینگ در حالت hover برای انگلیسی */
html[lang="en"] .submenu-link:hover {
    padding-left: 2.2rem;
    padding-right: 1.8rem;
}

/* فعال کردن انیمیشن hover برای فارسی */
html[lang="fa"] .submenu-link:hover::before {
    right: 0;
}

/* فعال کردن انیمیشن hover برای انگلیسی */
html[lang="en"] .submenu-link:hover::before {
    left: 0;
}

.submenu-link.active {
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.12),  /* نارنجی */
        rgba(5, 150, 105, 0.08)    /* سبز */
    );
    color: #059669; /* سبز برای حالت فعال */
}

/* نشانگر فعال برای فارسی */
html[lang="fa"] .submenu-link.active {
    box-shadow: inset 4px 0 0 #f97316; /* نارنجی */
}

/* نشانگر فعال برای انگلیسی */
html[lang="en"] .submenu-link.active {
    box-shadow: inset -4px 0 0 #f97316; /* نارنجی */
}

.submenu-link.active::after {
    content: '●';
    position: absolute;
    color: #f97316; /* نارنجی */
    font-size: 0.6em;
    animation: pulse 2s infinite;
}

/* موقعیت نشانگر فعال برای فارسی */
html[lang="fa"] .submenu-link.active::after {
    left: 1.2rem;
}

/* موقعیت نشانگر فعال برای انگلیسی */
html[lang="en"] .submenu-link.active::after {
    right: 1.2rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.submenu li:first-child .submenu-link {
    border-radius: 20px 20px 0 0;
}

.submenu li:last-child .submenu-link {
    border-bottom: none;
    border-radius: 0 0 20px 20px;
}

/* استایل برای زمانی که زیرمنوی فعال داریم */
.nav-item-has-submenu.has-active-child > .nav-link {
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.2),  /* نارنجی */
        rgba(5, 150, 105, 0.15)   /* سبز */
    );
    color: #059669; /* سبز */
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ===== لوگو و سوییچ زبان ===== */
.nav-brand {
    z-index: 1001;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, 
        #f97316,  /* نارنجی */
        #10b981,  /* سبز */
        #34d399   /* سبز روشن */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.language-switcher {
    padding: 12px 24px;
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.12),  /* نارنجی */
        rgba(16, 185, 129, 0.08)   /* سبز */
    );
    color: #065f46;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.language-switcher:hover {
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.2),  /* نارنجی */
        rgba(16, 185, 129, 0.15)  /* سبز */
    );
    color: #059669;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ===== هامبورگر منو - طراحی جدید ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hamburger:hover {
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.1), 
        rgba(16, 185, 129, 0.05)
    );
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(249, 115, 22, 0.3);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #10b981);
    margin: 2.5px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* موقعیت خطوط هامبورگر در حالت عادی */
.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

/* انیمیشن تبدیل به ضربدر */
.hamburger.active {
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.15), 
        rgba(16, 185, 129, 0.1)
    );
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 
        0 6px 20px rgba(249, 115, 22, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hamburger.active span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
    background: linear-gradient(90deg, #ea580c, #dc2626);
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.4);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.hamburger.active span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
    background: linear-gradient(90deg, #ea580c, #dc2626);
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.4);
}

/* ===== استایل‌های موبایل - ساختار یکسان برای هر دو زبان ===== */
@media (max-width: 768px) {
    .nav {
        padding: 0.5rem 0.8rem;
        min-height: 60px;
    }
    
    .header {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        min-height: 60px;
    }
    
    /* منوی موبایل - ساختار فیزیکی یکسان */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 15px;
        right: 15px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
        flex-direction: column;
        padding: 1rem;
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 8px 32px rgba(16, 185, 129, 0.2);
        border-radius: 16px;
        gap: 0.5rem;
        z-index: 1002; /* افزایش z-index برای نمایش روی تاریخ و زمان */
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border: 1px solid rgba(16, 185, 129, 0.2);
        max-height: 65vh;
        overflow-y: auto;
        margin: 0 auto;
        transform: none !important;
    }

    /* نشانگر منو باز در موبایل */
    .nav-menu::before {
        content: '☰ منو';
        position: absolute;
        top: -12px;
        right: 20px;
        background: linear-gradient(135deg, #f97316, #10b981);
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
        z-index: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    html[lang="en"] .nav-menu::before {
        content: '☰ Menu';
        right: auto;
        left: 20px;
    }
    
    .nav-menu.active::before {
        content: '✕ بستن';
        background: linear-gradient(135deg, #ea580c, #dc2626);
    }
    
    html[lang="en"] .nav-menu.active::before {
        content: '✕ Close';
    }

    /* ساختار فیزیکی یکسان برای هر دو زبان */
    html[lang="fa"] .nav-menu,
    html[lang="en"] .nav-menu {
        left: 15px;
        right: 15px;
        transform: none !important;
    }

    /* جهت‌دهی متن برای فارسی */
    html[lang="fa"] .nav-menu {
        text-align: right;
        direction: rtl;
    }

    /* جهت‌دهی متن برای انگلیسی */
    html[lang="en"] .nav-menu {
        text-align: left;
        direction: ltr;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        margin: 2.5px 0;
    }
    
    /* استایل لینک‌ها - ساختار فیزیکی یکسان */
    .nav-link {
        padding: 0.8rem 1rem;
        border-radius: 12px;
        display: flex;
        align-items: center;
        margin: 0.1rem 0;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(16, 185, 129, 0.1);
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    /* جهت‌دهی متن لینک‌ها برای فارسی */
    html[lang="fa"] .nav-link {
        text-align: right;
        justify-content: flex-start;
        direction: rtl;
    }
    
    /* جهت‌دهی متن لینک‌ها برای انگلیسی */
    html[lang="en"] .nav-link {
        text-align: left;
        justify-content: flex-start;
        direction: ltr;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, 
            rgba(249, 115, 22, 0.15),  /* نارنجی */
            rgba(5, 150, 105, 0.1)     /* سبز */
        );
        color: #059669;
    }
    
    /* آیکون پلاس/منفی برای زیرمنو در موبایل */
    .nav-item-has-submenu > .nav-link {
        position: relative;
        padding-right: 3.5rem !important;
    }
    
    html[lang="en"] .nav-item-has-submenu > .nav-link {
        padding-left: 3.5rem !important;
        padding-right: 1rem !important;
    }
    
    .nav-item-has-submenu > .nav-link::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 20px;
        height: 20px;
        background: rgba(249, 115, 22, 0.1);
        border-radius: 50%;
        border: 1.5px solid rgba(249, 115, 22, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* موقعیت آیکون برای فارسی در موبایل */
    html[lang="fa"] .nav-item-has-submenu > .nav-link::after {
        right: 1rem;
        left: auto;
    }
    
    /* موقعیت آیکون برای انگلیسی در موبایل */
    html[lang="en"] .nav-item-has-submenu > .nav-link::after {
        left: 1rem;
        right: auto;
    }
    
    /* آیکون پلاس */
    .nav-item-has-submenu > .nav-link::before {
        content: '';
        position: absolute;
        top: 50%;
        width: 10px;
        height: 2px;
        background: #f97316;
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-50%);
    }
    
    html[lang="fa"] .nav-item-has-submenu > .nav-link::before {
        right: 1.45rem;
        left: auto;
    }
    
    html[lang="en"] .nav-item-has-submenu > .nav-link::before {
        left: 1.45rem;
        right: auto;
    }
    
    /* خط عمودی برای پلاس */
    .nav-item-has-submenu > .nav-link::after {
        background-image: none;
    }
    
    .nav-item-has-submenu > .nav-link::after::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2px;
        height: 10px;
        background: #f97316;
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translate(-50%, -50%);
    }
    
    /* تبدیل پلاس به منفی وقتی زیرمنو باز است */
    .nav-item-has-submenu.active > .nav-link::after::before {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(90deg);
    }
    
    .nav-item-has-submenu.active > .nav-link::after {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.4);
    }
    
    .nav-item-has-submenu.active > .nav-link::before {
        background: #059669;
    }
    
    .nav-item-has-submenu.active > .nav-link::after::before {
        background: #059669;
    }
    
    /* استایل زیرمنو در موبایل - ساختار فیزیکی یکسان */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(16, 185, 129, 0.05);
        border-radius: 10px;
        display: none;
        border: 1px solid rgba(16, 185, 129, 0.1);
        padding: 0.3rem 0;
        animation: fadeIn 0.3s ease;
    }
    
    /* جهت‌دهی زیرمنو برای فارسی */
    html[lang="fa"] .submenu {
        text-align: right;
        direction: rtl;
        margin: 0.3rem 0.8rem 0.3rem 0.3rem;
    }
    
    /* جهت‌دهی زیرمنو برای انگلیسی */
    html[lang="en"] .submenu {
        text-align: left;
        direction: ltr;
        margin: 0.3rem 0.3rem 0.3rem 0.8rem;
    }
    
    .submenu::before {
        display: none;
    }
    
    .nav-item-has-submenu.active .submenu {
        display: block;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; max-height: 0; }
        to { opacity: 1; max-height: 500px; }
    }
    
    /* استایل لینک‌های زیرمنو - ساختار فیزیکی یکسان */
    .submenu-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-bottom: 1px solid rgba(16, 185, 129, 0.1);
        background: transparent;
        min-height: 40px;
    }
    
    /* جهت‌دهی لینک‌های زیرمنو برای فارسی */
    html[lang="fa"] .submenu-link {
        text-align: right;
        justify-content: flex-start;
        direction: rtl;
    }
    
    /* جهت‌دهی لینک‌های زیرمنو برای انگلیسی */
    html[lang="en"] .submenu-link {
        text-align: left;
        justify-content: flex-start;
        direction: ltr;
    }
    
    .submenu-link:hover,
    .submenu-link.active {
        background: rgba(16, 185, 129, 0.1);
        padding: 0.6rem 1rem !important;
    }
    
    /* موقعیت المان‌ها در نوار ناوبری - یکسان برای هر دو زبان */
    .nav-actions {
        order: 1;
    }
    
    .nav-brand {
        order: 2;
    }
    
    /* سوییچ زبان در موبایل */
    .language-switcher {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-brand .logo-text {
        font-size: 1.4rem;
    }
    
    /* بهبود نمایش برای موبایل‌های بسیار کوچک */
    @media (max-width: 360px) {
        .nav-menu {
            left: 10px;
            right: 10px;
            padding: 0.8rem;
        }
        
        .nav-link {
            padding: 0.7rem 0.8rem;
            font-size: 0.8rem;
        }
        
        .submenu-link {
            padding: 0.5rem 0.8rem;
            font-size: 0.75rem;
        }
    }
}

/* ===== انیمیشن‌های جدید ===== */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hamburger.active span {
    animation: bounceIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu.active {
    animation: slideInFromTop 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}