div.about-container {
    max-width: var(--max-vw);
}

.timeline-card {
    max-width: 300px;
    width: 100%;
    text-align: center;
    border-radius: 1rem;
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    z-index: -1;
    background-color: var(--bg-clr-dark);
}

body.light-mode .timeline-card::before {
    background-color: var(--bg-clr-light);
}

.timeline-card h5 {
    color: var(--brand-clr-1);
    font-weight: bold;
}

.timeline.animate>div.animate>.timeline-card {
    position: relative;
    padding: 1rem;
    opacity: 0;
    top: 100px;
}

.timeline-card::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 125%;
    background: linear-gradient(to right, red, red);
    background-size: 100% 0%;
    background-repeat: no-repeat;
    border-radius: 50rem;
    z-index: -10;
}

.timeline-card:first-child::after {
    transform: translate(-50%, 0%);
    left: 50%;
    width: 4px;
}

.timeline.animate>div.animate>.timeline-card {
    animation: animate-timeline-card 1s ease calc(var(--i) * 0.5) forwards;
}

.timeline.animate>div.animate>.timeline-card::after {
    animation: move-timeline 0.5s linear calc(calc(var(--i) * 0.5) + 1s) forwards;
}

.vision-roadmap li {
    padding: 2rem 0rem 0rem 0.25rem;
}

.team img {
    border-radius: 0.5rem;
}

@keyframes animate-timeline-card {
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes move-timeline {
    to {
        background-size: 100% 100%;
    }
}

@media screen and (min-width: 688px) {
    .timeline-card::after {
        top: 50%;
        transform: translate(-50%, -50%);
        width: 120%;
        height: 4px;
        background-size: 0% 100%;
    }
    
    .timeline-card:first-child::after {
        transform: translate(0%, -50%);
        left: 50%;
        width: 60%;
    }
}

@media screen and (min-width: 768px) {
    .timeline-card {
        padding: 1.5rem;
    }

    .team img {
        border-radius: 0.5rem;
    }
}