@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,500;1,14..32,500&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    background-image: url("../CAPA\ MEMORIAL\ -\ WALLPAPER.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

nav {
    background-color: #1d2328;
    height: 80px;
    display: flex;
    justify-content: space-between;
    border-bottom: 3px solid #bf9e6c;
    justify-content: end;
}

nav ul {
    display: flex;
    list-style: none; 
    align-items: center; 
    height: 100%; 
    margin-right: 40px;
    gap: 20px;
}

nav li a{
    display: inline-block;
    text-decoration: none;
    color: #bf9e6c;
    transition: .3s ease;
    border-radius: 5px;
    border: none;
    padding: 8px 12px;
    font-weight: 500;
    
}

nav li a:hover {
    text-decoration: none;
    color: #1d2328;
    background-color: #bf9e6c;
    transform: scale(1.09);
    transition: .3s ease;
}

.section_port {
    display: flex;
    margin-top: 105px;
    width: 100%;
    height: 80vh;
}

.portfolios{
    margin: 50px;
    padding: 10px;
    width: 200vw;
    display: flex;
    flex-wrap: wrap;      
    gap: 50px;
    justify-content: center;
    overflow: auto; 
    height: 600px;
}

/* Estilos para os cards de portfólio */
.port-div {
    width: 90%;
    height: 350px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.port-div:hover {
    transform: scale(1.02);
}

.port-div h2 {
    color: #bf9e6c;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    text-align: start;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: auto;
    max-width: 95%;
    height: auto;
    max-height: 90vh;
    border-radius: 10px;
    overflow: auto; 
}

.modal-header {
    padding: 15px;
    background: #1d2328;
    color: #bf9e6c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    color: #bf9e6c;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-body {
    padding: 20px;
    display: flex;
    justify-content: center;
    overflow: auto; 
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}


.pdf-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#pdfCanvas {
    max-width: 95%;
    max-height: 80%;
    border-radius: 8px;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}


.pdf-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}




@media (max-width: 768px) {

    body {
        height: auto;
        min-height: 100vh;
    }

    nav {
        height: auto;
        padding: 10px 0;
    }

    nav ul {
        margin-right: 0;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .section_port {
        margin-top: 90px;
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    .portfolios {
        margin: 20px;
        padding: 10px;
        width: 100%;
        height: auto;
        gap: 20px;
        overflow: visible;
    }

    .port-div {
        width: 100%;
        height: 280px;
    }

    .port-div h2 {
        font-size: 16px;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }

    .modal-body {
        padding: 10px;
    }

    #pdfCanvas {
        max-width: 100%;
        max-height: 70vh;
    }

    .pdf-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
}
