/* ============================================= */
/* GERAL E LAYOUT                                */
/* ============================================= */
body {
    background-color: #F4F4F9;
    color: #333333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

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

main {
    padding: 30px 40px;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 40px;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* ============================================= */
/* CABEÇALHO E NAVEGAÇÃO                         */
/* ============================================= */
.header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: #0A3D62;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 0;
}

.top-bar-icons a {
    color: #ffffff;
    font-size: 1.1em;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.top-bar-icons a:hover {
    color: #3498DB;
}

header {
    background-color: #ffffff;
    padding: 0;
    position: static;
    box-shadow: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* --- ALTERAÇÃO PRINCIPAL AQUI --- */
    padding-top: 10px; /* Reduzido de 20px para 10px */
    padding-bottom: 10px; /* Reduzido de 20px para 10px */
}

nav {
    padding: 0;
    border-bottom: none;
    margin-top: 0;
}

nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #005A9C;
    text-decoration: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: rgba(10, 61, 98, 0.1);
    color: #0A3D62;
}

.branding {
    text-align: left;
    padding: 0;
}

.branding h1 a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; }

.branding h1 {
    font-size: 2.0em;
    color: #0A3D62;
    margin: 0 0 0 40px;
    line-height: 1.2;
}

.branding p { font-size: 1.1em; color: #555555; margin: 5px 0 0 40px; }

main h1, main h2 {
    font-size: 1.5em;
    color: #0A3D62; 
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.3;
}

/* ... (O restante do seu CSS continua aqui) ... */
.cta-button { display: inline-block; background-color: #0A3D62; color: #FFFFFF !important; padding: 12px 25px; border-radius: 5px; text-decoration: none !important; font-family: 'Montserrat', sans-serif; font-weight: 700; margin-top: 10px; transition: all 0.3s ease; }
.cta-button:hover { background-color: #005A9C; transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
footer { text-align: center; padding: 20px 20px; font-size: 0.9em; color: #777; border-top: 1px solid #e0e0e0; }
.project-details-subtitle { color: #555; margin-top: 5px; font-size: 1.1em; }
.project-details-content h2 { font-size: 1.5em; margin-top: 30px; }
.sobre-container { display: flex; align-items: center; gap: 40px; margin-top: 10px; }
.sobre-texto { flex: 1; }
.foto-perfil { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.skills-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 40px; margin-top: 30px; text-align: left; }
.skill-category h3 { font-family: 'Montserrat', sans-serif; font-size: 1.1em; font-weight: 700; color: #0A3D62; margin-bottom: 8px; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.skill-category p { font-size: 1em; color: #555; line-height: 1.6; }
.contact-form { margin-top: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; text-align: left; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; font-family: 'Roboto', sans-serif; box-sizing: border-box; }
.form-group textarea { resize: vertical; }
.form-group button { width: auto; cursor: pointer; border: none; }
.status-message { padding: 15px; margin: 20px 0 30px 0; border-radius: 5px; background-color: #f0f9ff; border: 1px solid #b3e0ff; color: #005A9C; }
.status-message.error { background-color: #ffebee; border-color: #ffcdd2; color: #c62828; }
main a { color: #005A9C; font-weight: bold; text-decoration: none; transition: color 0.3s ease; }
main a:hover { color: #0A3D62; text-decoration: underline; }
.direct-contact-methods { display: flex; justify-content: center; gap: 30px; margin: 30px 0; }
.contact-option { flex-basis: 45%; display: flex; align-items: center; padding: 20px; border: 1px solid #ddd; border-radius: 8px; text-decoration: none; color: #333; transition: all 0.3s ease; }
.contact-option:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); border-color: #005A9C; }
.contact-option i { font-size: 2.2em; color: #0A3D62; margin-right: 20px; }
.contact-option .contact-option-text { text-align: left; }
.contact-option h3 { font-family: 'Montserrat', sans-serif; color: #333; margin: 0 0 5px 0; }
.contact-option p { font-size: 0.9em; color: #777; margin: 0; }
.portfolio-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.project-card { background-color: #FFFFFF; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); overflow: hidden; width: calc(33.333% - 14px); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.project-card img { width: 100%; height: 180px; object-fit: cover; }
.project-card h3 { font-size: 1.2em; margin: 15px 20px 10px 20px; color: #0A3D62; }
.project-card .card-client, .project-card .card-tech { font-size: 0.85em; margin: 0 20px 10px 20px; color: #555; }
.project-card .card-tech { margin-bottom: 20px; }
.project-card .card-button { display: block; margin-top: auto; padding: 15px 20px; background-color: #f4f4f9; text-align: center; text-decoration: none; color: #005A9C; font-weight: bold; font-family: 'Montserrat', sans-serif; transition: background-color 0.3s ease, color 0.3s ease; }
.project-card .card-button:hover { background-color: #0A3D62; color: #FFFFFF; }


/* ======================================================= */
/* === DESIGN RESPONSIVO PARA DISPOSITIVOS MÓVEIS === */
/* ======================================================= */
@media (max-width: 992px) {
    .project-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .header-wrapper {
        position: static;
        box-shadow: none;
    }

    .top-bar {
        padding: 10px 0;
    }
    .top-bar .container {
        justify-content: center;
    }
    .top-bar-icons a {
        font-size: 1.3em;
        margin: 0 15px;
    }

    header {
        border-bottom: 1px solid #e0e0e0;
    }
    header .container {
        flex-direction: column;
        padding: 20px 0;
    }

    .container {
        padding: 0 15px;
    }
    main {
        padding: 20px;
        margin-bottom: 20px;
    }

    .branding {
        text-align: center;
        padding: 0; /* Remove padding extra no mobile */
        margin-bottom: 20px; /* Adiciona espaço entre o nome e o menu */
    }
    .branding h1 {
        font-size: 2.0em;
        margin: 0;
    }
    
    .branding p {
        margin: 5px 0 0 0;
    }

    main h1, main h2 {
        font-size: 1.6em;
        line-height: 1.3;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .sobre-container {
        flex-direction: column;
        align-items: center;
    }

    .foto-perfil {
        order: -1;
        width: 160px;
        height: 160px;
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
    .project-card {
        width: 100%;
    }

    .contact-option {
        width: 100%;
        flex-basis: auto;
    }
    .direct-contact-methods {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}
