/* Estilos para a Timeline */
.timeline-section {
    padding: 120px 2rem 80px;
    background: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, rgba(44, 62, 80, 0.2) 100%);
    z-index: 0;
    pointer-events: none;
}

.timeline-section .section-title {
    position: relative;
    display: block;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.timeline-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    0% {
        width: 80px;
        opacity: 0.7;
    }
    100% {
        width: 120px;
        opacity: 1;
    }
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--gold-gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 50px;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--gold-light);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -12.5px;
}

.timeline-item.right::after {
    left: -12.5px;
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
    transform: scale(1.1);
}

.timeline-content:hover::before {
    opacity: 1;
    transform: scale(1);
}

.timeline-date {
    display: inline-block;
    padding: 8px 18px;
    background: var(--gold-gradient);
    color: var(--text-dark);
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.timeline-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: all 0.6s ease;
    z-index: -1;
}

.timeline-content:hover .timeline-date::before {
    left: 100%;
}

.timeline-body {
    color: var(--text-light);
}

.timeline-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.timeline-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.5s ease;
}

.timeline-content:hover .timeline-body h3::after {
    width: 100%;
}

.timeline-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.timeline-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateZ(0);
    transition: all 0.5s ease;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    backface-visibility: hidden;
}

.timeline-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.timeline-content:hover .timeline-image::before {
    opacity: 1;
}

.timeline-content:hover .timeline-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.3);
}

.timeline-content:hover .timeline-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.timeline-message {
    text-align: center;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.timeline-message p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: center;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold-light);
    font-style: italic;
    margin-top: 20px;
    text-align: center;
    display: block;
}

/* Efeito de brilho externo */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

.timeline-item:hover::before {
    opacity: 1;
    animation: outerGlow 2s infinite;
}

@keyframes outerGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.98);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 18px;
    }
}

@media (max-width: 480px) {
    .timeline-date {
        font-size: 0.9rem;
        padding: 4px 12px;
    }

    .timeline-body h3 {
        font-size: 1.3rem;
    }

    .timeline-content {
        padding: 15px 20px;
    }
}
