@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--esh-nav-height);
}

body {
    font-family: var(--esh-font);
    direction: rtl;
    color: var(--esh-gray-800);
    background: var(--esh-white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--esh-primary-dark);
    text-decoration: none;
    transition: var(--esh-transition);
}

a:hover {
    color: var(--esh-primary);
}

.container {
    width: 100%;
    max-width: var(--esh-container);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--esh-purple);
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--esh-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--esh-gray-600);
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.bg-dark {
    background: var(--esh-dark);
    color: var(--esh-white);
}

.bg-dark .section-title {
    color: var(--esh-white);
}

.bg-dark .section-desc {
    color: var(--esh-gray-400);
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }

    .container {
        padding: 0 16px;
    }
}
