* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #fff;
}

.clearfix {
    overflow: auto;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

body {
    font-family: 'Muli', sans-serif;
    margin: 0;
    background: #09141b;
    color: #fff;
    position: relative;
}


.header {
    width: 100%;
    display: flex;
    flex-wrap : wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
    position: absolute;
}

main {
    padding: 200px 0 135px 0;
    min-height: 100vh;
}

footer {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 40px 20px;
    font-size: 16px;
    font-weight: normal;

    position: absolute;
    bottom: 0;
}

footer a {
    text-decoration: none;
    font-size: 12px;
    padding: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}


.container {
    width: 100%;
    min-height: 100vh;
    display: flex;

    justify-content: center;
    align-items: center;

    padding: 0 20px;
    position: relative;
}

.card {}
.card .title {
    min-height: 80px;
    font-size: 64px;
    font-weight: bold;
    margin: 0 0 5px 0;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in 0.2s;
}
.card .title:before {
    content:"";
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 5px;
    background: linear-gradient(125deg, #fd880b 0%, #ec5a39 50%, #ec5a39 100%);
    position: absolute;
    z-index: -1;

    transition: transform 0.5s ease-out 0.6s, opacity 0.5s ease-in 0.4s;
    transform: translate( 0, 0 );
    opacity: 1;

    top: -10px;
    left: -16px;
}
.card .subtitle {
    font-size: 11px;
    margin: 0;

    transition: transform 0.5s ease-out 0.6s, opacity 0.5s ease-in 0.4s;
    opacity: 1;
    transform: translate( 0, 0);
}

.is-not-active-on-window-load .title {
    opacity: 0;
}
.is-not-active-on-window-load .title:before {
    opacity: 0;
    transform: translate( -20px, -20px);
}
.is-not-active-on-window-load .subtitle {
    opacity: 0;
    transform: translate( 35px, 0);
}


.scrollArrow.is-not-active-on-window-load {
    opacity: 0;
    transform: rotateZ(-90deg) scaleY(2) translateX(20px);
}
.scrollArrow {
    position: absolute;
    bottom: 20px;
    font-size: 36px;
    transform: rotateZ(-90deg) scaleY(2) translateX(0);
    cursor:pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease-out, transform 0.3s ease-in;
    padding: 10px;

    text-decoration: none;
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;
}
.scrollArrow:hover {
    transform: rotateZ(-90deg) scaleY(2) translateX(5px);
    opacity: 0.8;
    transition: opacity 0.3s ease-out, transform 0.1s ease-in;
}


.projects {
    width: 100%;
    display: flex;
    flex-wrap : wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;

    opacity: 1;
    transition: opacity 0.3s ease-in 1s;
}
.projects.is-not-active-on-window-load{
    opacity: 0;
}

.project {
    display: block;

    width: 280px;
    min-width: 250px;
    height: 200px;

    margin: 10px 10px;
    border-radius: 5px;
    border: 1px solid rgba( 255, 255, 255, 0.1 );
    text-decoration: none;

    position: relative;

    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;

    transition: background 0.2s ease-out;
}
.project:hover {
    background-size: 130%;
}
.project:before {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;

    background: linear-gradient(0deg, rgba(236, 90, 57, 1) 20%, rgba(255, 255, 255, 0.2) 100%);

    z-index: 1;

    opacity: 0;
    transition: opacity 0.2s ease-in;
}
.project:hover:before {
    opacity: 0.15;
}
.project__title {
    width: 100%;
    text-align: center;
    font-size: 16px;

    position: absolute;
    bottom: 20px;
    z-index: 2;

    transition: font-size 0.2s ease-in-out, bottom 0.2s ease-out;
}
.project:hover .project__title {
    font-size: 24px;
    bottom: 15%;
}


.menu {
    width: 100%;
    display: flex;
    flex-wrap : wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
}

.is-not-active-on-scroll .menu-item__wrapper {
    opacity: 0;
    transform: translateY(-40px);
}
.menu-item {
    display: block;

    width: 140px;
    min-width: 140px;
    height: 140px;

    margin: 10px 10px;
    border-radius: 50%;
    text-decoration: none;

    position: relative;

    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;

    transform: translateY(0px);
    opacity: 1;

    transition: background 0.2s ease-out, transform 0.3s ease-in-out, opacity 0.3s ease-in;
}
.menu-item__wrapper {
    transform: translateY(0px);
    transition: background 0.2s ease-out, transform 0.3s ease-in-out, opacity 0.3s ease-in;
}
.menu-item__wrapper:nth-child(1) {
    transition-delay: 0.2s;
}
.menu-item__wrapper:nth-child(2) {
    transition-delay: 0.4s;
}
.menu-item__wrapper:nth-child(3) {
    transition-delay: 0.6s;
}
.menu-item__wrapper:nth-child(4) {
    transition-delay: 0.8s;
}
.menu-item:hover {
    background-size: 100%;
    border-radius: 50%;
}
.menu-item_projects {
    background-position-y: 27px;
}
.menu-item_projects:hover {
    background-position-y: 0;
}
.menu-item:before {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;

    background: linear-gradient(180deg, rgba(255, 133, 228, 0.2) 0%, #229efd 100%);
    z-index: 1;

    opacity: 0.15;
    transition: opacity 0.2s ease-out;
}
.menu-item:hover:before {
    opacity: 0.25;
    background: linear-gradient(180deg, rgba(255, 133, 228, 0.2) 0%, rgba(0, 0, 0, 1) 100%);
}
.menu-item__title {
    width: 100%;
    text-align: center;
    font-size: 14px;

    position: absolute;
    top: -20px;
    z-index: 2;

    transition: font-size 0.2s ease-in-out, top 0.2s ease-out;
}
.menu-item:hover .menu-item__title {
    font-size: 22px;
    top: 67%;
}
