/* Estilos Gerais - Tema Escuro */
:root {
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #8be9fd; /* Azul-ciano vibrante */
    --accent-color: #ff79c6; /* Rosa-choque vibrante */
    --link-hover-color: #bd93f9; /* Roxo suave */
    --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

header {
    background: var(--card-bg-color);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    margin: 0;
    font-style: italic;
    color: var(--link-hover-color);
}

/* Navegação */
nav {
    background: #0d0d0d;
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.4s ease-out;
}

nav ul li a:hover::after {
    width: 120%;
}

nav ul li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Banner da Página Inicial */
.banner {
    width: 100%;
    height: 500px;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('../images/banner.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    animation: fadeIn 2s ease-in-out;
}

.banner h2 {
    font-size: 4em;
    margin: 0;
    color: var(--heading-color);
    animation: textGlow 2s infinite alternate;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px var(--accent-color); }
    to { text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color); }
}

/* Seções de Conteúdo */
main {
    padding: 2rem 0;
}

section {
    background: var(--card-bg-color);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

section h2 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--heading-color);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 2.5em;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    padding: 20px;
    border-left: 3px solid var(--accent-color);
    background: #2a2a2a;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.grid-item:hover {
    background: #3a3a3a;
}

.grid-item h3 {
    margin-top: 0;
    color: var(--heading-color);
}

/* Linha do Tempo (para a página de história da IA) */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--card-bg-color);
    border-radius: 10px;
    width: 45%;
    box-sizing: border-box;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: scale(1.05);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--heading-color);
    border: 4px solid var(--card-bg-color);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

.timeline-item:nth-child(even)::after {
    left: -14px;
}