/* Estilos para a seção de Projetos */
#projetos {
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-image: url('https://procuradoriamulherheitorai.com.br/images/mulher-justica.jpg');
    background-attachment: fixed; /* Isso cria o efeito parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#projetos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Overlay escuro para melhorar a legibilidade */
    z-index: 1;
}

#projetos h2 {
    color: #ffffff;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.projetos-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.projetos-hero-image {
    display: none; /* Removemos a imagem hero já que agora temos o background */
}

.projetos-intro {
    text-align: center;
    margin: 2rem 0 3rem;
    font-size: 1.3rem;
    color: #ffffff;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.projetos-cards {
    display: grid;
    gap: 2rem;
}

.projeto-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-left: 6px solid #4a90e2;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-left-color: #2c5282;
}

.projeto-card h3 {
    color: #2c5282;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid rgba(44, 82, 130, 0.2);
    padding-bottom: 0.8rem;
    position: relative;
}

.projeto-card h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4a90e2;
    transition: width 0.3s ease;
}

.projeto-card:hover h3::after {
    width: 100px;
}

.projeto-card p {
    color: #2d3748;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    #projetos {
        background-attachment: scroll; /* Para melhor compatibilidade em dispositivos móveis */
    }

    #projetos h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .projetos-content {
        padding: 1rem;
    }

    .projetos-intro {
        font-size: 1.1rem;
        margin: 1rem 0 2rem;
        padding: 1.5rem;
    }

    .projeto-card {
        padding: 1.5rem;
    }

    .projeto-card h3 {
        font-size: 1.5rem;
    }

    .projeto-card p {
        font-size: 1rem;
    }
}

/* Alto Contraste */
body.high-contrast #projetos::before {
    background: rgba(0, 0, 0, 0.9);
}

body.high-contrast .projeto-card {
    background: var(--background-color);
    border: 1px solid var(--text-color);
}

body.high-contrast .projeto-card h3 {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

body.high-contrast .projeto-card h3::after {
    background-color: var(--text-color);
}