@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

.roadmap {
    --color: rgba(30, 30, 30);
    --bgColor: rgba(245, 245, 245);
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 2rem;
    padding: 1rem;
    font-family: "Poppins", sans-serif;
    color: var(--color);
    background: var(--bgColor);
}

.roadmap__heading {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #fff;
}

/* Hero Section Styles */
.roadmap__hero {
    background: linear-gradient(rgba(0, 40, 0, 0.9), rgba(0, 40, 0, 0.9)), url('/assets/site/home/dga/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 15px;
    margin: 30px auto 50px;
    border-radius: 10px;
    text-align: center;
    color: white;
    position: relative;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roadmap__hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #90FF42;
    text-shadow: 0 0 10px rgba(144, 255, 66, 0.3);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    white-space: nowrap;
    width: 100%;
    display: flex;
    justify-content: center;
}

.roadmap__subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    color: #FBFF8C;
    margin-bottom: 2rem;
    font-weight: 600;
    white-space: nowrap;
    width: 100%;
    display: flex;
    justify-content: center;
}

.roadmap__description {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.roadmap__timeline {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 95%);
    margin-inline: auto;
    padding: 0;
}

.roadmap__timeline::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
}

.roadmap__item {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
}

.roadmap__item:not(:last-child) {
    margin-bottom: var(--row-gap);
}

.roadmap__phase {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    display: grid;
    place-content: center;
    position: relative;
    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

.roadmap__phase::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
}

.roadmap__phase::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

.roadmap__title {
    background: var(--bgColor);
    position: relative;
    padding: 1.5rem 1.5rem 1rem;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.25rem);
    overflow: hidden;
}

.roadmap__task {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #4CAF50;
}

.roadmap__item .roadmap__description {
    background: var(--bgColor);
    position: relative;
    padding: 0 1.5rem 1.5rem;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--color);
    margin: 0;
    max-width: none;
}

.roadmap__task .roadmap__subtitle {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: inherit;
    white-space: normal;
    justify-content: flex-start;
}

@media (min-width: 40rem) {
    .roadmap {
        padding: 2rem;
    }

    .roadmap__timeline {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

    .roadmap__timeline::before {
        grid-column: 2;
    }

    .roadmap__item:nth-child(odd) {
        grid-column: 1;
    }

    .roadmap__item:nth-child(even) {
        grid-column: 3;
    }

    .roadmap__item:nth-child(odd) .roadmap__phase {
        border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }

    .roadmap__item:nth-child(odd) .roadmap__phase::before {
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        left: 0;
    }

    .roadmap__item:nth-child(odd) .roadmap__phase::after {
        transform: translate(-50%, -50%);
        left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }
}

/* Footer Section Styles */
.roadmap__footer {
    background: linear-gradient(rgba(0, 40, 0, 0.9), rgba(0, 40, 0, 0.9)), url('/assets/site/home/dga/hero-bg.jpg');
    background-size: cover;
    background-position: bottom center;
    padding: 40px 15px;
    margin: 50px auto 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    position: relative;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roadmap__footer-title {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 700;
    color: #90FF42;
    text-shadow: 0 0 10px rgba(144, 255, 66, 0.3);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.roadmap__footer-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: #FBFF8C;
    margin-bottom: 2rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
}

.roadmap__footer-description {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: white;
}

.roadmap__footer-button {
    display: inline-block;
    background: linear-gradient(to right, #90FF42, #4CAF50);
    color: #000;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(144, 255, 66, 0.4);
    transition: all 0.3s ease;
}

.roadmap__footer-button:hover {
    background: linear-gradient(to right, #4CAF50, #90FF42);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(144, 255, 66, 0.6);
    color: #000;
}

@media (max-width: 768px) {
    .roadmap__footer-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
