/* --- COMPONENTE: RETÂNGULO DE CATEGORIA --- */

.retangulo-categoria {
    width: 60%;
    margin: 0 auto;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
    transition: box-shadow 0.4s ease;
}

.trabalho-img-blindada {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.trabalho-img-blindada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.trabalho-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.trabalho-btn-texto {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    padding-bottom: 6px;
    opacity: 0;
    position: relative;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.trabalho-btn-texto::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.trabalho-link-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- ESTADOS DE ANIMAÇÃO NO HOVER --- */

.trabalho-link-wrapper.is-active .retangulo-categoria {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.trabalho-link-wrapper.is-active .trabalho-img-blindada {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.trabalho-link-wrapper.is-active .trabalho-btn-texto {
    opacity: 1;
    transform: translateY(0);
}

.trabalho-link-wrapper.is-active .trabalho-btn-texto::after {
    transform: scaleX(1);
}