/* --- متغیرهای رنگی تم مشکی و سفید --- */
:root {
    /* رنگ‌های اصلی - تغییر به مشکی */
    --primary: #000000; /* مشکی */
    --primary-light: #333333; /* مشکی روشن‌تر */
    --secondary: #000308; /* آبی روشن برای تاکید (دکمه‌ها) */
    --accent: #2563eb; /* آبی استاندارد */
    
    /* پس‌زمینه و متن */
    --bg-body: #ffffff; /* سفید خالص */
    --bg-white: #ffffff; /* سفید خالص */
    --text-main: #000000; /* متن اصلی مشکی */
    --text-muted: #000000; /* متن کمرنگ هم مشکی شد */
    
    /* خطوط و حاشیه‌ها */
    --border: #e2e8f0; /* حاشیه خاکستری روشن */
    --grid-line: rgba(0, 0, 0, 0.05); /* خطوط شطرنجی مشکی کمرنگ */
    
    /* سایه‌ها */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --radius: 16px;
}

/* --- تنظیمات پایه و پس‌زمینه --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-body); /* سفید */
    color: var(--text-main); /* مشکی */
    line-height: 1.7;
    overflow-x: hidden;
    /* پس‌زمینه اینجا ساده سفید است */
}

/* --- Utilities --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}
.brand-img { height: 45px; width: auto; margin-left: 10px; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); }
.brand-logo {
    width: 150px; height: 100%;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.3s; position: relative; }
.nav-links a:hover { color: var(--primary); }
/* خط زیر لینک‌ها */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background: var(--secondary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* --- Hero Section --- */
.hero {
    /* تنظیمات قبلی */
    padding: 120px 0 50px;
    position: relative;
    overflow: hidden;
    
    /* --- تنظیمات تصویر پس‌زمینه --- */

    background-position: center;    /* تصویر در مرکز قرار می‌گیرد */
    background-repeat: no-repeat;   /* تصویر تکرار نمی‌شود */
    
    /* --- تنظیمات رنگ پس‌زمینه (فضای اطراف تصویر) --- */
    background-color: #f0f4f8;      /* رنگ پس‌زمینه برای فضای خالی اطراف تصویر */
    background-blend-mode: normal;  /* حالت ترکیب را روی عادی قرار می‌دهیم */
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary);
}
.hero-text h1 span {
    color: var(--secondary);
}
.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 550px;
}
.hero-image img {
    width: 700px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Features / Why Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-box {
    background:#0130965d;
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}
.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}
.feature-icon {
    width: 60px; height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}
.feature-box h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary); }
.feature-box p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

/* --- Products Grid --- */
.products-section { background: #01309648; }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; color: var(--primary); }
.section-header p { color: var(--text-muted); font-size: 1.15rem; }
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.module-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}
/* نوار رنگی بالا */
.module-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: 0.3s;
}
.module-card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.card-icon {
    width: 55px; height: 55px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}
