/* Configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cabecalho {
    text-align: center;
    padding: 40px 20px;
    background-color: #2c3e50;
    color: white;
}

/* O segredo da responsividade está aqui */
.container-projetos {
    display: grid;
    /* Essa linha faz os cards se ajustarem ao tamanho da tela automaticamente */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

/* Estilo dos cards clicáveis */
.cartao-projeto {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cartao-projeto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.imagem-projeto {
    height: 180px;
    width: 100%;
    /* Aqui você pode substituir a cor de fundo por uma imagem usando:
       background-image: url('sua-imagem.jpg'); 
       background-size: cover; */
}

.info-projeto {
    padding: 20px;
}

.info-projeto h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-projeto p {
    font-size: 0.9rem;
    color: #666;
}

.rodape {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    margin-top: auto;
}