

/* === GENERAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #0c1117; /* دارک مود بک‌گراند */
    color: white; /* دارک مود متن */
    line-height: 1.8;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
    direction: rtl; /* تنظیم پیش‌فرض راست به چپ برای کل صفحه */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* === LIGHT MODE SETTINGS === */
body.light {
    background-color: #f5f7fa; /* روشن */
    color: #333; /* متن اصلی تیره */
}

body.light header {
    background-color: rgba(255, 255, 255, 0.8); /* هدر کمی روشن‌تر */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee; /* خط نازک زیر هدر */
}

body.light nav a {
    color: #333; /* لینک‌های ناوبری تیره */
}
body.light nav a:hover {
    color: #0056b3; /* رنگ هوور */
}

body.light .logo {
    color: #000; /* لوگو سیاه */
}

body.light .controls button { /* دکمه‌های کنترل (زبان، تم) */
    background-color: #eee;
    color: #333;
    border: 1px solid #ddd;
}
body.light .controls button:hover {
    background-color: #ddd;
}
body.light .menu-btn i { /* آیکون منو در لایت مود */
    color: #333;
}

/* === HEADER === */
.header {
    position: fixed;
    width: 100%;
    background: #0009; /* دارک مود */
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #ccc; /* دارک مود */
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}

nav a:hover {
    color: #00e5ff; /* دارک مود هوور */
}

.controls {
    display: flex;
    gap: 10px;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 20px;
}

/* === GLOBAL BUTTON STYLE === */
button,
.btn-primary,
.call-btn,
.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #00e5ff, #00bcd4); /* دارک مود */
    color: #001014; /* دارک مود */
    transition: all .35s ease;
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.35); /* دارک مود */
}

button:hover,
.btn-primary:hover,
.call-btn:hover,
.map-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #00f0ff, #00c3d6); /* دارک مود */
    box-shadow: 0 12px 28px rgba(0, 229, 255, 0.6); /* دارک مود */
}

button:active,
.btn-primary:active,
.call-btn:active,
.map-btn:active {
    transform: scale(0.96);
}

/* === HERO === */
/* === HERO === */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;

    /* حالت دارک */
    background: linear-gradient(135deg, #0c1117 0%, #11161d 45%, #061018 100%);
    color: #ffffff;

    transition: background 0.35s ease, color 0.35s ease;
}

/* افکت نوری روی هیرو در دارک مود */
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background:
        radial-gradient(circle at center, rgba(0, 229, 255, 0.18), transparent 35%),
        radial-gradient(circle at top right, rgba(0, 123, 255, 0.12), transparent 30%);

    pointer-events: none;
    z-index: 1;
}

/* محتوای اصلی هیرو */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

/* عنوان اصلی */
.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
}

/* توضیح زیر عنوان */
.hero p {
    font-size: 17px;
    line-height: 2;
    color: #cfd8dc;
    max-width: 720px;
    margin: 0 auto 28px;
}

/* دکمه داخل هیرو */
.hero .btn-primary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;

    background: linear-gradient(135deg, #00e5ff, #007bff);
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    border: none;
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35);

    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #00f0ff, #005fd6);
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.5);
}

.hero .btn-primary:active {
    transform: scale(0.96);
}


/* === HERO LIGHT MODE === */

body.light .hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef4f8 45%, #e4edf5 100%) !important;
    color: #111111 !important;
}

/* افکت نوری در لایت مود */
body.light .hero-overlay {
    background:
        radial-gradient(circle at center, rgba(0, 123, 255, 0.13), transparent 38%),
        radial-gradient(circle at top right, rgba(0, 229, 255, 0.12), transparent 32%) !important;
}

/* عنوان در لایت مود */
body.light .hero h1 {
    color: #111111 !important;
    text-shadow: none !important;
}

/* متن توضیحی در لایت مود */
body.light .hero p {
    color: #444444 !important;
}

