*{
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}

.load_box{
    display: fixed;
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(35px);
    z-index: 1;
}

.loader {
    width: 30%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 20px solid #0000;
    border-right-color: #FF6464;
    position: relative;
    animation: l24 1s infinite linear;
  }
  .loader:before,
  .loader:after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: inherit;
    animation: inherit;
    animation-duration: 3s;
  }
  .loader:after {
    animation-duration: 2s;
  }
  @keyframes l24 {
    100% {transform: rotate(1turn)}
  }

body{
    overflow-x: hidden;
}

.header{
    position: fixed;
    width: 95vw;
    display: flex;
    align-items: center;
    font-weight: bold;
    height: 8vh;
    padding: 1rem;
    z-index: 1;
}

.header > .nav{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 4%;
}

.content{
    padding-top: 8vh;
}

.banner{
    display: flex;
}

.intro{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
}

.intro > .title {
    font-size: xxx-large;
    font-weight: bold;
    margin-bottom: 10px;
    transition: 1s;
    animation: 2s opacit;
}

@keyframes opacit {
    0%{opacity: 0;}
    100%{opacity: 1;}
}

.intro > .des{
    margin-top: 1rem;
    line-height: 4vh;
}

.intro > .btn { 
    display: flex;
    width: 256px;
    text-decoration: none;
    aspect-ratio: 6/1;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #FF6464;
    border: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: 0.5s;
    border-radius: 8px;
}

.btn:hover{
    background-color: #cb4d4d;
}

