/* Filter Buttons */
.filter-btn {
    padding: 10px 25px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #3a3d74;
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #e31e24;
    border-color: #e31e24;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(227, 30, 36, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: 0.4s ease-in-out;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

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

.portfolio-overlay h4 { font-weight: 800; color: #fff; margin-bottom: 10px; }
.portfolio-overlay p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 20px; }

.view-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
	background:#3e4079;
}

/* Filter Animation */
.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-item.hide {
    display: none;
}

/* --- THE MASTER BUTTON --- */
.rv-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: #fff;
    color: #e31e24 !important;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.rv-action-btn:hover {
    background: #3a3d74;
    color: #fff !important;
    transform: scale(1.05);
}

.rv-action-btn i { margin-left: 10px; font-size: 12px; }

.portfolio-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: block; 
}