/* ROADMAP */
h1{
    margin-top: 40px;
}
#roadmap {
    max-width:100%;
    text-align: center;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin: clamp(20px, 3vh, 30px) auto clamp(-40px, -4vh, -30px);
    padding: 0 clamp(10px, 2vw, 20px);
    overflow-x: hidden;
}
#roadmap .background {
    position: absolute;
    width: clamp(75%, 80%, 85%);
    height: 70%;
    z-index: 0;
    background-color: var(--primary-light);
    border-radius: 35px;
    opacity: 0.4;
}
#roadmap .blob {
    height: clamp(160px, 15vw, 190px);
    aspect-ratio: 1/1;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 80px;
    border-top-left-radius: 30px;
    font-family: var(--font-titles);
    font-weight: 900;
    font-size: clamp(22px, 2vw, 26px);
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
#roadmap .blob:last-child {
    border-radius: 80px;
    border-bottom-right-radius: 30px;
}
#roadmap .blob img {
    width: 20px;
    display: inline;
    translate: 0 -20px;
}
#roadmap .sem * {
    font-family: var(--font-text);
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: bold;
    color: var(--text-light);
}
#roadmap .sem:nth-child(3) *, #roadmap .sem:nth-child(6) * {
    background-color: var(--primary-saturated);
}
#roadmap .sem:nth-child(4) *, #roadmap .sem:nth-child(7) * {
    background-color: var(--accent-light);
}
#roadmap .sem:nth-child(5) *, #roadmap .sem:nth-child(8) * {
    background-color: var(--grey-blue);
}
#roadmap .sem {
    width: clamp(140px, 12vw, 180px);
    display: flex;
    flex-flow: column nowrap;
    gap: clamp(15px, 1.5vw, 20px);
    align-items: center;
    margin: 40px 0px;
    font-size: 15px;
    font-weight: 700;
    position: relative;
}
/* semester hover tooltip */
#roadmap .sem::before {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 115%;
    background-color: var(--grey-blue);
    box-shadow: 0 0 10px 15px var(--grey-blue);
    color: var(--text-light);
    border-radius: 20px;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 18px;
    font-family: var(--font-titles);
    font-weight: normal;
    padding-top: 10px;
    transition: opacity 0.3s ease-in-out;
}
#roadmap .sem:hover::before {
    opacity: 0.3;
}
#roadmap .sem:nth-child(3)::before {
    content: "Semester 1";
}
#roadmap .sem:nth-child(4)::before {
    content: "Semester 2";
}
#roadmap .sem:nth-child(5)::before {
    content: "Semester 3";
}
#roadmap .sem:nth-child(6)::before {
    content: "Semester 4";
}
#roadmap .sem:nth-child(7)::before {
    content: "Semester 5";
}
#roadmap .sem:nth-child(8)::before {
    content: "Semester 6";
}

#roadmap .summary {
    border: none;
    border-radius: clamp(15px, 2vw, 20px);
    width: clamp(120px, 11vw, 160px);
    padding: clamp(10px, 1.5vw, 15px) 0px;
    z-index: 1;
    transition: 0.5s;
}
#roadmap .summary.active:hover {
    translate: 0 -3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#roadmap a {
    opacity: 0.6;
    cursor: initial;
}
#roadmap a.active {
    opacity: 1;
    cursor: pointer;
}
#roadmap .dividor {
    width: calc(100% + clamp(30px, 3vw, 40px));
    height: clamp(12px, 1.2vw, 15px);
    border-radius: clamp(15px, 2vw, 20px);
    margin: 0 clamp(-15px, -1.5vw, -20px);
    z-index: -1;
}

/* blob */
#roadmap .blob {
    overflow: hidden;
    animation: morph 3.7s linear infinite, move 4s infinite ease-in-out alternate;
}
@keyframes morph {
    0% {
        border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    }
    100% {
        border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    }
    33% {
        border-radius: 72% 28% 48% 48% / 28% 28% 72% 72%;
    }
    66% {
        border-radius: 100% 56% 56% 100% / 100% 100% 56% 56%;
    }
}
@keyframes move {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(3px, -3px);
    }
    50% {
        transform: translate(-3px, 3px);
    }
    75% {
        transform: translate(3px, 3px);
    }
    100% {
        transform: translate(0, 0);
    }
}