:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    /* fix for Chrome */
    --test-red: #ED6F56;
    --test-yellow: #F9BD5D;
    --test-green: #51AF51;
    --test-blue: #7CC5D1;
    --test-white: #F2E9E2;
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

h1 {
    font-family: "Fira Code", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700;
    /* color: #eee; */
    white-space: nowrap;
}

h3 {
    font-size: 2em;
    /* font-size: clamp(0.25em, 0em + 1.25vw, 2em); */
}

.fira {
    font-family: "Fira Code", serif;
    font-optical-sizing: auto;
    /* font-weight: 400; */
    font-style: normal;
}

.inconsolata {
    font-family: "Inconsolata", serif;
    font-optical-sizing: auto;
    /* font-weight: 400; */
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.jetbrains-mono {
    font-family: "JetBrains Mono", serif;
    font-optical-sizing: auto;
    /* font-weight: 400; */
    font-style: normal;
}

img {
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 1rem;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }

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

body {
    /* background-image: url('../images/background/pastel.jpg');
    background-size: cover;
    background-position: center; */
    /* background-repeat: no-repeat; */
    /* background: 
        radial-gradient(at 50% 40%, rgb(255, 255, 255), transparent 80%) 0% 0% repeat scroll, 
        radial-gradient(at 50% -47%, rgb(172, 224, 249), transparent 80%) 0% 0% repeat scroll, 
        radial-gradient(at 0% 0%, rgb(232, 225, 255) 0px, transparent 32%) 0% 0% repeat scroll, 
        radial-gradient(at 100% 98%, rgb(255, 241, 235), transparent) 0% 0% repeat scroll, 
        radial-gradient(at 0px 97%, rgb(227, 235, 255), white) 0% 0% repeat scroll rgba(0, 0, 0, 0); */
    /* background: radial-gradient(at 50% 40%, rgb(0, 0, 0), transparent 80%) 0% 0% repeat scroll, radial-gradient(at 50% -47%, rgb(63, 95, 143), transparent 80%) 0% 0% repeat scroll, radial-gradient(at 0% 0%, rgb(64, 61, 83) 0px, transparent 32%) 0% 0% repeat scroll, radial-gradient(at 100% 98%, rgb(94, 71, 67), transparent) 0% 0% repeat scroll, radial-gradient(at 0px 97%, rgb(82, 87, 113), #333) 0% 0% repeat scroll rgba(0, 0, 0, 0); */
    /* animation: backgroundAnimation 10s infinite linear; */
    /* line-height: 1.6; */
    /* background-color: #f0f0f0; */
    /* background-color: #121212; */


    color: #333;
    font-family: Inter, sans-serif;
    font-weight: 500;
}



body {
    /* background: linear-gradient( to bottom, hsla(36, 31%, 90%, 0) 0%, hsla(36, 31%, 90%, .013) 9.7%, hsla(36, 31%, 90%, .049) 18.1%, hsla(36, 31%, 90%, .104) 25.5%, hsla(36, 31%, 90%, .175) 31.9%, hsla(36, 31%, 90%, .259) 37.7%, hsla(36, 31%, 90%, .352) 43%, hsla(36, 31%, 90%, .45) 47.9%, hsla(36, 31%, 90%, .55) 52.8%, hsla(36, 31%, 90%, .648) 57.7%, hsla(36, 31%, 90%, .741) 63%, hsla(36, 31%, 90%, .825) 68.7%, hsla(36, 31%, 90%, .896) 75%, hsla(36, 31%, 90%, .951) 82.2%, hsla(36, 31%, 90%, .987) 90.5%, hsl(36, 31%, 90%) 100% ); */
    /* background:
        radial-gradient(at 50% 40%, rgba(255, 255, 255, 0.95), transparent 60%) 0% 0% repeat scroll,
        radial-gradient(at 50% -47%, rgba(52, 189, 235, 0.9), transparent 60%) 0% 0% repeat scroll,
        radial-gradient(at 0% 0%, rgba(209, 183, 255, 0.7) 0px, transparent 50%) 0% 0% repeat scroll,
        radial-gradient(at 100% 98%, rgba(255, 203, 133, 0.8), transparent) 0% 0% repeat scroll,
        radial-gradient(at 0px 97%, rgba(146, 192, 255, 0.8), rgba(255, 255, 255, 0.8)) 0% 0% repeat scroll rgba(0, 0, 0, 0); */
}


footer {
    background-color: #333;
    /* Footer background color */
    color: #fff;
    /* Footer text color */
    padding: .75em 1.25em;
}

footer .logo {
    height: 30px;
    width: auto;
}

.btn {
    font-weight: 500;
}

.btn:focus {
    /* border: none; */
}

.container {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.glass {
    /* rgba(124, 197, 209, 1) */
    background: rgba(255, 255, 255, .40);
    border-radius: 1.125em;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* .glass-2 {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
} */

section:not(#landing, #about) {
    padding-top: 10em;
}

section {
    /* border: 2px solid red; */
}

section:not(.landing)>h1 {
    margin-bottom: 1.125em;
    text-align: center;
}

h1>.fa-hashtag {
    vertical-align: middle;
    color: #0078D7;
    padding-right: .3em;
}

#landing h1 {
    font-size: 8em;
    /* font-size: clamp(1em, 0em + 5vw, 8em);    */
}

#landing {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "JetBrains Mono", serif;
    font-optical-sizing: auto;
    /* font-weight: 400; */
    font-style: normal;
    height: calc(100vh - 68px);
}

.greetings {
    color: #333;
    padding-bottom: 68px;
}

.intro {
    position: relative;
}

.waving {
    /* outline: 1px solid #333; */
    height: 1.125em;
    width: auto;
    vertical-align: text-top;
    padding-left: 1.125rem;
}

.code {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -42%);
    opacity: 0.3;
    width: 100%;
    font-size: 3.5em;
    /* font-size: clamp(0.438rem, 0rem + 2.188vw, 3.5rem); */
    text-align: start;
    color: #eae8e4;
    z-index: -1;
}

