:root {
    --primary-color: #0097a7; /* Accessible Teal/Cyan */
    --secondary-color: #36a2eb; /* Blue */
    --background-color: #1a1a2e; /* Dark Navy Blue */
    --surface-color: #162447; /* Darker Blue */
    --card-color: #1f4068; /* Even Darker Blue */
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

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

/* --- Header --- */
.main-header {
    background-color: rgba(54, 162, 235, 0.8); /* Azul mais claro */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Sections --- */
section {
    padding: 6rem 0;
}

section:nth-child(odd) {
    background-color: var(--surface-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Hero Section --- */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 80px; /* Header height */
    position: relative;
    overflow: hidden;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation-name: flow;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes flow {
    from {
        transform: translateX(-20px);
    }
    to {
        transform: translateX(100vw);
    }
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

#hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button, .contact-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover, .contact-button:hover {
    transform: translateY(-3px);
    background-color: #00acc1; /* Lighter shade of primary color */
}


/* --- About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1rem;
}


/* --- Experience Section (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 50px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--background-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

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

.timeline-item h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
}
.timeline-item p {
    font-size: 0.95rem;
}

/* --- Tools Section --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-item {
    background-color: var(--card-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}


/* --- Projects (Dashboards) --- */
.section-description {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
}

.dashboard {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

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

.chart-container {
    height: 350px;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
}

/* --- Contact Section --- */
#contact .container {
    text-align: center;
}
#contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.contact-button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.contact-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .main-nav { display: none; /* Simplificação para mobile, poderia adicionar um menu hamburguer */ }
    
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item::after {
        left: 15px;
    }
}