/* Advanced Timeline Styles */
.timeline-section {
    padding: 4rem 0;
    position: relative;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
}

.timeline-wrapper::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary) 10%, var(--primary) 90%, transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: block;
    text-decoration: none;
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: scale(1.02);
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Era Header */
.era-header {
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.era-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    display: inline-block;
    padding: 0.5rem 2rem;
    background: var(--bg-base);
    border: 1px solid var(--primary);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .timeline-wrapper::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .left, .right {
        left: 0;
    }
}

/* Scroll Animation Helper */
.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
}
