/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.interface {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4f46e5;
}

.btn-contato button {
    background-color: #4f46e5;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-contato button:hover {
    background-color: #3b35b3;
}

/* Início */
.topo-site {
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(to right, #eef2ff, #f5f7fa);
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.txt-topo-site {
    flex: 1;
    min-width: 350px;
}

.txt-topo-site h1 span.nome {
    white-space: nowrap;
}

.txt-topo-site h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #111827;
}

.txt-topo-site h1 span {
    color: #4f46e5;
}

.txt-topo-site p {
    margin-bottom: 2rem;
    color: #4b5563;
    max-width: 500px;
}

.img-topo-site {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.img-topo-site img {
    width: 300px;
    max-width: 100%;
    border-radius: 30px;
    border: 5px solid #4f46e5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.img-topo-site img:hover {
    transform: scale(1.05);
}

/* Seções */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #111827;
}

.sobre p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
}

/* Especialidades */
.habilidades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.habilidade {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #eef2ff, #f5f7fa);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 220px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.5rem;
    font-weight: 600;
}

.habilidade img {
    width: 50px;
    height: 50px;
}

.habilidade:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Projetos */
.projetos-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.projeto {
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 280px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.projeto:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Contato */
.contato p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Rodapé / Créditos */
footer {
    background-color: #111827;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* Responsividade */
@media (max-width: 1100px) {
    .img-topo-site img {
        width: 450px;
    }
}

@media (max-width: 900px) {
    .flex {
        flex-direction: column-reverse;
        text-align: center;
    }

    .img-topo-site {
        justify-content: center;
    }

    .img-topo-site img {
        width: 300px;
        margin-bottom: 1.5rem;
    }
}
