.gallery-section{
       background: linear-gradient(135deg, var(--primary-yellow), var(--primary-purple));
    padding: 5rem 0 3rem;
    text-align: center;
    color: white;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
        
    
        
        .gallery-section::before {
        content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/project/images/pattern.svg');
    opacity: 0.1;
    z-index: 1;
        }
        
        .gallery-filter {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 3rem;
        }
        
        .filter-btn {
            background: var(--primary-yellow);
            color: var(--primary-purple);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 2rem;
            font-family: "farsi-bold";
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.1rem;
        }
        
        .filter-btn:hover, .filter-btn.active {
            background: var(--primary-purple);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(113, 63, 148, 0.4);
        }
        
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }
        
        .gallery-item {
            position: relative;
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            transition: all 0.4s ease;
            height: 280px;
            cursor: pointer;
        }
        
        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.05);
        }
        
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            padding: 2rem 1.5rem 1rem;
            transform: translateY(100%);
            transition: transform 0.4s ease;
        }
        
        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }
        
        .gallery-title {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            font-family: "farsi-bold";
        }
        
        .gallery-category {
            font-size: 0.9rem;
            opacity: 0.8;
            font-family: "farsi-medium";
        }
        
        /* مودال برای نمایش تصویر بزرگ */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
        }
        
        .modal-content img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 1rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }
        
        .modal-close {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--primary-yellow);
            color: var(--primary-purple);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 1.5rem;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .modal-close:hover {
            background: var(--primary-purple);
            color: white;
            transform: rotate(90deg);
        }
        
        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary-yellow);
            color: var(--primary-purple);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }
        
        .modal-nav:hover {
            background: var(--primary-purple);
            color: white;
        }
        
        .modal-prev {
            right: 20px;
        }
        
        .modal-next {
            left: 20px;
        }
        
        /* استایل‌های ریسپانسیو */
        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 1.5rem;
            }
            
            .gallery-head {
                font-size: 2.5rem;
            }
            
            .modal-nav {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            
            .modal-prev {
                right: 10px;
            }
            
            .modal-next {
                left: 10px;
            }
        }
        
        @media (max-width: 576px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }
            
            .gallery-head {
                font-size: 2rem;
            }
            
            .filter-btn {
                padding: 0.6rem 1.2rem;
                font-size: 1rem;
            }
        }