/* --- ESTILOS ESPECÍFICOS DA PÁGINA PORTFÓLIO --- */

/* Botão de Destaque no Menu (Opcional) */
.btn-nav-quote {
    background: #0088cc;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-nav-quote:hover {
    background: #005b96;
}

/* Hero da Página Interna */
.page-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f5 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e1e8ed;
}

.page-header h1 {
    color: #0d2c44;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    color: #666;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* Filtros Estilizados */
.portfolio-wrapper {
    background: #fff;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.filter-btn:hover {
    border-color: #0088cc;
    color: #0088cc;
}

.filter-btn.active {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.2);
}

/* Grid de Projetos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card do Projeto */
.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Imagem e Overlay */
.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(13, 44, 68, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 2;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 136, 204, 0.6); /* Azul transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    color: #fff;
    font-size: 30px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .card-overlay i {
    transform: scale(1);
}

/* Detalhes do Card */
.card-details {
    padding: 20px;
}

.card-details h3 {
    font-size: 18px;
    color: #0d2c44;
    margin-bottom: 8px;
}

.location {
    font-size: 12px;
    color: #0088cc;
    font-weight: 500;
    margin-bottom: 12px;
}

.location i {
    margin-right: 4px;
}

.desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Botão Carregar Mais */
.load-more-container {
    text-align: center;
}

.btn-outline-blue {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #0088cc;
    color: #0088cc;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline-blue:hover {
    background: #0088cc;
    color: #fff;
}

/* Utilitário para o filtro JS */
.hide-item {
    display: none;
}

/* --- ESTILOS DO MODAL DE ZOOM (LIGHTBOX) --- */

/* O container que cobre a tela inteira */
.modal-container {
    display: none; /* Escondido por padrão */
    position: fixed; /* Fica fixo na tela mesmo rolando */
    z-index: 9999; /* Fica acima de absolutamente tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilita rolagem se a imagem for muito alta */
    background-color: rgba(0,0,0,0.92); /* Fundo preto bem escuro e transparente */
    
    /* Centraliza a imagem usando Flexbox */
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px); /* Desfoque suave no fundo atrás do modal */
}

/* Classe que o JS adiciona para mostrar o modal */
.modal-container.active {
    display: flex; /* Muda de 'none' para 'flex' para aparecer */
    animation: fadeInModal 0.3s ease;
}

/* A imagem dentro do modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;   /* Não deixa passar de 90% da largura da tela */
    max-height: 90vh; /* Não deixa passar de 90% da altura da tela */
    object-fit: contain; /* Garante que a imagem inteira apareça sem cortar */
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    
    /* Animação de zoom ao abrir */
    animation: zoomInImage 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Botão de Fechar (X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover,
.close-modal:focus {
    color: #0088cc; /* Azul da marca ao passar o mouse */
    text-decoration: none;
    transform: scale(1.1);
}

/* Animações */
@keyframes fadeInModal {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes zoomInImage {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Responsivo para celulares pequenos */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%; /* Ocupa 100% da largura no celular */
    }
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        width: 100%; /* Botões full width no celular */
        margin-bottom: 5px;
    }
}