/* --- GERAL & TIPOGRAFIA --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap' );

:root {
    --primary-color: #005f73; /* Azul petróleo escuro */
    --secondary-color: #0a9396; /* Verde-azulado */
    --accent-color: #ee9b00; /* Laranja/Âmbar */
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --card-background: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- CABEÇALHO (HEADER) --- */
.header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- SECÇÕES DE PROJETOS --- */
.projects-section {
    padding: 50px 0;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.projects-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* --- CARTÃO DE PROJETO (CARD) --- */
.project-card {
    background-color: var(--card-background);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-top: 0;
    color: var(--secondary-color);
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 25px 25px;
}

.image-container {
    width: 100%;
    height: 70px;
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
}

/* --- MODAL / LIGHTBOX PARA FULLSCREEN --- */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.fullscreen-modal.visible {
    opacity: 1;
    visibility: visible;
}

.fullscreen-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    font-weight: 100;
    line-height: 1;
    text-shadow: 0 0 10px black;
}

/* --- RODAPÉ (FOOTER) --- */
.footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-color);
    color: white;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}