/**
 * لندینگ - استایل صفحات اصلی سایت (هدر، فوتر، هیرو، سکشن‌ها، کارت‌ها)
 * وابسته به base.css
 * UTF-8 encoded
 */

/* Dark Mode - کامپوننت‌های لندینگ */
[data-theme="dark"] section h2,
body.dark-mode section h2 {
    color: #E2E8F0;
    -webkit-text-fill-color: #E2E8F0;
}

[data-theme="dark"] .main-header,
body.dark-mode .main-header {
    background: #020617;
    border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .main-footer,
body.dark-mode .main-footer {
    background: linear-gradient(135deg, #020617 0%, #0F172A 100%);
    color: var(--md-on-surface);
    border-top: 1px solid var(--md-outline-variant);
}

[data-theme="dark"] .product-card,
body.dark-mode .product-card,
[data-theme="dark"] .value-card,
body.dark-mode .value-card,
[data-theme="dark"] .testimonial-card,
body.dark-mode .testimonial-card,
[data-theme="dark"] .article-card,
body.dark-mode .article-card,
[data-theme="dark"] .section-card,
body.dark-mode .section-card {
    background: var(--md-surface);
    border-color: var(--md-outline-variant);
    color: var(--md-on-surface);
}

[data-theme="dark"] .articles-table-container,
body.dark-mode .articles-table-container {
    background: var(--md-surface);
    border-color: var(--md-outline-variant);
}

[data-theme="dark"] .articles-table thead,
body.dark-mode .articles-table thead {
    background: var(--md-primary);
}

[data-theme="dark"] .articles-table tbody tr:hover,
body.dark-mode .articles-table tbody tr:hover {
    background-color: rgba(var(--md-primary-rgb, 96, 165, 250), 0.12);
}

[data-theme="dark"] input,
body.dark-mode input,
[data-theme="dark"] textarea,
body.dark-mode textarea,
[data-theme="dark"] select,
body.dark-mode select {
    background: var(--md-surface);
    color: var(--md-on-surface);
    border-color: var(--md-outline-variant);
}

[data-theme="dark"] .products-preview-section,
body.dark-mode .products-preview-section,
[data-theme="dark"] .values-section,
body.dark-mode .values-section,
[data-theme="dark"] .articles-section,
body.dark-mode .articles-section {
    background: var(--md-background);
}

[data-theme="dark"] .testimonials-section,
body.dark-mode .testimonials-section {
    background: rgba(var(--md-primary-rgb, 96, 165, 250), 0.1);
}

[data-theme="dark"] .cta-section,
body.dark-mode .cta-section {
    background: linear-gradient(135deg, rgba(var(--md-primary-rgb, 96, 165, 250), 0.15) 0%, rgba(var(--md-secondary-rgb, 251, 146, 60), 0.1) 100%);
}

.main-header {
    background: var(--brand-dark, #0F172A);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: var(--brand-dark, #0F172A);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1.25rem 0;
    transition: padding 0.3s ease;
}

.main-header.scrolled .navbar {
    padding: 0.875rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.nav-brand a {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-menu a {
    color: #E2E8F0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.7rem;
    font-weight: 500;
    /* اندازهٔ ثابت — مستقل از تنظیم اندازهٔ فونت سایت تا منوی بالا بزرگ/شکسته نشود */
    font-size: 15px;
    white-space: nowrap;
    border-radius: 8px;
}

.nav-menu a i {
    font-size: 0.9em;
    margin-left: 0.2rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 1rem;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--md-primary);
    background: rgba(var(--md-primary-rgb, 59, 130, 246), 0.12);
}

.nav-menu a:hover::after {
    width: calc(100% - 2rem);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #E2E8F0;
    transition: all 0.3s;
}

.nav-menu-logo-item {
    display: none;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero, linear-gradient(135deg, #0F172A 0%, #1E293B 100%));
    color: #FFFFFF;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    max-height: 1000px;
    text-align: center;
    direction: rtl;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(var(--md-primary-rgb, 59, 130, 246), 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(var(--md-tertiary-rgb, 34, 211, 238), 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    animation: gradientShift 15s ease infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: var(--h1-hero-font-size, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: var(--line-height-heading, 1.2);
}

.hero p, .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #CBD5E1;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-family, inherit);
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* ── دکمه CTA (accent تک‌رنگ) ── */
.btn-primary {
    background: var(--site-accent, var(--md-secondary));
    color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(var(--md-secondary-rgb, 249, 115, 22), 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    box-shadow: 0 8px 15px rgba(var(--md-secondary-rgb, 249, 115, 22), 0.45);
    transform: translateY(-2px) scale(1.02);
    background: var(--site-accent-dark, var(--md-secondary-dark, #EA580C));
}

.btn-primary:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 4px rgba(var(--md-secondary-rgb, 249, 115, 22), 0.3);
}

/* Sections - فاصله یکسان بین بخش‌ها (کمتر از قبل برای کاهش فضای خالی) */
section {
    padding: 56px 0;
    position: relative;
}

.services-section {
    background: var(--md-surface-variant, #F8FAFC);
}

section h2 {
    font-size: var(--h2-font-size, 2.25rem);
    margin-bottom: 0.75rem;
    text-align: center;
    direction: rtl;
    color: var(--brand-dark, #0F172A);
    -webkit-text-fill-color: var(--brand-dark, #0F172A);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    font-weight: 700;
    line-height: 1.3;
    transition: font-size 0.3s ease;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--md-primary), var(--md-secondary));
    border-radius: 2px;
}

.about-section,
.contact-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
}

.demo-request-section {
    background: linear-gradient(135deg, rgba(var(--md-primary-rgb, 59, 130, 246), 0.04) 0%, rgba(var(--md-secondary-rgb, 249, 115, 22), 0.03) 100%);
    min-height: 60vh;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--md-surface, #FFFFFF);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--md-outline, #E2E8F0);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--md-primary), var(--md-secondary));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--md-secondary, #F97316);
}

.service-card h3 {
    color: var(--brand-dark, #0F172A);
    -webkit-text-fill-color: var(--brand-dark, #0F172A);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--md-primary, #3B82F6);
}

/* Forms */
.contact-form,
.demo-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(var(--md-primary-rgb, 59, 130, 246), 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(var(--md-primary-rgb, 59, 130, 246), 0.12);
    transform: translateY(-2px);
    border-radius: 12px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-right: 4px solid var(--success-color);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-right: 4px solid var(--error-color);
}

/* Footer - جمع‌وجور با نقشه کنار مطالب */
.main-footer {
    background: var(--brand-dark, #0F172A);
    color: #E2E8F0;
    padding: 2rem 0 1.25rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(var(--md-primary-rgb, 59, 130, 246), 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-top.has-map {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-map-col {
    min-width: 0;
}
.footer-map-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    height: 220px;
    background: #1f2937;
}
.footer-map-inner iframe {
    width: 100% !important;
    height: 220px !important;
    display: block;
    border: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem 2rem;
    min-width: 0;
}

.footer-section h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.footer-section h4 {
    margin: 0 0 0.5rem 0;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-section p {
    color: #9CA3AF;
    line-height: 1.55;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.footer-section a:hover {
    color: var(--md-primary, #60A5FA);
}

.footer-social {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.footer-social strong {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}
.footer-social-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.footer-social-icons a {
    color: #94A3B8;
    font-size: 1.15rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
.footer-social-icons a:hover {
    color: var(--md-secondary, #F97316);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    direction: rtl;
}
.footer-bottom p {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.8rem;
    margin: 0;
}
.footer-enamad {
    margin-top: 0.75rem;
}
.footer-enamad a {
    display: inline-block;
}
.footer-enamad img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .footer-top.has-map {
        grid-template-columns: 1fr;
    }
    .footer-map-inner,
    .footer-map-inner iframe {
        height: 200px !important;
    }
}

@media (max-width: 600px) {
    .main-footer {
        padding: 1.5rem 0 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.25rem;
    }
    .footer-section:first-child,
    .footer-section:last-child {
        grid-column: 1 / -1;
    }
}

/* Dashboard Admin Styles */
.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    min-height: calc(100vh - 70px);
    position: fixed;
    right: 0;
    top: 70px;
    padding: 2rem 0;
    overflow-y: auto;
}

.dashboard-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-sidebar-menu li {
    margin-bottom: 0.5rem;
}

.dashboard-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.dashboard-sidebar-menu a:hover,
.dashboard-sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-right-color: var(--md-primary);
}

.dashboard-sidebar-menu a i {
    font-size: 1.2rem;
    width: 24px;
}

.dashboard-main-content {
    margin-right: 280px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-right: 4px solid var(--md-primary);
}

.stat-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.stat-card-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Articles Table Responsive */
    .articles-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .articles-table {
        min-width: 600px;
    }
    
    .articles-table thead th,
    .articles-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .article-title-cell {
        max-width: 250px;
    }
    
    .article-excerpt {
        display: none;
    }
    
    .hamburger {
        display: flex;
        order: -1;
    }
    
    .nav-brand {
        order: 0;
    }
    
    .main-header.nav-open .nav-brand {
        visibility: hidden;
        pointer-events: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 1.5rem 2rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
        visibility: hidden;
        z-index: 1002;
        text-align: right;
        list-style: none;
        margin: 0;
        overflow-y: auto;
    }
    
    .nav-menu a {
        color: var(--brand-dark, #0F172A);
    }
    .nav-menu a:hover {
        color: var(--md-primary);
        background: rgba(var(--md-primary-rgb, 59, 130, 246), 0.08);
    }
    
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .nav-menu-logo-item {
        display: block;
        padding: 1.25rem 0 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin-bottom: 0.5rem;
    }
    
    .nav-menu-brand {
        font-size: 1.25rem;
        font-weight: 700;
        background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-secondary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-decoration: none;
        display: inline-block;
    }
    
    .nav-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu.active ~ .nav-menu-overlay {
        display: block;
        opacity: 1;
    }
    
    .hero h1,
    .hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero p, .hero-subtitle,
    .hero .hero-content .hero-subtitle {
        font-size: 1.125rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main-content {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
}

/* Torun Hero CTA Styles */
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 480px;
    max-height: 780px;
    overflow: hidden;
    background: #0a0a0a;
    font-family: var(--font-family, inherit);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- اسلاید --- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    will-change: opacity, transform;
    /* خروج: fade + scale-down + blur */
    transition:
        opacity 1.2s cubic-bezier(.4,0,.2,1),
        transform 1.2s cubic-bezier(.4,0,.2,1),
        filter 1.2s cubic-bezier(.4,0,.2,1),
        visibility 0s linear 1.2s;
    transform: scale(1.04);
    filter: blur(0px);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
    filter: blur(0px);
    transition:
        opacity 1.2s cubic-bezier(.4,0,.2,1),
        transform 1.2s cubic-bezier(.4,0,.2,1),
        filter 1.2s cubic-bezier(.4,0,.2,1),
        visibility 0s linear 0s;
}

/* اسلاید در حال خروج — کمی blur و fade */
.hero-slide.leaving {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(4px);
    z-index: 1;
}

/* تصویر با <img> — کیفیت بالا */
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
}

/* اورلی نیم‌شفاف — ملایم */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* --- محتوای روی اسلاید --- */
.slide-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    font-family: var(--font-family, inherit);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem 4.5rem;
    color: #fff;
}

/* ── رنگ متن اسلایدر — همیشه سفید + فونت سایت ── */
.slide-content h1 {
    font-size: clamp(1.6rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 1rem;
    max-width: 800px;
    color: #fff;
    font-family: var(--font-family, inherit) !important;
    text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s cubic-bezier(.22,1,.36,1) .2s, transform .8s cubic-bezier(.22,1,.36,1) .2s;
}

.hero-slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.slide-content p {
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 640px;
    color: #CBD5E1;
    font-family: var(--font-family, inherit) !important;
    text-shadow: 0 1px 16px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s cubic-bezier(.22,1,.36,1) .35s, transform .8s cubic-bezier(.22,1,.36,1) .35s;
}

.hero-slide.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.5rem;
    font-family: var(--font-family, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: var(--md-secondary, #F97316);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(var(--md-secondary-rgb, 249, 115, 22), 0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.22,1,.36,1) .5s, transform .8s cubic-bezier(.22,1,.36,1) .5s,
                background .25s ease, box-shadow .25s ease;
}

.hero-slide.active .slide-btn {
    opacity: 1;
    transform: translateY(0);
}

.slide-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(var(--md-secondary-rgb, 249, 115, 22), 0.5);
    background: var(--md-secondary-dark, #EA580C);
}

.slide-btn:active {
    transform: translateY(0) scale(.97) !important;
}

/* --- دکمه‌های جهت --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    transition: background .25s, transform .25s, box-shadow .25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    opacity: 0;
    padding: 0;
}

.hero-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow--prev { left: 1.25rem; }
.slider-arrow--next { right: 1.25rem; }

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* --- نشانگر پیشرفت (نقاط) --- */
.slider-progress {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
}

.slider-progress__dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: width .35s ease, background .35s ease, border-radius .35s ease;
}

.slider-progress__dot:hover {
    background: rgba(255,255,255,0.75);
}

.slider-progress__dot.active {
    width: 28px;
    border-radius: 4px;
    background: #fff;
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }
    
    .products-preview-section,
    .values-section,
    .testimonials-section,
    .articles-section,
    .cta-section {
        padding: 48px 0;
    }
    
    .products-preview-section {
        padding-top: 32px;
    }
    
    /* Reduce animations on mobile for performance */
    .value-icon {
        animation: none;
    }
    
    .cta-section::before {
        animation: none;
    }
    
    .hero-slider {
        height: 55vh;
        min-height: 380px;
        max-height: 520px;
    }
    
    .slider-arrow {
        opacity: 1;
        width: 38px;
        height: 38px;
    }
    
    .slider-arrow--prev { left: 0.75rem; }
    .slider-arrow--next { right: 0.75rem; }
    
    .slide-content {
        padding: 2rem 1.25rem 3.5rem;
    }
    
    .slider-progress {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
    
    .products-preview-section,
    .values-section,
    .testimonials-section,
    .articles-section,
    .cta-section {
        padding: 40px 0;
    }
    
    .products-preview-section {
        padding-top: 28px;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .cta-box-large h2 {
        font-size: 1.75rem;
    }
    
    .hero-slider {
        height: 50vh;
        min-height: 320px;
        max-height: 440px;
    }
    
    .slide-content {
        padding: 1.5rem 1rem 3rem;
    }
    
    .slide-content h1 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .slide-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .slider-arrow {
        width: 34px;
        height: 34px;
    }
    
    .slider-arrow--prev { left: 0.5rem; }
    .slider-arrow--next { right: 0.5rem; }
    
    .slider-progress {
        bottom: 0.75rem;
        gap: 0.5rem;
        padding: 0.4rem 0.75rem;
    }
    
    .dot { width: 8px; height: 8px; }
    .dot.active { transform: scale(1.2); }
}

/* Articles Table Styles - Material Design */
.articles-table-container {
    background: var(--md-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.articles-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--md-surface);
}

.articles-table thead {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

.articles-table thead th {
    padding: 1rem 1.5rem;
    text-align: right;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.articles-table tbody tr {
    border-bottom: 1px solid var(--md-outline-variant);
    transition: background-color 0.2s ease;
}

.articles-table tbody tr:hover {
    background-color: rgba(103, 80, 164, 0.08);
}

.articles-table tbody tr:last-child {
    border-bottom: none;
}

.articles-table tbody td {
    padding: 1.25rem 1.5rem;
    color: var(--md-on-surface);
    vertical-align: middle;
}

.article-title-cell {
    max-width: 400px;
}

.article-title-cell strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--md-on-surface);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--md-on-surface-variant);
    line-height: 1.6;
    margin: 0;
}

.article-category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(103, 80, 164, 0.12);
    color: var(--md-primary);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-date-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--md-on-surface-variant);
    font-size: 0.875rem;
}

.article-date-cell i {
    font-size: 0.875rem;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--md-on-surface-variant);
    font-size: 0.875rem;
}

.article-views i {
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Articles Section */
.articles-section {
    padding: 3.5rem 0;
    background: #fafbfc;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.articles-slider-container {
    position: relative;
    padding: 1rem 0 0.5rem 0;
}

.articles-swiper {
    width: 100%;
    padding: 1rem 0 2.5rem 0;
}

.articles-swiper .swiper-slide {
    height: auto;
    display: flex;
    width: 100%;
}

.articles-swiper .swiper-wrapper {
    align-items: stretch;
    display: flex;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border: 1px solid rgba(var(--md-primary-rgb, 59, 130, 246), 0.08);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--md-primary-rgb, 59, 130, 246), 0.3);
}

.article-card:hover::before {
    opacity: 1;
}

.article-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--md-primary-rgb, 59, 130, 246), 0.3) 0%, rgba(var(--md-secondary-rgb, 249, 115, 22), 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--site-accent, var(--md-secondary));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(var(--md-primary-rgb, 59, 130, 246), 0.3);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.5;
    font-weight: 700;
    flex-shrink: 0;
}

.article-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid #e5e7eb;
}

.article-date {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date i {
    color: var(--md-primary);
}

.article-actions {
    margin-top: auto;
    padding-top: 1rem;
    flex-shrink: 0;
}

.article-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Articles Swiper Navigation */
.articles-swiper .swiper-button-next,
.articles-swiper .swiper-button-prev {
    color: var(--md-primary);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.articles-swiper .swiper-button-next:after,
.articles-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.articles-swiper .swiper-button-next:hover,
.articles-swiper .swiper-button-prev:hover {
    background: var(--md-primary);
    color: white;
    transform: scale(1.1);
}

.articles-swiper .swiper-button-next {
    left: 10px;
    right: auto;
}

.articles-swiper .swiper-button-prev {
    right: 10px;
    left: auto;
}

/* Articles Swiper Pagination */
.articles-swiper .swiper-pagination {
    bottom: 10px;
}

.articles-swiper .swiper-pagination-bullet {
    background: var(--md-primary);
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.articles-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .articles-swiper .swiper-button-next,
    .articles-swiper .swiper-button-prev {
        width: 42px;
        height: 42px;
    }
    
    .articles-swiper .swiper-button-next:after,
    .articles-swiper .swiper-button-prev:after {
        font-size: 18px;
    }
    
    .articles-swiper .swiper-button-next {
        left: 5px;
        right: auto;
    }
    
    .articles-swiper .swiper-button-prev {
        right: 5px;
        left: auto;
    }
    
    .articles-swiper .swiper-slide {
        width: 100% !important;
        flex-shrink: 0;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .articles-swiper .swiper-button-next,
    .articles-swiper .swiper-button-prev {
        width: 38px;
        height: 38px;
    }
    
    .articles-swiper .swiper-button-next:after,
    .articles-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 1.25rem;
    }
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--md-primary);
    color: var(--md-primary);
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(var(--md-primary-rgb, 59, 130, 246), 0.1);
    border-color: var(--md-primary-dark);
    color: var(--md-primary-dark);
    box-shadow: 0 4px 6px rgba(var(--md-primary-rgb, 59, 130, 246), 0.2);
    transform: translateY(-2px) scale(1.05);
}

.btn-outline:active {
    transform: translateY(0) scale(1);
}

.btn-success {
    background: var(--md-success);
    color: var(--md-on-success);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-success:hover {
    background: var(--md-success-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--md-error);
    color: var(--md-on-error);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
    background: var(--md-error-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--md-warning);
    color: var(--md-on-warning);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-warning:hover {
    background: var(--md-warning-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-info {
    background: var(--md-info);
    color: var(--md-on-info);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-info:hover {
    background: var(--md-info-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ========== سکشن‌های صفحه اصلی — یکپارچه ========== */
main .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* پس‌زمینه یکدست برای کل محتوای زیر اسلایدر */
.products-preview-section,
.values-section,
.testimonials-section,
.articles-section,
.clients-logos-section {
    background: #fafbfc;
    padding: 3.5rem 0;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.products-preview-section {
    padding-top: 3rem;
}

.products-preview-section::before,
.values-section::before,
.articles-section::before {
    display: none;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Torun Card Styles */
.product-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--md-primary-rgb, 59, 130, 246), 0.03) 0%, rgba(var(--md-secondary-rgb, 249, 115, 22), 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.product-card-header {
    background: var(--gradient-blue);
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(180deg); }
}

.product-card-header-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.product-card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-card-content {
    padding: 1.25rem;
    flex: 1;
}

.product-card-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.product-card-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.product-card-features li::before {
    content: '✓';
    color: var(--md-success, #10B981);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--md-secondary);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.product-card h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.view-all-products {
    text-align: center;
    margin-top: 1rem;
}

.view-all-articles {
    text-align: center;
    margin-top: 1rem;
}

/* Values Section */
.values-section {
    padding: 3.5rem 0;
    background: #fafbfc;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.value-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--md-primary);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    width: 72px;
    height: 72px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--site-accent-soft, rgba(var(--md-secondary-rgb, 249, 115, 22), 0.15));
    color: var(--site-accent, var(--md-secondary));
    border-radius: 50%;
    border: 3px solid transparent;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 30px rgba(var(--md-primary-rgb, 59, 130, 246), 0.4),
                0 0 60px rgba(var(--md-secondary-rgb, 249, 115, 22), 0.3);
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.15) rotate(10deg); }
    50% { transform: scale(1.25) rotate(15deg); }
}

.value-card h3 {
    color: var(--site-accent, var(--md-secondary));
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

/* Testimonials Section */
.testimonials-section {
    padding: 3.5rem 0;
    background: #f5f5fa;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--glass-shadow),
                0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 56px 0;
    background: var(--gradient-brand, linear-gradient(135deg, #0F172A 0%, #1E293B 100%));
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-box-large {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.cta-box-large.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-box-large h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background-image: linear-gradient(135deg, rgba(58, 62, 242, 1) 0%, rgba(244, 16, 39, 1) 54%, rgba(236, 72, 153, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.cta-box-large p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-buttons .btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3),
                0 0 0 4px rgba(255, 255, 255, 0.2);
}

.cta-buttons .btn-primary {
    background: var(--gradient-cta, linear-gradient(135deg, #F97316 0%, #EA580C 100%));
    color: #FFFFFF;
    font-weight: 700;
}

.cta-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    color: #FFFFFF;
}

.cta-buttons .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Feature Icons Section */
.features-icons-section {
    background: white;
    padding: 60px 0;
}

.features-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-icon-item {
    text-align: center;
}

.feature-icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 50%;
    border: 3px solid #10b981;
    font-size: 2.5rem;
}

.feature-icon-item h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Product Detail */
.product-detail-hero {
    background: linear-gradient(180deg, var(--brand-dark, #0F172A) 0%, var(--md-primary, #3B82F6) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.product-icon-large {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.product-detail-section {
    padding: 60px 0;
    background: var(--white);
}

.product-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.product-description h2 {
    margin-bottom: 1.5rem;
}

.description-text {
    line-height: 1.8;
    color: var(--text-color);
}

.product-cta {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cta-box {
    background: linear-gradient(135deg, rgba(var(--md-primary-rgb, 59, 130, 246), 0.05) 0%, rgba(var(--md-secondary-rgb, 249, 115, 22), 0.05) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--md-primary-rgb, 59, 130, 246), 0.1);
}

.cta-box h3 {
    margin-bottom: 1rem;
    color: var(--md-primary);
}

.cta-box p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.cta-box .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-hero {
    background: linear-gradient(135deg, var(--brand-dark, #0F172A) 0%, var(--brand-light, #1E293B) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Contact Info Cards Section */
.contact-info-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--md-primary-rgb, 59, 130, 246), 0.08);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--md-primary);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--md-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--md-secondary);
    text-decoration: underline;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-hours .business-hours-content {
    text-align: right;
}

.contact-hours .business-hours-content p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-hours .business-hours-content p:last-child {
    margin-bottom: 0;
}

.contact-social a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--md-secondary);
    color: var(--white);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-social a:hover {
    background: var(--md-secondary-dark);
    transform: scale(1.05);
}

/* Google Maps Section */
.contact-map-section {
    padding: 60px 0;
    background: var(--white);
}

.contact-map-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.contact-map {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Forms Section */
.contact-forms-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.forms-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-simple,
.contact-form-demo {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form-simple h2,
.contact-form-demo h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.simple-contact-form,
.demo-request-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(var(--md-primary-rgb, 59, 130, 246), 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.empty-products {
    text-align: center;
    padding: 3rem;
}

/* Responsive Updates */
@media (max-width: 968px) {
    .product-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .product-cta {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .forms-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-info-section,
    .contact-map-section,
    .contact-forms-section {
        padding: 40px 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form-simple,
    .contact-form-demo {
        padding: 1.5rem;
    }
}

/* ========== بخش لوگوهای مشتریان (صفحه اصلی) ========== */
.clients-logos-section {
    padding: 3.5rem 0;
    background: #fafbfc;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
}
.clients-logos-section h2 {
    font-size: var(--h2-font-size, 2.25rem);
    margin-bottom: 0.75rem;
}
.clients-logos-section .section-subtitle {
    margin-bottom: 2rem;
}
.clients-logos-slider-wrap {
    position: relative;
    padding: 0 0 3rem 0;
    margin-bottom: 0.5rem;
}
.clients-logos-swiper {
    width: 100%;
    overflow: hidden;
}
.clients-logos-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-logo-item {
    background: transparent;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
    transition: transform 0.25s ease;
}
.client-logo-item:hover {
    transform: scale(1.05);
}
.client-logo-item img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(0.2);
}
.client-logo-item:hover img {
    filter: grayscale(0);
}
.clients-logos-swiper .swiper-button-next,
.clients-logos-swiper .swiper-button-prev {
    color: var(--md-primary);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.clients-logos-swiper .swiper-button-next:after,
.clients-logos-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
.clients-logos-swiper .swiper-button-prev { left: auto; right: 10px; }
.clients-logos-swiper .swiper-button-next { right: auto; left: 10px; }
.clients-logos-swiper .swiper-pagination {
    bottom: -28px;
}
.clients-logos-swiper .swiper-pagination-bullet {
    background: var(--md-primary);
    opacity: 0.4;
}
.clients-logos-swiper .swiper-pagination-bullet-active { opacity: 1; }
.clients-logos-cta {
    text-align: center;
}
@media (max-width: 768px) {
    .client-logo-item {
        min-height: 72px;
        padding: 0.25rem;
    }
    .client-logo-item img {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
        object-fit: cover;
        border-radius: 10px;
    }
    .clients-logos-swiper .swiper-button-prev { right: 4px; left: auto; }
    .clients-logos-swiper .swiper-button-next { left: 4px; right: auto; }
}

/* ========== صفحه درباره ما ========== */
.about-hero {
    background: linear-gradient(135deg, var(--brand-dark, #0F172A) 0%, var(--brand-light, #1E293B) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 45%);
    pointer-events: none;
}
.about-hero .container {
    position: relative;
    z-index: 1;
}
.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.about-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}
.about-section {
    padding: 56px 0;
    background: var(--md-background);
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
}
.about-content .mission-section,
.about-content .vision-section,
.about-content .approach-section {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--md-primary-rgb, 59, 130, 246), 0.08);
    transition: box-shadow 0.3s ease;
}
.about-content .mission-section:hover,
.about-content .vision-section:hover,
.about-content .approach-section:hover {
    box-shadow: 0 8px 30px rgba(var(--md-primary-rgb, 59, 130, 246), 0.12);
}
.about-content .mission-section h2,
.about-content .vision-section h2,
.about-content .approach-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
}
.about-content .mission-section p,
.about-content .vision-section p,
.about-content .approach-section p {
    color: var(--md-on-surface);
    line-height: 1.9;
    margin-bottom: 1rem;
    text-align: right;
}
.about-content .mission-section p:last-child,
.about-content .vision-section p:last-child,
.about-content .approach-section p:last-child {
    margin-bottom: 0;
}
.about-content .values-section {
    margin-top: 2.5rem;
    margin-bottom: 0;
}
.about-content .values-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
}
.about-content .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.about-content .value-card {
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(var(--md-primary-rgb, 59, 130, 246), 0.1);
}
.about-content .value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.about-content .value-card p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .about-hero {
        padding: 56px 0 40px;
    }
    .about-hero h1 {
        font-size: 1.75rem;
    }
    .about-content .mission-section,
    .about-content .vision-section,
    .about-content .approach-section {
        padding: 1.5rem 1.25rem;
    }
}