/* --- Portfolio Filter (matching product-filter style) --- */
.portfolio-filter .btn-filter {
    background: #fff;
    color: #333;
    border: 2px solid #e9ecef;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.portfolio-filter .btn-filter:hover,
.portfolio-filter .btn-filter.active {
    background: var(--blue-template-color, #0d6efd);
    color: #fff;
    border-color: var(--blue-template-color, #0d6efd);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
    text-decoration: none;
}

/* --- Portfolio Card Micro-interactions --- */
.portfolio-card {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.image-box {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.portfolio-card img.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Dark gradient overlay at the bottom of the image */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- Detail Page Styling --- */
.detail-hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.badge-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-weight: 600;
}

/* CTA Button Hover */
.btn-success.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-success.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3) !important;
}