@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap%27)");


/* RESET */

*{
    box-sizing: border-box;
    margin: 0;
    font-family: 'Inter', sans-serif;

}

body{
    background-color: #191919;
    color: #d0d0d0;
    height: 100vh;
    max-height: 100vh;
    font-size: 17px;
    text-transform: uppercase;
}

ul,ol{
    margin: 0;
    padding: 0;
    list-style: none;
}

a{
    text-decoration: none;
    color: inherit;
    transition: color ease 0.3s;
}

a:hover{
    color: #C99D03;
}

/* CSS */
h1{
    font-size: 1rem;
    font-weight: 400;
}

h2{
    font-size: 5.88rem;
    font-weight: 900;
    color: #fff;
}

h3{
    font-size: 2.35rem;
    font-weight: 900;
    color: #fff;
}

h4{
    font-size: 1.17rem;
    font-weight: 900;
}

h6{
    text-transform: lowercase;
}

header{
    height: 120px;
    padding: 0 90px;
}

nav {
    height: 100%;
    width: 100%;
    max-width: 500px;
}

nav ul{
    height: 100%;
}

nav li{
    height: 30%;
    display: flex;
    align-items: center;

    border-bottom: 5px solid transparent;

    transition: border-bottom-color ease 0.3s;
}

.nav-current{
    border-bottom-color: #C99D03;
}

footer{
    height: 120px;
    padding: 0 90px;
}

footer > div{
    height: 100%;
    width: 100%;
}

span {
    height: 1em;
    width: 1em;
    display: inline-block;
    margin-right: 0.1em;
}
span img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

main{
    width: 100%;
    max-width: 100%;
    height: calc(100% - 240px);
    min-height: 200px;
    background-color: inherit;
    padding: 0 90px;
}

main > div{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.main-content{
    height: 100%;
    max-height: 100%;

    overflow-x: hidden;
    overflow-y: scroll;

    max-width: 100%;
    padding: 1rem 2rem;
}

/* HOME PAGE */

.home-container h2{
    word-wrap: break-word;
}

/* WORKS PAGE */
.work-card{
    width: 250px;
    height: 90px;
    text-align: center;
    margin: 45px 5%;
    border: 5px solid #404040;
    border-left: 0;
    border-right: 0;
    cursor: pointer;
}

.work-card:hover{
    color: #C99D03;
}
.work-card-current{
    border-color: #C99D03;
}

.work-card > h4{
    width: 100%;   
}


/* ABOUT PAGE */

.about-container > p{
    margin-top: 1em auto;
    width: 80%;
    min-width: 300px;
}

.about-container .about-section{
    height: 70px;
    width: 100%;
}

.skill-box{
    border: 5px solid #404040;
    border-left: 0;
    border-right: 0;
    width: 100%;
    padding: 0.5rem;
    margin-top: 3.7rem;
}

.skill-box h3{
    text-transform: uppercase;
}

.skill-box li {
    /* height: 1em; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5em;
}

.skill-box li p {
    display: inline-block;
    text-transform: capitalize;
}



/* CAREER PAGE */

.career-section{
    width: 100%;
    margin: 3rem 0;
}
.career-section > h3{
    text-align: center;
    padding: 2rem 0;
}
.career-box{
    padding: 0.5rem;
    border-top: 5px solid #404040;
    flex-wrap: nowrap !important;
}
.career-box:last-of-type{
    border-bottom: 5px solid #404040
}
.career-box > div:last-of-type{
    margin-left: 2rem;
}
.career-box > div:last-of-type > p:nth-child(2){
    margin-left: 0rem;
    text-align: center;
}
.career-box a {
    text-decoration: underline #C99D03 2px;
}


/* COMMUN CLASS */

.flex{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.f-between{
    justify-content: space-between;
}
.f-around{
    justify-content: space-around;
}
.f-center{
    justify-content: center;
}
.f-evenly{
    justify-content: space-evenly; 
}

.f-basis{
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

.border{
    border-top: 5px solid #404040;
    border-bottom: 5px solid #404040;
}
.border-v{
    border-right: 5px solid #404040;
    border-left: 5px solid #404040;
}

.no-border{
    border: 5px none none;
}


.img-text {
    height: 1em;
    width: 1em;
    display: inline-block;
    margin-right: 0.1em;
}
.img-text img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.t-lower {text-transform: none;}
.t-justify {text-align: justify;}
.t-center {text-align: center;}

/* ANIMATION */

.page-transition{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #191919;

    transition: left 1s ease, right 1s ease;
}

.t-l{
    top: 0;
    left: calc(-100% + 5px);
    border-right: #404040 solid 5px;
}
.t-r{
    top: 0;
    right: calc(-100% + 5px);
    border-left: #404040 solid 5px;
}
.t-l-a{
    left: -50%;
}
.t-r-a{
    right: -50%;
}

/* RESPONSIVE */

@media(max-width: 900px){
    header, footer, main{
        padding: 0 1rem;
    }

    h2{
        font-size: 4.9rem;
    }
}

@media(max-width: 750px){
    h2{
        font-size: 3.5rem;
    }
    .skill-box{
        justify-content: center;
    }
    .skill-box > div{
        flex-basis: 100%;
        text-align: center;
    }

}
@media(max-width: 500px){
    h2{
        font-size: 2.5rem;
    }
    .career-container p{
        font-size: .7rem;
    }
}


/* BURGER CSS ONLY */
body{
    position: relative;
}
body input, body label{
    display: none;
}

@media(max-width: 900px){
        
    body label {
        width: 30px;
        height: 30px;
        position: relative;
        z-index: 500;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }

    body label span{
        width: 30px;
        height: 3px;
        margin-bottom: 5px;
        border-radius: 1rem;
        background-color: #d0d0d0;
        transition: all 0.3s ease-out;
    }

    body input:checked ~ nav {
        transform: translateY(100%);
    }
    
    body input + label span {
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        transition: 0.5s;
    }
    body input + label span:first-child {
        top: 3px;
    }
    body input + label span:last-child {
        top: 16px;
    }
    body label:hover {
        cursor: pointer;
    }
    body input:checked + label span {
        opacity: 0;
        top: 50%;
    }
    body input:checked + label span:first-child {
        opacity: 1;
        transform: rotate(405deg);
    }
    body input:checked + label span:last-child {
        opacity: 1;
        transform: rotate(-405deg);
    }

    body input:checked + label span:nth-child(2) {
        display: none;
    }

    nav {
        display: flex;
        width: 100%;
        opacity: 1;
        height: 100vh;

        position: absolute;
        bottom: 100%;
        right: 0;
        z-index: 50;
        
        background-color: #191919;
        border-bottom: 5px solid #404040;
        transition: transform 0.7s ease-in-out;
    }
    nav > ul{
        width: 100%;
        height: 40%;
        margin-top: 6rem;

        flex-direction: column;
        align-items: center;
        justify-items: center;
        flex-wrap: nowrap !important;
    }
    nav > ul > li{
        max-height: 30px;
    }
}