/* --- متغیرهای رنگی تم اپرا (تاریک و شطرنجی) --- */
:root {
    --opera-bg: #121212;
    --opera-gradient: linear-gradient(135deg, #fa1e4e 0%, #a020f0 100%);
    
    /* رنگ‌های اصلی */
    --primary: #fa1e4e; /* قرمز اپرا */
    --primary-dark: #d9163e;
    --secondary: #a020f0; /* بنفش اپرا */
    --accent: #ff6b8b;
    
    /* پس‌زمینه و متن */
    --bg-body: #121212;
    --bg-white: rgba(30, 30, 30, 0.85); /* شیشه‌ای تیره */
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    
    /* خطوط و حاشیه‌ها */
    --border: rgba(255, 255, 255, 0.1);
    --grid-line: rgba(255, 255, 255, 0.08);
    
    /* سایه‌ها */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    
    --radius: 16px;
}

/* --- تنظیمات پایه و پس‌زمینه شطرنجی --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Vazirmatn', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--opera-bg);
    color: var(--text-main); 
    line-height: 1.7; 
    overflow-x: hidden;
    
    /* الگوی شطرنجی + گرادینت */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(160, 32, 240, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(250, 30, 78, 0.25) 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;
    background-attachment: fixed;
}

/* --- 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(--opera-gradient); 
    color: white; 
    box-shadow: 0 4px 15px rgba(250, 30, 78, 0.4); 
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(250, 30, 78, 0.6); 
}

.btn-outline { 
    background: rgba(255,255,255,0.05); 
    border: 2px solid var(--border); 
    color: var(--text-main); 
    backdrop-filter: blur(5px);
}

.btn-outline:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
    background: rgba(250, 30, 78, 0.1);
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

.badge {
    background: rgba(250, 30, 78, 0.2);
    color: #ff6b8b;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(250, 30, 78, 0.3);
    box-shadow: 0 0 15px rgba(250, 30, 78, 0.2);
}

/* --- Header (اپرایی) --- */
header {
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    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(10, 10, 10, 0.95);
    padding: 10px 0;
    border-bottom: 1px solid rgba(250, 30, 78, 0.3);
}

.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: #fff; }

.brand-logo {
    width: 40px; height: 40px;
    background: var(--opera-gradient);
    color: white;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: #d0d0d0; font-weight: 500; transition: 0.3s; position: relative; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* خط زیر لینک‌ها */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* --- Hero Section --- */
.hero {
    padding: 120px 0 100px;
    /* حذف گرادینت سفید، استفاده از پس‌زمینه شفاف برای دیدن شطرنجی */
    background: transparent; 
    position: relative;
    overflow: hidden;
}

.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: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-text h1 span { 
    background: var(--opera-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 550px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    border-color: #fff;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@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: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.feature-box:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-md); 
    border-color: rgba(250, 30, 78, 0.4);
    background: rgba(40, 40, 40, 0.9);
}

.feature-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    color: var(--primary);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-box h3 { font-size: 1.4rem; margin-bottom: 15px; color: #fff; }
.feature-box p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

/* --- Products Grid --- */
.products-section { background: transparent; } /* شفاف برای دیدن شطرنجی */
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.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;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(250, 30, 78, 0.4);
    background: rgba(45, 45, 45, 0.95);
}

/* نوار رنگی بالا */
.module-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 4px;
    background: var(--opera-gradient);
    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(255,255,255,0.08);
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.card-title { font-size: 1.3rem; font-weight: 700; color: #fff; }
.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: rgba(255,255,255,0.08);
    color: #d0d0d0;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.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: #00ff88; border-radius: 50%; display: inline-block; margin-left: 8px; box-shadow: 0 0 10px #00ff88; }
.status-text { font-size: 0.9rem; color: #00ff88; 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: #fff; transform: translateX(-5px); }

/* --- Integration Section --- */
.integration-section {
    background: rgba(0,0,0,0.3);
    color: white;
    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; }
.integration-section p { opacity: 0.8; max-width: 700px; margin: 0 auto 50px; font-size: 1.15rem; }

.integration-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.integration-item { 
    font-weight: 700; 
    font-size: 1rem; 
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 30px; 
    border-radius: 50px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.integration-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* --- CTA Section --- */
.cta-section { padding: 120px 0; text-align: center; }

.cta-box {
    background: linear-gradient(135deg, rgba(250, 30, 78, 0.15), rgba(160, 32, 240, 0.15));
    border-radius: 30px;
    padding: 80px 40px;
    color: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}

.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 30px rgba(255,255,255,0.2);
}

.btn-white:hover { 
    transform: scale(1.05); 
    box-shadow: 0 15px 40px rgba(255,255,255,0.4); 
}

/* --- استایل بخش محتوا (لیست نرم‌افزارها) --- */
.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);
    backdrop-filter: blur(15px);
}

.content-section h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* استایل باکس جستجو */
.search-box { margin-bottom: 30px; }

.search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.search-box input:focus {
    border-color: var(--primary);
    background: rgba(0,0,0,0.5);
    outline: none;
    box-shadow: 0 0 20px rgba(250, 30, 78, 0.2);
}

/* استایل لیست */
.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: rgba(255,255,255,0.03);
    padding: 20px 25px;
    border-radius: 12px;
    border-right: 4px solid var(--primary);
    text-decoration: none;
    color: #d0d0d0;
    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: rgba(250, 30, 78, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #fff;
    border-color: var(--primary);
}

/* استایل فلش */
.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: rgba(0,0,0,0.5); 
    padding: 50px 0; 
    border-top: 1px solid var(--border); 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    backdrop-filter: blur(10px);
}

/* --- 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-bg: #121212;
        --opera-gradient: linear-gradient(135deg, #fa1e4e 0%, #a020f0 100%);
        --card-bg: rgba(30, 30, 30, 0.7);
        --card-hover: rgba(40, 40, 40, 0.85);
        --text-main: #ffffff;
        --text-muted: #b0b0b0;
        --accent: #fa1e4e;
        --radius: 16px;
        --grid-line: rgba(255, 255, 255, 0.08);
  
        font-family: 'Vazirmatn', sans-serif;
        background-color: var(--opera-bg);
        /* پس‌زمینه شطرنجی و گرادینت */
        background-image:
            radial-gradient(circle at 10% 20%, rgba(236, 9, 47, 0.25) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(250, 30, 78, 0.25) 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;
        color: var(--text-main);
        min-height: 100vh;
        padding: 40px 20px;
        position: relative; /* تغییر: برای اینکه هدر مطلق نسبت به این کادر قرار گیرد */
        /* ریست کردن اسکرول برای این بخش */
        overflow-x: hidden;
    }
  
    .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: #fff;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
        display: inline-block;
        padding: 10px 30px;
        border-radius: 50px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.1);
    }
  
    .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 rgba(255,255,255,0.2);
        background: rgba(20, 20, 20, 0.6);
        backdrop-filter: blur(20px);
        color: #fff;
        font-size: 1.1rem;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        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 25px rgba(250, 30, 78, 0.3);
        outline: none;
        background: rgba(20, 20, 20, 0.8);
    }
  
    .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 rgba(255,255,255,0.1);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        overflow: hidden;
        height: 100%;
        backdrop-filter: blur(5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
  
    .opera-software-page .card:hover {
        transform: translateY(-6px);
        background: var(--card-hover);
        box-shadow: 0 15px 35px rgba(0,0,0,0.4);
        border-color: rgba(250, 30, 78, 0.4);
    }
  
    .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: rgba(255,255,255,0.1);
        color: var(--text-muted);
        transition: color 0.3s;
        border: 1px solid rgba(255,255,255,0.05);
    }
  
    .opera-software-page .card:hover .badge {
        color: var(--accent);
        background: rgba(250, 30, 78, 0.15);
        border-color: rgba(250, 30, 78, 0.3);
    }
  
    .opera-software-page .card-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.4;
    }
  
    .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 rgba(255,255,255,0.1);
        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: rgba(18, 18, 18, 0.4);
        display: inline-block;
        padding: 10px 20px;
        border-radius: 50px;
        border: 1px solid rgba(255,255,255,0.05);
        backdrop-filter: blur(5px);
    }
  
    /* ریسپانسیو */
    @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; /* تنظیم فاصله از بالا برای موبایل */
        }
    }
