/* استایل کلی */
:root {
    /* حالت روشن (پیش‌فرض) */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 0.75rem;
    --transition: all 0.3s ease;
}

/* حالت تاریک */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #f8fafc;
    --accent: #f59e0b;
    --light: #0f172a;
    --dark: #1e293b;
    --muted: #94a3b8;
    --card-bg: #1e293b;
    --header-bg: #1e293b;
    --footer-bg: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--light);
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* نوار اطلاع‌رسانی */
.info-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-bar span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* هدر اصلی */
.main-header {
    background: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--secondary);
}

.logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* استایل‌های لوگو */
.logo-img {
    width: 70px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--card-bg);
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* آداپتور برای حفظ ظاهر قبلی اگر تصویر لوگو لود نشد */
.logo-img:not([src]),
.logo-img[src=""] {
    display: none;
}

.logo-img:not([src]) + .logo-icon,
.logo-img[src=""] + .logo-icon {
    display: flex;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.logo-text p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* دکمه سوئیچ دارک/لایت مود */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider .theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
}

.slider .sun {
    left: 6px;
}

.slider .moon {
    right: 6px;
}

input:checked + .slider .sun {
    color: white;
}

input:checked + .slider .moon {
    color: #666;
}

/* منوی اصلی */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background-color: var(--primary);
    color: white;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.5rem;
}

/* بخش هیرو */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 41, 59, 0.9));
    z-index: 1;
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(15, 23, 42, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--accent);
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--card-bg);
    color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .hero-image img {
    filter: brightness(0.85);
}

.hero-image img:hover {
    filter: brightness(1);
}

/* بخش‌های عمومی */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
    color: var(--text-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* بخش درباره ما */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .about-image img {
    filter: brightness(0.85);
}

.about-image img:hover {
    filter: brightness(1);
}

/* بخش خدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    color: var(--success);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

/* بخش آمار */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* بخش گالری */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.95);
}

[data-theme="dark"] .gallery-item img {
    filter: brightness(0.85);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
}

/* فرم تماس */
.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

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

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* بخش تماس */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.contact-map {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.map-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* نقشه گوگل */
.map-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-legend {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-item .office {
    color: #ff4444;
}

.legend-item .terminal {
    color: #44ff44;
}

/* فوتر */
.main-footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 50%;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    gap: 1rem;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-certificates {
    display: flex;
    gap: 1.5rem;
}

.footer-certificates span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* انیمیشن برای عناصر */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* نمایش تاریخ/ساعت (اختیاری) */
.time-display {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

/* اصلاحات برای حالت‌های مختلف */
[data-theme="dark"] .btn-primary {
    background-color: white;
    color: var(--primary);
}

[data-theme="dark"] .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* بهبود نمایش لوگو */
.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* پشتیبانی از دستگاه‌های لمسی */
@media (hover: none) and (pointer: coarse) {

    .service-card,
    .feature,
    .stat-card,
    .benefit-card {
        transition: none !important;
    }

    .service-card:hover,
    .feature:hover,
    .stat-card:hover,
    .benefit-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }
}

/* رسپانسیو */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--header-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .theme-switch-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* استایل‌های صفحات فرعی */
.service-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.detail-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.cargo-type {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cargo-type h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.routes {
    display: grid;
    gap: 1.5rem;
}

.route {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    padding: 1.5rem;
    border-radius: var(--radius);
    border-right: 4px solid var(--primary);
}

.route h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius);
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta-section .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    transition: var(--transition);
}

.back-home:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* استایل‌های صفحه خدمات ویژه */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-top: 1rem;
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
}

.page-main {
    padding: 4rem 0;
}

.page-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.page-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* کارت‌های خدمات ویژه */
.special-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-detail-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-10px);
}

.service-icon-large {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.benefits-list {
    list-style: none;
    margin-top: 1.5rem;
    text-align: right;
}

.benefits-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.benefits-list i {
    color: var(--success);
}

/* بخش مزایای انحصاری */
.exclusive-benefits {
    margin-bottom: 4rem;
}

.exclusive-benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.benefit-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefit-header i {
    font-size: 2rem;
    color: var(--accent);
}

.benefit-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* پکیج‌های خدماتی */
.service-packages {
    margin-bottom: 4rem;
}

.service-packages h2 {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.package-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.package-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent);
}

.package-header {
    color: white;
    padding: 2rem;
    text-align: center;
}

