/***********************************
 GENERAL 
***********************************/
body {
    margin: 0;
    position: relative;
}
body * {
    transition: all 300ms;
    font-family: 'Roboto', sans-serif;
}
.wrapper {
    width: calc(100% - 520px);
    margin-left: 400px;
    margin-right: 100px;
}
ul {
    padding: 0;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
    color: #1a1a1a;
}
a:hover {
    color: rgb(214, 0, 11);
}
h2.title {
    position: relative;
    margin-bottom: 46px;
    color: #555;
}
h2.title.active {
    color: black;
}
h2.title:after {
    position: absolute;
    content: '';
    top: 100%;
    left: 0;
    width: 12px;
    border-bottom: 1px solid #333;
    transition: all 700ms;
}
h2.title.active:after {
    width: 60px;
    border-bottom: 1px solid rgb(214, 0, 11);
}
h2.subtitle {
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
    font-size: 18px;
    margin: 0 0 12px 16px;
}
h2.subtitle:before {
    position: absolute;
    content: '';
    top: 50%;
    transform: translateY(-50%);
    left: -16px;
    content: '+';
    font-size: 12px;
}
h2.subtitle:after {
    position: absolute;
    content: '';
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + 8px);
    width: 72px;
    border-bottom: 2px solid #333;
}

/***********************************
 HEADER 
***********************************/
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 300ms;
}
.minimized header {
    width: 320px;
    position: fixed;
}
header .come-in-bottom {
    opacity: 0;
    visibility: hidden;
}
header > .container{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 640px);
    height: 100%;
    z-index: 1000;

    display: flex;
    flex-flow: column;
    justify-content: center;
    transition: all 300ms;
}
.minimized header > .container {
    width: 100%;
    transform: none;
    left: 0;
    top: 0;
    align-items: center;
    justify-content: flex-start;
    background-color: black;
}
header > .container > div.image {
    opacity: 0;
    visibility: hidden;
    width: 100px;
    height: 100px;
    transition: all 300ms;
    order: 1;
    overflow: hidden;
    margin-top: 0;
    position: relative;
    border-radius: 50%;
    border: 3px solid whitesmoke
}
.minimized header > .container > div.image {
    opacity: 1;
    visibility: visible;
    margin-top: 72px;
}
header > .container > div.image img {
    position: absolute;
    top: -185px;
    left: -320px;
    transform: scale(0.3);
}
header > .container > h2 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0;
    order: 2;
}
.minimized header > .container > h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-top: 32px;
}
header > .container > p {
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin: 8px 0 24px 0;
    order: 3;
}
.minimized header > .container > p {
    font-size: 14px;
    margin: 12px 0 8px 0;
    text-align: center;
}
.minimized header > .container > p span {
    width: 100%;
    display: block;
    height: 0;
    margin: 0 0 14px 0;

}
header div.credits {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
    width: 80%;
    z-index: 1001;
    text-align: center;
}

header div.credits a{ 
    color: rgb(214, 0, 11);
}
.minimized header div.credits {
    opacity: 1;
    visibility: visible;
}
#header-toggle {
    display: none;
}

.minimized #social,
#navigation{
    order: 4;
    transition: all 300ms;
}
.minimized #navigation,
#social{
    order: 5;
    transition: all 300ms;
}
#social ul,
#navigation ul{
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
}
.minimized #navigation ul {
    margin-top: 24px;
    flex-flow: column;
}
#social ul li,
#navigation ul li{
    margin-right: 8px;
    transition: all 300ms;
    padding: 8px;

    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    align-items: center;
}

#navigation ul li div,
#navigation ul li a{
    color: #ffffff99;
    transition: all 300ms;

    cursor: pointer;
}
#navigation ul li > span{
    color: #ffffff99;
    cursor: default;
    margin: 0 8px;
}
#navigation ul li.active div.link,
#navigation ul li.active a {
    color: white;
    letter-spacing: 1px;
}
#social ul li:first-child,
#navigation ul li:first-child{
    padding-left: 0;
}
#navigation ul li:last-child{
    margin-right: 0;
}
#navigation ul li div:hover,
#navigation ul li:hover a{
    color: #ffffff;
}

