
@font-face {
    font-family: "Playpen Sans";
    src: url("./font/PlaypenSans-VariableFont_wght.ttf");
}


@font-face {
    font-family: "SourceSans";
    src: url("./font/SourceSans3-VariableFont_wght.ttf");
}

@keyframes strokeWidthAnim {
    0%   {-webkit-text-stroke-width: 2px;}
    25%  {-webkit-text-stroke-width: 1px;}
    50%  {-webkit-text-stroke-width: 0.5px;}
    100% {-webkit-text-stroke-width: 0px;}
}



:root {
    --mouse-x: 0px;
    --mouse-y: 0px;
    --gradient-size: 100px;
    --gradient-color: rgb(0, 255, 0);
  }

.glow{
    position: fixed;
    inset: 0;
    z-index: -1;
    filter: blur(70px);
    background: radial-gradient(var(--gradient-size) at var(--mouse-x) var(--mouse-y), var(--gradient-color), transparent);
    transition: --gradient-size 1s;
}

body:not(.dark) .glow {
    filter: blur(80px);
}

@media (max-width: 768px){
    .glow{
        background: none;
    }
}

.hidden {
    display: none;
    
}

body{
    overflow: hidden;
    font-family: "SourceSans";
    background-color: black;
    background: linear-gradient(135deg, rgb(30, 130, 30), #008);
    background-size: cover;
    height: 100vh;
    background-size: 400% 400%;
    background-position: 10% 50%;

}

body.dark{
    background: none;
    background-color: rgb(20, 20, 20);
}

.top-row{
    transform: translateY(-350%);
    transition: transform 700ms ease-in-out;
    display: flex;
    flex-direction: row;
    padding: 40px 70px;
    gap: 40px;
    align-items: center;
    justify-content: center;
    align-content: center;
    justify-items: center;    
}
.top-row.active{
    transform: translateY(0%);
}

.icon img:hover,
.apps:hover,
.socials:hover,
.lang:hover,
.darkmode:hover,
.email-link:hover,
.github-link:hover{
    transform: scale(1.2);
    cursor: pointer;
}

.icon img,
.apps,
.socials,
.lang,
.darkmode,
.email-link,
.github-link{
    transition: transform 200ms ease-in-out;
}

.contact{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background-color: rgba(10, 20, 10, 0.2);
    border-radius: 50px;
    padding: 5px 10px 1px 10px;
    border: solid rgba(128, 255, 128, 0.2) 1px;
}

.email-link{
    margin-top: 3px;
}

.icon{
    display: flex;
    
}
.flex-grow{
    flex-grow: 1;
}

.icon img{
    border-radius: 30%;
    height: 48px;
}

.lang{
    width: 32px;
    height: 32px;
    line-height: 32px;
    vertical-align: middle;
    overflow: hidden;
    font-size: 1.5em;
    text-align: center;
    font-weight: 600;
    color: #e8eaed;
}

.darkmode .light{
    display: initial;
}

.darkmode .dark{
    display: none;
}

.darkmode.dark .light{
    display: none;
}

.darkmode.dark .dark{
    display: initial;
}

.socials svg:not(.active){
    display: none;
}

.apps svg:not(.active){
    display: none;
}


.intro-wrapper{
    display: initial;
    position: fixed;
    inset: 0px;
    width: fit-content;
    height: fit-content;
    max-width: 100vw;
    max-height: 100dvh;
    margin: auto;
    text-align: center;
    transition: transform 500ms ease-in-out;
}

.intro-wrapper.hidden{
    max-height: 0%;
    overflow: hidden;
    transform: scale(0);
    
}

.intro-wrapper:not(hidden){
    transform: scale(1);
    
}



.intro-text div{
    display: inline;
}

.intro-text{
    font-family: "Playpen Sans";
    line-height: 110%;
    font-size: 1.9em;
    color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: lime;
}

.info-text{
    font-family: "Playpen Sans";
    margin-top: -50px;
    margin-bottom: 20px;
    color: white;
    font-size: 1.06em;
    
}

.real-name{
    font-size: 1.5em;
}
.real-name:hover
{
    cursor: default;
}

.username:hover, .real-name.hover:hover{
    color: rgb(0, 255, 150);
    animation: strokeWidthAnim 300ms;
    -webkit-text-stroke-width: 0px;
    cursor: default;
}

.username, .real-name{
    -webkit-text-stroke-color: rgb(0, 255, 150);
    transition: color 250ms;
}


.links{
    display: flex;
    justify-content: center;
    gap: 150px;
    
}

.link {
    position: relative;
    font-size: 1.7em;
    color: white;
    text-decoration: none;
    transition: color 300ms;
}

.link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0%; 
    background-color: white;
    transition: width 300ms ease;
}

.link:hover::after {
    width: 100%;
}

.link:hover {
    color: white; 
}

@media (max-width: 768px) {
    .top-row{
        gap: 10px;
        margin: 20px 10px;
    }

    .links{
        gap: 50px;
    }

    .intro-text{
        font-size: 1.6em;
        margin-bottom: 1.5em;
        -webkit-text-stroke-width: 2px;
    }
    .info-text{
        font-size: 0.9em;
    }

    .link {
        font-size: 1.4em;
    }
}


