/* Timeline Horizontal Styles */
.timeline-horizontal {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4rem auto 3rem;
    max-width: 95%;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: linear-gradient(90deg, var(--border) 0%, var(--primary) 50%, var(--border) 100%);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-node:hover .node-dot {
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--primary);
}

.timeline-node.active .node-dot {
    background: var(--primary);
    box-shadow: 0 0 25px var(--primary);
    transform: scale(1.4);
}

.timeline-node.future .node-dot {
    background: var(--border);
    border-color: var(--border-mid);
}

.node-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    border: 3px solid var(--bg);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--secondary);
}

.node-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    text-align: center;
}

.node-date {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.node-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-node.active .node-tag {
    color: var(--accent);
}

.timeline-node.future .node-tag {
    color: var(--text-muted);
}

/* Timeline Content Area */
.timeline-content-area {
    margin-top: 3rem;
    min-height: 200px;
}

.milestone-detail {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.milestone-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.milestone-detail h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.milestone-detail p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline-horizontal {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
    }
    
    .timeline-line {
        left: 1rem;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--border) 0%, var(--primary) 50%, var(--border) 100%);
    }
    
    .timeline-node {
        flex-direction: row;
        align-items: center;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .node-label {
        flex-direction: row;
        margin-top: 0;
        margin-left: 1.5rem;
        gap: 0.5rem;
    }
    
    .node-date {
        margin-bottom: 0;
    }
}
