#hero {
    position: relative;
    padding: calc(80px + clamp(3rem, 12vh, 7rem)) 1rem 0;
    z-index: 0;
    background-color: var(--primary);
    /* ensure it's behind any absolutely positioned children */
}

#hero::before {
    content: '';
    position: absolute;
    /* fixed from "display: absolute" */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* light overlay (or use black for darkening) */
    z-index: -1;
    pointer-events: none;
    /* optional: lets you click "through" the overlay */
}
#hero .hero-image img {
    width: 100%;
}
#hero .space {
    display: inline-block;

    width: 0.3em;
}
#hero .button-solid {
    margin-top: var(--fontSize48);
}

#hero .container {
    text-align: center;
    
}

#hero .container .text {
    margin: 0 auto;
}

.hero-contents {
    margin-bottom: var(--fontSize48)
}

@media (max-width: 63.99rem) {
    #hero .hero-image {
        display: block;
        text-align: center;
    }
    #hero .hero-image img {
        width: 70%;
        max-width: 450px;
    }
}
#about .content-frame {
    position: relative;
    width: 100%;
    min-height: 500px;
}
#about .content-box {
    position: absolute;
    opacity: 0;
    width: 100%;
    max-width: 600px;
    pointer-events: none;
    transition: opacity ease 0.3s;
}
#about .content-img {
    width: 100%;
    object-fit: cover;
}
#about .content-box.selected {
    opacity: 1;
    pointer-events: all;
    transition: opacity ease 0.3s 0.3s;
}

/* About section */
#about .content-nav .content-nav-ul {
    list-style: none;
}

#about .content-nav .content-nav-li .text {
    color: var(--muted);
    transition: color ease 0.3s;
    cursor: pointer;
}

#about .content-nav .content-nav-li.selected .text {
    color: var(--bodyTextColorWhite);
    transition: color ease 0.3s;
}
#about .content-nav .content-nav-li:hover .text {
    color: var(--bodyTextColorWhite);
}
/* ------------------ */
/* Experiences section */
/* ------------------ */
#image-track-container {
    position: relative;
    height: 45vmin;
}
#image-track {
    display: flex;
    gap: 4vmin;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}
#image-track .scroll-item {
    height: 100%;
}
#image-track .scroll-item.selected {
    filter: brightness(1);
    transition: filter 0.3s ease;
}
#image-track .scroll-item {
    filter: brightness(0.5);
    transition: filter 0.3s ease;
}
#image-track .scroll-item img {
    width: 60vmin;
    height: 45vmin;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    transition: width 0.4s ease-in-out;
    pointer-events: none;
}
#guideline {
    opacity: 1;
    transition: opacity 0.3s 0.3s ease;
    margin-bottom: 1em;
}
#guideline .svg-arrow {
    fill: var(--bodyTextColorWhite);
}
#guideline.invisible {
    opacity: 0;
}

/* achievements */
#achievements h2,
#certifications h2 {
    margin-bottom: .5em;
}
.trophy-ul {
    margin-bottom: 1rem;
}
.trophy-ul .trophy-li {
    list-style: none;
    background-color: var(--bodyTextColorWhite);
    padding: 2em;
    border-radius: 2.5em;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: .25em;
    min-height: 120px;
    margin-bottom: .75rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.trophy-ul .trophy-li:hover {
    transform: translateY(-5px);
}

.trophy-ul .trophy-li .title,
.trophy-ul .trophy-li .text {
    color: var(--headerColor);
}
#achievements .svg-arrow,
#certifications .svg-arrow {
    fill: var(--bodyTextColorWhite);
}

@media (min-width: 48rem) {
    .trophy-ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 1rem;
    }

    .trophy-ul .trophy-li {
        min-height: 150px;
        margin-bottom: 0;
    }
}

@media (min-width: 64rem) {
    #hero {
        min-height: 90vh;
        padding: calc(165px + clamp(3rem, 10vh, 7rem)) 1rem clamp(4rem, 12vh, 8rem);
        position: relative;
        overflow: hidden;
    }
    #hero .container {
        display: flex;
        align-items: center;
        height: 100%;
        text-align: left;
    }
    #hero .hero-image {
        position: absolute;
        right: 10%;
        bottom: -4px;
    }
    #hero .hero-image img {
        height: 70vh;
    }
    #about .container {
        display: flex;
    }

    #about .content-frame {
        order: -1;
        min-height: 900px;
    }

    #about .content-nav {
        width: 50%;
        text-align: right;
    }

    #about .content-nav .content-nav-li {
        margin-top: 1rem;
    }

    #about .content-nav .content-nav-ul {}
}

@media (min-width: 86rem) {
    #hero .hero-image {
        right: 20%;
    }
}

@media (max-width: 32rem) {
    #hero .button-solid {
        font-size: 1rem;
    }
}

@media (max-width: 63.99rem) {
    #about .content-nav .content-nav-ul {
        display: flex;
        gap: 1rem;
    }
    #about .content-frame .content-box img {
        width: 100%;
    }
    #image-track {
        width: 100%;
        overflow-x: auto;
    }
    #image-track-container {
        height: 60vmin;
    }

    #image-track .scroll-item img {
        width: 80vmin;
        height: 60vmin;
    }
}

@media (min-width: 32rem) {
    #about .content-frame {
        min-height: 625px;
    }
}
@media (min-width: 48rem) {
    #about .content-frame {
        min-height: 700px;
    }
}