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

body {
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

/* Cabeçalho */
header {
    background: linear-gradient(135deg, #4a148c, #0288d1);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

/* Layout Principal */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Grid de Cards (Página Inicial) */
.grid-cientistas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card a {
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 20, 140, 0.15);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    color: #4a148c;
    margin-bottom: 10px;
}

/* Páginas Individuais */
.perfil {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 40px auto;
}

.perfil h2 {
    color: #4a148c;
    font-size: 2.5rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #0288d1;
    padding-bottom: 10px;
}

.perfil img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.perfil h3 {
    color: #0288d1;
    margin: 25px 0 10px 0;
}

.perfil ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.perfil li {
    margin-bottom: 8px;
}

/* Botão Voltar */
.btn-voltar {
    display: inline-block;
    background-color: #4a148c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 30px;
    transition: background 0.3s;
}

.btn-voltar:hover {
    background-color: #0288d1;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 30px;
    background-color: #f0f4f8;
    color: #777;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
}