/* استایل‌های پایه */
#team {
    background: #f8f9fa;
    padding: 60px 0;
}

.section-header h3 {
    font-weight: bold;
}

#portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

#portfolio-filter li {
    list-style: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

#portfolio-filter li.active,
#portfolio-filter li:hover {
    background: #007bff;
    color: #fff;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.position-relative {
    position: relative;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background: #0056b3;
}

/* لایت‌باکس */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.close-btn:hover {
    color: #ffcc00;
}