@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
:root{
    --theme-foreground-color-2: rgb(241, 67, 67);
    --theme-color-purple: #ad81d5;
    --theme-color-background: #502000;
    --theme-color-text-light: wheat;
    --theme-color-background-light: #603000;
}
*:not(text, tspan){
    box-sizing: border-box;
    line-height: 1.6em;
    letter-spacing: .04rem;
    font-size: small;
}
body{
    position: relative;
    width: 100%;
    margin: 0;
    background-color: rgb(255, 255, 255);
    color: var(--theme-color-text-light);
}

#loader{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: -75px;
    width: 100px;
    height: 100px;
    z-index: 1;
    border: 16px solid rgb(200, 200, 200);
    border-top: 16px solid rgb(229, 100, 50);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    -webkit-animation: spin 2s linear infinite;
}
@-webkit-keyframes spin{
    from{
        transform: rotate(0deg);
    }50%{border-top: 16px solid blue}
    to{
        transform: rotate(360deg);
        border-top: 16px solid rgb(229, 100, 50);
    }
}
@keyframes spin{
    from{
        transform: rotate(0deg);
    }
    50%{border-top: 16px solid blue;}
    to{
        transform: rotate(360deg);
        border-top: 16px solid rgb(229, 100, 50);
    }
}


.foreground-color-2{
    color: var(--theme-foreground-color-2)
}

svg.intro {
    max-width: 1000px;
}
.text {
    font-family: Arial, sans-serif;
    font-size: 20px;
    display: block;
    font-weight: bold;
}
.text-stroke {
    fill: none;
    stroke: transparent;
    stroke-width: 2.8px;
    stroke-dashoffset: -100;
    stroke-dasharray: 900;
    stroke-linecap: butt;
    stroke-linejoin: round;
    animation: dash 2.5s ease-in-out forwards;
}
.text-stroke:nth-child(2) {
    animation-delay: .3s;
}
.text-stroke-2 {
    stroke: white;
    animation-delay: 1.2s;
}
.text-stroke-2.colored {
    stroke: var(--theme-foreground-color-2);
    animation-delay: 1.5s;
}
@keyframes dash {
    100% {
        stroke-dashoffset: 0;
    }
}
        

header{
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    width: 100%;
    max-height: 3.5rem;
    min-height: 2.5rem;
    z-index: 2;
    background-color: var(--theme-color-background);
    overflow: hidden;
    color: white;
}
#app-icon{grid-column: 1/4; max-width: 14rem;}
nav{display: flex; align-items: center; justify-content: flex-end; transition-duration: 0.9s; overflow: hidden; grid-column: 5/9;}
nav>ul.menubar{
    position: relative;
    right: 0;
    display: flex;
    list-style: none;
    margin: 0;
    height: 100%;
    padding: 0;
    font-size: small;
    transition-duration: 0.9s;
    overflow: auto;
}

li.menu{
    margin: auto 0;
    padding: 10px 0.25rem;
}
nav a{display: inline-block; white-space: nowrap; text-decoration: none; color: rgb(252, 252, 252);}
nav ul li:hover{background-color: rgba(136, 19, 19, 0.5);}

img{width: 100%}

