/* ===========================================
   HISTÓRIA — LINHA DO TEMPO (TIMELINE)
   =========================================== */

/* Container e Introdução */
.history-timeline-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 18vh 8vw 14vh 8vw;
    background-color: #0a0a0a;
}

.timeline-intro {
    text-align: center;
    margin-bottom: 12vh;
}

.timeline-main-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.timeline-main-title .accent {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.timeline-main-subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #b9b9bd;
    font-weight: 200;
    letter-spacing: 0.05em;
}

/* Estrutura da Linha do Tempo */
.timeline-container {
    position: relative;
    padding-left: 4.5rem; /* Espaço para a linha vertical e marcadores */
}

/* Eixo vertical dourado e sutil */
.timeline-line {
    position: absolute;
    left: 15px;
    top: 0.8rem;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold) 0%, rgba(205, 138, 82, 0.15) 85%, transparent 100%);
    opacity: 0.7;
}

/* Item Individual - Layout de Fluxo Vertical */
.timeline-item {
    position: relative;
    display: block;
    margin-bottom: 14vh; /* Espaçamento ideal para leitura pausada */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Coluna de Mídia */
.timeline-media {
    position: relative;
    width: 100%;
}

.timeline-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Proporção widescreen super elegante */
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #121212;
    border-radius: 6px;
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Garante que o rosto da Luana apareça sempre sem cortes estranhos */
    filter: grayscale(15%) contrast(102%);
    transition: transform 1.2s var(--ease-out-expo), filter 0.6s ease;
    will-change: transform;
}

.timeline-item:hover .timeline-image {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(104%);
}

/* Coluna de Conteúdo Textual */
.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espaçamento premium e consistente entre cabeçalho, imagem e texto */
    max-width: 620px; /* Largura perfeita para conforto de leitura e proporção visual da imagem */
}

/* Marcador redondo na linha */
.timeline-marker {
    position: absolute;
    left: -4.5rem;
    top: 1rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #0a0a0a;
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px rgba(205, 138, 82, 0.4);
    transform: translateX(9px); /* Alinhado perfeitamente com a linha de 1px na posição 15px */
    transition: background-color 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--gold);
    transform: translateX(9px) scale(1.2);
    box-shadow: 0 0 15px rgba(205, 138, 82, 0.8);
}

/* Cabeçalho do marco (Ano + Título) */
.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.timeline-year {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.timeline-title {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Conteúdo */
.timeline-content {
    max-width: 680px;
}

.timeline-content p {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: #b9b9bd;
    font-weight: 200;
}

/* ===========================================
   SISTEMA DE REVEAL AO ROLAR (SCROLL ANIMATIONS)
   =========================================== */
.reveal-element {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1.4s var(--ease-out-expo), transform 1.4s var(--ease-out-expo);
}

.reveal-element.fade-up {
    transform: translateY(50px);
}

/* Classe ativada via JS */
.reveal-element.visible {
    opacity: 1;
    transform: translate(0);
}

/* ===========================================
   RESPONSIVIDADE (MOBILE)
   =========================================== */
@media (max-width: 900px) {
    .timeline-item {
        margin-bottom: 12vh;
    }
}

@media (max-width: 768px) {
    .history-timeline-section {
        padding: 14vh 1.5rem 8vh 1.5rem;
    }

    .timeline-intro {
        margin-bottom: 8vh;
        text-align: left;
    }

    .timeline-container {
        padding-left: 2.2rem;
    }

    .timeline-line {
        left: 7px;
    }

    .timeline-marker {
        left: -2.2rem;
        transform: translateX(1px);
    }

    .timeline-item:hover .timeline-marker {
        transform: translateX(1px) scale(1.2);
    }

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

    .timeline-item {
        margin-bottom: 10vh;
    }

    .timeline-image-container {
        max-width: 450px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-element {
        transition-duration: 0.3s !important;
        transform: none !important;
    }
}