/* دکمه در لایت مود */
body.light .hero .btn-primary {
    background: linear-gradient(135deg, #008cff, #0056b3) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.28) !important;
}

body.light .hero .btn-primary:hover {
    background: linear-gradient(135deg, #00a6ff, #004fa3) !important;
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.38) !important;
}


/* === HERO RESPONSIVE === */

@media (max-width: 992px) {
    .hero {
        padding: 110px 20px 70px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 100px 18px 60px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.5;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.9;
        margin-bottom: 24px;
    }

    .hero .btn-primary {
        padding: 11px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        padding: 95px 15px 50px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }
}



/* === SECTIONS === */
.section {
    padding: 100px 0;
    position: relative;
}

.dark {
    background: #11161d; /* دارک مود */
}

/* === ABOUT SECTION === */
.about-section {
    padding-top: 150px; /* فضای بیشتر برای هدر ثابت */
    padding-bottom: 100px;
}

.about-content {
    display: flex;
    flex-wrap: wrap; /* اجازه چرخش در صورت کمبود فضا */
    align-items: center;
    gap: 40px;
}

.about-text-container {
    flex: 1; /* فضای موجود را اشغال کند */
    min-width: 300px; /* حداقل عرض */
}

.about-text {
    text-align: right; /* راست‌چین */
    margin-bottom: 30px;
    color: #ccc; /* دارک مود */
}
body.light .about-text {
    color: #555; /* متن درباره ما در لایت مود */
}
body.light .about-text p {
    color: #555;
}

.about-services-title {
    color: #00e5ff; /* دارک مود */
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}
body.light .about-services-title {
    color: #0056b3;
}

.about-services {
    list-style: none;
    padding-left: 0; /* padding را حذف می کنیم */
    margin-top: 20px;
    text-align: right; /* راست‌چین */
}
.about-services li {
    margin-bottom: 12px;
    color: #ccc; /* دارک مود */
    font-size: 1.05em;
    position: relative;
    padding-right: 25px; /* فضای لازم برای نشانگر */
}
body.light .about-services li {
    color: #555;
}
body.light .about-services li::before {
    content: '•'; /* نشانگر لیست */
    color: #007bff; /* رنگ نشانگر لیست */
    font-weight: bold;
    position: absolute;
    right: 0; /* قرار گرفتن در سمت راست */
    top: -2px; /* تنظیم دقیق موقعیت */
    font-size: 1.4em;
}

.contact-phone {
    margin-top: 30px;
    font-weight: 600;
    font-size: 1.1em;
    color: #fff; /* دارک مود */
}
body.light .contact-phone {
    color: #333;
}

.about-image-container {
    flex: 0.7; /* گرفتن بخشی از فضا */
    min-width: 280px;
    text-align: center;
}

.about-img-main {
    max-width: 450px; /* محدود کردن عرض تصویر */
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2); /* دارک مود */
}
body.light .about-img-main {
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2); /* سایه آبی‌تر در لایت مود */
}

/* === MOLD EXPLANATION SECTION === */
.explanation-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.explanation-text {
    flex: 1.2; /* فضای بیشتر برای متن */
    background-color: #1a212b; /* دارک مود */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    direction: rtl; /* راست به چپ */
    text-align: right; /* متن به راست */
}
body.light .explanation-text {
    background-color: #ffffff; /* سفید خالص برای لایت مود */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.explanation-title {
    color: #00e5ff; /* دارک مود */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
    text-align: right;
    font-size: 22px;
    font-weight: 700;
}
body.light .explanation-title {
    color: #0056b3;
}
body.light .explanation-title i {
    color: #0056b3;
}

.explanation-paragraph,
.explanation-text ul,
.explanation-text li {
    line-height: 1.9;
    font-size: 1.08em;
    color: #ccc; /* دارک مود */
}
body.light .explanation-paragraph,
body.light .explanation-text ul,
body.light .explanation-text li {
    color: #555;
}

.explanation-text ul {
    padding-right: 20px; /* فضای داخلی لیست */
    margin-top: 15px;
}
.explanation-text li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
}
.explanation-text li::before {
    content: '●'; /* دایره توپر */
    color: #00e5ff; /* دارک مود */
    position: absolute;
    right: 0;
    top: -3px; /* تنظیم موقعیت */
    font-size: 0.9em;
}
body.light .explanation-text li::before {
    color: #007bff;
}