/*
    Socials
*/

.socials-wrapper{
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0px;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 30vh 10vw;
    text-align: center;

    gap: 20px;
}

.social-link{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    font-size: 3em;
    text-decoration: none;
    color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: lime;
    width: fit-content;
    gap: 20px;

    transition: gap 300ms ease-in-out, color 300ms ease-in-out, font-size 300ms ease-in-out;
}






.social-link:hover {
    font-size: 3.5em;
    gap: 50px;
}

.social-link img{
    height: 1.1em;

}

.socials-wrapper.hidden{
    display: flex;
    overflow: hidden;
    transform: translateY(-100%); 
    opacity: 0;
    visibility: hidden; 
    

}

.socials-wrapper:not(.hidden){
    overflow: hidden;
    transform: translateY(0); 
    opacity: 1;
    visibility: visible; 
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}


/* 
    Apps
*/


.apps-wrapper{
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0px;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 30vh 10vw;
    text-align: center;

    gap: 20px;
}

.app-link{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    font-size: 4em;
    text-decoration: none;
    color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: lime;
    width: fit-content;
    gap: 20px;
    transition: margin-left 300ms ease-in-out, font-size 400ms ease-in-out;
}


.app-link:hover {
    margin-left: 20px;
    font-size: 4.5em;
}

.apps-wrapper.hidden{
    overflow: hidden;
    transform: translateX(-50%); 
    opacity: 0;
    visibility: hidden; 
    

}

.apps-wrapper:not(.hidden) {
    overflow: hidden;
    transform: translateX(0%); 
    opacity: 1;
    visibility: visible; 
    transition: transform 500ms ease-in-out;
}


/*
    Project Page
*/

body:has(.projects-wrapper){
    overflow: auto;
}

.projects-wrapper{
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: auto;
    padding-bottom: 100px;
}

.container{
    max-height: 340px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    justify-content: center;
    padding: 20px 20px;
    border-radius: 20px;
    width: 770px;
    
}

.project-hidden{
    opacity: 0;
}


.container.shown{
    opacity: 1;
    animation: container-load 1s ease-out;
}


