@import url(./assets/fontKittgl/stylesheet.css);

:root{
    --primary: #6f3f9e;
    --secondary: #874600;
    --cent: #006d6d;
    --background: #fff;
    --alternative-color: rgb(175, 175, 175);
}


html{
    scroll-behavior: smooth;
}
body{
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}

section:not(:last-of-type){
    font-family: 'tgl_0-16regular';
    margin-block: 10rem;
    padding-block: 3rem;
    scroll-margin-block-start: 3.75rem;
}

span.logo{
    width: min(60px, 15%);
    aspect-ratio: 1;
    background: url(images/logo.webp) top center no-repeat;
    background-size: cover;
    margin-right: 3rem;
}


.background{
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(to left, #8484844d, #848484b3), url(images/programer-desk-office.webp);
    background: -moz-linear-gradient(to left, #8484844d, #848484b3), url(images/programer-desk-office.webp);
    background-size: cover;
    width: 100vw;
    height: 100%;
    z-index: -999;
}


#home{
    color: var(--primary);
    margin-top: 3.5rem;
}

#home .name{
    position: relative;
    isolation: isolate;
    text-shadow: 1px 1px 6px var(--primary);
}

#home .text{
    margin-inline: 4rem;
}
.name::after{
    position: absolute;
    content: "";
    height: 3pt;
    width: 90%;
    top: 107%;
    left: 50%;
    margin-left: calc(90% / -2);
    background-color: var(--primary);
}
.nick-name{
    white-space: nowrap;
}
img{
    width: 100%;
    height: inherit;
    margin-top: 4%;
}

.objective{
    color: var(--primary);
    text-transform: uppercase;
}
.objective p{
    /* width: 45ch; */
    margin-block-start: 7%;

}
@media(min-width: 320px) and (max-width: 480px){
    .nick-name{
        display: block;
    }
    #home .text{
        margin: 2rem 0;
    }
    .objective p{
        width: 26ch;
    }
}
@media(min-width: 481px) and (max-width: 768px){
    #home .text{
        margin: 2rem 0;
    }
    .objective p{
        width: 35ch;
    }
}

.objective ul{
    list-style: none;
}

.tools p{
    width: 40ch;
    font-size: 1.4rem;
}

@media(min-width: 320px) and (max-width: 767px){
    .tools img{
        margin-bottom: 1.2rem;
    }
    .tools p{
        font-size: 1rem;
        text-align: justify;
    }
}
.media__list li + li{
    margin-left: 1rem;
}

.media__list li a{
    color: var(--background);
}

.project{
    position: relative;
    transition: opacity 500ms ease-in;
}


.project .code-link, .project .site-link{
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    font-size: 3rem;
    text-align: center;
    padding-block: 35%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 250ms ease-in;
}

.project .code-link{
    left: 0;
}

.project .site-link{
    left: 50%;
}
.card{
    height: 100%;
}
.card:hover .code-link, .card:hover .site-link{
    opacity: 1;
}

.nav-link i{
    transition: all 250ms;
}

footer .nav-link:hover i{
    transform: scale(125%);
    color: var(--cent);
}
/* 
.copyright{
    margin-top: 3%;
} */