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

:root {
    --primary: #ffffff;
    --accent: #162fa1;
    --text: #101010;
    --text-light: #666666;
    --bg: #fafafa;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #162fa1 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: var(--white)
}
.hero p {
    font-family: 'Playfair display',sans-serif;
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: var(white);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 2rem;
    color: var(white);
}

/* Timeline Container */
.timeline-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 4px solid var(--bg);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--accent), 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Image Container */
.timeline-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: var(--white);
    /* Aspect ratio 16:9 - ajuste se necessário */
    aspect-ratio: 16 / 10;
}

.timeline-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Content */
.timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color:black ;
}

.timeline-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.timeline-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 6rem;
}

.footer h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .timeline-container::before {
        left: 2rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 5rem;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-marker {
        left: 2rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline-year {
        font-size: 2rem;
    }

    .timeline-title {
        font-size: 1.5rem;
    }
}