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

body {
    font-family: 'Trebuchet MS', 'Helvetica', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    margin-top: 60px;
    background: #0f172a;
    color: #e2e8f0;
}

/* home container */
.home-container {
    display: flex;
    /* Coloca lado a lado */
    align-items: center;
    /* Centraliza verticalmente */
    justify-content: space-between;
    gap: 40px;
    /* Espaço entre foto e texto */
    padding: 60px 20px;
    /* Espaço interno */
    max-width: 1200px;
    margin: 0 auto;
}

/*container*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* foto de perfil */
.foto-perfil {
    text-align: center;
}

.foto-perfil .nome {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #f1f5f9;
}

.home-container .foto-perfil img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    /* Foto redonda */
    object-fit: cover;
    /* Mantém proporção */
}

/* texto home */
.home-container .texto {
    max-width: 760px;
}

.home-container .texto h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.home-container .texto h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #f1f5f9;
}

.home-container .texto p {
    font-size: 1em;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.home-container .texto a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background: #3b82f6;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    transition: 0.3s;
}

.home-container .texto a.git {
    background: #1e293b;
    border: 1px solid #334155;
}

.home-container .texto a.git:hover {
    background: #334155;
    color: #fff;
}

.home-container .texto a:hover {
    background: #2563eb;
    color: #fff;
}

/* texto sobre mim */
.sobre-container {
    max-width: 760px;
}

.sobre-container h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.sobre-container p {
    font-size: 1em;
    margin-bottom: 10px;
    color: #cbd5e1;
}

#sobre {
    padding: 80px 20px;
    text-align: center;
    /* centraliza texto */
    display: flex;
    flex-direction: column;
    /* garante que o conteúdo todo fique no centro */
    align-items: center;
}

#sobre h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#sobre p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
    /* limita a largura para não ficar muito extenso */
    line-height: 1.6;
    /* melhora a leitura */
    color: #cbd5e1;
}

/*links sociais*/
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a img {
    margin-top: 20px;
    height: 30px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-links a img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-links a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
    border-radius: 4px;
}

/*seção projetos*/
#projeto {
    padding: 80px 20px;
    text-align: center;
}

#projeto h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.projeto {
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 15px;
    overflow: hidden;
    opacity: 0;
    border: 1px solid #334155;
}

.projeto:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.projeto img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.projeto img:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.projeto h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.projeto p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/*Tecnologias do projeto*/
.technologias {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tecnologias img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s, opacity 0.3s;
}

.tecnologias img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.projeto a,
.btn {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 8px 15px;
    background: #3b82f6;
    text-decoration: none;
    color: #fff;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.projeto a:hover,
.projeto a:focus,
.btn:hover,
.btn:focus {
    background: #2563eb;
}

.projeto a:focus-visible,
.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/*Navbar*/
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e293b;
    color: #fff;
    padding: 15px 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #3b82f6;
    outline: none;
}

nav ul li a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
}

/* link ativo */
nav ul li a.active {
    color: #3b82f6;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
}

/* botão de contato */
.btn-contato {
    background: #3b82f6;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-contato:hover {
    background: #2563eb;
    color: #fff;
}

.btn-contato.active {
    background: #1e40af;
}

/* seções */
section {
    padding: 80px 20px;
}

#home {
    background: #0f172a;
}

#sobre {
    background: #0f172a;
}

#projeto {
    background: #0f172a;
}

#contato {
    background: #0f172a;
    color: #e2e8f0;
}

.conteudo-home ul {
    list-style: none;
    display: flex;
    align-items: center;
}

/* Skills */
#skills {
    background: #0f172a;
    padding: 80px 20px;
    text-align: center;
}

#skills h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #f1f5f9;
}

/*grid de skills*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    opacity: 0;
    background: #1e293b;
    border: 1px solid #334155;
}

.skill:hover {
    transform: translateY(-8px);
    background: #334155;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.skill img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill img:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill p {
    font-size: 1rem;
    font-weight: bold;
    color: #e2e8f0;
}

/* contato */
#contato {
    background: #0f172a;
    padding: 80px 20px;
    text-align: center;
    color: #e2e8f0;
}

#contato h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f1f5f9;
}

#contato p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #cbd5e1;
}

form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e2e8f0;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #1e293b;
    color: #e2e8f0;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover,
button:focus {
    background: #2563eb;
}

button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsividade */
@media (max-width: 768px) {

    .home-container {
        flex-direction: column;
        padding: 40px 20px;
    }

    .home-container .foto-perfil img {
        width: 200px;
        height: 200px;
    }

    .home-container .texto h1,
    .home-container .texto h2 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

}

/*Rodape*/
footer {
    background: #1e293b;
    color: #e2e8f0;
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    margin: 5px 0;
}

.voltar-topo {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: #00aaff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.voltar-topo:hover,
.voltar-topo:focus {
    background: #008ecc;
}

.voltar-topo:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

footer .social-links a {
    color: #00b4d8;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

footer .social-links a:hover,
footer .social-links a:focus {
    color: #90e0ef;
}