/* Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000; /* Fundo Preto */
    color: #fff;
    line-height: 1.6;
}

/* Header */
header {
    width: 100%;
    padding: 40px 5%;
    border-bottom: 2px solid #0ea5e9;
    margin-bottom: 50px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #0ea5e9; /* Título Azul */
    font-size: 2.2rem;
}

.voltar-btn {
    text-decoration: none;
    background: #0ea5e9;
    color: #000;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.voltar-btn:hover {
    background: #fff;
    transform: translateX(-5px);
}

/* Grid de Projetos */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.grid-projetos {
    display: grid;
    /* Aqui está o segredo para 3 colunas por linha */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
}

/* Estilo dos Retângulos (Cards) */
.projeto-card {
    background: transparent;
    border: 2px solid #0ea5e9; /* Borda Azul */
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.projeto-card:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.projeto-card h3 {
    color: #0ea5e9;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.projeto-card p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #0ea5e9;
    border: 1px solid #0ea5e9;
    padding: 5px 10px;
    border-radius: 5px;
    align-self: flex-start;
}

/* Responsividade (Para celulares e tablets) */
@media (max-width: 992px) {
    .grid-projetos {
        grid-template-columns: repeat(2, 1fr); /* 2 por linha em tablets */
    }
}

@media (max-width: 600px) {
    .grid-projetos {
        grid-template-columns: 1fr; /* 1 por linha em celulares */
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}