.rainbow {
    background: linear-gradient(125deg,
            #FF3CAC,
            #8d4fc4,
            #2B86C5);
    background-size: 200% auto;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animatedTextGradient 2s linear infinite;
}

/* background-image: linear-gradient(-225deg, #FF3CAC 0%, #562B7C 52%, #2B86C5 100%); */
@keyframes animatedTextGradient {
    from {
        -webkit-filter: hue-rotate(0deg);
    }

    to {
        -webkit-filter: hue-rotate(-360deg);
    }
}

.scroll {
    font-size: 1.5em;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -90%);
}

.scroll a {
    border: 3px solid #333;
    border-radius: 1em;
    opacity: 0.8;
    padding: 12px 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.scroll i {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}


#about {
    /* padding: 22em 0; */
    height: 100vh;
    display: grid;
    place-items: center;
}

#about h1 {
    margin-bottom: .375em;
}

#about p {
    font-size: 1.375em;
    font-weight: 500;
}

#about .about-grid {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
}

#about .intro {
    margin: auto 0;
    grid-column-start: 2;
    grid-column-end: 16;
}

#about .picture-frame {
    grid-column-start: 18;
    grid-column-end: 25;
}

#about .me {
    border-radius: 6em 12em 4em 9em;
    width: 100%;
}

#work .btn-toggle {
    width: 100%;
    background-color: var(--test-blue);
    border-radius: 1em;
    font-size: 1.125em;
}

#work .btn-toggle-body {
    /* margin-top: 1em; */
}

/* #work .skills {
    display: flex;
    flex-wrap: wrap;
} */

#work .skills>div {
    background-color: var(--test-yellow);
    border-radius: 2em;
    padding: .3em 1em;
    margin-right: .4em;
    margin-bottom: .3em;
}

#work .card-body {
    padding: 1.75em 1.5em;
}

/* PROJECTS */
.card-cta {
    /* height: 100%; */
}

/* CERTS */
.cert-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
}

.frame-holder {
    position: relative;
    display: inline-block;
    width: calc(290mm/3);
    height: calc(210mm/3);
}

.btn-frame:hover {
    transform: translateY(-1em);
    transition: all 200ms ease;
}

.cert-gallery .modal-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding: 1.125em;
}

.cert-gallery .modal-title {
    font-size: 1.8rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.cert-gallery .modal-dialog {
    max-width: 1150px;
}

.cert-gallery .modal-content {
    background-color: rgba(255, 255, 255, 0.8);
}

.cert-gallery .modal-body {
    padding-top: 0;
}

.cert-gallery .modal-body>.frame-holder {
    width: calc(290mm);
    height: calc(210mm);
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1.414 / 1;
    z-index: 3;
}

.cert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 70%;
    z-index: 2;
}

.backing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #eee;
    box-shadow: inset 0 0 2rem .5rem rgba(0, 0, 0, 0.2);
    width: 90%;
    aspect-ratio: 1.414 / 1;
    z-index: 1;
}


.cert-gallery .modal-body>.frame-holder .backing {
    box-shadow: inset 0 0 3rem 2rem rgba(0, 0, 0, 0.5);
}

.btn-frame {
    border: none;
}


.badge-gallery {
    display: flex;
    justify-content: center;
    gap: 5em;
}

.credly-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    padding: 1.125em;
    position: relative;
}

.credly-badge .fa-solid {
    position: absolute;
    right: 1em;
}

.credly-badge>img {
    padding: 0.5em;
    border-radius: 50%;
}



/* WORK */


#work li {
    line-height: 1.5;
    margin-bottom: 8px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25em;
}

.card-grid .card .card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
}

.card-grid .card .card-title .btn {
    padding: 0.2rem .8rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    /* background-color: var(--test-blue); */
}

.card-grid .card .badge {
    color: #333;
    background-color: var(--test-yellow);
    font-weight: 500;
    border-radius: 2em;

}

.card {
    background-color: transparent;
    border-radius: 1.125em;
    border: none;
}

.card-body {
    /* background-color: #fafafa; */
    border-radius: 1.125em;
}

