/* assets/css/style.css */
/* assets/css/style.css */

@font-face {
    font-family: 'BNazanin'; /* یک نام دلخواه برای فونت خود انتخاب کنید */
    src: url('../fonts/BNazanin.woff2') format('woff2'), /* مسیر فایل نسبت به فایل CSS */
    url('../fonts/BNazanin.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* باعث می‌شود متن با فونت پیش‌فرض نمایش داده شود تا زمانی که فونت شما لود شود */
}

body {
    /* نامی که در font-face تعریف کردید را اول قرار دهید */
    font-family: 'BNazanin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    font-variant-numeric: lining-nums; /* نمایش اعداد به صورت انگلیسی */

    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: #fff;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.navbar .nav-links a {
    color: #555;
    text-decoration: none;
    margin-right: 20px;
    font-size: 1rem;
}

.navbar .nav-links a:hover {
    color: #007bff;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 15px 0;
}

.product-card .price {
    color: #28a745;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-card .btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 15px;
}

/* --- Login Form --- */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}
/* --- Single Product Page Styles --- */
.product-single-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.product-image-section {
    flex: 1;
    min-width: 300px;
}

.product-image-section img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-details-section {
    flex: 2;
    min-width: 300px;
}

.product-details-section h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #333;
}

.single-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.stock-status {
    font-size: 1rem;
    margin-bottom: 20px;
}

.add-to-cart-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.add-to-cart-form .form-group {
    margin-bottom: 0;
}

.add-to-cart-form input[type="number"] {
    width: 70px;
    padding: 10px;
    text-align: center;
}

.error-container {
    text-align: center;
    padding: 50px;
}
/* --- Comments Section Styles --- */
.comments-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.comments-section h2 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.comment {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}
.comment:last-child {
    border-bottom: none;
}

.comment strong {
    color: #007bff;
}
.comment small {
    color: #888;
}

.comment-replies {
    margin-right: 30px; /* برای ایجاد تورفتگی در پاسخ‌ها */
    border-right: 2px solid #e9ecef;
    padding-right: 15px;
}
/* برای زبان چینی، تورفتگی از سمت چپ خواهد بود */
html[dir="ltr"] .comment-replies {
    margin-right: 0;
    margin-left: 30px;
    border-right: none;
    border-left: 2px solid #e9ecef;
    padding-right: 0;
    padding-left: 15px;
}


.comment-form-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.comment-form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    resize: vertical;
}
/* --- Cart Page Styles --- */
.cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.cart-table {
    flex: 3;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    padding: 10px;
}
.cart-table th, .cart-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}
html[dir="ltr"] .cart-table th, html[dir="ltr"] .cart-table td {
    text-align: left;
}
.cart-summary {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #eee;
    height: fit-content;
}
/* Style for product links in cart table */
.cart-table a.product-link {
    text-decoration: none;
    color: #333; /* رنگ اصلی متن */
    transition: color 0.2s ease-in-out;
}

.cart-table a.product-link:hover {
    color: #007bff; /* رنگ اصلی تم شما */
}
/* --- Styles for Fulfillment Types --- */
.import-notice {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    text-align: center;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff9800; /* Orange color */
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}
html[dir="rtl"] .product-badge {
    left: auto;
    right: 10px;
}
/* این کد را به استایل .product-card اضافه کنید اگر از قبل وجود ندارد */
.product-card {
    position: relative;
}
/* --- Shop Page Layout --- */
.shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.shop-sidebar {
    flex: 1;
    min-width: 220px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.shop-sidebar h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.shop-products {
    flex: 3;
    min-width: 300px;
}

/* --- Category List Styles --- */
.category-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.category-list li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.category-list li a:hover {
    background-color: #f8f9fa;
}

.category-list li a.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}
/* --- Category Filter Bar Styles --- */
.category-filter-bar {
    display: flex;
    flex-wrap: wrap; /* برای نمایش در چند خط در موبایل */
    justify-content: center; /* دکمه‌ها در وسط قرار می‌گیرند */
    gap: 10px;
    padding: 15px 0;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.category-filter-bar a {
    text-decoration: none;
    color: #555;
    background-color: #f0f0f0;
    padding: 8px 18px;
    border-radius: 20px; /* گرد کردن گوشه‌ها برای ظاهر دکمه‌ای */
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.category-filter-bar a:hover {
    background-color: #ddd;
    color: #000;
}

.category-filter-bar a.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}
/* --- Footer Styles --- */
.site-footer {
    background-color: #2c3e50; /* رنگ زمینه تیره */
    color: #bdc3c7; /* رنگ متن روشن */
    padding: 40px 0 0 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 280px; /* برای نمایش بهتر در موبایل */
}

.site-footer h3 {
    color: #ecf0f1; /* رنگ عنوان‌ها */
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #34495e;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;

}

.footer-links li, .footer-contact li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    text-decoration: none;
    color: #bdc3c7;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: #ffffff; /* روشن‌تر شدن لینک‌ها هنگام هاور */
}