.package-header.bronze {
    background: linear-gradient(135deg, #CD7F32, #B76E3A);
}

.package-header.gold {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
}

.package-header.platinum {
    background: linear-gradient(135deg, #E5E4E2, #C0C0C0);
    color: var(--secondary);
}

.package-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.package-price {
    font-size: 1.1rem;
    opacity: 0.9;
}

.package-features {
    list-style: none;
    padding: 2rem;
    margin: 0;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features .fa-check {
    color: var(--success);
}

.package-features .fa-times {
    color: var(--muted);
}

.package-button {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.package-button:hover {
    background: var(--primary-dark);
}

/* فرم مشاوره */
.consultation-form {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(245, 158, 11, 0.05));
    padding: 3rem;
    border-radius: var(--radius);
    margin-top: 4rem;
}

.consultation-form h2 {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.consultation-form>p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* استایل‌های اختصاصی صفحه لجستیک */
.logistics-hero {
    background: linear-gradient(135deg, #2c3e50, #4a6572);
}

/* فرآیند خدمات لجستیک */
.logistics-services {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-process {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    right: 35px;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.step-content h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    list-style: none;
}

.step-features li {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* امکانات انبارداری */
.warehouse-features {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(245, 158, 11, 0.05));
    padding: 4rem 0;
    margin: 4rem 0;
}

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

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-capacity {
    display: inline-block;
    background: var(--accent);
    color: var(--secondary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* بخش تکنولوژی */
.technology-section {
    margin: 4rem 0;
}

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

.tech-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 3rem;
}

.tech-content {
    padding: 1.5rem;
}

.tech-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.tech-content p {
    color: var(--text-secondary);
}

.tech-specs {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tech-specs span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* بخش مزایا */
.benefits-section {
    margin: 4rem 0;
}

.benefits-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.benefits-section .benefit-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefits-section .benefit-card:hover {
    transform: translateY(-5px);
}

.benefits-section .benefit-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.benefits-section .benefit-card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* مطالعه موردی */
.case-study {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    padding: 3rem;
    border-radius: var(--radius);
    margin: 4rem 0;
}

.case-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.case-stats .stat {
    text-align: center;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--radius);
}

.case-stats strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.case-image {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.case-image i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* CTA نهایی */
.final-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 4rem;
}

.final-cta h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.final-cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.cta-buttons .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.2rem;
    }

    .special-services {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card.featured {
        transform: none;
    }

    .consultation-form {
        padding: 2rem 1rem;
    }

    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .step-number {
        margin: 0 auto;
    }

    .step-features {
        justify-content: center;
    }

    .case-content {
        grid-template-columns: 1fr;
    }

    .case-stats {
        grid-template-columns: 1fr;
    }

    .final-cta {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* پشتیبانی از دستگاه‌های لمسی */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature:hover,
    .benefit-card:hover,
    .tech-item:hover,
    .gallery-item:hover img {
        transform: none;
    }

    .nav-list a:hover {
        background-color: transparent;
    }

    .nav-list a.active {
        background-color: var(--primary);
    }
}

/* کاهش حرکات برای حساسیت */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* بهبود دسترسی‌پذیری - فوکوس */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* ====================
   اصلاحات عنوان‌ها
   ==================== */

/* هدر صفحه */
.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    white-space: nowrap; /* جلوگیری از دو خطی شدن */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* زیرعنوان */
.section-subtitle {
    font-size: 1.2rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0 auto 2rem;
}

/* عناوین کارت‌ها */
.service-card h3,
.feature h4,
.stat-title,
.benefit-card h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
}

/* عنوان‌های هیرو */
.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.4;
    max-width: 600px;
}

/* عناوین منو */
.nav-list a {
    font-size: 1rem;
    white-space: nowrap;
}

/* ====================
   رسپانسیو برای عنوان‌ها
   ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        white-space: normal; /* در موبایل اجازه دو خطی شدن */
        line-height: 1.3;
    }

    .section-header h1 {
        font-size: 1.8rem;
        white-space: normal;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1.1rem;
        white-space: normal;
        line-height: 1.4;
    }

    .service-card h3,
    .feature h4 {
        font-size: 1.2rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ====================
   اصلاحات کلید دارک مود
   ==================== */
.theme-switch-wrapper {
    margin-left: 1rem;
    margin-right: 0;
}

/* در نسخه موبایل */
@media (max-width: 768px) {
    .theme-switch-wrapper {
        order: 2;
        margin: 1rem 0;
    }

    .main-nav.active {
        flex-direction: column;
    }

    .main-nav.active .theme-switch-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* ====================
   بهبود ظاهر کلی
   ==================== */

/* حذف margin اضافی */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* بهبود فاصله‌ها */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* اصلاح اندازه فونت‌ها */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* عناوین بزرگ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* لوگو */
.logo-text h1 {
    font-size: 1.4rem;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.85rem;
    line-height: 1.2;
}