/* ======================================================= */
/* RESET */
/* ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ======================================================= */
/* VARIABLES */
/* ======================================================= */
:root {
    --cor-fundo: #1a1a1a;
    --cor-texto: #f5f5f5;
    --cor-dourado: #daa520;
    --cor-vermelho: #c0392b;
    --fonte-principal: 'Montserrat', sans-serif;
    --fonte-secundaria: 'Lato', sans-serif;
}

/* ======================================================= */
/* GLOBAL STYLES */
/* ======================================================= */
html { scroll-behavior: smooth; }
body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: var(--fonte-secundaria);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================= */
/* COMPONENT: HEADER */
/* ======================================================= */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
.logo { max-width: 200px; }
.header nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}
.header nav a {
    font-family: var(--fonte-principal);
    font-weight: 700;
    padding: 10px;
    transition: color 0.3s;
}
.header nav a:hover { color: var(--cor-dourado); }
.btn-contato {
    background-color: var(--cor-vermelho);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}
.btn-contato:hover {
    background-color: #e74c3c;
    color: var(--cor-texto);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .sobre-container {
        flex-direction: column;
        text-align: center;
    }

    .sobre-imagem {
        max-width: 300px;
        margin-bottom: 40px;
    }

    .sobre-texto h2::after {
        margin: 10px auto 0;
    }
}

/* Para celulares e telas pequenas */
@media (max-width: 992px) {
    /* --- HEADER RESPONSIVO (AJUSTES) --- */
    .header .container {
        flex-direction: column; /* Coloca o logo acima do menu */
        gap: 20px;
    }

    .header nav ul {
        flex-wrap: wrap; /* Permite que os itens do menu quebrem a linha */
        justify-content: center; /* Centraliza os itens do menu */
        gap: 15px 25px; /* Ajusta o espaçamento para telas pequenas */
    }
}

/* ======================================================= */
/* COMPONENT: FOOTER */
/* ======================================================= */
.footer {
    background-color: #000;
    padding: 30px 0;
    border-top: 1px solid #333;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-sociais {
    display: flex;
    gap: 20px;
}
.footer-sociais a {
    font-size: 1.8rem;
    color: var(--cor-texto);
    transition: color 0.3s, transform 0.3s;
}
.footer-sociais a:hover {
    color: var(--cor-dourado);
    transform: translateY(-5px);
}
.footer p {
    color: #737373;
    font-size: 0.9rem;
}


/* ======================================================= */
/* SECTION: HOME */
/* ======================================================= */
#home {
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: flex-start;
    padding-top: 60px;
}
.home-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.home-texto { flex: 1; }
#home .home-texto h1 {
    font-family: var(--fonte-principal);
    font-size: 4rem;
    color: var(--cor-dourado);
    margin-bottom: 1rem;
}
.home-texto p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.btn-principal {
    display: inline-block;
    background-color: var(--cor-dourado);
    color: var(--cor-fundo);
    font-family: var(--fonte-principal);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 30px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-principal:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.5);
}
.home-imagem {
    flex: 1;
    text-align: center;
}
.home-imagem img {
    max-width: 100%;
    height: auto;
    animation: flutuar 5s ease-in-out infinite;
}
@keyframes flutuar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* ======================================================= */
/* SECTION: SOBRE */
/* ======================================================= */
#sobre {
    background-color: #111;
    padding: 40px 0;
    overflow: hidden;
}
.sobre-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.sobre-imagem {
    flex-shrink: 0;
    flex-basis: 400px;
}
.sobre-imagem img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--cor-dourado);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.4);
}
.sobre-texto { flex: 1; }
.sobre-texto h2 {
    font-family: var(--fonte-principal);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.sobre-texto h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--cor-dourado);
    margin-top: 10px;
}
.sobre-texto p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.sobre-texto h3 {
    font-family: var(--fonte-principal);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.skills-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.skills-lista li {
    background-color: #222;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}
.skills-lista li:hover { transform: translateY(-5px); }
.skills-lista i { font-size: 2.5rem; }
.skills-lista p {
    color: var(--cor-texto);
    font-family: var(--fonte-principal);
    font-weight: 700;
    margin: 0;
}
@media (max-width: 992px) {
    .sobre-container {
        flex-direction: column;
        text-align: center;
    }
    .sobre-imagem {
        max-width: 300px;
        margin-bottom: 40px;
    }
    .sobre-texto h2::after {
        margin: 10px auto 0;
    }
}

/* ======================================================= */
/* SECTION: PROJETOS */
/* ======================================================= */
#projetos { padding: 40px 0; }
#projetos h2 {
    font-family: var(--fonte-principal);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
#projetos h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--cor-dourado);
    margin: 10px auto 0;
}
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.projeto-card {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.projeto-imagem img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.projeto-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.projeto-info h3 {
    font-family: var(--fonte-principal);
    font-size: 1.5rem;
    color: var(--cor-dourado);
}
.projeto-info p {
    margin: 15px 0;
    line-height: 1.6;
    flex-grow: 1;
}
.projeto-tech {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.projeto-links {
    display: flex;
    gap: 15px;
}
.btn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fonte-principal);
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: var(--cor-dourado);
    color: var(--cor-fundo);
    transition: background-color 0.3s;
}
.btn-link:hover { background-color: var(--cor-texto); }


/* ======================================================= */
/* SECTION: CONTATO */
/* ======================================================= */
#contato {
    background-color: #111;
    padding: 60px 0;
    text-align: center;
}
#contato h2 {
    font-family: var(--fonte-principal);
    font-size: 3rem;
    margin-bottom: 1rem;
}
#contato p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    font-size: 1.1rem;
}
.contato-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}
.contato-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--fonte-principal);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cor-dourado);
    transition: transform 0.3s;
}
.contato-item:hover { transform: scale(1.1); }
.contato-item i { font-size: 2rem; }