/* Reset e Variáveis */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%236366f1" opacity="0.3"/><circle cx="80" cy="30" r="1" fill="%238b5cf6" opacity="0.4"/><circle cx="40" cy="70" r="1" fill="%2306b6d4" opacity="0.3"/><circle cx="90" cy="80" r="1" fill="%236366f1" opacity="0.5"/></svg>') repeat;
    animation: float 20s linear infinite;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(16, 185, 129, 0.1) 75%,
        rgba(245, 158, 11, 0.1) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.title-line {
    display: block;
}

.title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-orbit {
    position: relative;
    width: 400px;
    height: 400px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    z-index: 3;
}

.orbit-ring {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-2 {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-direction: reverse;
    animation-duration: 30s;
}

.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    animation: counter-rotate 20s linear infinite;
}

.ring-2 .orbit-item {
    animation: counter-rotate 30s linear infinite reverse;
}

.item-1 {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #8b4513;
}

.item-2 {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fbbf24;
}

.item-3 {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #06b6d4;
}

.item-4 {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #e91e63;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes counter-rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(-360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Section Styles */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: white;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    transform: translateY(-50%);
}

.timeline-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 25%;
    transition: width 0.5s ease;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: white;
    border: 4px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.timeline-item.active .timeline-marker {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    width: 100%;
}