#social li img {
    width: 36px;
    height: 36px;
    opacity: 0.8;
    transition: all 300ms;
}
#social li:hover img {
    opacity: 1;
}

main {
    overflow: hidden;
}

/***********************************
 HOME 
***********************************/
#home {
    position: relative;
    width: 100%;
    background-image: url('img/home.webp');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
#home:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    
    background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 100%);
}


/***********************************
 ABOUT 
***********************************/
#about {
    margin-top: 40px;
    overflow: hidden;
}
#about .profile{
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: hidden;
}
#about .profile > div.image{
    width: 32.5%;
}
#about .profile > div.image img{
    width: 100%;
    height: auto;
    border-radius: 4px;
}
#about .profile > div.info{
    width: 65%;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
}
#about .profile > div.info h4{
    margin: 16px 0 0 0;
    font-size: 22px;
    font-weight: 700;
}
#about .profile > div.info p{
    margin: 16px 0 0 0;
    font-size: 16px;
    font-weight: 400;
}
#about .profile > div.info ul{
    margin: 24px 0 18px 0;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}
#about .profile > div.info li{
    width: 40%;
    margin-bottom: 4px;
}
#about .profile > div.info li:nth-child(even) {
    width: 50%;
}
#about .profile > div.info li b{
    position: relative;
    margin-right: 8px;
}
#about .profile > div.info p:last-child{
    margin: 0;
}
 #about .skills {
    overflow: scroll;
} 
#about .skills ul{
    /* width: 2000px; */
    width: 100%;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
#about .skills ul li{
    /* width: 184px; */
    width: calc(19% - 24px);
    /* margin-right: 12px; */
    margin-bottom: 1.25%;
    background-color: transparent;
    border: 1px solid #ccc;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 75px;
    padding: 0 12px;
    border-radius: 4px;
    overflow: hidden;
}
#about .skills ul li:last-child{
    margin-right: 0;
}
#about .skills ul li img{
    width: 36px;
    height: 36px;
}
#about .skills ul li p{
    color: black;
    margin-left: 12px;
}
#about .skills ul li div.amount{
    /* display: none; */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #ccc;
    z-index: -1;
    width: 800px;
    max-width: 0;
}




/***********************************
 RESUME 
***********************************/
#resume {
    margin-top: 40px;
    background-color: whitesmoke;
    padding: 32px 0 40px 0;
    overflow: hidden;
}
#resume .container {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}
#resume .container > div {
    width: 47.5%;
    padding-right: 2.5%;
}
#resume .container > div > ul {
    width: calc(100% - 24px);
    margin-left: 24px;
}
#resume .container > div > ul li{
    margin-bottom: 24px;
    position: relative;
}
#resume .container > div > ul li:before{
    position: absolute;
    content: '';
    left: -18px;
    top: 18px;
    height: calc(100% - 12px);
    border-left: 2px solid black;
}
#resume .container > div > ul li:last-child{
    margin-bottom: 0;
}
#resume .container > div > ul h4{
    position: relative;
    margin: 0;
    font-size: 20px;
}
#resume .container > div > ul h4:before{
    position: absolute;
    content: '';
    top: 4px;
    left: -25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid black;
}
#resume .container > div > ul li.completed h4:before{
    background-color: black;
}
#resume .container > div > ul li h5{
    font-weight: 400;
    font-size: 15px;
    color: #555;
    margin: 8px 0 8px 0;
}
#resume .container > div > ul li h5:first-of-type {
    margin-bottom: -6px;
}
#resume .container > div > ul li h3{
    font-weight: 300;
    font-size: 16px;
}
#resume .container > div > ul li h3 b{
    font-weight: 600;
}
#resume .container > div > ul li p:first-of-type{
    margin-bottom: -15px;
    font-weight: 600;
}
#resume .container > div > ul li p{
    font-style: italic;
    font-size: 15px;
    font-weight: 300;
}