.explanation-image {
    flex: 1; /* فضای موجود را بگیرد */
    text-align: center;
}

.cnc-image { /* استایل مخصوص تصویر CNC */
    display: block;
    width: 100% !important; /* عرض کامل در کانتینر */
    max-width: 450px !important; /* حداکثر عرض */
    height: auto;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.2); /* دارک مود */
    object-fit: cover;
}
body.light .cnc-image {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2); /* سایه آبی‌تر */
}
body.light .explanation-image p {
    color: #666; /* رنگ متن زیر تصویر */
}

/* === STATS SECTION === */
.stats {
    background: #11161d; /* دارک مود */
    padding: 80px 0;
}
body.light .stats {
    background-color: #f8f9fa; /* پس زمینه روشن تر */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat h3 {
    font-size: 42px;
    color: #00e5ff; /* دارک مود */
    margin-bottom: 10px;
}
body.light .stat h3 {
    color: #007bff; /* رنگ اعداد در لایت مود */
}
body.light .stat p {
    color: #333; /* رنگ متن زیر اعداد */
    font-size: 1.1em;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #1a212b; /* دارک مود */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: .35s;
}
body.light .services-grid .card {
    background-color: #fff; /* پس‌زمینه سفید برای کارت‌ها */
    border: 1px solid #eee; /* حاشیه روشن */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* سایه ملایم */
}
body.light .services-grid .card i { /* رنگ آیکون خدمات */
    color: #007bff;
}
body.light .services-grid .card h3 {
    color: #0056b3; /* عنوان خدمات آبی تیره */
}
body.light .services-grid .card p {
    color: #555; /* متن توضیحات کارت‌ها */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.25); /* دارک مود */
}
.card i {
    font-size: 40px;
    color: #00e5ff; /* دارک مود */
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff; /* دارک مود */
}

.card p {
    font-size: 15px;
    color: #ccc; /* دارک مود */
}

/* === PROJECTS SECTION === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 220px;
    background: linear-gradient(135deg, #00e5ff22, #111); /* دارک مود */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
body.light .gallery-item {
    background: #e9ecef; /* پس زمینه گالری روشن */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
body.light .contact-grid {
    padding: 30px 0;
}

.contact-box {
    background: #1a212b; /* دارک مود */
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: .3s;
}
body.light .contact-box {
    background-color: #fff; /* پس‌زمینه سفید برای جعبه‌های تماس */
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-box h3 {
    color: #00e5ff; /* دارک مود */
    margin-bottom: 10px;
    font-size: 1.2em;
}
body.light .contact-box h3 {
    color: #0056b3; /* عنوان جعبه‌های تماس */
}

.contact-box p,
.contact-box a {
    color: #ccc; /* دارک مود */
    text-decoration: none;
    font-size: 0.95em;
}
body.light .contact-box p,
body.light .contact-box a {
    color: #333; /* متن و لینک‌ها در جعبه تماس */
}

.contact-box .call-btn,
.contact-box .map-btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #00e5ff, #00bcd4); /* دارک مود */
    color: #001014; /* دارک مود */
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.35); /* دارک مود */
}
body.light .call-btn,
body.light .map-btn {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35) !important;
}