.card-title { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.card-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; line-height: 1.7; }
.card-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.tag {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.card-action {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-dot { height: 10px; width: 10px; background-color: #10b981; border-radius: 50%; display: inline-block; margin-left: 8px; box-shadow: 0 0 5px #10b981; }
.status-text { font-size: 0.9rem; color: #10b981; font-weight: 700; }
.btn-card { font-size: 0.95rem; color: var(--primary); font-weight: 700; text-decoration: none; transition: 0.3s; }
.btn-card:hover { color: var(--secondary); transform: translateX(-5px); }

/* --- Integration Section --- */
.integration-section {
    background: var(--bg-white);
    color: var(--text-main);
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.integration-section h2 { font-size: 2.2rem; margin-bottom: 20px; font-weight: 800; color: var(--primary); }
.integration-section p { opacity: 0.8; max-width: 700px; margin: 0 auto 50px; font-size: 1.15rem; color: var(--text-muted); }
.integration-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
.integration-item {
    font-weight: 700;
    font-size: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px 30px;
    border-radius: 50px;
    transition: 0.3s;
    color: var(--text-muted);
}
.integration-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* --- CTA Section --- */
.cta-section { padding: 120px 0; text-align: center; }
.cta-box {
    background:#013588;
    border-radius: 30px;
    padding: 80px 40px;
    color: white;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary);
}
.cta-box h2 { font-size: 2.8rem; margin-bottom: 20px; font-weight: 800; }
.cta-box p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.9; max-width: 800px; margin-left: auto; margin-right: auto; }
.btn-white {
    background: white;
    color: var(--primary);
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* --- استایل بخش محتوا (لیست نرم‌افزارها) --- */
.content-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 60px auto;
    text-align: right;
    border: 1px solid var(--border);
}
.content-section h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 15px;
    display: inline-block;
}
/* استایل باکس جستجو */
.search-box { margin-bottom: 30px; }
.search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: #f8fafc;
    color: var(--text-main);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}
.search-box input:focus {
    border-color: var(--secondary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
/* استایل لیست */
.content-section ul { list-style: none; padding: 0; }
.content-section ul li { margin-bottom: 15px; }
/* استایل لینک داخل لیست (کارت) */
.card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 12px;
    border-right: 4px solid var(--secondary);
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    border-right-width: 4px;
}
/* افکت هاور */
.card-link:hover {
    transform: translateX(-5px);
    background: #fff;
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
/* استایل فلش */
.card-icon { font-size: 1.5rem; color: var(--text-muted); transition: color 0.3s; }
.card-link:hover .card-icon { color: var(--primary); }
/* استایل متن بولد */
.card-link strong { color: var(--primary); margin-left: 8px; font-weight: 800; }

/* --- Footer --- */
footer {
    background: var(--bg-white);
    padding: 50px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 32px; }
    .hero-image { display: none; }
    .nav-links { display: none; }
    .cta-box { padding: 50px 20px; }
    .cta-box h2 { font-size: 2rem; }
}
@media (max-width: 600px) {
    .modules-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .content-section { padding: 25px; }
    .hero-text h1 { font-size: 2rem; }
}

/* --- استایل‌های اختصاصی صفحه نرم‌افزار (Opera Software Page) --- */
.opera-software-page {
    --opera-bg: #ffffff; /* سفید */
    --opera-gradient: linear-gradient(135deg, #000000 0%, #333333 100%); /* گرادینت مشکی */
    --card-bg: #ffffff;
    --card-hover: #f1f5f9;
    --text-main: #000000; /* مشکی */
    --text-muted: #000000; /* مشکی */
    --accent: #2563eb;
    --radius: 16px;
    --grid-line: rgba(0, 0, 0, 0.05);
    
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--opera-bg);
    color: var(--text-main);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    
    /* --- پس‌زمینه شطرنجی فقط در این بخش --- */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}
.opera-software-page .local-header {
    text-align: center;
    margin-bottom: 0;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}
.opera-software-page h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.opera-software-page .search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}
.opera-software-page .search-container input {
    width: 100%;
    padding: 18px 30px;
    padding-left: 60px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: #ffffff;
    backdrop-filter: blur(20px);
    color: var(--text-main);
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}
.opera-software-page .search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
    background: #fff;
}
.opera-software-page .search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
}
.opera-software-page .software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 220px;
}
.opera-software-page .card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.opera-software-page .card:hover {
    transform: translateY(-6px);
    background: var(--card-hover);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.opera-software-page .card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--opera-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.opera-software-page .card:hover::after {
    transform: scaleX(1);
}
.opera-software-page .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.opera-software-page .badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--text-muted);
    transition: color 0.3s;
    border: 1px solid var(--border);
}
.opera-software-page .card:hover .badge {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}
.opera-software-page .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--primary);
}
.opera-software-page .card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}
.opera-software-page .card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.opera-software-page .action-text {
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.opera-software-page .card:hover .action-text {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}
.opera-software-page .hidden {
    display: none !important;
}
.opera-software-page .local-footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
    background: #ffffff;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .opera-software-page .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        padding-top: 260px;
    }
    .opera-software-page h1 {
        font-size: 1.5rem;
    }
    .opera-software-page .local-header {
        top: 20px;
    }
}