/***********************************
 PROJECTS 
***********************************/
#projects {
    margin-top: 32px;
    overflow: hidden;
}

#projects ul {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}
#projects ul li{
    width: calc(33.333% - 60px);
    height: 100%;
    margin-right: 60px;
    position: relative;
    border-radius: 4px;
    margin-bottom: 24px;
}
#projects ul li.completed:before{
    position: absolute;
    content: '';
    top: calc(100% + 24px);
    left: 0;
    width: calc(100% - 10px);
    border-bottom: 2px solid black;
}
#projects ul li.completed:after{
    position: absolute;
    content: '';
    top: calc(100% + 15px);
    left: calc(100% - 10px);
    width: 16px;
    height: 16px;
    background-color: black;
    border: 2px solid black;
    border-radius: 50%;
}
#projects ul li.in-progress.gtg{
    margin-top: 30px;
}
#projects ul li.in-progress.gtg:before{
    position: absolute;
    content: '';
    top: -24px;
    left: 0;
    width: calc(48% + 20px);
    border-bottom: 2px solid black;
}
#projects ul li.in-progress.gtg:after{
    position: absolute;
    content: '';
    top: -34px;
    left: calc(48% + 20px);
    width: 16px;
    height: 16px;
    border: 2px solid black;
    border-radius: 50%;
}
#projects ul li div.image{
    display: block;
    width: 100%;
    position: relative;
    height: 0;
    padding: 75% 0 0 0;
    overflow: hidden;
}
#projects ul li div.image > div{
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#projects ul li div.image > div img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 300ms ease-in-out;
}
#projects ul li:hover div.image > div img {
    transform: scale(1.15);
}
#projects ul li div.content{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}
#projects ul li:hover div.content{
    background-color: rgba(255,255,255,0.75);
    opacity: 1;
    visibility: visible;
}
#projects ul li div.content h4{
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: black;
    margin: 15% 0 25px 0;
}
#projects ul li div.content p{
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: black;
    padding: 0 25px;
    margin: 0;
}



/***********************************
 MORE 
***********************************/
#more {
    padding: 32px 0 60px 0;
    background-color: whitesmoke;

    display: none;
}
#more h2{
    margin-bottom: 36px;
}
#more div.content {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
}
#more div.content > div.text {
    width: 25%;
    position: relative;
    height: 100%;
}
#more div.content > div.text > span {
    position: absolute;
    bottom: 0;
    right: -5%;
    color: #666;
    transition: all 300ms;
    cursor: pointer;
    font-size: 36px;
    font-weight: 700;
}
#more div.content > div.text > span:hover {
    color: black;
}
#more div.content > div.text > span.prev {
    margin-right: 48px;
}
#more div.content > div.images{
    width: 70%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
#more div.content > div.images > div{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
}
#more div.content > div.images picture{
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#more div.content > div.images picture img{
    width: auto;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 24px;
}
#more div.content > div.images picture:last-child img{
    margin-right: 0;
}


