/* Página de Portfólio */
.portfolio-page {
    padding: 50px 0 80px;
}

.portfolio-filters {
    margin-bottom: 40px;
    text-align: center;
}

.filter-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-filter {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    margin-bottom: 40px;
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.portfolio-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.portfolio-pagination .page-link {
    color: var(--primary-color);
    margin: 0 5px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
}

.portfolio-pagination .page-link:hover {
    background-color: #f8f9fa;
}

@media (max-width: 767.98px) {
    .portfolio-card img {
        height: 200px;
    }
    
    .portfolio-overlay {
        padding: 15px;
        opacity: 1;
        background: rgba(0,0,0,0.7);
    }
    
    .portfolio-overlay h3 {
        font-size: 1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .portfolio-overlay .btn {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}

 .gallery-img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        .gallery-img:hover {
            transform: scale(1.03);
        }
        .modal-img {
            width: 100%;
        }
        .spinner {
            width: 3rem;
            height: 3rem;
        }
        .gallery-item {
            position: relative;
            margin-bottom: 1.5rem;
            overflow: hidden;
            border-radius: 5px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        .img-overlay {
            position: absolute;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            color: #fff;
            width: 100%;
            padding: 10px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        .gallery-item:hover .img-overlay {
            transform: translateY(0);
        }