@charset "utf-8";

.container{
    position: relative;
}

/* LOADING SPINNING */
.container .loading{
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgb(48, 48, 48);
    opacity: 1;
    perspective: 1000px;
    transition: opacity .1s ease-out;
    -webkit-transition: opacity .1s ease-out;
    -ms-transition: opacity .1s ease-out;
    -o-transition: opacity .1s ease-out;
    -moz-transition: opacity .1s ease-out;
    z-index: 5;
}
.container .loading-show{
    opacity: 0;
}

.container .spinners{
    position: fixed;
    left: 45%;
    top: 38%;
    width: 2.5rem;
    height: 2.5rem;
    background-color: transparent;
    border: 2px solid rgb(255, 102, 36);
    border-radius: 50%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    animation: rotates 1.2s linear infinite;
}
.container .loading-outside{
    transform: rotateY(90deg);
}

.container .loading-between{
    transform: rotateY(180deg);
}

.container .loading-inside{
    transform: rotateX(250deg);
}

.container .loading-last{
    transform: rotateX(290deg);
}

@keyframes rotates {
    100%{
        transform: rotateY(360deg) rotateZ(360deg)
    }
}

/* HEADER */
header{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
    background-image: url("../images/cover-original.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

.different-header{
    background-image: none;
    height: auto;
}

header .top-header{
    display: flex;
    justify-content: space-between;
    background-color: rgb(48, 48, 48);
    height: 50px;
}

/* LOGO */
header .top-header .logo{
    display: flex;
    align-items: center;
    align-self: flex-start;
    height: inherit;
    padding: 0;
    outline: none;
    border: none;
    order: 1;
}

header .top-header .logo img{
    height: 45px;
}

/* LANGUAGES FLAG */
header .top-header .languages{
    align-self: center;
    order: 2;
}

header .top-header .languages img{
    width: 22px;
    margin: 0 5px;
}

/* MENU */
header .top-header .menu{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: inherit;
    order: 3;
}

header .top-header .menu .hamburger{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 35px;
    height: 35px;
    padding: 5px;
    margin: 10px 5px 5px 5px;
    border-radius: 5px;
}

.top-header .menu .hamburger .lines{
    width: 1.8rem;
    height: 3px;
    background-color: rgb(255, 102, 36);
    border-radius: 1px;
    transition: all .4s ease-in-out;
}
/* JS TOGGLE LINE CLASSES */
.top-header .menu .hamburger .disappear{
    background-color: transparent;
}
.top-header .menu .hamburger .rotateUp{
    transform: rotate(45deg);
    -webkit-margin-top: 7px;
    margin-top: 8.3px;
    top: 12px;
}
.top-header .menu .hamburger .rotateDown{
    transform: rotate(-45deg);
    -webkit-margin-top: -7px;
    margin-top: -8.3px;
    margin-bottom: 12px;
}

/* MENU NAVBAR */
.top-header .menu nav{
    position: absolute;
    top: 50px;
    transform-origin: right;
    overflow-x: hidden;
    transform: translateX(100%);
    width: 100%;
    background-color: rgba(48, 48, 48, 0.95);
    opacity: 0;
    transition: all .3s ease-in;
}
.top-header .menu .appears{
    transform: translateX(0%);
    opacity: 1;
}

.top-header .menu nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li{
    width: 25%;
}

nav ul li a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: rgb(255, 102, 36);
    padding: 5px 25%;
    font-size: .8rem;
    outline: none;
    border: none;
}

nav ul li a:hover{
    background-color: rgba(214, 214, 214, .04);
}

ul li a img{
    width: 22px;
}

/* NAME */
header .mid-header{
    align-self: center;
    margin-top: 10rem;
}

header .mid-header h2{
    font-family: 'Audiowide', cursive;
    color: rgb(214, 214, 214);
    text-shadow: 5px 1px 5px rgb(48, 48, 48),
                -5px -1px 5px rgb(48, 48, 48);
    opacity: 0;
    margin-right: 10px;
    transition: all .2s ease-in;
}
.show-heading-2{
    opacity: 1 !important;
    margin-right: 0;
}

/* ARROW DOWN BUTTON */
header .click{
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    margin-top: 6rem;
    margin-bottom: 5rem;
}

header .click span{
    color: rgb(214, 214, 214);
}

header .click .point-down{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 1.2rem;
    height: 2rem;
    text-decoration: none;
    outline: none;
    border: none;
    cursor: pointer;
}

header .click .point-down span{
    color: rgba(255, 102, 36);
    font-size: 1.5rem;
    width: 1rem;
    height: 1rem;
    transition: color .2s ease-in;
    transform: rotate(90deg);
    margin-left: 30px;
}

/* MAIN */
main{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
}

main h2{
    margin-bottom: 2rem;
}

main .sneak-peak{
    margin-bottom: 2.5rem;
    max-width: 64em;
}

/* INTERSECTION OBSERVER API */
main .sneak-peak .from-left{
    opacity: 0;
    transform: translateX(-40%);
    transition: all 200ms ease-in;
}

main .sneak-peak .from-right{
    opacity: 0;
    transform: translateX(40%);
    transition: all 400ms ease-in;
}
main .sneak-peak .fade-in{
    opacity: 1;
    transform: translateX(0);
}

main .content .from-left{
    opacity: 0;
    transform: translateX(-40%);
    transition: all 400ms ease-in;
}

main .content .from-right{
    opacity: 0;
    transform: translateX(40%);
    transition: all 200ms ease-in;
}
main .content .fade-in{
    opacity: 1;
    transform: translateX(0);
}

main .sneak-peak .pre-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

main .sneak-peak .pre-content img{
    width: 80px;
}

main .sneak-peak .pre-content h3{
    font-size: 1.2rem;
}

main .sneak-peak .pre-content p{
    text-align: center;
}

main .sneak-peak .pre-content:nth-child(1) p{
    margin-bottom: 1.5rem;
}

main .content{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

main > p{
    text-align: center;
}

main .content-projects{
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 10px 1rem 10px;
}

/* WORK / PROJECTS */
main .content-projects .grid{
    display: grid;
    /* max-width: 1835px; */
    width: 100%;
    grid-template-columns: repeat(1, minmax(200px, 1fr));
    grid-gap: 10px;
}

.content-projects .grid figure{
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 3px 1px 3px rgb(48, 48, 48),
                -3px -1px 3px rgb(48, 48, 48);
}

.grid figure .project-images-overlay{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .6);
    z-index: 2;
}

.grid figure .project-images-overlay h3{
    font-size: 1.3rem;
}

.grid figure .project-images-overlay h3,
.grid figure .project-images-overlay h4{
    text-align: center;
    color: rgb(255, 255, 255);
    margin: 10px;
}

.grid figure .project-images-overlay a{
    background-color: rgb(255, 102, 36);
    padding: 10px 20px;
    text-decoration: none;
    margin: 10px;
    border-radius: 5px;
}

.grid figure picture{
    z-index: 1;
    width: inherit;
}

.grid figure picture .img{
    width: 100%;
    height: 100%;
}

/* DEV PICTURE */
main .content .content-picture figure{
    background-color: rgb(214, 214, 214);
    width: 130px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgb(170, 170, 170),
                0px 0px 10px rgb(170, 170, 170);
}

main .content .content-picture figure img{
    width: 100%;
    border-radius: 45%;
}

/* DEV INTRO */
main .content .content-text p{
    text-align: justify;
    font-size: .95rem;
}

/* RECENT WORKS */
.container .latest-works{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 2.5rem 1.5rem;
    background-color: rgb(231, 231, 231);
}

.container .latest-works h2{
    margin: 2.5rem 0;
}

.container .latest-works p{
    text-align: center;
}

/* SLIDER - RECENT PROJECTS */
.container .latest-works .slider{
    position: relative;
    white-space: nowrap;
    user-select: none;
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
    max-width: 64em;
    height: 400px;
    background-color: rgb(172, 172, 172);
    padding: 1rem 10px;
}
.container .latest-works .slider.isOn{
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.latest-works .slider figure{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 200px;
    margin: 0 10px;
}

.slider figure .carrousel-images{
    position: relative;
    height: auto;
}

.slider figure .carrousel-images .recent-project-images-overlay{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 95.5%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 2;
    position: absolute;
}

figure .carrousel-images .recent-project-images-overlay h3,
figure .carrousel-images .recent-project-images-overlay h4{
    color: #fff;
    text-align: center;
}

figure .carrousel-images .recent-project-images-overlay a{
    background-color: rgb(255, 102, 36);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 5px;
}

.latest-works .slider figure .carrousel-images img{
    width: 100%;
    z-index: 1;
}

/* FOOTER */
footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(48, 48, 48);
    padding: 2.5rem 1.5rem;
}

footer .top-footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

footer .top-footer .left-footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* NAV LINKS */
footer .top-footer .left-footer .nav-links{
    margin: 10px 0;
}

.top-footer .left-footer .nav-links a{
    margin: 5px 10px;
    color: rgb(214, 214, 214);
}

/* DEV SOCIAL */
footer .top-footer .left-footer .social{
    padding: 10px;
}

.top-footer .left-footer .social a{
    margin: 0 5px;
}

.left-footer .social a img{
    width: 25px;
}

/* PICTURE */
footer .top-footer .right-img{
    position: relative;
    width: 100%;
}

footer .top-footer .right-img .img-overlay{
    position: absolute;
    width: 100%;
    height: 90%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 2;
}

footer .top-footer .right-img img{
    width: 100%;
    height: 100%;
    z-index: 1;
}

footer .bottom-footer{
    width: 100%;
    margin: 1.5rem 0 1rem 0;
}

footer .bottom-footer p{
    text-align: center;
    color: rgb(214, 214, 214);
    font-size: .85rem;
}