/***********************************
 FOOTER 
***********************************/
footer {
    /* margin: 32px 0 80px 0; */
    padding: 32px 0 80px 0;
    background-color: whitesmoke;
    overflow: hidden;
}
footer .container{
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
footer .container .contact{
    width: 100%;
}
footer .container .contact ul{
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
}
footer .container .contact ul li{
    width: 31.666%;
    height: 100px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    position: relative;
    margin-bottom: 50px;
    border-radius: 8px;
}
footer .container .contact ul li:hover{
    background-color: whitesmoke;
    -webkit-box-shadow: 2px 4px 20px 1.4px rgba(45,45,45,.13);
    -moz-box-shadow: 2px 4px 20px 1.4px rgba(45,45,45,.13);
    box-shadow: 2px 4px 20px 1.4px rgba(45,45,45,.13);
}
footer .container .contact ul li a{
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
}
footer .container .contact ul li span{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    font-size: 25px;
    padding: 10px;
    border-radius: 50%;
    background-color: whitesmoke;
    color: #1a1a1a;
}
footer .container .contact ul li:hover span{
    left: 10px;
}
footer .container .contact ul li h4{
    font-weight: 600;
    font-size: 22px;
    color: black;
    margin: 0 0 5px 65px;
}
footer .container .contact ul li p{
    font-weight: 500;
    font-size: 14px;
    color: #555;
    margin: 0 0 0 65px;
}
footer .container .contact ul li:hover a p{
    color: #1a1a1a;
}



/**
*   1440px
*/
@media screen and (max-width:1440px) {
    /***********************************
     GENERAL
    ***********************************/
    .wrapper {
        width: calc(100% - 400px);
        margin-left: 360px;
        margin-right: 40px;

        position: relative;
    }
}


/**
*   1280px
*/
@media screen and (max-width:1280px) {

    /***********************************
    GENERAL 
    ***********************************/
    h2.subtitle:after {
        width: 35px;
    }

    /***********************************
    HEADER 
    ***********************************/
    header > .container {
        top: unset;
        bottom: 10%;
        left: 120px;
        transform: none;
        width: calc(100% - 240px);
    }

    /***********************************
    ABOUT 
    ***********************************/
    #about .profile {
        height: auto;
    }
    #about .profile > div.info,
    #about .profile > div.image {
        width: 100%;
    }
    #about .profile > div.image {
        width: 75%;
    }
    #about .profile > div.image img{
        height: auto;
        min-height: 340px;
        width: 100%;
        object-fit: cover;
    }
    #about .skills {
        width: 20%;
        position: absolute;
        top: 0;
        right: 0;
        margin-top: 80px;
    }
    #about .skills ul {
        width: 98%;
        flex-flow: column;
    }

    #about .skills ul li{
        width: calc(100% - 12px);
        padding: 0 6px;
        margin-bottom: 12px;
        height: 48px;
    }
    #about .skills ul li img {
        width: 28px;
        height: 28px;
    }
    #about .skills ul li p {
        margin-left: 8px;
        font-size: 14px;
    }
    #about .profile > div.info {
        margin-top: 24px;
    }
    #about .profile > div.info ul {
        margin: 24px 0;
        font-size: 14px;
    }
    #about .profile > div.info li b {
        width: 100%;
        display: block;
    }

    #about .profile > div.info li:nth-child(odd) {
        width: 45%;
    }
    #about .profile > div.info li:nth-child(even) {
        width: 55%;
    }
    #about .profile > div.info p:last-child {
        width: 100%;
        font-size: 16px;
    }


    /***********************************
    PROJECTS 
    ***********************************/
    #projects ul li div.content h4 {
        margin: 10% 0 15px 0;
        padding: 0 2.5%;
    }
    /***********************************
     MORE 
    ***********************************/
    #more div.content {
        height: 300px;
    }

    /***********************************
    FOOTER 
    ***********************************/
    footer .container .contact ul li {
        width: 31%;
    }
    footer .container .contact ul li:nth-child(2) {
        width: 38%
    }
    footer .container .contact ul li h4 {
        margin-left: 50px;
        margin-bottom: 2px;
        font-size: 18px
    }
    footer .container .contact ul li p{
        margin-left: 50px;
        font-size: 12px
    }
    footer .container .contact ul li:hover span {
        background-color: transparent;
        left: 5px;
    }
}


