* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 8vh;
}

.max-content {
    font-size: 18px;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: #222;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 20px;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 30%;
}

.nav-links li {
    list-style: none;
    :hover{
        color: #b40ac7;
        transition: 0.5s;
    }
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 14px;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 2rem;
    width: 100%;
}

figure {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

figure>img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #9c07ad;
}

.download-cv {
    display: inline-block;
    background-color: #9c07ad;
    color: #fff;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-cv:hover {
    background-color: #FFD700;
    box-shadow: 0 0 10px #FFD700;
    transform: translateY(-2px);
}

.download-cv i {
    margin-right: 8px;
}

h1,
h2,
h3,
b,
strong {
    color: #4CAF50;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

.projeto {
    background-color: #222;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projeto:hover,
.projeto:focus {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.projeto h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.projeto p {
    text-align: center;
}

.projeto-imagem {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.exibir-mais {
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
    background-color: #9c07ad;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.exibir-mais:hover {
    transform: translateY(-2px);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.social-icons a {
    color: #4CAF50;
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #45a049;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

.blur {
    filter: blur(5px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #222;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    color: white;
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
}

.modal-content h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

#fechar-aviso {
    background-color: #8A2BE2;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

#fechar-aviso:hover {
    background-color: #FFD700;
    box-shadow: 0 0 10px #FFD700;
}

@media screen and (max-width: 600px) {
    figure>img {
        width: 150px;
        height: 150px;
    }

    .modal-content {
        margin: 30% auto;
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 1.5em;
    }

    .modal-content p {
        font-size: 0.9em;
    }

    #fechar-aviso {
        padding: 8px 16px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #222;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        margin-left: 20px;
    }

    figure>img {
        width: 150px;
        height: 150px;
    }

    .download-cv {
        display: block;
        text-align: center;
        margin: 15px auto 0 auto;
        max-width: 200px;
        padding: 10px 0;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}