/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f4f4f9;
    line-height: 1.6;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #222;
}

/* Estilo do cabeçalho */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f4f4f9;
    border-bottom: 2px solid #fff;
}

/* Estilo da seção principal */
main {
    margin: 20px auto;
    max-width: 1200px;
    text-align: center;
}

section {
    margin: 50px 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #ff6f61;
    margin: 10px auto;
    border-radius: 4px;
}

/* Estilo da seção "Sobre Mim" */
section#sobre-mim p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
    text-align: left;
}

/* Estilo dos projetos */
section#projetos {
    display: grid;
    gap: 30px;
    margin-top: 10px;
}

.projeto {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.projeto:hover {
    transform: scale(1.05);
}

.projeto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

figcaption {
    padding: 15px;
    text-align: left;
}

figcaption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

figcaption p {
    font-size: 1rem;
    color: #555;
}

/* Estilo do rodapé */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}
footer h3 {
    color: #ff6f61 ;
}

footer p {
    font-size: 1rem;
    color: #bbb;
}

/* Efeitos de transição e responsividade */
a {
    transition: all 0.3s ease;
}

img {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    section#sobre-mim p {
        font-size: 1rem;
    }

    figcaption h3 {
        font-size: 1.2rem;
    }
}
