* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    background-color: black;
    color: white;
    text-decoration: none;
}

:root {
    --dynamic-color: #008000;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-style: italic;
    transition: all 0.3s ease;
    padding: 10px 20px;
    margin-bottom: 20px;
    position: relative;
    top: 15px;

}

.voltar-link {
    background-color: var(--dynamic-color);
    position: absolute;
    top: 20px;
    left: 10px;
    font-size: 24px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;

}

.voltar-link i {
    background-color: transparent;
}

/* Seção de projetos */

.projetos {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 50px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projetos h1 {
    position: relative;
    top: -50px;
}

.projetos p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    position: relative;
    top: -50px;
}

.projetos span {
    color: var(--dynamic-color);
    transition: color 0.5s ease;
    background-color: transparent;
}

h4 {
    font-size: 20px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    top: -30px;

}

.projetos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 20px;
}

.projeto1,
.projeto2,
.projeto3 {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.projeto1 img,
.projeto2 img {
    height: 350px;
    width: 600px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    top: -40px;
}

.projeto3 img {
    width: 170px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    top: -60px;
    display: block;
    margin: 0 auto;
}



.projeto1:hover img,
.projeto2:hover img,
.projeto3:hover img {
    transform: scale(1.02);
    box-shadow: 0 0 5px #fff, 0 0 10px var(--dynamic-color),
        0 0 15px var(--dynamic-color), 0 0 20px var(--dynamic-color),
        0 0 25px var(--dynamic-color);
}

.projeto1 p,
.projeto2 p,
.projeto3 p {
    margin-top: 20px;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-align: center;
    max-width: 100%;
    margin-bottom: 50px;
}

.projeto1 span {
    color: rgb(255, 230, 0);
}



/* Responsividade*/
/* Responsividade*/
/* Responsividade*/
/* Responsividade*/

@media (max-width: 1400px) {
    .projetos-container {
        gap: 50px;
    }

    .projeto1 img,
    .projeto2 img {
        height: 270px;
        width: 500px;
    }
}

@media (max-width: 1200px) {
    .projetos-container {
        flex-direction: column;
        gap: 40px;
        margin: 20px;
    }

    .projeto1 img,
    .projeto2 img {
        height: 270px;
        width: 100%;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    .projetos-container {
        flex-direction: column;
        gap: 30px;
        margin: 20px;
    }

    .projeto1 img,
    .projeto2 img {
        height: 200px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .projetos-container {
        gap: 20px;
        margin: 10px;
    }

    .projeto1 img,
    .projeto2 img {
        height: 150px;
        width: 100%;
    }
}