/* Roadmap Section */
.roadmap-section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.roadmap-subtitle {
    text-align: center;
    color: var(--text-secondary, #a0a0a0);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Vertical Line */
.roadmap {
    max-width: 1400px;
    width: 92%;
    margin: 4rem auto;
    position: relative;
    padding: 2rem 0;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        var(--primary) 0%,
        var(--primary) 90%,
        transparent 100%
    );
    box-shadow: 0 0 15px var(--primary);
}

/* Roadmap Items */
.roadmap-item {
    position: relative;
    margin: 5rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.roadmap-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Box */
.roadmap-content {
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    width: 850px;
    max-width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.roadmap-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.25);
}

/* Marker */
.roadmap-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    opacity: 0;
    animation: markerAppear 0.5s ease forwards;
    z-index: 2;
}

.roadmap-marker i {
    font-size: 1rem;
}

/* Phase Badge */
.roadmap-phase {
    display: inline-block;
    background: rgba(255, 0, 0, 0.15);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

/* Text Styles */
.roadmap-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary);
    line-height: 1.4;
}

.roadmap-date {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.roadmap-description > p {
    color: var(--text-secondary, #c0c0c0);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* Phase Details */
.phase-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.phase-details .detail-block:only-child {
    grid-column: 1 / -1;
}

.detail-block h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
    padding-bottom: 0.4rem;
}

.detail-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-block ul li {
    color: var(--text-secondary, #b0b0b0);
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.detail-block ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.7rem;
    top: 0.35rem;
}

.metrics-list li strong {
    color: var(--primary);
}

/* Last Item Fade Effect */
.roadmap-item:last-child .roadmap-content {
    opacity: 0.7;
    border-color: rgba(255, 0, 0, 0.5);
}

.roadmap-item:last-child .roadmap-marker {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Animations */
@keyframes markerAppear {
    from {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Responsive Design */

/* Collapse to single column on narrower screens */
@media (max-width: 1024px) {
    .phase-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .roadmap-content {
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .roadmap::before {
        left: 18px;
    }

    .roadmap-item {
        justify-content: flex-start;
        padding-left: 44px;
    }

    .roadmap-marker {
        left: 18px;
        width: 28px;
        height: 28px;
    }

    .roadmap-marker i {
        font-size: 0.8rem;
    }

    .roadmap-content {
        width: calc(100% - 44px);
        max-width: none;
        padding: 1.25rem;
    }

    .roadmap-title {
        font-size: 1.1rem;
    }

    .roadmap-subtitle {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .roadmap::before {
        left: 14px;
    }

    .roadmap-item {
        padding-left: 36px;
    }

    .roadmap-marker {
        left: 14px;
        width: 22px;
        height: 22px;
    }

    .roadmap-marker i {
        font-size: 0.65rem;
    }

    .roadmap-content {
        width: calc(100% - 36px);
        padding: 1rem 0.9rem;
    }

    .detail-block ul li {
        font-size: 0.8rem;
    }
}
