/*  -------------------------------------------
    Configurações da Página de detalhes de projeto Desenvolvimento WEB (destalhes-projeto1-DevWeb.html)
    -------------------------------------------  */

/* Seção principal de detalhes do projeto */
.projeto-detalhes {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.projeto-header {
    text-align: center;
    margin-bottom: 4rem;
}

.projeto-header h4 {
    color: var(--cor-principal);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.projeto-header h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.projeto-header p {
    color: var(--cor-texto-secundario);
    max-width: 800px;
    margin: 0 auto;
}

/* Galeria de Imagens do Projeto */
.galeria-projeto {
    /* NOVO: Adicione Flexbox para centralizar o conteúdo da galeria */
    display: flex;
    justify-content: center;
    padding: 30px 0;
    /* Espaço entre a imagem destaque e o grid */
    margin-bottom: 4rem;
}


/* 2. ESTILIZAÇÃO DO GRID DE IMAGENS SECUNDÁRIAS */
.galeria-grid {
    display: grid;
    /* NOVO: Muda o grid para no máximo 3 colunas, limitando a largura dos itens */
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    /* Largura máxima do grid inteiro */
    max-width: 1100px;
    width: 100%;
    gap: 15px;
    /* Aumenta um pouco o espaçamento para o visual mobile */
    margin-top: 1rem;
    /* Remove a margem superior pois estamos usando gap na .galeria-projeto */
}

.galeria-grid .galeria-item {
    /* Adiciona bordas e sombras elegantes para os itens do grid */
    max-height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.galeria-grid img {
    width: 100%;
    /* ALTERADO: Removemos a altura fixa (180px) e o object-fit: cover */
    /* Agora a altura será mantida pela proporção, sem distorção. */
    height: auto;
    display: block;
    border-radius: 0;
    /* A borda arredondada fica no .galeria-item */
    box-shadow: none;
}


/* Efeito Hover nas imagens */
.galeria-item img {
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
    /* Leve zoom mais visível */
}

/* --- ESTILOS DO LIGHTBOX (MODAL) --- */

/* O Container do Modal */
.lightbox {
    display: none;
    /* Começa escondido */
    position: fixed;
    /* Fixa na viewport */
    z-index: 9999;
    /* Garante que fique acima de todo o resto */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Para rolagem, se a imagem for maior que a tela */
    background-color: rgba(0, 0, 0, 0.95);
    /* Fundo escuro mais intenso */
    text-align: center;
}

/* O conteúdo (a imagem ampliada) */
.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1100px;
    /* Aumentei o limite máximo para imagens maiores */
    max-height: 90vh;
    /* Limite a altura para caber na tela */
    object-fit: contain;
    /* Garante que a imagem se ajuste sem cortar */
    padding: 50px 0;
    /* Espaço para o botão de fechar e botões laterais */
}

/* O botão de fechar */
.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    /* Aumentei o tamanho para melhor usabilidade */
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--cor-principal);
    text-decoration: none;
    cursor: pointer;
}

/* Botões de navegação (Anterior/Próximo) */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px 10px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}

/* Posiciona o botão 'próximo' à direita */
.next {
    right: 10px;
}

/* Posiciona o botão 'anterior' à esquerda */
.prev {
    left: 10px;
}

/* Efeito ao passar o mouse */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Seções de texto (Desafio, Solução, Resultados) */
.secao-detalhe {
    margin-bottom: 3rem;
    background-color: var(--cor-fundo-card);
    padding: 2rem;
    border-radius: 15px;
    line-height: 1.7;
}

.secao-detalhe h2 {
    color: var(--cor-principal);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.secao-detalhe p {
    text-align: justify;
    /* Adicionado: Justifica o parágrafo */
}

.secao-detalhe p,
.secao-detalhe ul {
    color: var(--cor-texto-secundario);
}

/* Botão de detalhes */
.btn-projeto-detalhe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    color: #fff;
    background-color: var(--cor-principal);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-projeto-detalhe:hover {
    background-color: var(--cor-destaque);
}

/* Lista de resultados com ícones */
.lista-resultados {
    list-style: none;
    padding-left: 0;
}

.lista-resultados li {
    margin-bottom: 0.5rem;
    color: var(--cor-texto-secundario);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.lista-resultados li i {
    color: var(--cor-principal);
    font-size: 1.2rem;
}

.lista-resultados li strong {
    color: #fff;
}

/* Depoimento do cliente */
.depoimento-secao {
    text-align: center;
    margin-bottom: 4rem;
}

.depoimento-card-projeto {
    background-color: var(--cor-fundo-card);
    padding: 3rem;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--cor-principal);
}

.depoimento-card-projeto p {
    font-style: italic;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.depoimento-card-projeto h4 {
    color: var(--cor-texto-secundario);
    font-size: 1rem;
    font-weight: 500;
}

/* Seção de CTA final */
.cta-final-projeto {
    text-align: center;
    padding: 3rem 2rem;
    /* Adiciona padding lateral para telas menores */
    display: flex;
    /* Transforma a seção em um container flex */
    flex-direction: column;
    /* Organiza os itens em coluna */
    align-items: center;
    /* Centraliza os itens horizontalmente */
    gap: 1rem;
    /* Adiciona um espaçamento consistente entre os elementos */
}

.cta-final-projeto h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    /* Reduz o espaçamento do h2 para usar o gap do flex */
}

.cta-final-projeto p {
    font-size: 1.1rem;
    color: var(--cor-texto-secundario);
    max-width: 700px;
    /* Limita a largura do parágrafo para melhor leitura */
    margin: 0;
    /* Remove a margem padrão para usar o gap */
}

.cta-final-projeto .btn {
    margin-top: 1rem;
    /* Adiciona um espaçamento extra acima do botão, se necessário */
}

.lightbox.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.lightbox-content {
    padding: 0;
    max-width: 95%;
    max-height: 75vh;
}

.prev,
.next {
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.close-btn {
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
}

/* Responsividade */
@media (width < 600px) {
    .projeto-header h1 {
        font-size: 2rem;
    }

    .depoimento-card-projeto {
        padding: 2rem;
    }

    .depoimento-card-projeto p {
        font-size: 1rem;
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {

    /* Para telas de tablets, cai para 3 colunas */
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 650px) {

    /* Para a maioria dos celulares, cai para 2 colunas */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {

    /* Para celulares pequenos, cai para 1 coluna */
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .secao-detalhe h2 {
        color: var(--cor-principal);
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .secao-detalhe p {
        text-align: center;
    }

    .btn-projeto-detalhe {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 2rem;
        color: #fff;
        background-color: var(--cor-principal);
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        margin-top: 1.5rem;
        justify-content: center;
    }

    .lightbox.active {
        display: flex !important;
        justify-content: center;
        align-items: center;
        z-index: 999999;
    }

    .lightbox-content {
        padding: 0;
        max-width: 95%;
        max-height: 75vh;
    }

    .prev,
    .next {
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .close-btn {
        top: 15px;
        right: 20px;
        font-size: 2.2rem;
    }

}


/*  -------------------------------------------
    Fim Configurações da Página de detalhes de projeto Desenvolvimento WEB (destalhes-projeto1-DevWeb.html)
    -------------------------------------------  */