﻿
/* ===== هیرو صفحه ===== */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 0px;
    position: relative;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

    .breadcrumb a {
        color: var(--green-2);
        transition: color 0.3s;
    }

        .breadcrumb a:hover {
            color: var(--green-3);
        }

/* ===== محتوای اصلی ===== */
.project-detail {
    padding: 60px 0 100px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.project-main {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
}

.project-image {
    height: 400px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .project-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-main);
        opacity: 0.15;
    }

    .project-image i {
        font-size: 150px;
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        z-index: 2;
        animation: iconPulse 3s ease-in-out infinite;
    }

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.project-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.4;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 25px;
    text-align: justify;
    font-size: 15px;
}

.project-section {
    margin-top: 40px;
}

    .project-section h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .project-section h3 i {
            color: var(--green-2);
        }

.project-features {
    display: grid;
    gap: 15px;
}

.project-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s;
}

    .project-feature:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--green-2);
        transform: translateX(-5px);
    }

.project-feature-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.project-feature-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== سایدبار ===== */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
}

    .sidebar-card h4 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .sidebar-card h4 i {
            color: var(--green-2);
        }

.info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .info-label i {
        color: var(--green-2);
    }

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.sidebar-cta {
    text-align: center;
    padding: 30px;
    background: var(--gradient-main);
    border-radius: 24px;
    color: white;
}

    .sidebar-cta h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .sidebar-cta p {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 20px;
    }

    .sidebar-cta .btn {
        background: black;
        color: var(--primary);
        width: 100%;
        justify-content: center;
    }

        .sidebar-cta .btn:hover {
            background: var(--gradient-accent);
        }

/* ===== پروژه‌های مرتبط ===== */
.related-projects {
    margin-top: 80px;
}

    .related-projects h3 {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 40px;
        text-align: center;
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
}

    .related-card:hover {
        transform: translateY(-8px);
        border-color: var(--green-2);
        box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    }

.related-image {
    height: 180px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .related-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-main);
        opacity: 0.15;
    }

    .related-image i {
        font-size: 60px;
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        z-index: 2;
    }

.related-content {
    padding: 20px;
}

    .related-content h4 {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .related-content p {
        font-size: 13px;
        color: var(--text-secondary);
        margin-bottom: 12px;
    }

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-2);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.3s;
}

.related-card:hover .related-link {
    gap: 12px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 300px;
    }

        .project-image i {
            font-size: 100px;
        }

    .project-content {
        padding: 30px;
    }

        .project-content h2 {
            font-size: 28px;
        }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 32px;
    }

    .project-content {
        padding: 25px;
    }

        .project-content h2 {
            font-size: 24px;
        }

    .sidebar-card {
        padding: 25px;
    }
}






/* ===== استایل‌های گالری تصاویر پروژه ===== */
.project-gallery-wrapper {
    margin-bottom: 2rem;
}

.project-main-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    background-color: #f3f4f6;
    aspect-ratio: 16 / 9; /* حفظ نسبت تصویر */
}

    .project-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* یا contain بسته به سلیقه شما */
        transition: opacity 0.3s ease-in-out;
    }

.project-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px; /* فضا برای اسکرول‌بار */
    scroll-behavior: smooth;
}

    /* استایل زیبا برای اسکرول‌بار افقی */
    .project-thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .project-thumbnails::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .project-thumbnails::-webkit-scrollbar-thumb {
        background: #10b981; /* رنگ اصلی سایت شما */
        border-radius: 10px;
    }

.thumb-item {
    flex: 0 0 110px; /* عرض ثابت برای تصاویر کوچک */
    height: 85px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none; /* جلوگیری از درگ شدن تصویر توسط موس */
    }

    .thumb-item:hover {
        opacity: 1;
        transform: translateY(-3px);
    }

    /* حالت فعال (تصویری که الان نمایش داده می‌شود) */
    .thumb-item.active {
        border-color: #10b981;
        opacity: 1;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }