/* Portfolio Gallery Styles */
.rpg-portfolio-gallery {
    padding: 40px 0;
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    height: 300px;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    width: 100%;
}

.portfolio-content h5 {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.portfolio-content .category {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.portfolio-content .technologies {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 30px;
}

.filter-buttons .btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-buttons .btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Pagination */
.rpg-pagination {
    text-align: center;
}

.rpg-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 30px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rpg-pagination .page-numbers:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.rpg-pagination .page-numbers.current {
    background-color: #007bff;
    color: white;
}

/* Loading Spinner */
.rpg-loading {
    text-align: center;
    padding: 40px;
}

.rpg-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-item {
        height: 250px;
    }
    
    .filter-buttons .btn {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .portfolio-content h5 {
        font-size: 16px;
    }
    
    .portfolio-content .category,
    .portfolio-content .technologies {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .portfolio-item {
        height: 200px;
    }
    
    .filter-buttons .btn {
        padding: 5px 12px;
        font-size: 12px;
        margin: 2px;
    }
}