.glass-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.5em;
}

.card-cta {
    margin-top: auto;
    text-align: center;
}

.highlight {
    /* border: 5px solid red; */
}

#projects .card>img,
#projects .card-img-top {
    /* padding: 2em; */
    width: 192px;
    height: 192px;
    margin: 0 auto;
    margin-bottom: 1em;
}

#projects .modal-dialog {
    max-width: 1000px;
}

#projects .modal-dialog img {
    max-height: 200px;
}

.modal-dialog .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem .8rem;
    border-radius: 50rem;
    color: #fff;
    background-color: #333;
}

#fluentCalendar {
    background: url("../img/assets/spiral_calendar_3d.png") no-repeat center;
    background-size: 192px;
}

.card:hover>#fluentCalendar {
    background: url("../img/assets/spiral_calendar_3d_animated.png") no-repeat center;
    transform: translateY(-1em);
    transition: all 200ms ease;
    background-size: 192px;
}

#fluentChess,
#fluentHelmet {
    width: 192px;
    height: auto;
}

.card:hover>#fluentChess,
.card:hover>#fluentHelmet {
    /* background: url("../img/assets/spiral_calendar_3d_animated.png"); */
    transform: translateY(-1em);
    transition: all 200ms ease;
}

#fluentCompass {
    background: url("../img/assets/compass_3d.png") no-repeat center;
    background-size: 192px;
}

.card:hover>#fluentCompass {
    background: url("../img/assets/compass_3d_animated.png") no-repeat center;
    transform: translateY(-1em);
    transition: all 200ms ease;
    background-size: 192px;
}

.glass-card-body:hover {
    /* transform: translateY(-.375em); */
    transition: all 200ms ease;
    border-radius: 1.125em;
    box-shadow: 0 4px 30px rgba(70, 130, 180, 0.1);
}

.fluent-compass .modal-body img {
    min-height: 350px;
}


footer {
    position: relative;
}

.git {
    margin: 0;
    font-family: "JetBrains Mono", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 1em;
    line-height: 2.25em;
    color: ivory;
}

.copy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.socials a {
    border-radius: 50%;
    background-color: #fff;
    padding: .125em;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 1em;
}

.socials i {
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 1.4em;
    color: #fff;
}

.socials a:has(img) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.socials img {
    width: 18px;
}

.btn-success {
    font-family: "JetBrains Mono", serif;
    font-optical-sizing: auto;
    /* font-weight: 400; */
    font-style: normal;
    /* letter-spacing: 1.5px; */
}


.waving-pic {}

/* .text {
    width: 60ch;
    word-wrap: break-word;
    font-size: 1.125rem;
} */


@media screen and (max-width: 1400px) {
    #landing h1 {
        font-size: 6em;
    }

    h3 {
        font-size: 1.5em;
    }

    .code {
        font-size: 2.5em;
    }
}

@media screen and (max-width: 1024px) {
    #landing h1 {
        font-size: 4em;
    }

    h3 {
        font-size: 1.25em;
    }

    .code {
        font-size: 2em;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card:hover>#fluentCalendar,
    .card:hover>#fluentCompass {
        background-size: 200px;
    }

    #projects .card>img,
    #projects .card-img-top {
        width: 200px;
        height: 200px;
        background-size: 200px;
    }

    header {
        position: static !important;
    }

    .frame-holder {
        position: relative;
        display: inline-block;
        width: calc(290mm/3);
        height: calc(210mm/3);
    }

    .modal-title {
        font-size: 1.5em;
    }

    .modal-content {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .cert-gallery .modal-body>.frame-holder {
        width: calc(290mm/4);
        height: calc(210mm/4);
        aspect-ratio: 1.414 / 1;
    }
}

@media screen and (max-width: 768px) {
    #landing h1 {
        font-size: 3em;
    }

    h3 {
        font-size: 1em;
    }

    .code {
        font-size: 1.5em;
    }

    .card-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    #fluentCalendar,
    #fluentChess,
    #fluentCompass,
    #fluentHelmet {
        display: none;
    }

    .card-cta{
        text-align: end;
    }
    .cart-text {
        height: 100%;
        display: flex;
        flex: 1 1 auto;
    } 

    .git {
        display: none;
    }

    .cert-gallery {
        gap: 1em;
    }

    .frame-holder {
        position: relative;
        display: inline-block;
        width: calc(290mm/6);
        height: calc(210mm/6);
    }

    .modal-title {
        font-size: 1em;
    }

    .frame-holder+h5 {
        font-size: .75em;
    }

    .credly-badge {
        width: 200px;
        font-size: .75rem;
    }

    .badge-gallery {
        gap: 1.5em;
    }

    h5 {
        /* font-size: 1em; */
    }

    .work li {
        font-size: 0.75em;
    }

    .copy {
        display: none;
    }
}

@media screen and (max-width: 425px) {
    #landing h1 {
        font-size: 2em;
    }

    h3 {
        font-size: 1em;
    }

    .code {
        font-size: 1.5em;
    }
}