.contact-box .call-btn:hover,
.contact-box .map-btn:hover {
    background: linear-gradient(135deg, #00f0ff, #00c3d6); /* دارک مود */
    box-shadow: 0 12px 28px rgba(0, 229, 255, 0.6); /* دارک مود */
}
body.light .contact-box .call-btn:hover,
body.light .contact-box .map-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003f80) !important;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.socials a {
    font-size: 24px;
    color: #00e5ff; /* دارک مود */
    transition: .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
body.light .socials a {
    color: #555; /* آیکون شبکه‌های اجتماعی */
    background-color: #f0f0f0; /* پس‌زمینه آیکون‌ها */
    border: 1px solid #ddd;
}
body.light .socials a:hover {
    background-color: #e0e0e0;
    color: #007bff;
}

.socials a:hover {
    transform: scale(1.2);
    color: #00f0ff; /* دارک مود */
}

/* === FLOAT WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: .3s;
    z-index: 1001;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 25px;
    background: #0a0d12; /* دارک مود */
    color: #777; /* دارک مود */
}
body.light footer {
    background-color: #e0e0e0; /* پس‌زمینه فوتر */
    color: #555; /* رنگ متن فوتر */
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    /* Adjustments for medium screens if needed */
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 0;
    }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #111;
        padding: 20px;
        border-radius: 12px;
        z-index: 999;
        width: calc(100% - 40px);
        gap: 15px;
    }
    body.light nav {
        background: #fff;
        border: 1px solid #eee;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    nav.active {
        display: flex;
    }
    nav a {
        padding: 5px 0;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding-top: 120px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section {
        padding: 80px 0;
    }

    .about-content {
        flex-direction: column; /* Stack elements vertically */
        gap: 30px;
    }
    .about-text-container, .about-image-container {
        flex: none; /* Reset flex */
        width: 100%; /* Full width */
    }
    .about-img-main {
        max-width: 350px; /* Slightly smaller on mobile */
    }

    .explanation-content {
        flex-direction: column;
        gap: 30px;
    }
    .explanation-text, .explanation-image {
        flex: none;
        width: 100%;
    }
    .cnc-image {
        width: 90% !important;
        max-width: none;
        margin: 20px auto;
    }
    .explanation-text h3, .explanation-text p, .explanation-text ul li {
        text-align: right;
    }
}

/* --------------- CSS for Site Logo --------------- */
.site-logo {
    width: 50px;
    height: auto;
    margin-left: 10px; /* تغییر فاصله به چپ */
    vertical-align: middle;
    border-radius: 5px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff; /* دارک مود */
    text-decoration: none;
}
body.light .logo {
    color: #000;
}

@media (max-width: 768px) {
    .site-logo {
        width: 40px;
        margin-left: 5px; /* کوچکتر در موبایل */
    }
    .logo {
        font-size: 20px;
    }
}

/* === OTHER ADJUSTMENTS === */
.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #fff; /* دارک مود */
}
body.light .section h2 {
    color: #0056b3;
}
body.light .section h3 {
    color: #0056b3;
}

/* === INTERNATIONAL EXPERIENCE SECTION === */

.international-section {
    padding: 90px 0;
    background: #0b1117;
    position: relative;
    overflow: hidden;
}

/* افکت پس‌زمینه خیلی ملایم */
.international-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(0, 229, 255, 0.08), transparent 35%),
        radial-gradient(circle at bottom left, rgba(0, 123, 255, 0.06), transparent 30%);
    pointer-events: none;
}

/* برای اینکه محتوا روی افکت پس‌زمینه قرار بگیرد */
.international-section .container {
    position: relative;
    z-index: 2;
}

/* عنوان بخش */
.international-section .section-title {
    text-align: center;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 28px;
}

/* توضیح بخش */
.international-description {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px;
    color: #b8c1cc;
    font-size: 16px;
    line-height: 2.1;
}

/* شبکه کارت کشورها */
.countries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    max-width: 1200px;
    margin: 0 auto;
}

/* کارت کشور */
.country-card {
    background: #121922;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 16px;
    padding: 42px 26px 36px;
    text-align: center;
    min-height: 235px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* افکت هاور کارت */
.country-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 18px 45px rgba(0, 229, 255, 0.12);
}

/* دایره پرچم */
.flag-circle {
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0f1720;
    border: 2px solid rgba(0, 229, 255, 0.28);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* عکس پرچم داخل دایره */
.flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* هاور پرچم */
.country-card:hover .flag-circle {
    transform: scale(1.08);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.34);
}

/* نام کشور */
.country-card h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}

/* متن توضیح کارت */
.country-card p {
    color: #aeb8c4;
    font-size: 14.5px;
    line-height: 1.9;
    margin: 0;
}


/* === INTERNATIONAL SECTION - LIGHT MODE === */

body.light .international-section {
    background: #f8fafc;
}