.profile{
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.profile img{
    border-radius: 100%;
    width: 312px;
    aspect-ratio: 1;
    animation: 1s left;
}

@keyframes left{
    0% { position: relative; left: 50vw;}
    100% {position: relative; left: 0;}
}

.box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.sub_title{
    margin-top: 1rem;
    font-size: x-large;
    font-weight: bold;
}

.list{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.list > .li{
    display: flex;
    min-width: 8rem;
    max-width: max-content;
    height: 4rem;
    padding: 1rem;
    border: none;
    border-radius: 7px;
    box-shadow: 2px 4px 16px grey;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.certificates,
.projects{
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2vw;
    flex-wrap: wrap;
    transition: 1s;
    animation: opacit 2s;
}

.projects > .card{
    display: flex;
    height: max-content;
    max-height: 15rem;
    width: 25rem;
    border: 1px solid rgb(186, 186, 186);
    border-radius: 8px;
    transition: 1s;
}

.projects > .card > .image{
    flex: 1;
    display: flex;
    border-right: 1px solid rgb(195, 195, 195);
}

.projects > .card > .image > img{
    width: 100%;
    border-radius: 8px 0 0 8px;
    object-fit: cover;
}

.projects > .card > .info{
    flex: 2;
    padding: 1rem;
}

.links{
    display: flex;
    gap: 1vw;
    margin-top: 10px;
}

.links > div{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 2px;
    border: 1px solid rgb(173, 173, 173);
    border-radius: 8px;
}

.certificates > .card{
    display: flex;
    height: max-content;
    width: 20rem;
    border: 1px solid rgb(186, 186, 186);
    border-radius: 8px;
    flex-direction: column;
    transition: 1s;
}

.certificates >.card > .image{
    flex: 1;
    display: flex;
    border-bottom: 1px solid rgb(195, 195, 195);
}

.certificates >.card > .image > img{
    width: 100%;
    /* height: 22vh; */
    border-radius: 8px 8px 0 0;
    object-fit: fill;
}

.certificates >.card .info{
    flex: 1;
    padding: 1rem;
}

.card > .info .title{
    font-size: large;
    font-weight: bold;
    margin-bottom: 1rem;
}

.card > .info > .des{
    font-size: small;
}

.card:hover{
    box-shadow: 2px 4px 32px grey;
}

.footer{
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: solid 1px;
    margin-top: 1rem;
}

.footer > .title{
    font-size: x-large;
    font-weight: bold;
}

.social{
    display: flex;
}

svg{
    transition: 1s;
}

.social svg{
    margin: 1rem;
    transition: 1s;
}

.github:hover{
    fill: #2b3137;
}

.linkedin:hover{
    fill: #0077B5;
}

.facebook:hover{
    fill: #316FF6;
}

.x:hover{
    fill: white;
    background-color: black;
    border-radius: 50px;
    border: none;
}

.instagram:hover{
    background: linear-gradient(to bottom right,#e95950,#bc2a8d,#fccc63,#fbad50,#feda75,#d62976,#962fbf,#4f5bd5);
    border-radius: 8px;
}


.menu{
    display: none;
}



@media screen and (max-width: 800px) {
    .header{
        backdrop-filter: blur(15px);
        background-color: unset;
        justify-content: flex-end;
        display: unset;
    }

    .header > .nav{
        display: none;
        position: relative;
        top: 30%;
        border: 1px solid grey;
        width: max-content;
        border-radius: 13px;
        box-shadow: 2px 2px 8px grey;
        transition: 1s;
        animation: appear 1s;
    }

    .header > .nav > div{
        border-bottom: 1px solid;
        padding-bottom: 10px;
    }

    .header > .nav > div > a{
        text-decoration: none;
        color: black;
    }

    @keyframes appear {
        0%{ opacity: 0; transform: translate(0, -20px);}
        100%{ opacity: 1; width: max-content; }      
    }

    .header > .nav > div{
        margin: 1rem;
    }
    
    .menu{
        width: 32px;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .bar1,.bar2,.bar3{
        width: 32px;
        border-radius: 13px;
        background: black;
        margin: 5px 0;
        border: 1px solid;
        transition: 1s;
    }

    .change .bar1{
        transform: translate(0, 12px) rotate(-45deg);
    }

    .change .bar2{
        opacity: 0;
    }

    .change .bar3{
        transform: translate(0, -12px) rotate(45deg);
    }

    .intro > .des{
        line-height: 3vh;
    }

    .banner{
        flex-direction: column;
    }

    .profile{
        order: 1;
    }

    .content{
        padding-top: 15vh;
    }

    .intro{
        order: 2;
        text-align: center;
        align-items: center;
        padding: 1rem;
    }
    
    .intro > .title{
        font-size: x-large;
    }

    .profile img{
        width: 200px;
        animation: none;
    }

    .intro > .btn{
        margin: 1rem;
    }

    /* .certificates,
    .projects,
    .list{
        flex-wrap: nowrap;
        flex-direction: column;
    } */

    /* .certificates > .card{
        width: 80vw;
        height: max-content;
    } */

    .projects>.card{
        width: 80vw;
        height: max-content;
    }

    .projects > .card{
        width: 80vw;
    }

    .card{
        animation: none;
        transform: scale(0.5);
        z-index: 0;
        transition: transform 0.3 ease-in-out;
    }
    
    .active{
        animation: pop 1s ease forwards;
    }
    
    @keyframes pop {
        0%{transform: scale(0.5);}
        100%{transform: scale(1);}
    }

    @media (prefers-color-scheme: dark){
        body{
            background-color: black;
            color: white;
        }
    
        
        .github{
            fill: #2b3137;
        }
    
        .linkedin{
            fill: #0077B5;
        }
    
        .facebook{
            fill: #316FF6;
        }
    
        .x{
            fill: white;
            background-color: black;
            border-radius: 50px;
            border: none;
        }
    
        .instagram{
            background: linear-gradient(to bottom right,#e95950,#bc2a8d,#fccc63,#fbad50,#feda75,#d62976,#962fbf,#4f5bd5);
            border-radius: 8px;
        }
    
        .header > .nav{
            color: white;
        }
    
        .header{
            backdrop-filter: blur(15px);
        }
    
        .header > .nav > div > a{
            color: white;
        }
    
        .list > .li{
            box-shadow: 2px 2px 2px 2px grey;
        }
    
        #flask{
            fill: #ffffff;
        }
    
        #express{
            fill: #ffffff;
        }
    }
    
    
    @media (prefers-color-scheme: light){
        body{
            background-color: white;
            color: black;
        }
    }

}

@media (prefers-color-scheme: dark){
    body{
        background-color: black;
        color: white;
    }

    
    .github{
        fill: #2b3137;
    }

    .linkedin{
        fill: #0077B5;
    }

    .facebook{
        fill: #316FF6;
    }

    .x{
        fill: white;
        background-color: black;
        border-radius: 50px;
        border: none;
    }

    .instagram{
        background: linear-gradient(to bottom right,#e95950,#bc2a8d,#fccc63,#fbad50,#feda75,#d62976,#962fbf,#4f5bd5);
        border-radius: 8px;
    }

    .header > .nav{
        color: white;
    }

    .header{
        backdrop-filter: blur(15px);
    }

    .header > .nav > div > a{
        color: white;
    }

    .list > .li{
        box-shadow: 2px 2px 2px 2px grey;
    }

    #flask{
        fill: #ffffff;
    }

    #express{
        fill: #ffffff;
    }
}


@media (prefers-color-scheme: light){
    body{
        background-color: white;
        color: black;
    }
}