/* =================================================================
   PORTFÓLIO - JOVATEC
   ================================================================= */

/* Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, var(--jovatec-verde-petroleo) 0%, var(--jovatec-roxo-escuro) 100%);
    color: #ffffff;
    padding: 5rem 0 4rem;
    text-align: center;
}

.portfolio-hero h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Filtros */
.portfolio-filtros {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filtro-grupo {
    margin-bottom: 1.5rem;
}

.filtro-grupo:last-child {
    margin-bottom: 0;
}

.filtro-label {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--jovatec-roxo-escuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.filtro-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-filtro {
    padding: 0.5rem 1.25rem;
    border: 2px solid #dee2e6;
    background: transparent;
    color: var(--jovatec-roxo-medio);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.btn-filtro:hover {
    background: var(--jovatec-roxo-medio);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-filtro.active {
    background: var(--jovatec-roxo-medio);
    color: #ffffff;
    border-color: var(--jovatec-roxo-medio);
}

.select-filtro {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    color: var(--jovatec-roxo-escuro);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-filtro:focus {
    outline: none;
    border-color: var(--jovatec-roxo-medio);
    box-shadow: 0 0 0 3px rgba(128, 49, 167, 0.1);
}

/* Contador de Resultados */
.portfolio-contador {
    text-align: center;
    padding: 2rem 0 1rem;
    font-family: 'Lato', sans-serif;
    color: #6c757d;
    font-size: 1rem;
}

.portfolio-contador strong {
    color: var(--jovatec-roxo-escuro);
    font-weight: 700;
}

/* Grid de Projetos */
.portfolio-grid {
    padding: 2rem 0 4rem;
}

.periodo-titulo {
    margin: 2.5rem 0 1.5rem;
}

.periodo-titulo h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jovatec-roxo-escuro);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--jovatec-verde-escuro);
}

.periodo-titulo h2 svg {
    width: 28px;
    height: 28px;
    stroke: var(--jovatec-verde-escuro);
}

.projeto-item {
    margin-bottom: 2rem;
}

.projeto-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    min-height: 350px;
}

.projeto-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.projeto-conteudo {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projeto-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.projeto-tipo-badge {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, var(--jovatec-roxo-medio) 0%, var(--jovatec-roxo-escuro) 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(128, 49, 167, 0.3);
    white-space: nowrap;
}

.projeto-titulo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jovatec-roxo-escuro);
    margin: 0;
    line-height: 1.3;
}

.projeto-descricao {
    color: #495057;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.projeto-detalhes {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 10px solid var(--jovatec-verde-escuro);
}

.detalhes-titulo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--jovatec-roxo-escuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

.detalhe-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.detalhe-item:last-child {
    margin-bottom: 0;
}

.detalhe-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--jovatec-verde-escuro);
    flex-shrink: 0;
}

.detalhe-item i {
    width: 18px;
    font-size: 18px;
    color: var(--jovatec-verde-escuro);
    flex-shrink: 0;
    text-align: center;
}

.detalhe-label {
    font-weight: 700;
    color: var(--jovatec-roxo-medio);
}

.detalhe-valor {
    color: #495057;
}

/* Galeria Wrapper e Carrossel */
.projeto-galeria-wrapper {
    width: 45%;
    min-width: 400px;
    min-height: 450px;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto-carousel {
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--jovatec-roxo-escuro);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.carousel-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1.5rem;
}

.carousel-next {
    right: 1.5rem;
}

.carousel-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(38, 15, 50, 0.85);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.projeto-sem-imagem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    padding: 2rem;
}

.projeto-sem-imagem svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.projeto-sem-imagem p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Empty State */
.portfolio-empty {
    text-align: center;
    padding: 4rem 0;
}

.portfolio-empty svg {
    width: 120px;
    height: 120px;
    stroke: #adb5bd;
    margin-bottom: 1.5rem;
}

.portfolio-empty h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    color: var(--jovatec-roxo-escuro);
    margin-bottom: 0.75rem;
}

.portfolio-empty p {
    color: #6c757d;
    font-size: 1.1rem;
}

.btn-limpar-filtros {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--jovatec-verde-principal);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-limpar-filtros:hover {
    background: var(--jovatec-verde-escuro);
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 991.98px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .filtro-buttons {
        justify-content: center;
    }
    
    .projeto-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .projeto-galeria-wrapper {
        width: 100%;
        min-width: auto;
        min-height: 400px;
        order: -1;
    }
    
    .projeto-carousel {
        min-height: 400px;
    }
    
    .carousel-slides {
        min-height: 400px;
    }
    
    .projeto-conteudo {
        padding: 2rem;
    }
    
    .projeto-titulo {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
}

@media (max-width: 767.98px) {
    .portfolio-hero {
        padding: 3.5rem 0 3rem;
    }
    
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-hero .lead {
        font-size: 1.1rem;
    }
    
    .portfolio-filtros {
        padding: 1.5rem 0;
    }
    
    .periodo-titulo h2 {
        font-size: 1.5rem;
    }
    
    .projeto-conteudo {
        padding: 1.5rem;
    }
    
    .projeto-galeria-wrapper {
        min-height: 350px;
    }
    
    .projeto-carousel {
        min-height: 350px;
    }
    
    .carousel-slides {
        min-height: 350px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 0.75rem;
    }
    
    .carousel-next {
        right: 0.75rem;
    }
    
    .carousel-indicator {
        bottom: 1rem;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .projeto-detalhes {
        padding: 1.25rem;
    }
    
    .detalhe-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .portfolio-hero h1 {
        font-size: 1.75rem;
    }
    
    .btn-filtro {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .periodo-titulo h2 {
        font-size: 1.25rem;
    }
    
    .projeto-conteudo {
        padding: 1.25rem;
    }
    
    .projeto-titulo {
        font-size: 1.25rem;
    }
    
    .projeto-descricao {
        font-size: 0.95rem;
    }
    
    .projeto-galeria-wrapper {
        min-height: 300px;
    }
    
    .projeto-carousel {
        min-height: 300px;
    }
    
    .carousel-slides {
        min-height: 300px;
    }
    
    .projeto-tipo-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
