/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Menu de Navegação */
header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header .logo h3 a{
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
header .logo h3 a:hover {
    color: #3498db;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Estrutura de Seções */
section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-white {
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: auto;
    width: 100%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    background: #3498db;
    height: 3px;
    width: 50px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Home */
#home {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

#home h1 { font-size: 3.5rem; }

/* Botões */
.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-submit {
    border: none;
    cursor: pointer;
    width: 100%;
}
.btn-project {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 10px 20px;
    margin: 15px; /* Garante espaçamento das bordas do card */
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-project:hover {
    background-color: #2980b9;
    color: #ffffff;
}

/* Cards e Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 0 0 20px 0; /* Tiramos o padding do topo para a imagem encostar na borda */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden; /* Garante que a imagem siga a borda arredondada do card */
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3, .card h4 {
    margin-top: 15px;
    padding: 0 15px;
}

.card p {
    padding: 10px 15px;
}
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Estilo das Imagens nos Cards */
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
}

.img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto;
    width: 100%;
}

form input, form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px;
}