body{
    overflow: hidden;
    background: var(--grey-300);
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Estrutura das Seções */
.section {
    position: relative;
    flex: 1;
    height: 100%;
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
    margin-left: -8vw; /* Sobreposição das cores */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none; /* Remove qualquer linha */
}

.section:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); }
.section:last-child { clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%); }

.section:hover { flex: 1.8; }

/* Camadas de Imagem */
.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 1s ease;
}

/* Foto de Ambiente (f*-b.png) */
.bg-ambient { z-index: 1; opacity: 1; filter: grayscale(30%); }
/* Foto do André (f*-a.png) */
.bg-person { z-index: 2; opacity: 0; transform: scale(1.1); }

.section:hover .bg-person { opacity: 1; transform: scale(1); }
.section:hover .bg-ambient { opacity: 0; }

/* Overlay de Cor Transparente */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    mix-blend-mode: multiply; /* Faz a cor "fundir" com a foto */
    transition: opacity 0.5s ease;
}
.business .overlay { background: var(--blue); }
.labs .overlay { background: var(--orange); }
.ministerio .overlay { background: var(--green); }

.section:hover .overlay { opacity: 0.5; }

/* Texto e Conteúdo */
.content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    padding: 30px;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

p {
    font-size: 0.9rem;
    max-width: 220px;
    margin: 0 auto 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease 0.2s;
}

.section:hover p { opacity: 1; transform: translateY(0); }

/* Mobile Adjustments (Fluidez sem linhas) */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    
    .section {
        margin-left: 0;
        margin-top: -15vh; /* Sobreposição vertical para as cores mesclarem */
        clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%) !important;
        flex: 1;
        transition: flex 0.5s ease;
    }

    .section:first-child { 
        margin-top: 0; 
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%) !important; 
    }
    
    .section:last-child { 
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%) !important; 
    }

    .section:active, .section:hover { flex: 1.5; }
    h2 { font-size: 1.8rem; }
}