:root {
    --cyber-primary: #890408;
    --cyber-secondary: #FB0000;
    --cyber-accent: #FF4D4D;
    --cyber-dark: #1A1A1A;
    --cyber-light: #FFFFFF;
    --cyber-gradient: linear-gradient(135deg, var(--cyber-primary), var(--cyber-secondary));
}

#timeline {
    perspective: 1000px;
    background: linear-gradient(180deg, rgba(251, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
    transform-style: preserve-3d;
}



.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--cyber-red);
    top: 0;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:hover {
    transform: translateZ(20px);
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--cyber-red);
    border-radius: 50%;
    position: absolute;
    left: calc(50% - 10px);
    transition: all 0.3s ease;
}

.timeline-content {
    width: 80%;
    background: rgba(251, 0, 0, 0.05);
    border: 2px solid var(--cyber-red);
    padding: 1.5rem;
    position: relative;

    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}

.timeline-time {
    font-family: 'sd-dystopian', sans-serif;
    color: var(--cyber-red);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--cyber-white);
    font-family: 'valorant', sans-serif;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--cyber-white);
    font-family: 'valorant', sans-serif;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        padding-right: 0;
        padding-left: 50px;
    }

    .timeline-item.right {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 10px;
    }

    .timeline-content {
        width: 100%;
    }
}