body.light .international-section::before {
    background:
        radial-gradient(circle at top center, rgba(0, 123, 255, 0.08), transparent 35%),
        radial-gradient(circle at bottom left, rgba(0, 229, 255, 0.06), transparent 30%);
}

body.light .international-section .section-title {
    color: #111111;
}

body.light .international-description {
    color: #555555;
}

body.light .country-card {
    background: #ffffff;
    border: 1px solid #e4eaf0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

body.light .country-card:hover {
    border-color: rgba(0, 123, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 123, 255, 0.12);
}

body.light .flag-circle {
    background: #ffffff;
    border: 2px solid rgba(0, 123, 255, 0.18);
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.14);
}

body.light .country-card:hover .flag-circle {
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.24);
}

body.light .country-card h3 {
    color: #111111;
}

body.light .country-card p {
    color: #555555;
}


/* === INTERNATIONAL SECTION - RESPONSIVE === */

@media (max-width: 992px) {
    .countries {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }

    .international-section .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .international-section {
        padding: 70px 0;
    }

    .countries {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .international-description {
        font-size: 15px;
        line-height: 2;
        margin-bottom: 40px;
    }

    .country-card {
        padding: 36px 24px 32px;
    }
}

@media (max-width: 480px) {
    .international-section .section-title {
        font-size: 25px;
        line-height: 1.6;
    }

    .international-description {
        font-size: 14px;
    }

    .flag-circle {
        width: 70px;
        height: 70px;
    }

    .country-card h3 {
        font-size: 20px;
    }

    .country-card p {
        font-size: 14px;
    }
}

.interactive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.visual-box { background: var(--bg-card); border-radius: 20px; padding: 20px; text-align: center; }

.hover-list .item { 
  padding: 20px; 
  cursor: pointer; 
  border-right: 4px solid transparent; 
  transition: 0.3s;
  border-radius: 5px;
}

.hover-list .item:hover { 
  background: var(--bg-section); 
  border-right-color: var(--accent); 
}

.hidden-desc { margin-top: 10px; color: var(--text-muted); font-size: 14px; display: none; }
.item:hover .hidden-desc { display: block; }

@media (max-width: 768px) { .interactive-grid { grid-template-columns: 1fr; } }

/* ============================= */
/* Process + FAQ Section */
/* ============================= */

.process-faq-section {
    padding: 90px 20px;
    background: var(--bg-color);
    color: var(--text-color);
}

.process-faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Process bar */
.process-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 60px;
    padding: 20px 10px;
    align-items: start;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 18px 12px;
    border-radius: 16px;
    background: transparent;
}

.process-step:not(:last-child)::after {
    content: "←";
    position: absolute;
    left: -15px;
    top: 28px;
    color: #b8b8b8;
    font-size: 22px;
}

.process-step.active {
    position: relative;
    border-right: 3px solid var(--primary-color);
    background: linear-gradient(to left, rgba(59,130,246,0.08), transparent);
}

.process-step.active::before {
    content: "";
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--primary-color);
}

.process-step-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
}

.process-step-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted-text);
}

/* FAQ header */
.process-faq-header {
    text-align: center;
    margin-bottom: 30px;
}

.process-faq-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
}

.process-faq-accent {
    color: var(--primary-color);
}

.process-faq-subtitle {
    font-size: 15px;
    color: var(--muted-text);
    margin: 0;
}

/* FAQ list */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-color);
    gap: 15px;
}

.faq-icon {
    font-size: 24px;
    line-height: 1;
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 22px;
}

.faq-content p {
    margin: 0;
    padding: 0 0 18px 0;
    line-height: 1.9;
    color: var(--muted-text);
    font-size: 14px;
}

.faq-item.active .faq-content {
    max-height: 220px;
}

.faq-item.active .faq-icon {
    content: "−";
}