@keyframes container-load{
    0%{
        opacity: 0;
        transform: scale(0);
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
}

.project-page-title{
    padding-top: 50px;
    color: lime;
    font-weight: 600;
    font-size: 4em;
    line-height: 10px;
    animation: page-title-load 1s;
}

@keyframes page-title-load{
    0%{
        opacity: 0;
        transform: translateY(-200px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

.project-page-description{
    color: white;
    margin-bottom: 40px;
    font-weight: 500;
    animation: container-load 1s;
}

.project-category-title{
    color: white;
    font-weight: 300;
    animation: container-load 1s; 
}

.card{
    position: relative;
    width: 80px;
    border-radius: .75rem;
    background-size: cover;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 10px;
    display: flex;
    align-items: flex-start;
    transition: 0.6s cubic-bezier(0.28,-0.03,0,0.99);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
    z-index: 1;

}
.card.project-hidden{
    opacity: 0;
}

.card.shown{
    opacity: 1;
    animation: container-load 1s; 
}

.card > .row{
    color: white;
    display: flex;
    flex-wrap: nowrap;
}

.card-image{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 700px;
    
    z-index: -1;
    filter: blur(5px);
   
    
}

.project-title{
    margin-left: 5%;
    text-transform: uppercase;
    line-height: 40px;
    transition: all 0.3s ease;
    line-height: 25px;
    align-self: center;
    font-size: 0.9em;
    font-weight: 900;
    user-select: none;
    text-align: center;
}

.icon-links{
    gap: 10px;
    display: flex;
    width: 96%;
    top: 0;
    left: 0;
    padding-top: 20px;
    height: 50px;
    position: absolute;
    justify-content: flex-end;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}

.icon-links svg{
    padding: 5px;
    transition: scale 0.3s ease-in-out;
}

.icon-links svg:hover{
    scale: 1.1;
}

.card > .row > .description{
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 300px;
    width: 500px;
    opacity: 0;
    transform: translateY(-30px);
    transition-delay: 0.3s;
    transition: all 0.3s ease;
    color: white;
    
}

.card > .row > .description > h4,
.card > .row > .description > p{
    color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;

}
.card > .row > .description > p{
    display: inline-block;
}

.card > .row > .description > p > a{
    display: inline-block;
    text-decoration: none;
    color: lime;
    
}

.container input{
    display: none;
}


.container input:checked + label{
    width: 100%;
}



.container input:checked + .card .row .project-title{
    opacity: 0;
}

.container input:checked + .card .row .icon-links{
    transform: translateY(0);
    opacity: 1;
    transition-delay: 300ms;
}



.container input:not(:checked) + .card:hover{
    scale: 1.05;
}

.container input:checked + label .description{
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.filler{
    padding-top: 100px;
    height: 100px;
}

@media (max-width: 768px) {
    body:has(.projects-wrapper){
        height: fit-content;
    }

    .container {
        flex-direction: column;
        align-items: center;
        width: 90%;
        gap: 20px;
        max-height: 500px;
    }

    .project-title{
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        font-size: 1.3em !important;
    }

    .project-title br{
        display: none;
    }

    .card {
        height: 70px;
        width: 100%;
        transition: 0.6s cubic-bezier(0.28,-0.03,0,0.99);
    }

    .card-image{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        height: auto;
    }

   

    .card > .row > .description{
        width: 100%;
        height: 100%;
        padding: 20px;
        font-size: 0.8em;
        height: 100%;

    }

    .container input:checked + label{
        width: 100%;
        height: 300px;
        transition: 0.6s cubic-bezier(0.28,-0.03,0,0.99);
    }

    .container input:checked + .card .row .project-title{
        display: none;
    }

    
}



/*
Aboutme
*/

body:has(.about-wrapper){
    overflow: auto;
    height: fit-content;
}

.about-wrapper{
    padding: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-img{
    max-height: 100%;
    max-width: 100%;
    place-self: center;
    border-radius: 40px;
}

.about-img-div{
    position: relative;
    display: grid;
    float: left;
    margin-top: 40px;
    width: 150px;
    height: 150px;
    border-radius: 40px;
    margin-right: 20px;
    transition: scale 300ms ease-in-out;

}

.about-img-div::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    width: 101%;
    height: 101%;
    z-index: 0;
    border-radius: 70px;
    filter: blur(20px);
    transition: background-color 300ms ease-in-out;
}

.about-img-div:hover{
    scale: 1.01;
}

.about-img-div:hover::before{
    background-color: lime;
}



.about-text{
    width: 60%;
    padding: 30px;
}

.about-text p{
    font-weight: 600;
    font-size: 2.5em;
    line-height: 1em;
    color: white;
    text-align: justify;
    min-height: 10em;
}

.about-text.about-hidden{
    opacity: 0;
    transition: opacity 200ms linear;
}

.about-text.shown{
    opacity: 1;
}

.typer{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    text-align: center;
    color: lime;
    visibility: hidden;
    animation: typerFlicker 1s infinite;
    border-left: solid lime 3px;
    
}

@keyframes typerFlicker {
    0% {
        visibility: visible; 
    }
    50%{
        visibility: hidden;
    }
    100% {
        visibility: hidden; 
    }
}



.about-overview{

    overflow: hidden;
    position: relative;
    min-width: 60%;
    
}

.about-overview p{
    color: white;
    font-size: 1.2em;
}

.about-overview p span{
    font-size: 1.5em;
    color: lime;
}

.resume-button{
    position: sticky;
    bottom: 10px;
    float: right;
    text-decoration: none;
    color: white;
    text-align: center;
    border-radius: 40px;
    padding: 10px;
    background-color: rgba(0, 255, 0, 0.7);
    border: solid lime 3px;
}

.about-overview h2{
    font-size: 4em;
    color: lime;
    font-weight: 900;
}

.about-overview h2.about-hidden{
    opacity: 0;
    transform: translateX(-50%);
    transition: all 0.5s ease-in-out;
}

.about-overview h2.shown{
    opacity: 1;
    transform: translateX(0);
}

.about-category h3{
    color: lime;
    font-size: 3em;
    font-weight: 700;
}

.about-category h3.about-hidden{
    opacity: 0;
    transform: translateX(-50%);
    transition: all 0.5s ease-in-out;
}

.about-category h3.shown{
    opacity: 1;
    transform: translateX(0);
}

.about-category .text{
    font-size: 2em;
    font-weight: 600;
    color: lime;
    padding-top: 1em;
    padding-left: 3em;
}

.about-category .text.about-hidden{
    opacity: 0;
    transform: translateX(-50%);
    transition: all 0.5s ease-in-out;
}

.about-category .text.shown{
    opacity: 1;
    transform: translateX(0);
}

.about-category .subInfo{
    
    font-size: 1.5em;
    font-weight: 300;
    padding-left: 4em;
    color: white;
}

.about-category .subInfo.about-hidden{
    opacity: 0;
    transform: translateY(-50%);
    transition: all 0.5s ease-in-out 0.5s;
}

.about-category .subInfo.shown{
    opacity: 1;
    transform: translateY(0);
}




@media (max-width: 768px) {
    .about-img{
        border-radius: 20px;

    }
    .about-img-div{
        margin-top: 20px;
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .about-text{
        width: 90%;
    }

    .about-text p{
        font-size: 1.2em;
    }

    .about-overview h2{
        font-size: 2.5em;
    }

    .about-category h3{
        font-size: 2em;
    }

    .about-category .text{
        font-size: 1em;
    }

    .about-category .subInfo{
        font-size: 1em;
        padding-left: 3em;
    }

    .resume-button{
        font-size: 0.7em;
    }
}


#about-category-license{
    margin-bottom: 0em;
}

