/* Página de Projetos */
.projetos-gallery {
    padding: 200px 50px 80px 50px;
    background-color: #151515;
}

.projetos-header {
    max-width: 1300px;
    margin: 0 auto 60px;
}

.projetos-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.projetos-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #e60000 0%, rgba(230, 0, 0, 0) 100%);
}

.projetos-filter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.95rem;
    color: #ccc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    color: #e60000;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 40px 8px 16px;
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 25px;
    color: #ffffff;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.search-input::placeholder {
    color: #ccc;
}

.search-input:focus {
    outline: none;
    border-color: #e60000;
}

.filter-btn:focus-visible,
.search-input:focus-visible,
.projeto-card:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: #ffffff;
    pointer-events: none;
}

.projetos-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.projeto-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    background-color: #1a1a1a;
    border: 2px solid #030303;
}

.projeto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projeto-card:hover img {
    transform: scale(1.1);
}

.projeto-5 img {
    object-fit: contain;
}

.projeto-info-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.projeto-nome {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.projeto-tipo {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 4px 0 0 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.projeto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.projeto-overlay h3 {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

/* Card Grande ocupa 2 colunas */
.projeto-card--large {
    grid-column: span 2;
    aspect-ratio: 32/9;
}

/* Responsivo - Mobile pequeno */
@media (max-width: 390px) {
    .projetos-gallery {
        padding: 120px 18px 35px 18px;
    }

    .projetos-header {
        margin: 0 auto 25px;
    }

    .projetos-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
        letter-spacing: 2px;
    }

    .projetos-title::after {
        width: 90px;
        height: 2px;
    }

    .projetos-filter-header {
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-label {
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .filter-buttons {
        gap: 6px;
        width: 100%;
    }

    .filter-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        flex: 1;
        text-align: center;
        white-space: normal;
    }

    .search-wrapper {
        width: 100%;
    }

    .search-input {
        width: 100%;
        font-size: 0.75rem;
        padding: 6px 30px 6px 10px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
        right: 10px;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 100%;
    }

    .projeto-card {
        aspect-ratio: 9/7;
    }

    .projeto-card--large {
        grid-column: span 1;
        aspect-ratio: 9/7;
    }

    .projeto-info-overlay {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.7);
    }

    .projeto-nome {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .projeto-tipo {
        font-size: 0.7rem;
        margin-top: 2px;
    }

    .projeto-overlay h3 {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* Responsivo - Tablet pequeno */
@media (max-width: 768px) {
    .projetos-gallery {
        padding: 150px 35px 60px 35px;
    }

    .projetos-header {
        margin: 0 auto 45px;
    }

    .projetos-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .projetos-title::after {
        width: 120px;
        height: 2px;
    }

    .projetos-filter-header {
        gap: 15px;
    }

    .filter-label {
        font-size: 0.85rem;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .search-input {
        width: 200px;
        font-size: 0.85rem;
        padding: 6px 35px 6px 12px;
    }

    .search-icon {
        width: 16px;
        height: 16px;
    }

    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .projeto-card--large {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .projetos-gallery {
        padding: 130px 20px 40px 20px;
    }

    .projetos-header {
        margin: 0 auto 30px;
    }

    .projetos-title {
        font-size: 1.35rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
        letter-spacing: 2px;
    }

    .projetos-title::after {
        width: 100px;
        height: 2px;
    }

    .projetos-filter-header {
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-label {
        font-size: 0.8rem;
    }

    .filter-buttons {
        gap: 8px;
        width: 100%;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
    }

    .search-wrapper {
        width: 100%;
    }

    .search-input {
        width: 100%;
        font-size: 0.8rem;
        padding: 8px 35px 8px 12px;
    }

    .search-icon {
        width: 15px;
        height: 15px;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .projeto-card--large {
        grid-column: span 1;
    }

    .projeto-overlay h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 320px) {
    .projetos-gallery {
        padding: 120px 10px 26px 10px;
    }

    .projetos-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .filter-label {
        font-size: 0.72rem;
    }

    .filter-btn {
        font-size: 0.68rem;
        padding: 6px 8px;
    }

    .search-input {
        font-size: 0.74rem;
        padding: 7px 30px 7px 10px;
    }

    .projeto-info-overlay {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
    }

    .projeto-nome {
        font-size: 0.82rem;
    }

    .projeto-tipo {
        font-size: 0.66rem;
    }
}

