/* --- تنظیمات کلی و فونت --- */
:root {
    --primary-color: #00aeff; /* رنگ آبی نئونی */
    --primary-hover: #007bff;
    --light-text: #ccd6f6;
    --medium-text: #8892b0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --neon-glow: #00aeff;
    --btn-green: #28a745; /* رنگ سبز دکمه */
    --btn-green-hover: #218838; /* هاور سبز */
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--light-text);
    line-height: 1.6;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    /* پس‌زمینه ملایم و آهسته */
    background: linear-gradient(270deg, #1D2B64, #40306E, #3A6073, #f2709c);
    background-size: 800% 800%;
    animation: gradientAnimation 25s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


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

h1, h2, h3 {
    color: #ffffff;
    font-weight: 700;
}

/* --- انیمیشن ذرات معلق (Particles) --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
/* ... (کدهای ذرات span ها بدون تغییر باقی می‌مانند) ... */
.particles span { position: absolute; bottom: -50px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; opacity: 0; animation: floatUp 20s infinite linear; }
.particles span:nth-child(1) { left: 10%; width: 10px; height: 10px; animation-duration: 15s; animation-delay: 0s; }
.particles span:nth-child(2) { left: 20%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 2s; }
.particles span:nth-child(3) { left: 30%; width: 8px; height: 8px; animation-duration: 18s; animation-delay: 4s; }
.particles span:nth-child(4) { left: 40%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 1s; }
.particles span:nth-child(5) { left: 50%; width: 12px; height: 12px; animation-duration: 22s; animation-delay: 3s; }
.particles span:nth-child(6) { left: 60%; width: 7px; height: 7px; animation-duration: 16s; animation-delay: 5s; }
.particles span:nth-child(7) { left: 70%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 2s; }
.particles span:nth-child(8) { left: 80%; width: 9px; height: 9px; animation-duration: 19s; animation-delay: 6s; }
.particles span:nth-child(9) { left: 90%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 1s; }
.particles span:nth-child(10) { left: 5%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 3s; }
.particles span:nth-child(11) { left: 25%; width: 8px; height: 8px; animation-duration: 21s; animation-delay: 7s; }
.particles span:nth-child(12) { left: 35%; width: 10px; height: 10px; animation-duration: 17s; animation-delay: 0s; }
.particles span:nth-child(13) { left: 45%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 4s; }
.particles span:nth-child(14) { left: 55%; width: 9px; height: 9px; animation-duration: 15s; animation-delay: 2s; }
.particles span:nth-child(15) { left: 65%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: 6s; }


@keyframes floatUp {
    from { bottom: -50px; opacity: 0; transform: scale(0.5) translateX(0); }
    50% { opacity: 0.7; transform: scale(1) translateX(15px); }
    to { bottom: 100vh; opacity: 0; transform: scale(0.8) translateX(-15px); }
}

/* --- هدر (Header) --- */
.site-header {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.2rem 0; /* ارتفاع کم */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid #001e3c;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ستون سمت چپ (فارسی) */
.header-brand-fa {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1; 
    text-align: left; /* چسبیده به چپ */
}

/* ستون وسط (لوگو) */
.logo-container {
    flex: 1; 
    text-align: center; 
}

.logo-neon {
    font-family: 'Vazirmatn', 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-glow), 0 0 15px var(--neon-glow);
}

/* ستون سمت راست (تماس) */
.site-header .contact-info {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 500;
    flex: 1; 
    text-align: right; /* چسبیده به راست */
}
.site-header .contact-info .fas {
    color: var(--neon-glow);
    margin-left: 8px;
}

/* --- بخش اصلی (Hero) --- */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    padding-top: 70px; /* پدینگ بالا (به اندازه هدر جدید) */
    box-sizing: border-box;
}

.hero-content { 
    animation: fadeIn 1.5s ease-out;
    text-align: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.3rem; color: var(--medium-text); margin-bottom: 2rem; }