/* Responsive */
@media (max-width: 900px) {
    .process-bar {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .process-step.active {
        border-right: none;
        border-top: 3px solid var(--primary-color);
    }

    .process-step.active::before {
        display: none;
    }

    .process-faq-title {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .process-faq-section {
        padding: 65px 15px;
    }

    .process-bar {
        grid-template-columns: 1fr;
    }

    .process-step-title {
        font-size: 19px;
    }

    .faq-header {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-content {
        padding: 0 18px;
    }
}

/* ==================== بخش "چرا قالب‌سازی فراهانی" ==================== */
.why-farahani-section {
  padding: 80px 20px;
  text-align: center;
  background: transparent !important;
  position: relative; /* ایجاد stacking context */
  z-index: 1;
}

.why-farahani-section .section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.why-farahani-section .section-title {
  font-size: 2.2rem;
  margin-bottom: 50px; /* فاصله مثبت از کارت‌ها */
  font-weight: 700;
  color: #ffffff; /* رنگ سفید برای دارک مود */
  position: relative;
  z-index: 10; /* تیتر بالاتر از کارت‌ها */
}

/* حالت لایت مود */
body.light .why-farahani-section .section-title {
  color: #0056b3 !important;
}

/* ========== کارت‌ها ========== */
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  position: relative;
  z-index: 5; /* کارت‌ها پایین‌تر از تیتر */
}

/* بقیه استایل‌های کارت مثل قبل */


.card {
  background: #1a212b; /* دقیقاً مثل کارت‌های بخش خدمات سایت */
  border-radius: 12px;
  padding: 30px 20px;
  width: 250px;
  text-align: center;
  transition: all 0.35s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

/* حالت لایت مود برای کارت */
body.light .card {
  background: #ffffff !important;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-6px);
  background: #222d3a;
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.25);
}

/* حالت لایت مود هاور */
body.light .card:hover {
  background: #f8f9fa !important;
  border-color: rgba(0, 123, 255, 0.25);
  box-shadow: 0 -15px 35px rgba(0, 123, 255, 0.15);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff; /* سفید برای دارک مود */
}

/* حالت لایت مود برای عنوان */
body.light .card-title {
  color: #0056b3 !important; /* آبی تیره مثل بقیه سایت */
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s;
  margin-top: 0;
  color: #ccc; /* خاکستری روشن برای دارک مود */
}

/* حالت لایت مود برای توضیحات */
body.light .card-desc {
  color: #555 !important; /* خاکستری تیره برای خوانایی */
}

.card:hover .card-desc {
  max-height: 150px;
  opacity: 0.85;
  margin-top: 12px;
}

/* حالت فعال برای موبایل (کلیک) */
.card.active .card-desc {
  max-height: 150px;
  opacity: 0.85;
  margin-top: 12px;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
  .why-farahani-section .section-title {
    font-size: 1.7rem;
    margin-bottom: 35px;
  }
  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 85%;
    max-width: 350px;
  }
}



/* --- Tooltip/Data Attributes for Bilingual Text --- */
/* This is a conceptual addition. Actual implementation requires JS to toggle attributes or classes. */
/* For now, assuming the HTML has the data-fa and data-en attributes */
/* Example of how you might toggle visibility with JS: */
/*
function setLanguage(lang) {
    document.documentElement.lang = lang;
    document.body.dir = lang === 'fa' ? 'rtl' : 'ltr';

    document.querySelectorAll('[data-fa]').forEach(el => {
        if (lang === 'fa') {
            el.textContent = el.getAttribute('data-fa');
            el.style.direction = 'rtl';
            el.style.textAlign = 'right';
        } else {
            el.textContent = el.getAttribute('data-en');
            el.style.direction = 'ltr';
            el.style.textAlign = 'left';
        }
    });
    // Re-apply specific styles if needed for RTL/LTR
    if (lang === 'fa') {
        document.querySelectorAll('.about-text, .explanation-text, .contact-box p').forEach(el => {
             el.style.textAlign = 'right';
        });
         document.querySelectorAll('.about-services li').forEach(el => {
             el.style.paddingRight = '25px';
        });
    } else {
         document.querySelectorAll('.about-text, .explanation-text, .contact-box p').forEach(el => {
             el.style.textAlign = 'left';
        });
        document.querySelectorAll('.about-services li').forEach(el => {
             el.style.paddingLeft = '25px';
             el.style.paddingRight = '0';
        });
    }
}
*/