#hero-section{
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    background-color: black;
    width: 100%;
    min-height: 50vh;
    /*background: url('/images/hero_image_background_demo.webp') no-repeat;
    /*-webkit-mask: linear-gradient(90deg, #ffffff, #2e2e2e);*/
    background-size: cover;
    color: white;
}
.transparency-mask{position: absolute; top:0; width: 100%; height: 100%; background: linear-gradient(105deg, #632e1e 20%, var(--theme-color-background-light) 90%); backdrop-filter: blur(4px); overflow: hidden;}
#hero-section h1>span, #hero-section button{color:var(--theme-foreground-color-2)}
#hero-section-image-container{position: absolute;}
#hero-section #hero-img-container{overflow: hidden; max-width: 300px; width: 100%; height: 80vh; background-image: url(/images/hero-img.webp); background-size: contain; background-repeat: no-repeat; opacity: 0; transition: opacity, max-width 1s 0s;}
.flex-container-1{position: relative; display: flex; justify-content: space-between; width: 100%; margin: 1rem;}
#intro-2{opacity: 0; transition: opacity 0.6s 3s;}
#explore{opacity: 0; transition: opacity 0.6s 3.8s;}
/*#hero-section::after{background: url(Icons.svg#after-curve-opp) no-repeat; background-size: contain; mask: url(images/header_image.webp); -webkit-mask: url(images/header_image.webp);
    background-position: left; position: absolute; bottom: 0; width: 100%; min-height: 6rem; content: "";}*/

#breakdown-section{background-color: var(--theme-color-background); padding: 1rem;}
.flex-container-2{
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem; width: 100%;
    #proficiency > div {
        position: sticky;
        top: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 1rem;
        max-height: 400px;
        overflow: auto;
        scrollbar-color: var(--theme-color-purple) var(--theme-color-background-light);
        scrollbar-width: none;
        
    
        .flip-box {
            position: relative;
            display: flex;
            background: var(--theme-color-background-light);
            border-radius: 1rem;
            padding: 1rem;
            width: 12rem;
            height: 12rem;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            perspective: 200px;

            summary {
                list-style: none;
                display: block; /* Required for centering and structure */
                img{
                    width: 2rem; height: 2rem; margin-right: 0.5rem;
                }
            }
            summary::-webkit-details-marker {
                display: none;
            }
            .flip-front, .flip-back {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                backface-visibility: hidden;
                transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
                border-radius: 12px;
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
                display: flex;
                align-items: center;
                padding: 1rem;
                box-sizing: border-box;
            }
            .flip-front {
                background: linear-gradient(135deg, #667eea 0%, var(--theme-color-purple) 100%);
                color: white;
                font-weight: bold;
                font-size: 1.2rem;
                text-align: center;
                transform: rotateY(0deg);
                z-index: 2;
            }
              
            /* Back Side (Description) Specifics */
            .flip-back {
                background-color: #f8f9fa;
                color: #333;
                border: 2px solid #764ba2;
                transform: rotateY(-180deg);
                font-size: xx-small;
            }
              
        }
        
        .flip-box[open] .flip-front {
            transform: rotateY(180deg);
        }
        
        .flip-box[open] .flip-back {
            transform: rotateY(0deg);            
            scrollbar-width: thin;
            -webkit-scrollbar-width: none;
            overflow: auto;
        }
        
        /* Crucial Fix: Details element natively expands height 
        to fit content when open. We force it to stay the same 
        block size so the animation looks like a solid card flip.
        */
        .flip-box[open] {
            height: 12rem; 
        }
    }
}
.flex-container-2>div{width: calc(100% - 1rem); min-width: 300px;}
.flex-container-2>#about-me-text > p {opacity: 0; transition: opacity 0.6s;}

#projects-section{
    opacity: 1;
    background: linear-gradient(135deg, #00000055 25%, transparent 25%) -10px 0/ 20px 20px, 
                linear-gradient(225deg, var(--theme-color-background-light) 0%, transparent 0%) -10px 0/20px, 
                linear-gradient(315deg, #0005 25%, transparent 25%) 0px 0/ 20px 20px, 
                linear-gradient(45deg, var(--theme-color-background-light) 25%, #420 25%) 0px 0/ 20px 20px;
    background-color: var(--theme-color-background-light);
    padding: 1rem;
    overflow: hidden;
}
.tab-pane{
    display: flex;
    padding: 0.5rem;
    .tab {
        padding: 0.5rem;
        margin: 0.5rem;
        border-radius: 1rem / 1rem;
        color: var(--theme-color-background-light);
        background-color: var(--theme-color-text-light);
        border: none;
    }
    .active{
        border: 3px solid var(--theme-foreground-color-2)
    }
}
.card-container{
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem;
    row-gap: 0.5rem;
    justify-content: space-around;
}
.card{
    display: flex; 
    flex-direction: column; 
    min-width: 8rem; 
    width: 12rem; 
    max-width: 15rem; 
    padding: 0.5rem; 
    border-radius: 1rem; 
    background: var(--theme-color-background);
    opacity: 0;
    transform: matrix(1, 0, 0, 0.1, 0, 0);
    transition: transform .6s ease-in-out, opacity .4s;
}
.card>a, .card>button{text-decoration: none; overflow: hidden; color: var(--theme-color-text-light)}
.card>button{background-color: transparent;
    outline: none;
    border: none; cursor: pointer; padding: 0; margin: 0;}
.card:hover{box-shadow: 0 0 2rem rgb(66, 24, 24); transition: 0.3s; border: none;}
.card .image-case{overflow: hidden; max-height: 12rem; height: 12rem; border-radius: 1rem / 1rem; background: white; display: flex; align-items: center;}
.project-tag-container {font-size: small; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 0.1rem;}
.project-tag { background-color: var(--theme-color-text-light); color: var(--theme-color-background-light); padding: 0.25rem 0.25rem; border-radius: 1rem; width: fit-content; box-shadow: 0 0 1rem #333;}

#quotes-section{
    overflow: auto;
    background-color: var(--theme-color-background);
}
.quote-container{
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem;
    row-gap: 0.5rem;
    justify-content: space-around;
}
.quote-container > cite {max-width: 12rem; border: 1px solid; border-radius: 1rem; padding: 0.5rem; background: linear-gradient(45deg, black, transparent);}

footer {
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(0, black, var(--theme-color-background));
    color: white;
}
footer::before{background: linear-gradient(#420, 20% #fff); position: absolute; bottom: 100%; width: 100%; min-height: 6rem; content: "";}
footer > .footer-row{display: flex; justify-content: space-between; flex-wrap: wrap; padding: 0 1rem; width: 100%; gap: 1rem;}
.footer-contact, .footer-link, .footer-newsletter {
    position: relative;
    margin-bottom: 1rem;
    color: #999999;
    max-width: 40rem;
}
.footer-link a {
    display: block;
    margin-bottom: 10px;
    color: #999999;
    transition: .3s;
    text-decoration: none;
    background-color: transparent;
}
.footer-link a::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}
.footer-link a:hover {
    color: var(--theme-color-purple);
    letter-spacing: 1px;
}
.footer-contact h2, .footer-link h2, .footer-newsletter h2{
    position: relative;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-color-purple);
}
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.footer-newsletter input {
    height: 60px;
    border: 2px solid var(--theme-color-background);
    border-radius: 0;
}
.center{text-align: center;}
.quote{font-family: cursive; color: var(--theme-color-text-light); font-size: 1.5rem;}
.hollowButton{padding: 1rem; outline: none; border-radius: 2rem / 2rem; border: 1px solid var(--theme-color1); color: var(--theme-foreground-color-2); cursor: pointer; transition: 0.6s; 
    text-decoration: none; display: inline-block; white-space: nowrap; text-overflow: ellipsis; border: 1px solid white;}
.filledButton{padding: 1rem; outline: none; border-radius: 2rem / 2rem; color: var(--theme-color-purple); background-color: var(--theme-color1); cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; text-overflow: ellipsis;}
.hollowButton:hover{padding: 1rem 2rem; text-overflow: unset;}

@media only screen and (min-width: 540px){
    *:not(text, tspan){font-size: revert}
    #app-icon{grid-column: 1/3; margin-left: 1rem;}
    #menu_button_svg{display: none;}
    nav>ul.menubar{width: fit-content; font-size: medium;}
    nav a{padding: 10px 12px;}
    .card{min-width: 12rem;}
}

@media only screen and (min-width: 768px){
    .flex-container-2>div{width: calc(50% - 1rem); min-width: 300px;}
}




.modal-backdrop{
    width: 100%;
    height: 100%;
    background-color: #4444;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    overflow: auto;
    text-align: center;
    backdrop-filter: blur(4px);
}
.modal-container{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: wheat;
    color: #444;
    margin: auto;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    transition: transform 0.3s ease-in-out;
}
.close-modal{
    border-radius: 1rem;
    position: absolute;
    right: 0.5rem;
    text-align: center;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.modal-icon {
    margin-right: 1rem;
    max-width: 100px;
    clip-path: circle(50%);
    background-color: white;
    padding: 0.5rem;
}
.modal-heading-container {
    display: flex;
    margin: 0.5rem;
    border-bottom: 1px solid #bbb;
}
.modal-button-container {
    display: flex;
    justify-content: space-around;
}

@view-transition {
    navigation: auto
}