/**
 * Story Timeline Section - WOW Effect
 * 
 * @package Artur_Developer
 */

.story-section {
    background: #0A0A0A;
    overflow: hidden;
}

.story-section .section-header-center,
.story-section .section-label,
.story-section .section-title {
    color: #fff;
}

.story-section .section-label {
    color: var(--color-primary);
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom, 
        transparent,
        var(--color-primary) 10%,
        var(--color-primary) 90%,
        transparent
    );
}

/* Animated line fill on scroll */
.timeline::after {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary);
    transition: height 0.3s ease-out;
}

.timeline.animate .timeline::after {
    height: 100%;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-left: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Year label */
.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: -80px;
    top: 0;
    width: 70px;
    text-align: right;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.timeline-item:hover::before,
.timeline-item.visible::before {
    opacity: 1;
}

/* Timeline dot with pulse animation */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #0A0A0A;
    border: 3px solid var(--color-border);
    border-radius: 50%;
    transition: all var(--transition-base);
    z-index: 2;
}

.timeline-item.visible::after {
    border-color: var(--color-primary);
    animation: pulseGlow 2s ease-in-out infinite;
}

.timeline-item:hover::after,
.timeline-item.highlight::after {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.6);
    transform: scale(1.2);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 162, 39, 0);
    }
}

/* Timeline Content Card */
.timeline-content {
    background: #141414;
    border: 1px solid #2A2A2A;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Gradient accent on hover */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-base);
}

.timeline-item:hover .timeline-content::before,
.timeline-item.visible .timeline-content::before {
    transform: scaleY(1);
}

.timeline-item:hover .timeline-content,
.timeline-item.highlight .timeline-content {
    border-color: var(--color-primary);
    transform: translateX(10px);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: #fff;
}

.timeline-content p {
    font-size: var(--text-sm);
    color: #999;
    line-height: 1.7;
    margin: 0;
}
