   /* تعریف فونت سمیم */
   @font-face {
    font-family: 'Samim';
    src: url('assets/fonts/Samim.eot');
    src: url('assets/fonts/Samim.eot?#iefix') format('embedded-opentype'),
         url('assets/fonts/Samim.woff2') format('woff2'),
         url('assets/fonts/Samim.woff') format('woff'),
         url('assets/fonts/Samim.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-color: #333;
    --light-bg: #f8fafc;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-bg);
    font-family: 'Samim', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

/* استایل‌های عمومی متنی */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, textarea, select, option {
    font-family: 'Samim', sans-serif;
}

/* فقط برای محتوای اصلی */
.main-content {
    padding: 2rem;
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .main-content {
        padding: 4rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding: 7rem;
    }
}

/* بخش هدر */
.header-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
}

.header-image:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .header-image {
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .header-image {
        max-width: 500px;
    }
}

.h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50%;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .h1 {
        font-size: 4rem;
    }
}

/* بخش‌های محتوا */
.h2-container {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.h2-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
}

.h2-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

.h2-container.show {
    opacity: 1;
    transform: translateY(0);
}

.h2-container .h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    z-index: 2;
}

.h2-container .h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

.h2-container p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    padding-right: 1.5rem;
}

.h2-container p::before {
    content: '▫️';
    position: absolute;
    right: 0;
    color: white;
}

/* انیمیشن‌ها */
.tracking-in-contract {
    -webkit-animation: tracking-in-contract 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: tracking-in-contract 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@-webkit-keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

@keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

/* دکمه بازگشت به بالا */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-5px) scale(1.05);
}

.scroll-to-top svg {
    margin: 0 auto;
    width: 24px;
    height: 24px;
    stroke-width: 3;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* بخش اطلاعات تماس */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    color: white;
    font-size: 1.2rem;
}

/* استایل برای بخش هدر */
.header-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.header-section:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* استایل برای بخش توضیحات زیر عنوان */
.subtitle {
    color: #6b7280;
    font-size: 1.2rem;
    margin-top: 1rem;
    position: relative;
    padding-right: 1.5rem;
    display: inline-block;
}

.subtitle::before {
    content: '📝';
    position: absolute;
    right: 0;
}