/* Reset básico e tipografia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Estrutura Semântica - Cabeçalho */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex; /* Uso do Flexbox */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
       
}

.logo-foto {
    width: 70px;           
    height: 70px;         
    object-fit: cover;     
    border-radius: 50%;    
    border: 2px solid #3498db;
    display: block;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    color: #3498db;
}

/* Área principal e Seções */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex-grow: 1;
}

.secao {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

/* Grid de Projetos */
.grid-container {
    display: grid; /* Uso do Grid */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card-projeto {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fafbfc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-projeto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-projeto h3 {
    color: #2980b9;
    margin-bottom: 0.8rem;
}

.card-projeto p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.tags {
    font-size: 0.8rem;
    font-weight: bold;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.btn-link {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-link:hover {
    background-color: #2980b9;
}

/* Rodapé */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

/* Responsividade Básica para Mobile */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .secao {
        padding: 1.5rem;
    }
}