.btn-primary {
    display: inline-block; 
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* --- بخش ویژگی‌های ثابت --- */
.static-features {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: relative;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.feature-item .fas {
    color: var(--neon-glow);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px var(--neon-glow));
}

.feature-item span {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 500;
}

/* --- بخش خدمات (Pricing) --- */
.pricing-table {
    padding: 2.5rem 0;
    position: relative;
}

.pricing-table h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1100px;
}
.product-card { 
    background: var(--card-bg); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem; 
    width: 320px; 
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    animation: fadeIn 1s ease-out; 
    box-sizing: border-box; 
    color: var(--light-text);
}
.product-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3); 
    border-color: var(--primary-color);
}
.product-card h2 { 
    font-size: 1.8rem; 
    color: #ffffff; 
    margin-bottom: 1rem; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* رنگ قیمت در صفحه اصلی */
.product-card .price { 
    font-size: 2rem; 
    font-weight: bold; 
    color: #000000; /* مشکی شد */
    background-color: rgba(255, 255, 255, 0.85); /* پس‌زمینه سفید برای خوانایی */
    padding: 0.2rem 1rem; /* پدینگ برای ایجاد تگ قیمت */
    border-radius: 8px; /* گرد کردن گوشه‌ها */
    display: inline-block; /* برای اعمال پس‌زمینه */
    margin-bottom: 1.5rem; 
    text-shadow: none; /* حذف سایه قبلی */
}

/* دکمه مشاهده جزئیات */
.btn-details { 
    width: 100%; 
    background-color: var(--btn-green); /* سبز شد */
    border: 2px solid var(--btn-green); /* سبز شد */
    color: #000000; /* متن مشکی شد */
    padding: 0.8rem 1.5rem; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; 
    font-family: 'Vazirmatn'; 
}
.btn-details:hover { 
    background-color: var(--btn-green-hover); /* سبز تیره‌تر */
    color: #ffffff; /* متن در هاور سفید شد */
    border-color: var(--btn-green-hover); 
}

/* --- فوتر (Footer) --- */
.site-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
    color: var(--medium-text);
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* --- استایل پنجره پاپ آپ (Modal) --- */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); align-items: center; justify-content: center; }

.modal-content { 
    background-color: #fefefe; 
    color: #333; 
    margin: auto; 
    padding: 2.5rem; 
    border: 1px solid #888; 
    width: 90%; 
    max-width: 600px; 
    border-radius: 12px; 
    position: relative; 
    animation: modalFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center; 
}
.modal-close { color: #aaa; position: absolute; left: 1.5rem; top: 1rem; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-close:hover, .modal-close:focus { color: #000; }
.modal-content h2 { 
    color: #1a1a1a; 
    margin-bottom: 1.5rem;
}
.modal-content p { 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 1.5rem; 
    text-align: right; 
}
/* رنگ قیمت در پاپ آپ (مشکی) */
.modal-price { 
    font-size: 1.3rem; 
    font-weight: bold; 
    color: #000000; /* مشکی شد */
    margin-bottom: 2rem;
}

.btn-buy { 
    display: inline-block; 
    width: auto; 
    background-color: var(--btn-green); /* سبز شد */
    color: #ffffff; /* متن سفید */
    padding: 0.7rem 2.5rem; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1rem; 
    text-align: center; 
    transition: background-color 0.3s ease;
}
.btn-buy:hover { background-color: var(--btn-green-hover); }

/* --- استایل فرم در صفحه خرید --- */
.checkout-form { max-width: 500px; margin: 2rem auto; padding: 2rem; background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.checkout-form h2 { color: #333; text-align: center; margin-bottom: 1.5rem; }
.checkout-form p { color: #555; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: #444; }
.form-group input { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; font-family: 'Vazirmatn'; }
.btn-submit { width: 100%; background-color: #007bff; color: white; padding: 0.8rem; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease; font-family: 'Vazirmatn'; }
.btn-submit:hover { background-color: #0056b3; }
.form-info { text-align: center; color: #666; font-size: 0.9rem; margin-top: 1.5rem; }


/* --- انیمیشن‌های ورود --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8) translateY(50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- واکنش‌گرایی برای موبایل --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .product-grid { flex-direction: column; align-items: center; }
    .product-card { width: 90%; }
    
    /* *** اصلاح: هدر در موبایل *** */
    /* کدهای قبلی که هدر را ستونی می‌کردند حذف شدند */
    /* هدر موبایل اکنون از استایل دسکتاپ (سه ستونه) پیروی می‌کند */

    /* کمی فونت‌های هدر را در موبایل کوچک‌تر می‌کنیم */
    .header-brand-fa {
        font-size: 0.9rem; /* کوچک‌تر شد */
    }
    .site-header .contact-info {
        font-size: 0.8rem; /* کوچک‌تر شد */
    }
    .logo-neon {
        font-size: 1.5rem; /* کوچک‌تر شد */
    }
    
    .feature-grid {
        justify-content: center;
        gap: 1.2rem;
    }
    .feature-item .fas {
        font-size: 1.5rem;
    }
    .feature-item span {
        font-size: 1rem;
    }
    
    .btn-buy {
        width: 90%;
        padding: 0.8rem 1.5rem;
    }
}