/**
*   1024px
*/
@media screen and (max-width:1024px) {
    /***********************************
    GENERAL 
    ***********************************/
    .wrapper {
        width: calc(100% - 300px);
        margin-left: 280px;
        margin-right: 20px;
    }
    h2.subtitle {
        font-size: 16px;
    }

    /***********************************
    HEADER 
    ***********************************/
    .minimized header {
        width: 260px;
    }
    .minimized header > .container > div.image {
        margin-top: 40px;
    }
    .minimized header > .container > h2 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    .minimized header > .container > p {
        font-size: 12px;
        line-height: 10px;
    }
    .minimized header > .container > p span{
        margin-bottom: 8px;
    }
    .minimized #navigation ul {
        margin-top: 12px;
    }
    .minimized #social {
        order: 4;
        margin-top: 40px;
    }
    .minimized #social ul li{
        margin: 4px;
        padding: 4px;
    }
    .minimized #navigation {
        order: 3;
    }

    /***********************************
    ABOUT 
    ***********************************/
    #about .profile > div.image {
        width: 70%;
    }
    #about .skills {
        width: 27.5%;
    }


    /***********************************
    RESUME 
    ***********************************/
    #resume .container > div > ul h4 {
        font-size: 18px;
    }
    #resume .container > div > ul li h3 {
        font-size: 16px;
        padding-right: 5px;
    }

    /***********************************
    PROJECTS 
    ***********************************/
    #projects ul li {
        width: 100%;
        margin-right: 0;
        margin-bottom: 60px;
    }

    #projects ul li:last-child {
        margin-bottom: 0;
    }
    #projects ul li:nth-child(1)::before{
        width: calc(95% - 20px);
    }
    #projects ul li:nth-child(2)::before {
        width: calc(25% - 20px);
    }
    #projects ul li:nth-child(1)::after{
        left: calc(95% - 20px);
    }
    #projects ul li:nth-child(2)::after {
        left: calc(25% - 20px);
    }
    #projects ul li div.image {
        padding-top: 45%;
    }
    /***********************************
     MORE 
    ***********************************/
    #more div.content {
        height: auto;
    }
    #more div.content > div.text {
        width: 100%;
        height: auto;
        padding-bottom: 24px;
    }
    #more div.content > div.text > span {
        right: 0;
    }
    #more div.content > div.images {
        margin-top: 16px;
        width: 100%;
        height: 320px;
    }
    

    /***********************************
    FOOTER 
    ***********************************/
    footer .container .contact ul {
        flex-wrap: wrap;
        margin-top: 0;
    }
    footer .container .contact ul li{
        margin-bottom: 0;
        height: 75px;
        overflow: hidden;
    }
    footer .container .contact ul li:hover{
        background-color: transparent;
    }
    footer .container .contact ul li:nth-child(1) {
        order: 1;
        width: 47.5%;
    }
    footer .container .contact ul li:nth-child(2) {
        order: 3;
        width: 100%;
        margin-top: 2.5%;
    }
    footer .container .contact ul li:nth-child(3) {
        order: 2;
        width: 48.75%;
    }
    footer .container .contact ul li span {
        font-size: 200px;
        left: -5%;
        background-color: transparent;
        z-index: -1;
        color: #77777733;
    }
    footer .container .contact ul li:hover span {
        left: 25px;
        color: #77777777;
    }
    footer .container .contact ul li span:before {
        position: absolute;
        top: -100px;
        left: -100px;
        width: 1000px;
        height: 500px;
        content: '';
        z-index: -2;
        background-color: transparent;
        transition: all 300ms;
    }
    footer .container .contact ul li:hover span:before {
        background-color: whitesmoke;
    }
    footer .container .contact ul li p,
    footer .container .contact ul li h4 {
        margin-left: 0;
        text-align: center;
    }

}


