* {
    box-sizing: border-box;
}

body {
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

header {
    background-color: #1f2937;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 16px 0 0;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

main {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    margin-bottom: 30px;
}

section h2 {
    color: #1f2937;
    border-bottom: 2px solid #38bdf8;
}

.lista-projetos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.projeto {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
}

.projeto a {
    display: inline-block;
    padding: 10px 16px;
    background-color: #1f2937;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.projeto a:hover {
    background-color: #38bdf8;
}

.lista-tecnologias {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

}

.tecnologia {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    max-width: 340px;
    transition: 0.3s;
}

.tecnologia:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.lista-contatos {
    display: flex;
    gap: 15px;
}

.lista-contatos a {
    padding: 10px 16px;
    background-color: #1f2937;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.lista-contatos a:hover {
    background-color: #38bdf8;
}

body.modo-escuro {
    background-color: #111;
    color: white;
}

body.modo-escuro .projeto,
body.modo-escuro .tecnologia {
    background-color: #222;
    color: white;
    border: 1px solid #444;
}

body.modo-escuro section h2 {
    color: white;
}

#modo-escuro {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 20px;
    right: 40px;
    cursor: pointer;
}

body.modo-escuro .projeto a,
body.modo-escuro .lista-contatos a {
    background-color: #374151;
}

body.modo-escuro .projeto a:hover,
body.modo-escuro .lista-contatos a:hover {
    background-color: #38bdf8;
}

.caso-teste {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.caso-teste h3 {
    margin-top: 0;
    color: #1f2937;
}

body.modo-escuro .caso-teste {
    background-color: #222;
    color: white;
    border: 1px solid #444;
}

body.modo-escuro .caso-teste h3 {
    color: white;
}

.resumo-testes {
    margin-top: 20px;
    margin-bottom: 20px;
}

.resumo-numeros {
    display: flex;
    gap: 20px;
}

.resumo-numeros div {
    background-color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 130px;
}

.resumo-numeros strong {
    display: block;
    font-size: 24px;
    color: #1f2937;
}

.resumo-numeros span {
    display: block;
    margin-top: 5px;
}

.voltar-portfolio {
    display: inline-block;
    margin-bottom: 20px;
    color: #1f2937;
    text-decoration: none;
    font-weight: bold;
}

.voltar-portfolio:hover {
    color: #38bdf8;
}

.evidencia {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.evidencia img {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
}

.evidencia h3 {
    color: #1f2937;
}

@media (max-width: 600px) {
    nav ul {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
    }

    main {
        padding: 15px;
    }

    body {
        font-size: 16px;
    }

    .projeto {
        min-width: 100%;
    }

    .projeto p {
        line-height: 1.4;
    }

}

footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

