section.menu-bg {
    position: relative;
    margin-top: 0;
}

.menu-bg img {
    width: 100%;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 43, 43, 0.593);
}

.text-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: white;
    z-index: 2;
    width: fit-content;
}

.text-header h1 {
    color: white;
    margin: 0;
    font-size: 2.4rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: kh;
}

@keyframes show {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.dynamic-underline {
    height: 3px;
    background: #ffc107;
    position: absolute;
    border-radius: 3px;
    margin-top: 12px;
    animation: show 1s;
    animation-fill-mode: forwards;
}

.services-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: #0f2b3d;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-header .section-underline {
    width: 80px;
    height: 4px;
    background: #d44334;
    margin: 0 auto;
    border-radius: 4px;
}


/* شبکه باکس‌ها */

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


/* استایل باکس خدمات */

.service-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 110, 158, 0.1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(44, 110, 158, 0.3);
}


/* آیکون باکس */

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c6e9e 0%, #1a4d6e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    border-radius: 28px;
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
}


/* عنوان و توضیحات */

.service-card h3 {
    font-size: 1.5rem;
    color: #0f2b3d;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card p {
    color: #5a6e7c;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}


/* دکمه مطالعه بیشتر */

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgb(163 62 0);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.2s;
    border: 1px solid rgb(163 62 0);
}

.service-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.service-btn:hover {
    background: rgb(163 62 0);
    color: white;
}

.service-btn:hover i {
    transform: translateX(-4px);
}


/* ریسپانسیو */

@media (max-width: 768px) {
    .services-section {
        padding: 2rem 1rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}

.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #2c6e9e, #1e4a6e);
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #2c9e6e, #1e6e4a);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}


/* بخش نمونه کارها */

.portfolio-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
    position: relative;
}


/* هدر بخش */

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

.section-header h2 {
    font-size: 2.2rem;
    color: #0f2b3d;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-header .section-underline {
    width: 80px;
    height: 4px;
    background: #dc2626;
    margin: 0 auto;
    border-radius: 4px;
}

.section-header p {
    color: #4a627a;
    margin-top: 1rem;
    font-size: 1rem;
}


/* استایل اسلایدر Swiper */

.swiper-wrapper {
    height: unset !important;
}

.portfolio-swiper {
    width: 100%;
    padding: 1rem 0 3rem 0;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: auto;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.swiper-slide:hover {
    transition: 0.2s;
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}


/* تصویر نمونه کار - بدون object-fit cover */

.portfolio-image {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.swiper-slide:hover .portfolio-image img {
    transform: scale(1.05);
}


/* اورلی روی تصویر */

.portfolio-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 38, 38, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay a {
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #dc2626;
    font-size: 1.4rem;
    transition: all 0.2s;
}

.portfolio-overlay a:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}


/* محتوای متنی */

.portfolio-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1rem;
    line-height: 2rem;
    color: #0f2b3d;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.portfolio-category {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: center;
}

.portfolio-content p {
    color: #5a6e7c;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}


/* دکمه جزئیات */

.details-btn {
    background: transparent;
    border: 1px solid #dc2626;
    color: rgb(163 62 0);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto;
}

.details-btn:hover {
    background: #dc2626;
    color: white;
}


/* دکمه‌های ناوبری Swiper */

.swiper-button-next,
.swiper-button-prev {
    color: #dc2626;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.05);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}


/* pagination */

.swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #dc2626;
    transform: scale(1.2);
}


/* ریسپانسیو */

@media (max-width: 768px) {
    .text-header h1 {
        font-size: 2rem;
    }
    .portfolio-section {
        padding: 1rem;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    .portfolio-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 580px) {
    .text-header h1 {
        font-size: 150%;
    }
}

@media (max-width: 330px) {
    .text-header h1 {
        font-size: 100%;
    }
}


/* بخش درباره ما */

.about-section {
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}


/* ساختار دو ستونه */

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}


/* سمت راست - محتوای متنی */

.about-content {
    padding: 1rem;
}

.badge {
    display: inline-block;
    background: #eef2ff;
    color: rgb(163 62 0);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 2.2rem;
    color: #0f2b3d;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-content h2 span {
    color: rgb(163 62 0);
    position: relative;
}

.about-content h2 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 4px;
    background: rgb(163 62 0);
    border-radius: 4px;
}

.about-description {
  text-align:justify !important;
    color: #4a627a;
    line-height: 1.8;
    margin: 1.5rem 0;
    font-size: 1rem;
}


/* ویژگی‌ها (تیک شده) */

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #2d3e50;
}

.feature-item i {
    color: rgb(163 62 0);
    font-size: 1.2rem;
    width: 24px;
}


/* دکمه تماس */

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgb(163 62 0);
    color: white;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.about-btn:hover {
    background: rgb(163 62 0);
    color: white;
    transform: translateX(-5px);
    gap: 15px;
}


/* سمت چپ - تصویر/کارت آماری */

.about-stats {
    background: linear-gradient(135deg, #fcfbf8 0%, #f9f3f1 100%);
    border-radius: 30px;
    padding: 2rem;
    position: relative;
}

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

.stat-card {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgb(163 62 0);
}

.stat-label {
    font-size: 0.85rem;
    color: #5a6e7c;
    margin-top: 0.5rem;
}

.about-quote {
    background: #2c6e9e10;
    padding: 1.2rem;
    border-radius: 20px;
    border-right: 4px solid rgb(163 62 0);
    margin-top: 1rem;
}

.about-quote p {
    color: #2d3e50;
    font-style: italic;
    font-size: 0.9rem;
}


/* ریسپانسیو */

@media (max-width: 992px) {
    .about-container {
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-content {
        order: 1;
    }
    .about-stats {
        order: 2;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 1.5rem;
    }
    .about-content h2 {
        font-size: 1.6rem;
    }
    .stats-grid {
        gap: 1rem;
    }
    .stat-card {
        padding: 1rem;
    }
}

.stat-number::before {
    content: "+";
}

.stat-card:last-child .stat-number::before {
    content: '';
}

.stat-card:last-child .stat-number::after {
    content: "%";
}


/* آیکون‌ها و افکت‌ها */

.floating-icon {
    position: absolute;
    opacity: 0.05;
    font-size: 6rem;
    bottom: 10px;
    left: 10px;
    pointer-events: none;
}