:root {
    --bg-darker: #0a0b1a;
    --bg-dark: #141728;
    --bg-light: #1e2138;
    --primary-color: #00ffbd;
    --current-color: #00ffbd;
    --completed-color: #14F195;
    --future-color: #9945FF;
    --border-color: #252a45;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
}

body {
    font-family: 'Pixel', serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 1rem auto;
    padding: 0 1rem;
}


h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 255, 189, 0.3);
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.roadmap {
    position: relative;
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Vertical line */
.roadmap::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
    border-radius: 2px;
}

.milestone {
    position: relative;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.milestone:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 255, 189, 0.2);
    border-color: var(--primary-color);
}

/* Milestone dot */
.milestone::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 1.8rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: var(--future-color);
    z-index: 1;
}

.milestone.completed::before {
    background: var(--completed-color);
    border-color: var(--completed-color);
}

.milestone.current::before {
    background: var(--current-color);
    border-color: var(--current-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 189, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 255, 189, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 189, 0); }
}

.milestone-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.milestone-title {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.milestone-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    align-self: flex-start;
}

.milestone-description {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.4;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-dark);
    border-radius: 4px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--completed-color), var(--primary-color));
    width: 0;
    transition: width 1s ease;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-completed {
    background-color: var(--completed-color);
    color: var(--bg-darker);
}

.status-current {
    background-color: var(--current-color);
    color: var(--bg-darker);
}

.status-future {
    background-color: var(--future-color);
    color: var(--text-primary);
}

.controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.controls button {
    padding: 0.5rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--bg-darker);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 200px;
}

button:hover {
    background-color: var(--solana-green);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 189, 0.3);
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }

    .roadmap {
        padding-left: 1.2rem;
    }

    .milestone {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }

    .milestone::before {
        left: -1.5rem;
        top: 1.5rem;
        width: 12px;
        height: 12px;
    }

    .controls {
        gap: 0.5rem;
    }

    button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 100px;
    }

    .status-badge {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }
}

@media (min-width: 768px) {
    .milestone-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .milestone-date {
        align-self: center;
    }

    .status-badge {
        margin-left: 0.5rem;
        margin-top: 0;
    }
}