/**
*   768px
*/
@media screen and (max-width:768px) {
    /***********************************
    GENERAL 
    ***********************************/
    .wrapper {
        width: calc(100% - 40px);
        margin-left: 20px;
    }
    h2.subtitle {
        font-size: 20px;
    }

    /***********************************
    HEADER 
    ***********************************/
    header {
        height: 100%;
    }
    header > .container {
        left: 30px;
        width: calc(100% - 60px);
    }
    .minimized header {
        left: -260px;
        height: calc(100% + 60px);
        /*animation: header-to-left ease forwards;*/
    }

    /*@keyframes header-to-left{
        0%{
            left: 0;
            opacity: 1;
            visibility: visible;
        }
        33%{
            left: 0;
            opacity: 0;
            visibility: hidden;
        }
        66%{
            left: -260px;
            opacity: 0;
            visibility: hidden;
        }
        100%{
            left: -260px;
            opacity: 1;
            visibility: visible;
        }
    }*/
    .minimized header.open {
        left: 0;
    }
    .minimized #header-toggle {
        display: block;
        cursor: pointer;
        width: 200px;
        height: 200px;
        transform: rotate(45deg);
        position: absolute;
        right: -100px;
        top: -100px;
        background-color: #1a1a1a;
        content: '';
    }
    .minimized .open #header-toggle {
        transform: rotate(135deg);
        background-color: black;
    }
    .minimized #header-toggle:after {
        cursor: pointer;
        width: 40px;
        height: 40px;
        position: absolute;
        transform: rotate(-45deg);
        right: 20px;
        top: 80px;
        content: '';
        background-image: url('../assets/img/icons/menu.png');
        background-position: center center;
        background-repeat: no-repeat;
        transition: all 300ms;
    }
    .minimized .open #header-toggle:after {
        right: 80px;
        top: 20px;
    }
    #social ul li, #navigation ul li {
        margin: 4px;
        padding: 4px;
    }

    /***********************************
    HOME 
    ***********************************/
    #home {
        background-position: 66%;
        height: 100vh  !important;
        /*background-size: initial;
        height: 100vh !important;*/
    }


    /***********************************
    ABOUT 
    ***********************************/
    #about .profile {
        overflow: hidden;
    }


    /***********************************
    PROJECTS 
    ***********************************/
    #projects ul li div.image {
        padding-top: 55%;
    }
    #projects ul li div.content,
    #projects ul li:hover div.content {
        opacity: 1;
        visibility: visible;
        height: auto;
        bottom: 0;
        top: unset;
        padding: 20px 0;
        background-color: #f5f5f5dd;
    }
    #projects ul li div.content h4 {
        margin-top: 0;
    }
}


/**
*   540px
*/
@media screen and (max-width:540px) {
    /***********************************
    GENERAL 
    ***********************************/
    h2.title {
        text-align: center;
    }
    h2.title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /***********************************
    HEADER 
    ***********************************/
    header > .container {
        bottom: 0;
        justify-content: flex-start;
    }
    header > .container > p,
    header > .container > h2 {
        text-align: center;
    }

    header > .container > h2 {
        margin: 40px 0 20px 0;
        font-size: 28px;
    }
    header > .container > p span {
        font-size: 16px;
    }

    header > .container > p span {
        width: 100%;
        display: block;
        height: 0;
        margin-bottom: 5px;
        opacity: 0;
        visibility: hidden;
    }

    #navigation ul {
        justify-content: center;
    }

    #social {
        position: absolute;
        bottom: 60px;
        width: 100%;
    }
    #social ul {
        justify-content: center;
    }


    /***********************************
    ABOUT 
    ***********************************/
    #about {
        margin-top: 30px;
    }
    #about * {
        text-align: center;
    }
    #about .profile {
        justify-content: center;
    }
    #about .profile > div.image {
        width: 95%;
    }
    #about .profile > div.image img {
        min-height: unset;
    }
    #about .profile > div.info {
        margin-top: 0;
    }
    #about .profile > div.info li:nth-child(even),
    #about .profile > div.info li:nth-child(odd) {
        width: 100%;
    }
    #about .profile > div.info h4 {
        width: 100%;
        line-height: 18px;
        margin: 24px 0 12px 0;
    }
    #about .profile > div.info h4 span {
        width: 100%;
        display: block;
    }
    #about .profile > div.info ul {
        font-size: 15px;
    }
    #about .skills {
        position: relative;
        margin-top: 24px;
        width: 100%;
    }
    #about .skills ul {
        flex-flow: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #about .skills ul li {
        width: calc(47.5% - 12px);
        margin-right: 0;
    }
    


    /***********************************
    RESUME 
    ***********************************/
    #resume .container > div {
        width: 100%;
        padding: 0;
    }

    #resume .container > div.experience {
        margin-top: 24px;
    }


    /***********************************
    PROJECTS 
    ***********************************/
    #projects ul li div.image {
        padding-top: 75%;
    }
    #projects ul li div.content h4 {
        font-size: 18px;
    }
    #projects ul li div.content p {
        font-size: 14px;
    }
    /***********************************
     MORE 
    ***********************************/
    #more div.content > div.images {
        height: 260px;
    }
}

