/* 1. BASE E RESET */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #fbfbfd;
    color: #1d1d1f;
    line-height: 1.5;
}

/* 2. TIPOGRAFIA GERAL */
h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    color: #515154;
    margin-bottom: 15px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 3. CABEÇALHO E MENU (FIXO) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #1d1d1f;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

nav .logo {
    color: #fff;
    font-weight: bold;
}

nav .menu-links a {
    color: #fff;
    margin-left: 20px;
}

/* 4. ESTRUTURA DAS SEÇÕES */
section {
    padding: 100px 20px;
    text-align: center;
}

#sobre-mim {
    background-color: #ffffff;
    padding: 120px 20px;
}

.sobre-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.sobre-texto {
    flex: 1;
    text-align: left;
}

.sobre-texto h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.sobre-texto p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #6e6e73;
}

.sobre-foto {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sobre-foto img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sobre-foto img:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

#projetos {
    background-color: #fbfbfd;
}

/* 5. GRID DE PROJETOS E CARTÕES */

.grelha-projetos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cartao-projeto {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cartao-projeto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}

.cartao-projeto h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.cartao-projeto p {
    font-size: 14px;
    line-height: 1.6;
    color: #6e6e73;
}

/* 6. CONTATO E BOTÕES */
#contato {
    background-color: #1d1d1f;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

#contato p {
    color: #a1a1a6;
    margin-bottom: 40px;
}

.botoes-contato {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primario {
    background-color: #ffffff;
    color: #1d1d1f;
}

.btn-primario:hover {
    background-color: #e8e8ed;
    transform: scale(0.98);
}

.btn-secundario {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-secundario:hover {
    background-color: #ffffff;
    color: #1d1d1f;
    transform: scale(0.98);
}

/* 7. RODAPÉ */
footer {
    background-color: #1d1d1f;
    color: #515154;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    border-top: 1px solid #333;
}

/* 8. RESPONSIVIDADE (CELULARES) */
@media (max-width: 768px) {

    header nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    nav .logo {
        margin-bottom: 10px;
    }

    nav .menu-links a {
        margin: 0 10px;
        font-size: 14px;
    }

    section {
        padding: 60px 20px;
    }

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

    .btn {
        display: block;
        margin: 15px auto;
        width: 100%;
        max-width: 250px;
    }

    /*feito ajustes sobre mim*/

    .sobre-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .sobre-texto {
        text-align: center;
    }

    .sobre-foto img {
        width: 200px;
    }
}