﻿body {

}
.projects-hero {
    padding: 70px 0 40px;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255,49,49,.12), transparent 60%), radial-gradient(900px 500px at 90% 20%, rgba(0,0,0,.06), transparent 55%), #fafafa;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.projects-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 991px) {
    .projects-hero__grid {
        grid-template-columns: 1fr;
    }
}

.projects-hero__badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,49,49,.10);
    color: #b31212;
    font-weight: 700;
    margin-bottom: 14px;
}

.projects-hero__title {
    font-size: 34px;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #111;
}

.projects-hero__subtitle {
    color: #444;
    line-height: 2;
    margin: 0 0 18px;
    text-align: justify;
}

.projects-hero__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 22px;
}

.projects-hero__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.trust-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 14px 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

.trust-card__num {
    font-size: 18px;
    font-weight: 900;
    color: #111;
}

.trust-card__txt {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Glass card */
.glass-card {
    border-radius: 18px;
    padding: 18px 18px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 40px rgba(0,0,0,.06);
    backdrop-filter: blur(10px);
}

.glass-card__title {
    font-weight: 900;
    color: #111;
    margin-bottom: 10px;
}

.glass-card__list {
    padding-right: 18px;
    line-height: 2;
    color: #444;
    margin: 0 0 12px;
}

.glass-card__note {
    font-size: 12px;
    color: #666;
    border-top: 1px dashed rgba(0,0,0,.12);
    padding-top: 10px;
}

/* ========== FILTERS ========== */
.portfolio_filters {
    text-align: center;
    margin: 20px 0 30px;
    padding: 0;
}

    .portfolio_filters li {
        display: inline-block;
        margin: 6px 6px;
    }

        .portfolio_filters li a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 999px;
            background: #fff;
            border: 1px solid rgba(0,0,0,.10);
            color: #444;
            text-decoration: none;
            transition: .25s ease;
            box-shadow: 0 10px 22px rgba(0,0,0,.04);
            font-weight: 700;
        }

            .portfolio_filters li a:hover,
            .portfolio_filters li a.active {
                background: #ff3131;
                border-color: #ff3131;
                color: #fff;
                transform: translateY(-1px);
            }

/* ========== PROJECT CARD ========== */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 34px rgba(0,0,0,.06);
    transition: .35s ease;
    margin-bottom: 26px;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 44px rgba(0,0,0,.10);
    }

.project-card__media {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

    .project-card__media:after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
    }

.project-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 12px;
    color: #fff;
    z-index: 2;
}

.project-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.6;
}

.project-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    opacity: .92;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(6px);
}

.project-card__footer {
    padding: 12px 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tags {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72%;
}

.project-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    transition: .25s ease;
}

    .project-btn:hover {
        background: #ff3131;
    }

.swiper-button-next,
.swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
}

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
        font-weight: bold;
    }

.thumbSwiper .swiper-slide-thumb-active > div {
    border-color: rgb(37 99 235);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
    padding-top: 16px;
}
.faq-icon {
    transition: transform 0.35s ease;
}


/*استایل مربوط به اسلایدر*/

.slider_wrapper .slides .item {
    height: 80vh; /* ارتفاع اسلایدر را متناسب با صفحه نمایش تنظیم می‌کند */
    background-repeat: no-repeat;
}

.slider-title a:hover {
    color: #f39c12 !important; /* تغییر رنگ عنوان با بردن موس روی آن */
    transition: all 0.3s ease;
}

.carousel-caption {
    bottom: 30% !important; /* متن‌ها رو کمی بالاتر میاره تا در موبایل توی کادر باشن */
}

@media (max-width: 768px) {
    .slider_wrapper .slides .item {
        height: 60vh; /* تنظیم ارتفاع کوتاه‌تر برای موبایل */
    }

    .carousel-caption h2 {
        font-size: 20px !important;
    }

    .carousel-caption p {
        font-size: 14px !important;
        padding: 5px 10px !important;
    }
}

.hero-img-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease, filter 8s ease, opacity 0.8s ease;
}

.hero-content-box {
    opacity: 0;
    transform: translateY(30px);
}

.swiper-slide-active .hero-content-box {
    animation: heroTextIn 1s ease forwards;
    animation-delay: 0.4s;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

