/* Hero */
.hero-works {
    position: relative;
    background: #000;
    overflow: hidden;
}

.hero-works::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/computador.jpg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    z-index: 1;
}

@media (max-aspect-ratio: 1717/916) {
    .hero-works::before {
        background-size: cover;
    }
}

.hero-works::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        #000 0%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.3) 65%,
        transparent 75%
    ); 
}

.hero-text {
    display: flex;
    flex-direction: column;
}

section {
    padding: 50px 0;
}

.section-tag {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 20px;
}


/* Filtros */
.works-filter {
    padding: 3rem 0;
    background: #0d0d0d;
}

.works-filter .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 0.5rem;
}

.filter {
    padding: 10px 20px;
    border: 1px solid #c9c9c9;
    border-radius: 30px;
    background: transparent;
    color: white;
    font-size: 14px;
    font-family: 'Inter';
    font-weight: bold;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #111;
}

.filter:active {
    transform: scale(0.97);
}



/* ============================================================
   RESPONSIVIDADE
============================================================ */

@media (max-width: 1000px) {

    .works-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .modal {
        padding: 40px 65px;
    }


    .modal-arrow-left {
        left: 8px;
    }


    .modal-arrow-right {
        right: 8px;
    }

}


@media(max-width:768px){

   

    .works-filter {
        padding-top: 30px;
    }


    .works-filter .container {
        gap: 1rem;
    }


    .filter {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }


    /* --------------------------------------------------------
       GRID
    -------------------------------------------------------- */

    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .work-info h3 {
        font-size: 19px;
    }


    /* --------------------------------------------------------
       MODAL
    -------------------------------------------------------- */

    .modal {
        padding: 20px;
    }


    .modal-content {
        max-height: calc(100vh - 40px);
    }


    .modal-info {
        padding: 25px 22px 30px;
    }


    .modal-info h2 {
        font-size: 25px;
    }


    /* --------------------------------------------------------
       SETAS
       
       No mobile elas ficam menores e mais próximas
       do conteúdo.
    -------------------------------------------------------- */

    .modal-arrow {
        width: 42px;
        height: 42px;
        font-size: 14px;
        background: rgba(20, 20, 20);
        border: 1px solid var(--primary);
    }


    .modal-arrow-left {
        left: 5px;
    }


    .modal-arrow-right {
        right: 5px;
    }


    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 15px;
        background: rgba(20, 20, 20);
        border: 1px solid var(--primary);
    }

}


@media (max-width: 450px) {

    .works-filter .container {
        justify-content: flex-start;
    }


    .filter {
        padding: 7px 12px;

        font-size: 11px;
    }


    .modal {
        padding: 10px;
    }


    .modal-content {
        max-height: calc(100vh - 20px);
    }


    .modal-info {
        padding: 22px 18px 25px;
    }


    .modal-info h2 {
        font-size: 22px;
    }


    .modal-description {
        font-size: 14px;
    }


    .modal-arrow {
        width: 36px;
        height: 36px;
    }


    .modal-arrow-left {
        left: 2px;
    }


    .modal-arrow-right {
        right: 2px;
    }

}