.timeline-item:hover .timeline-card {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-year {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-impact {
    display: flex;
    justify-content: center;
}

.impact-positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Era Detail Sections */
.eras-section {
    background: var(--light-color);
}

.era-detail {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.industrial-era {
    background: linear-gradient(135deg, #8b4513 0%, #daa520 100%);
    color: white;
}

.era-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.era-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.era-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.era-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.era-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.era-period {
    font-size: 1.125rem;
    opacity: 0.8;
    font-weight: 500;
}

.era-tagline {
    font-style: italic;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.impact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 1.25rem;
}

.card-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.impact-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.impact-list li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    opacity: 0.9;
    position: relative;
    padding-left: 1rem;
}

.impact-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

.impact-number {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}

.impact-number.positive {
    color: #4ade80;
}

.impact-number.negative {
    color: #f87171;
}

.impact-number.new {
    color: #fbbf24;
}

.regional-impact {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.regional-impact h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.region-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.region-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.region-name {
    min-width: 80px;
    font-size: 0.875rem;
    font-weight: 500;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.region-value {
    min-width: 50px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
}

.era-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 300px;
}

/* Reflection Section */
.reflection-section {
    display: flex;
    justify-content: center;
}

.reflection-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.reflection-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.reflection-question {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.reflection-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.reflection-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reflection-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.reflection-btn.selected {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Insights Section */
.insights-section {
    padding: 6rem 0;
    background: white;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.insight-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.insight-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.insight-chart {
    height: 200px;
    background: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Future Section */
.future-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 100%);
    color: white;
}

.prediction-tool {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.tool-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group label {
    font-weight: 600;
    font-size: 1rem;
}

.slider-container {
    position: relative;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

.slider-value {
    position: absolute;
    right: 0;
    top: -2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.prediction-result h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.prediction-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.prediction-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.metric-label {
    font-weight: 500;
}

.metric-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.metric-value.positive {
    color: #4ade80;
}

.metric-value.negative {
    color: #f87171;
}

.prediction-chart {
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .era-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .prediction-tool {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-track {
        display: none;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .section-container,
    .era-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .prediction-tool {
        padding: 1.5rem;
    }
    
    .reflection-options {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Styles para index.html (cartão, timeline e rodapé temporal) ===== */

/* Fundo com gradiente e centralização do cartão */
.background {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Cartão central */
.card {
    width: 100%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1.5rem 2rem;
}

/* Cabeçalho do cartão */
.header {
    text-align: left;
    padding: 0.5rem 0 1rem;
}

.header h2 {
    font-size: 0.9rem;
    letter-spacing: 0.35rem;
    color: var(--text-secondary);
    font-weight: 800;
}

.header-line {
    border: none;
    border-top: 3px solid var(--primary-color);
    width: 80px;
    margin-top: 0.5rem;
}

/* Linha de título com sidebar à esquerda */
.title-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 1.5rem;
    margin: 1.25rem 0 1.75rem;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    cursor: default;
}

/* Título principal */
.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: #2c3e50;
    letter-spacing: 0.06rem;
}

/* Grid da Timeline principal (5 colunas no desktop) */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

/* Coluna da timeline */
.timeline-column {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-column:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.35);
}

.timeline-column.current-era {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12), var(--shadow-lg);
}

/* Cabeçalho da coluna */
.column-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.column-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.column-header .period,
.period {
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Conteúdo da coluna */
.column-content {
    padding: 0.9rem 1rem 1.1rem;
}

.column-content h4 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.column-content ul {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.column-content li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Estatísticas de emprego nas colunas */
.employment-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--error-color);
}

/* Faixa de imagens */
.image-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.image-placeholder {
    min-height: 110px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Rodapé temporal desta página (independente do footer global) */
.timeline-footer {
    background: transparent;
    color: var(--text-primary);
    padding-top: 0.5rem;
}

/* Lista de eras (bolinhas) */
.timeline-footer .eras {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
}

.timeline-footer .era-bullet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-footer .bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #e2e8f0;
}

.timeline-footer .bullet.gray {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.timeline-footer .bullet.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

/* Barra temporal com marcadores */
.timeline-footer .timeline-bar {
    position: relative;
    height: 70px;
    margin-top: 0.25rem;
}

.timeline-footer .timeline-line {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 4px;
    background: var(--border-color);
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-footer .timeline-years {
    position: relative;
    height: 70px;
}

.timeline-footer .year-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timeline-footer .year-tick {
    width: 2px;
    height: 12px;
    background: #94a3b8;
    margin: 0 auto 4px;
}

.timeline-footer .year-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsividade do layout do cartão/timeline */
@media (max-width: 1024px) {
    .title-row {
        grid-template-columns: 1fr;
    }
    .sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }
    .main-title {
        font-size: 1.6rem;
    }
    .timeline-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
    .image-row {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
    .image-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 520px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    .image-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Styles para index.html (cartão, timeline e rodapé temporal) ===== */

/* Fundo com gradiente e centralização do cartão */
.background {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Cartão central */
.card {
    width: 100%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1.5rem 2rem;
}

/* Cabeçalho do cartão */
.header {
    text-align: left;
    padding: 0.5rem 0 1rem;
}

.header h2 {
    font-size: 0.9rem;
    letter-spacing: 0.35rem;
    color: var(--text-secondary);
    font-weight: 800;
}

.header-line {
    border: none;
    border-top: 3px solid var(--primary-color);
    width: 80px;
    margin-top: 0.5rem;
}

/* Linha de título com sidebar à esquerda */
.title-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 1.5rem;
    margin: 1.25rem 0 1.75rem;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    cursor: default;
}

/* Título principal */
.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: #2c3e50;
    letter-spacing: 0.06rem;
}

/* Grid da Timeline principal (5 colunas no desktop) */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

/* Coluna da timeline */
.timeline-column {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-column:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.35);
}

.timeline-column.current-era {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12), var(--shadow-lg);
}

/* Cabeçalho da coluna */
.column-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.column-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.column-header .period,
.period {
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Conteúdo da coluna */
.column-content {
    padding: 0.9rem 1rem 1.1rem;
}

.column-content h4 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.column-content ul {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.column-content li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Estatísticas de emprego nas colunas */
.employment-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--error-color);
}

/* Faixa de imagens */
.image-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.image-placeholder {
    min-height: 110px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Rodapé temporal desta página (independente do footer global) */
.timeline-footer {
    background: transparent;
    color: var(--text-primary);
    padding-top: 0.5rem;
}

/* Lista de eras (bolinhas) */
.timeline-footer .eras {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
}

.timeline-footer .era-bullet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-footer .bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #e2e8f0;
}

.timeline-footer .bullet.gray {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.timeline-footer .bullet.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

/* Barra temporal com marcadores */
.timeline-footer .timeline-bar {
    position: relative;
    height: 70px;
    margin-top: 0.25rem;
}

.timeline-footer .timeline-line {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 4px;
    background: var(--border-color);
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-footer .timeline-years {
    position: relative;
    height: 70px;
}

.timeline-footer .year-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timeline-footer .year-tick {
    width: 2px;
    height: 12px;
    background: #94a3b8;
    margin: 0 auto 4px;
}

.timeline-footer .year-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsividade do layout do cartão/timeline */
@media (max-width: 1024px) {
    .title-row {
        grid-template-columns: 1fr;
    }
    .sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }
    .main-title {
        font-size: 1.6rem;
    }
    .timeline-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
    .image-row {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
    .image-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 520px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    .image-row {
        grid-template-columns: 1fr;
    }
}