.about-page {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

    .about-page .stripe-bg-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 80vh;
        background: #f6f9fc;
        z-index: -1;
        overflow: hidden;
        transform: skewY(-6deg);
        transform-origin: 0;
        transition: background-color 0.4s;
    }

    .about-page .background-color-change {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 80vh;
        background: #e0f2fe;
        z-index: -1;
        overflow: hidden;
        transform: skewY(-6deg);
        transform-origin: 0;
        transition: background-color 0.4s;
    }

    .about-page .background-color-change2 {
        position: absolute;
        /* Change from -250vh to 0 so it stays at the bottom of its container */
        bottom: 0;
        left: 0;
        width: 100%;
        height: 23vh;
        background: #c3d1ed;
        z-index: -2;
        /* This skew creates the top slant */
        transform: skewY(6deg);
        /* This ensures the slant starts from the bottom left corner */
        transform-origin: bottom left;
        transition: background-color 0.4s;
    }

    .about-page .bottom-bg-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Make sure this is tall enough to hold the box */
        overflow: hidden; /* THIS CUTS OFF THE SLANT */
        z-index: -2;
        pointer-events: none; /* Allows you to still click things 'through' it */
    }

/*Darkmode for background-color-changes*/
body.dark-mode .about-page .background-color-change {
    background: #0f1929;
}

body.dark-mode .about-page .background-color-change2 {
    background: #161229;
}

.about-page .moving-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    /* We make the background-size 200% so there is "room" to move it */
    background: linear-gradient( 150deg, #3dafe9 15%, #818cf8 70%, #2dd4bf 94% );
    background-size: 200% 200%;
    animation: moveGradient 10s ease infinite;
    transition: opacity 0.4s;
}

/*Darkmode for moving-gradient*/
.about-page .gradient-dark {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient( 150deg, #0c2861 15%, #3b3569 70%, #0c5a61 94% );
    background-size: 200% 200%;
    animation: moveGradient 10s ease infinite;
    transition: opacity 0.4s;
    opacity: 0;
}

body.dark-mode .about-page .moving-gradient {
    opacity: 0;
}

body.dark-mode .about-page .gradient-dark {
    opacity: 1;
}

body.dark-mode .about-page .stripe-bg-container {
    background: #0a1223;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.about-page header div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 10vh 0 12vh 21%;
    max-width: 500px;
    min-width: 300px;
    flex-shrink: 1;
}

/* change header div based on screen size (small screens) */
@media screen and (max-width: 768px) {
    .about-page header div {
        margin-left: 5%;
    }
}

    .about-page header div h1 {
        font-size: 5rem;
        text-align: left;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        color: #082050;
    }

    .about-page header div p {
        font-size: 1.25rem;
        text-align: left;
        color: #0f1d37;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

/*Darkmode for header p and h1*/
body.dark-mode .about-page header div h1 {
    color: #a2bae8;
}

body.dark-mode .about-page header div p {
    color: #899fc7;
}


.about .navbar {
    background-color: transparent;
}

.about-page h2 {
    font-size: 2.25rem;
    margin-top: 2rem;
    width: fit-content;
    margin-inline: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.about-page h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
}

.about-page p {
    margin-bottom: 5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    width: 70%;
    margin-inline: auto;
    text-align: center;
}

.pillars {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2%;
    margin-top: 2rem;
}

.pillar {
    flex: 1;
    padding: 1rem;
    padding-inline: 1%;
    border: solid 2px #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: background-color 0.4s, color 0.4s;
    max-width: min(30%, 400px);
    height: 30%;
    margin-bottom: 5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* on screens less than 1000px make pillars full width and column align */
@media screen and (max-width: 1000px) {
    .pillars {
        flex-direction: column;
        align-items: center;
    }

    .pillar {
        max-width: 80%;
    }
}

    .pillar:hover {
        transform: translateY(-1rem);
        box-shadow: 0 20px 25px rgba(0,0,0,0.1);
    }

    .pillar p {
        text-align: center;
        font-size: 1rem;
        padding: 1.5rem;
        margin-block: 5rem;
    }

/*Darkmode for pillars*/
body.dark-mode .pillar {
    background-color: #222;
    color: #eee;
    border: solid 2px #444;
}

.roadmap-container {
    max-width: 80%;
    margin-inline: auto;
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

    .roadmap-container .roadmap-circle {
        width: 23rem;
        aspect-ratio: 1 / 1; /* width / height */
        border: solid 2px #ccc;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        border-radius: 50%;
        transition: transform 0.3s ease;
        background-color: #fff;
    }

@media screen and (min-width: 769px) {
    #roadmap-circle-1, #roadmap-circle-2, #roadmap-circle-3 {
        /* Remove the 'transform' line and use 'translate' instead */
        translate: -50% 0;
    }
    
    #roadmap-circle-1 {
        position: absolute;
        top: 0;
        left: calc(50% + (23rem/2.25));
    }

    #roadmap-circle-2 {
        position: absolute;
        top: 21vh;
        left: calc(50% - (23rem/2.25));
    }

    #roadmap-circle-3 {
        position: absolute;
        top: 42vh;
        left: calc(50% + (23rem/2.25));
    }
}

@media screen and (max-width: 768px) {

    .roadmap-container {
        max-width: 80%;
        margin-inline: auto;
        position: relative;
        height: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .roadmap-container .roadmap-circle {
            width: fit-content;
            aspect-ratio: 1 / 1; /* width / height */
            border: solid 2px #ccc;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            justify-content: center;
            align-items: center;
            display: flex;
            flex-direction: column;
            border-radius: 50%;
            transition: transform 0.3s ease;
            background-color: #fff;
        }

}

.roadmap-container .roadmap-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.roadmap-container .roadmap-circle p {
    width: 300px;
    margin-block: 0.5rem;
    margin-inline: 2rem;
    flex-shrink: 1;
}

.roadmap-container .roadmap-circle h3 {
    width: 300px;
    margin-block: 0.5rem;
    margin-inline: 2rem;
    flex-shrink: 1;
}

/*Darkmode for roadmap circles*/
body.dark-mode .roadmap-container .roadmap-circle {
    background-color: #222;
    color: #eee;
    border: solid 2px #444;
}