.footer-contact strong {
    color: #ecf0f1;
}
.footer-contact {
    direction: ltr;
    unicode-bidi: plaintext;
}

.footer-bottom {
    background-color: #233140; /* رنگ کمی تیره‌تر برای بخش کپی‌رایت */
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

.footer-bottom p {
    margin: 0;
    color: #7f8c8d;
}
.english-digits {
    /* این ویژگی، تنظیمات پیشرفته فونت را کنترل می‌کند */
    font-family: Arial, Tahoma, sans-serif !important;
    direction: ltr;
    display: inline-block;
}
.hero-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
}

.hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
}

.hero-content {
    flex: 1 1 500px;
    text-align: right;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: #d63384;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #c51f6e;
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-left {
    animation: fadeInLeft 1s ease forwards;
}

.fade-right {
    animation: fadeInRight 1s ease forwards;
}
.footer-logo img {
    width: 80px;
    height: auto;
    display: inline-block;
}
.footer-logo {
    margin-bottom: 30px;
    text-align: center;
}
/* --- Responsive Navigation Styles --- */

/* استایل دکمه همبرگری (در حالت عادی مخفی است) */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}

/* Media Query برای صفحه‌های کوچکتر از 768px (موبایل و تبلت عمودی) */
@media (max-width: 768px) {
    /* دکمه همبرگری را نمایش بده */
    .mobile-menu-toggle {
        display: block;
    }

    /* لینک‌های اصلی را مخفی کن و برای نمایش عمودی آماده کن */
    .nav-links {
        display: none; /* در حالت عادی مخفی */
        flex-direction: column; /* چیدمان عمودی */
        position: absolute;
        top: 65px; /* کمی پایین‌تر از نوار اصلی */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 1px solid #f0f0f0;
    }

    /* وقتی منو فعال می‌شود، آن را نمایش بده */
    .nav-links.active {
        display: flex;
    }

    /* استایل هر آیتم در منوی باز شده موبایل */
    .nav-links a, .nav-links span {
        padding: 15px 20px;
        width: 100%;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
    }
    html[dir="ltr"] .nav-links a, html[dir="ltr"] .nav-links span {
        text-align: left;
    }

    /* استایل جداکننده زبان */
    .language-switcher {
        border: none !important;
        padding: 15px 20px !important;
        margin: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
        background-color: #f8f9fa;
    }
}
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* یا مثلا 500px */
    overflow: hidden;
}

.hero-background {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* پس‌زمینه نیمه‌شفاف برای خوانایی */
    border-radius: 10px;
}

/* موقعیت‌دهی گوشه پایین سمت چپ */
.hero-overlay.bottom-left {
    bottom: 20px;
    left: 20px;
}

/* یا اگر می‌خوای پایین و وسط باشه */
.hero-overlay.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* یا بالا سمت چپ */
.hero-overlay.top-left {
    top: 20px;
    left: 20px;
}

/* یا بالا وسط */
.hero-overlay.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.full-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* یا 500px مثلاً */
    overflow: hidden;
    cursor: pointer;
}

.hero-background {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px; /* گوشه‌های گرد */
    overflow: hidden; /* برای اعمال گردی به تصویر داخل */
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* شروع انیمیشن از مخفی */
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px; /* برای اطمینان از گردی تصویر */
}