/**
*   400px
*/
@media screen and (max-width:400px) {
    /***********************************
    ABOUT 
    ***********************************/
    #about .skills ul li {
        width: calc(100% - 12px);
    }



    /***********************************
    PROJECTS
    ***********************************/
    #projects ul li div.image {
        padding-top: 90%;
    }
    /***********************************
     MORE 
    ***********************************/
    #more div.content > div.images {
        height: 200px;
    }


    /***********************************
    FOOTER 
    ***********************************/
    footer .container .contact ul li:nth-child(n){
        width: 100%;
        margin-bottom: 5%;
        margin-top: 0;
    }
    footer .container .contact ul li:nth-child(1) {
        order: 3;
    }
    footer .container .contact ul li:nth-child(2) {
        order: 1;
    }
    footer .container .contact ul li:nth-child(3) {
        order: 2;
    }
    footer .container .contact ul li p {
        font-size: 14px;
        margin-top: 5px;
    }

}



/***********************************
ANIMATIONS 
***********************************/
.moduleCfast,
.moduleC,
.moduleB {
    opacity: 0;
    visibility: hidden
}.come-in {
    animation: come-in 1.5s ease forwards;
    animation-duration: 1.5s
}.come-in-fast {
    animation: come-in 1s ease forwards;
    animation-duration: 1s
}.come-in-bottom {
    transform: translateY(150 px);animation: come-in-bottom 1.5s ease forwards;
    animation-duration: 1.5s
}
.come-in:nth-child(2n),
.come-in-bottom:nth-child(2n){
    animation-delay:300ms
}
.come-in:nth-child(3n),
.come-in-bottom:nth-child(3n){
    animation-delay:600ms
}
.come-in:nth-child(4n),
.come-in-bottom:nth-child(4n){
    animation-delay:900ms
}
.come-in:nth-child(5n),
.come-in-bottom:nth-child(5n){
    animation-delay:1200ms
}
.come-in:nth-child(6n),
.come-in-bottom:nth-child(6n){
    animation-delay:1500ms
}
.come-in:nth-child(7n),
.come-in-bottom:nth-child(7n){
    animation-delay:1800ms
}
.come-in:nth-child(8n),
.come-in-bottom:nth-child(8n){
    animation-delay:2100ms
}
.come-in-fast:nth-child(2n){
    animation-delay:150ms
}
.come-in-fast:nth-child(3n){
    animation-delay:300ms
}
.come-in-fast:nth-child(4n){
    animation-delay:450ms
}
.come-in-fast:nth-child(5n){
    animation-delay:600ms
}
.come-in-fast:nth-child(6n){
    animation-delay:750ms
}
.come-in-fast:nth-child(7n){
    animation-delay:900ms
}
.come-in-fast:nth-child(8n){
    animation-delay:1050ms
}
.come-in-fast:nth-child(9n){
    animation-delay:1200ms
}
.come-in-fast:nth-child(10n){
    animation-delay:1350ms
}

@keyframes come-in-bottom{
    from{
        transform: translateY(150px);
    }
    to{
        transform:translateY(0);
        opacity:1;
        visibility:visible
    }
}
@keyframes come-in{
    from{
        opacity: 0;
        visibility: hidden;
    }
    to{
        opacity:1;
        visibility: visible
    }
}

@media screen and(max-width: 660px) {
    .come-in-bottom {
        transform: translate(0, 0);
        animation: come-in 2.0s ease forwards
    }
    /*.come-in-bottom:nth-child(3n),
    .come-in-bottom:nth-child(4n),
    .come-in-bottom:nth-child(6n){
        animation-delay:150ms
    }*/
    
}
