/* Roadmap Section */
.roadmap-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a1a 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.roadmap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(64, 224, 208, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #40e0d0, #20b2aa, #8a2be2, #4b0082);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.6);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    animation: timelineSlideIn 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes timelineSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #40e0d0, #20b2aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(64, 224, 208, 0.5);
    transition: all 0.4s ease;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(64, 224, 208, 0.4);
    border-radius: 50%;
    animation: pulse 2s forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(64, 224, 208, 0.7);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 0 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.15), transparent);
    transition: left 0.6s ease;
}

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

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    border-color: rgba(64, 224, 208, 0.4);
    box-shadow: 0 15px 35px rgba(64, 224, 208, 0.25);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.timeline-content p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Arrow indicators */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid rgba(255, 255, 255, 0.1);
}

/* Phase-specific colors */
.timeline-item:nth-child(1) .timeline-marker {
    background: linear-gradient(135deg, #40e0d0, #20b2aa);
}

.timeline-item:nth-child(2) .timeline-marker {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
}

.timeline-item:nth-child(3) .timeline-marker {
    background: linear-gradient(135deg, #9370db, #6a5acd);
}

.timeline-item:nth-child(4) .timeline-marker {
    background: linear-gradient(135deg, #00ced1, #48d1cc);
}

/* Responsive Design */
@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 3rem;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-left: 5px;
        margin-right: 0;
    }

    .timeline-marker::before {
        width: 70px;
        height: 70px;
    }

    .timeline-content {
        margin: 0 0 0 2rem;
    }

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

    .timeline-content p {
        font-size: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
        border-right: 10px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }
}

@media (max-width: 480px) {
    .roadmap-timeline::before {
        left: 25px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-left: 5px;
    }

    .timeline-marker::before {
        width: 60px;
        height: 60px;
    }

    .timeline-content {
        padding: 1.5rem;
        margin-left: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .timeline-item {
        margin-bottom: 2.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .timeline-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .timeline-marker::before {
        animation: none;
    }
    
    .timeline-item:hover .timeline-marker,
    .timeline-item:hover .timeline-content {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .timeline-content {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .timeline-content h3 {
        color: #ffffff;
    }
    
    .timeline-content p {
        color: #e0e0e0;
    }
}