.hero-overlay {
    position: absolute;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.hero-overlay.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* انیمیشن ظاهر شدن */
@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
.hero-overlay {
    position: absolute;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    transition: background 0.3s ease; /* برای انیمیشن نرم */
}

.hero-overlay:hover {
    background: rgba(255, 255, 0, 0.6); /* زرد نیمه‌شفاف */
    color: black; /* اگه خواستی رنگ متن هم تغییر کنه */
}
/* --- General Section Styles --- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
}
/* --- Import Hero Section --- */
/* --- Import Hero Section (Responsive) --- */
.hero-import {
    position: relative;
    width: 100%;
    height: 60vh; /* 60% ارتفاع صفحه */
    min-height: 450px;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;

    /* <<< جدید: عکس پیش‌فرض برای موبایل >>> */
    background-image: url('../images/video_thumb_6.jpg');
}

/* برای صفحات بزرگتر از 768px */
@media (min-width: 768px) {
    .hero-import {
        /* <<< جدید: عکس برای دسکتاپ >>> */
        background-image: url('../images/import-bg.jpg');
        height: 50vh; /* ارتفاع کمتر در دسکتاپ */
    }
}

/* --- Services Section --- */
/* --- Services Section (Responsive) --- */
.services-grid {
    display: grid;
    /* حالت پیش‌فرض (موبایل): دو ستونه */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* فاصله کمتر برای موبایل */
}

/* برای صفحات بزرگتر از 992px (دسکتاپ‌های معمولی) */
@media (min-width: 992px) {
    .services-grid {
        /* به چهار ستون تغییر می‌کند */
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* (اختیاری) برای تبلت‌ها هم می‌توانید حالت 4 ستونه را در نظر بگیرید */
@media (min-width: 768px) and (max-width: 991px) {
    .services-grid {
        /* در تبلت هم می‌تواند چهار ستونه باشد یا دو ستونه باقی بماند */
        grid-template-columns: repeat(4, 1fr);
    }
}
.service-card {
    background: #9b59b6;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.service-card .fas {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

/* --- Video Gallery --- */
/* --- Video Gallery --- */
.video-grid {
    display: grid;
    /* حالت پیش‌فرض (موبایل): دو ستونه */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* فاصله کمتر برای موبایل */
}

/* برای صفحات بزرگتر از 768px (تبلت و دسکتاپ) */
@media (min-width: 768px) {
    .video-grid {
        /* به سه ستون تغییر می‌کند */
        grid-template-columns: repeat(3, 1fr);
        gap: 20px; /* فاصله بیشتر برای دسکتاپ */
    }
}
.video-thumbnail a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.video-thumbnail img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}
.video-thumbnail a:hover img {
    transform: scale(1.05);
}
.video-thumbnail .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.4);
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    transition: background-color 0.3s ease;
}
.video-thumbnail a:hover .play-icon {
    background-color: rgba(0, 123, 255, 0.8);
}

/* --- Video Lightbox --- */
.video-lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center; align-items: center;
}
.video-lightbox.active { display: flex; }
.lightbox-content {
    position: relative;
    width: 90%; max-width: 800px;
}
.close-lightbox {
    position: absolute;
    top: -40px; right: 0;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}
#video-player-container iframe, #video-player-container video {
    width: 100%;
    aspect-ratio: 16 / 9; /* برای حفظ نسبت 16:9 ویدیو */
    border: none;
}

/* --- CTA Section --- */
.cta-section {
    background-color: #9b59b6 ;
    color: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
}
.cta-section h2 { margin-top: 0; }
.cta-section .btn-primary { background-color: #fff; color: #007bff; }
.hero-section {
    width: 100%;
    height: auto;
}

.hero-background img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.hero-overlay {
    padding: 15px;
    font-size: 16px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin: 0 auto;
    }

    .hero-overlay {
        font-size: 14px;
    }
}
.category-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
}

.category-filter-bar a {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 5px;
    background: #eee;
    flex-shrink: 0;
}

.category-filter-bar a.active {
    background-color: #007bff;
    color: #fff;
}
.btn {
    font-size: 14px;
    padding: 8px 12px;
}

@media (max-width: 480px) {
    .btn {
        font-size: 13px;
        padding: 6px 10px;
    }

    h1, h3 {
        font-size: 18px;
    }
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* نمایش دکمه همبرگر */
    }

    .nav-links {
        display: none;
        font-size: 1.5rem;
        color: #333;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-links.active {
        display: flex;
    }
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.language-switcher {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

/* همبرگری فقط در موبایل */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a, .nav-links span {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

    .language-switcher {
        order: 1; /* مهم نیست کجا باشه چون بیرون منو هست */
    }
}
/* برای زبان‌های راست‌چین مثل فارسی */
.nav-links {
    right: 0;
}

/* برای زبان‌های چپ‌چین مثل چینی */
html[dir="ltr"] .nav-links {
    left: 0;
    right: auto;
    text-align: left;
}
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0; /* حالت پیش‌فرض: فارسی */
        width: 100%;
        background: #fff;
        display: none;
        flex-direction: column;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    html[dir="ltr"] .nav-links {
        left: 0 !important;
        right: auto !important;
        direction: ltr;
        text-align: left;
    }
}
.nav-links a {
    padding: 15px 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}
/* انیمیشن ورود از پایین با محوشدگی */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کلاس انیمیشن */
.service-card {
    opacity: 0;
    color: #fff;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

/* تاخیر برای کارت‌های مختلف (اختیاری) */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.service-card:nth-child(2) {
    animation-delay: 0.3s;
}
.service-card:nth-child(3) {
    animation-delay: 0.5s;
}
