/* Extracted from app/Views/frontend/case/list.php during CSS refactor. */

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    text-decoration: none;
    color: inherit;
}

.portfolio-link:hover .single-portfolio-box {
    transform: translateY(-5px);
}

.single-portfolio-box {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
}

.portfolio-link:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px;
    line-height: 1.2;
    color: white;
}

.category-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }

    .portfolio-info {
        transform: translateY(0);
    }

    .portfolio-link:hover .single-portfolio-box {
        transform: none;
    }
}

.portfolio-title::before {
    content: '';
    width: 0.25vw;
    height: 50%;
    position: absolute;
    left: 0;
    top: 10%;
    background-color: #16ad44;
}
