:root {
    --primary-color: #eeaa43;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --accent-success: #198654;
    --light-color: #f7f7f7;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --gradient-primary: linear-gradient(135deg, #eeaa43 0%, #815e24 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --gradient-success: linear-gradient(135deg, #198654 0%, #115737 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #f9f9f9;
    background: linear-gradient(135deg, #11023b 10%, #2c0a87 30%, #11023b 100%);
    background-repeat: no-repeat;
    background-attachment: fixed; /* خیلی مهم */
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed; /* مهم: absolute نباشه */
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* RTL/LTR Adjustments */
body[dir="ltr"] .section {
    transform: translateX(-100px);
}

body[dir="ltr"] .section:nth-child(even) {
    transform: translateX(100px);
}

body[dir="ltr"] .language-toggle {
    left: 20px;
    right: auto;
}

.text-mute {
    color: #e2e2e2;
}

/* هدر و ناوبری */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 5px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--accent-color);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: var(--light-color) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 247, 37, 0.3);
    color: white;
}

/* بخش هیرو */
.hero-section {
    padding: 100px 0 80px;

    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15), transparent 70%);
    filter: blur(80px);
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    opacity: 0.05;
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 2;
    color: #999;
    margin-bottom: 30px;
    max-width: 600px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background: var(--gradient-primary);
    opacity: 0.3;
    bottom: -10px;
    right: 0;
    z-index: -1;
    border-radius: 4px;
}

.hero-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* بخش ویژگی‌ها */
.features-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--light-color);
    position: relative;
}

.section-details {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--dark-color);
    position: relative;
}

.section-details::after {
    content: '';
    position: absolute;
    width: 174px;
    height: 5px;
    background: var(--gradient-primary);
    bottom: -15px;
    right: 46.5%;
    transform: translateX(50%);
    border-radius: 5px;
}

/* بهینه‌سازی کارت ویژگی‌ها برای تم دارک */
.feature-card {
    background: #2a2a3d; /* پس‌زمینه تیره */
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid #3a3a5a;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* آیکون‌های کارت */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-icon.accent {
    background: var(--gradient-accent);
}

.feature-icon.success {
    background: var(--gradient-success);
}

/* عنوان کارت */
.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light-color); /* متن روشن برای دارک */
}

/* توضیحات کارت */
.feature-card p.text-muted {
    color: #F2F2F2; /* متن خاکستری روشن برای خوانایی بهتر روی پس‌زمینه تیره */
    font-size: 1rem;
    line-height: 1.6;
}

/* افکت هور آیکون */
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* نسخه‌ی responsive برای موبایل */
@media (max-width: 768px) {
    .feature-card {
        padding: 20px;
    }
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .feature-title {
        font-size: 1.25rem;
    }
    .feature-card p.text-muted {
        font-size: 0.95rem;
    }
}

.feature-icon.accent {
    background: var(--gradient-accent);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light-color);
}

/* بخش نحوه کار */
.how-it-works {
    padding: 100px 0;
}

.step-card {
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(10px);
}

.step-card {
    background: #1e1e2f;
    border-radius: var(--border-radius);
    border: 1px solid #2c2c44;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
}

/* بخش قیمت‌گذاری */
.pricing-section {
    padding: 100px 0;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'پیشنهاد ویژه';
    position: absolute;
    top: 20px;
    left: -30px;
    background: var(--gradient-accent);
    color: white;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
}

.price span {
    font-size: 1.2rem;
    color: #666;
}

/* بخش تماس */
.contact-section {
    padding: 100px 0;
    color: white;
}

.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* فوتر */
.footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 70px 0 30px;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .pricing-card.featured {
        transform: none;
        margin-top: 30px;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section, .features-section, .how-it-works, .pricing-section, .contact-section {
        padding: 70px 0;
    }
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Gallery Styles */
.gallery-section {
    padding: 80px 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Lightbox Styles */
#imageModal .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: none;
}

#imageModal .modal-dialog {
    margin: 0;
    max-width: 100%;
}

#imageModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    background: none;
    padding: 1rem;
    margin: 0;
}

#imageModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#imageModal .btn-outline-light {
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#imageModal .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .gallery-item {
        aspect-ratio: 1/1;
    }
}