html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

.contact {
    font-size: 16px;
    width: 33%;
    display: block;
    float: left;
}
.contact-name {
    text-transform: uppercase;
}
.contact-info {
    line-height: 36px;
    padding-top: 10px;
}
.contact-info a {
    display: flex;
    align-items: center;
}
.contact-info img {
    margin-right: 1rem;
}
.spacer-short-blue {
    border-bottom: 1px solid #29f9ff;
    width: 20px;
    padding-top: 15px;
}
.spacer-short-blue:last-child {
    padding-top: 10px;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
}
html {
    scroll-behavior: smooth;
}
.page {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Karla", sans-serif;
    font-weight: 400;
    background: #111;
    display: block;
    padding: 0;
    color: white;
}

a {
    color: white;
    text-decoration: none;
}

i {
    font-size: 1em;
    font-style: normal;
    margin-right: 0.4em;
}

button {
    font-family: "Karla", sans-serif;
    background: none;
    outline: none;
    border: none;
    text-transform: uppercase;
    font-size: 0.8em;
    padding: 1em 1.4em;
    margin: 1em 0;
    display: inline-block;
    cursor: pointer;
    border: 2px solid white;
    color: white;
    white-space: nowrap;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

button:hover {
    background: white;
    color: black !important;
}

h2 {
    font-family: "Karla", sans-serif;
    font-weight: bold;
    width: 100%;
}

.headingBlock {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: transparent url(images/heading-background.png) no-repeat;
    background-size: cover;
}

#homepage .headingBlock h2 {
    color: #000000;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}

.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    padding: 1.5rem;
    font-size: 16px;
    font-family: "Karla", sans-serif;
}
.header a:last-child:hover {
    text-decoration: underline;
}
.logo {
    display: flex;
    align-items: center;
    position: relative;
}
.logo img {
    width: 65px;
}
.logo-text {
    display: inline-block;
    padding: 0.5rem;
    overflow: hidden;
}
.logo-anim {
    display: block;
    position: relative;
    transform: translateX(-120%);
    transition: transform 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.logo:hover .logo-anim {
    transform: translateX(0%);
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#homepage {
    background-size: cover;
    width: 100%;
    height: 100%;
    /* height: 600px; */
    position: absolute;
    scroll-behavior: smooth;
    top: 0;
    font-family: "Karla", sans-serif;
}

#homepage section {
    background-color: #f6f6f6;
}
#homepage .splash {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100vh;
    z-index: 15;
    color: black;
    padding-bottom: 10vh;
    padding-left: 5vw;
    padding-right: 1rem;
}
.splash-background {
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: url(images/splash-background.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* transition: transform; */
    animation: background-zoom 10s infinite alternate ease-in-out;
}
@keyframes background-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

#homepage .splash p {
    max-width: 30rem;
    margin-top: 1rem;
    line-height: 1.4;
    font-size: 16px;
    font-family: "Karla", sans-serif;
}
#homepage .splash p:last-of-type {
    font-weight: 600;
}
.scroll-arrow {
    display: inline-flex;
    margin-top: 1.5rem;
    flex-grow: 0;
    width: 2rem;
    padding: 0.75rem;
    justify-content: center;
    align-items: center;
    padding-left: 0;
}

.popped {
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.second > img {
    display: none !important;
}

#homepage h2 {
    font-size: 48px;
    line-height: 1.2;
    width: 100%;
    text-transform: initial;
    font-family: "Karla", sans-serif;
    color: inherit;
}
#homepage p {
    font-size: 14px;
    color: inherit;
}

#homepage .top {
    top: 20%;
}

#homepage .middle {
    bottom: 20%;
}

#homepage .bottom {
    bottom: 5%;
    margin-bottom: 1em;
}

#homepage .line {
    width: 43px;
    height: 4px;
    background: white;
    display: inline-block;
    margin: 4px 0;
    margin-right: 100px;
}

#balls {
    display: block;
    height: 100%;
    width: 100%;
    pointer-events: none;
    position: absolute !important;
    top: 0;
    left: 0;
}

.ball {
    position: absolute;
    z-index: 11;
    width: 40% !important;
}

.ball img {
    width: 100% !important;
}

.ball.bounce {
    animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    -webkit-animation: bounceball 2.6s infinite;
    -moz-animation: bounceball 2.6s infinite;
    -o-animation: bounceball 2.6s infinite;
    animation: bounceball 2.6s infinite;
}

.ball img {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: moz-none;
    -ms-user-select: none;
    user-select: none;
}

@-webkit-keyframes bounceball {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -10px;
    }
}

@-moz-keyframes bounceball {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -10px;
    }
}

@-o-keyframes bounceball {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -10px;
    }
}

@keyframes bounceball {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -10px;
    }
}

.ball6 {
    top: 20% !important;
    left: 60% !important;
}

#pages {
    position: fixed;
    overflow: hidden;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 20;
}

.page {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
}

#portfolio {
    position: relative;
    background-color: #222;
}

#portfolio .item {
    -webkit-transition: height 0.6s, background-position 0.6s, box-shadow 1s, top 0.6s, padding-top 0.6s,
        -webkit-transform 0.8s, opacity 0.6s;
    -webkit-transition: height 0.6s, background-position 0.6s, box-shadow 1s, top 0.6s, padding-top 0.6s, transform 0.8s,
        opacity 0.6s;
    -moz-transition: height 0.6s, background-position 0.6s, box-shadow 1s, top 0.6s, padding-top 0.6s, transform 0.8s,
        opacity 0.6s;
    -ms-transition: height 0.6s, background-position 0.6s, box-shadow 1s, top 0.6s, padding-top 0.6s, transform 0.8s,
        opacity 0.6s;
    -o-transition: height 0.6s, background-position 0.6s, box-shadow 1s, top 0.6s, padding-top 0.6s, transform 0.8s,
        opacity 0.6s;
    transition: height 0.6s, background-position 0.6s, box-shadow 1s, top 0.6s, padding-top 0.6s, transform 0.8s,
        opacity 0.6s;
    -webkit-transform: perspective(600px) rotateX(30deg) scale(0.8);
    -moz-transform: perspective(600px) rotateX(30deg) scale(0.8);
    -ms-transform: perspective(600px) rotateX(30deg) scale(0.8);
    -o-transform: perspective(600px) rotateX(30deg) scale(0.8);
    transform: perspective(600px) rotateX(30deg) scale(0.8);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    height: 32.3%;
    height: 300px;
    min-height: 260px;
    background-color: #222;
    background-image: url("/img/logosoftheworld.jpg");
    background-size: cover;
    background-position: center top;
    background-origin: border-box;
    display: block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    padding-top: 100px;
    border-bottom: solid 1px #000000;
}

#portfolio .item.thinner {
    height: 200px;
    min-height: 200px;
}

#portfolio .item.hoverable:hover,
#portfolio .item.hover {
    -webkit-transition: height 0.6s, background-position 15s 1s, box-shadow 1s;
    -moz-transition: height 0.6s, background-position 15s 1s, box-shadow 1s;
    -ms-transition: height 0.6s, background-position 15s 1s, box-shadow 1s;
    -o-transition: height 0.6s, background-position 15s 1s, box-shadow 1s;
    transition: height 0.6s, background-position 15s 1s, box-shadow 1s;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 9;
    background-position: 20% 60%;
}

#portfolio .item.normal {
    -webkit-transform: perspective(600px) rotateX(0deg);
    -moz-transform: perspective(600px) rotateX(0deg);
    -ms-transform: perspective(600px) rotateX(0deg);
    -o-transform: perspective(600px) rotateX(0deg);
    transform: perspective(600px) rotateX(0deg);
    opacity: 1;
}

.company-logo {
    float: right;
    margin-top: -80px;
}

#portfolio .item h2 {
    display: inline-block;
    position: absolute;
    word-break: break-all;
    line-height: 0.85em;
    -webkit-transition-delay: 0;
    -moz-transition-delay: 0;
    -ms-transition-delay: 0;
    -o-transition-delay: 0;
    transition-delay: 0;
    margin-top: -80px;
    font-family: "Karla", sans-serif;
    font-weight: bold;
    font-size: 2.8em;
    color: white;
    text-transform: uppercase;
    word-break: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

#portfolio .item .viewdetails {
    max-width: 300px;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

#portfolio .item .scrolldown {
    max-width: 0;
    opacity: 0;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

#portfolio .item .line {
    margin: 1em 0;
    width: 20px;
    height: 2px;
    display: block;
    background: #0bf;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
    transition: 1s;
    -webkit-transition-delay: 0.5s;
    -moz-transition-delay: 0.5s;
    -ms-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
}

#portfolio .item p {
    margin: 1em 0;
}

#portfolio .item .bg {
    background-color: #000;
    opacity: 0.8;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

#portfolio .item.thinner .bg {
    opacity: 0.9;
}

#portfolio .item.saifdesign .bg {
    opacity: 0.7;
}

#portfolio .item.hoverable:hover .bg,
#portfolio .item.hover .bg {
    opacity: 0.3;
}

#portfolio .item .info {
    padding: 4em;
    position: relative;
    z-index: 2;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

#portfolio .item .content {
    opacity: 0;
    min-height: 100%;
    width: 100%;
    padding-top: 6em;
    background: white;
    position: relative;
    z-index: 3;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

#portfolio .item .content .wrapper {
    margin: 0 auto;
    max-width: 815px;
    width: 90%;
}

#portfolio .item .content .wrapper p {
    text-align: center;
    color: black;
}

#portfolio .item .content .wrapper p .line {
    margin: 1em auto;
}

#portfolio .item .break {
    display: none;
}

#portfolio .item .subitem {
    width: 100%;
    margin: 100px -50%;
    position: relative;
}

#portfolio .item .monitor {
    position: absolute;
    width: 100%;
}

#portfolio .item .image {
    position: absolute;
    width: 100%;
    padding: 3.7% 3.5%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

#portfolio .item .monitor2 {
    width: 100%;
    padding: 4.1% 4% 22.3% 4%;
    background: url("/img/imac@2x.png") no-repeat;
    background-size: cover;
    margin-bottom: 6em;
    margin-left: -4%;
}

#portfolio .item .chrome {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background: url("/img/chrome.jpg");
    height: 32px;
    width: 100%;
    border: 1px solid #c1c1c1;
    box-sizing: border-box;
}

#portfolio .item .window {
    width: 100%;
}

#portfolio .item iframe,
#portfolio .item .window {
    border: 1px solid #c1c1c1;
    border-top: none;
    box-sizing: border-box;
    margin-bottom: 100px;
    box-shadow: 0 10px 55px rgba(0, 0, 0, 0.5);
}

#portfolio .item.active {
    height: 100%;
    opacity: 1;
    background-size: cover;
    top: 0;
}

#portfolio .item.active h2 {
    -webkit-transition-delay: 0.5s;
    -moz-transition-delay: 0.5s;
    -ms-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
    font-size: 16em;
    width: 90%;
    min-width: 988px;
}

#portfolio .item.active .info .line {
    margin: 2em 0;
    width: 80px;
    height: 4px;
    background: #fff;
}

#portfolio .item.active .viewdetails {
    -webkit-transition-delay: 2s;
    -moz-transition-delay: 2s;
    -ms-transition-delay: 2s;
    -o-transition-delay: 2s;
    transition-delay: 2s;
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
}

#portfolio .item.active .scrolldown {
    -webkit-transition: width 0.5s ease 2s, opacity 0.5s ease 2s, background 0.5s, color 0.5s;
    -moz-transition: width 0.5s ease 2s, opacity 0.5s ease 2s, background 0.5s, color 0.5s;
    -ms-transition: width 0.5s ease 2s, opacity 0.5s ease 2s, background 0.5s, color 0.5s;
    -o-transition: width 0.5s ease 2s, opacity 0.5s ease 2s, background 0.5s, color 0.5s;
    transition: width 0.5s ease 2s, opacity 0.5s ease 2s, background 0.5s, color 0.5s;
    opacity: 1;
    max-width: 300px;
}

#portfolio .item.active .bg {
    opacity: 0 !important;
}

#portfolio .item.active .content {
    opacity: 1;
}

#portfolio .formstudio {
    background-image: url(images/sunship.jpg);
}

#portfolio .formstudio.active .info {
    background: rgba(57, 135, 207, 0.9);
}

#portfolio .bigswordfish {
    background-image: url(images/plaatdetail.jpg);
}

#portfolio .bigswordfish.active .info {
    background: rgba(30, 58, 85, 0.9);
}

#portfolio .logosoftheworld {
    background-image: url(images/taargroup.jpg);
}

#portfolio .logosoftheworld.active .info {
    background: rgba(201, 141, 85, 0.9);
}

#portfolio .revoltcms {
    background-image: url(images/ramm.jpg);
}

#portfolio .revoltcms.active .info {
    background-color: rgba(38, 0, 105, 0.95);
}

#portfolio .saifdesign {
    background-image: url(images/kontakt.jpg);
    height: 340px;
}

#portfolio .ramport {
    background-image: url(images/ramport.jpg);
}

#portfolio .marina {
    background-image: url(images/promarine.jpg);
}

#portfolio .dalles {
    background-image: url(images/dalles-bg.png);
}

#portfolio .in-pleno {
    background-image: url(images/in-pleno-bg.jpg);
}

#portfolio .saku {
    background-image: url(images/saku-bg.jpg);
}

#portfolio .plasti {
    background-image: url(images/plasti-bg.jpg);
}

#portfolio .kateks {
    background-image: url(images/kateks-bg.png);
}

#portfolio .mirohristov {
    background-image: url("/img/mirohristov.jpg");
}

#portfolio .mirohristov.active .info {
    background-color: rgba(0, 0, 0, 0.95);
}

.spacer {
    height: 50px;
}

.preloader {
    width: 100%;
    height: 100%;
    position: fixed;
    display: block;
    z-index: 99999;
}

.preloader img {
    top: 50%;
    left: 50%;
    margin-left: -23px;
    margin-top: -23px;
    position: absolute;
    border-radius: 50%;
}

.no-delay {
    -webkit-transition-delay: 0;
    -moz-transition-delay: 0;
    -ms-transition-delay: 0;
    -o-transition-delay: 0;
    transition-delay: 0;
}

.border-box {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: moz-none;
    -ms-user-select: none;
    user-select: none;
}

.delay-1 {
    transition-delay: 0.2s !important;
}

.delay-2 {
    transition-delay: 0.4s !important;
}

.delay-3 {
    transition-delay: 0.6s !important;
}

.delay-4 {
    transition-delay: 0.8s !important;
}

::selection {
    background: #0bf;
}

::-moz-selection {
    background: #0bf;
}

.clear {
    clear: both;
}

@media screen and (max-width: 960px) {
    body {
        font-size: 1.2em;
    }
    #homepage .splash {
        padding-left: 1.5rem;
    }
    .splash-background {
        background-image: url(images/splash-background_half.jpg);
    }

    .item {
        min-height: 420px !important;
    }

    .item.active h2 {
        font-size: 6em !important;
    }

    .item .info h2 {
        font-size: 4em;
    }

    .item button {
        font-size: 1em;
    }

    .ball {
        transform: translate3d(0px, 0px, 0px) !important;
    }

    #balls {
        margin-top: -80px;
        margin-left: -20px;
    }

    .ball6 {
        top: 20% !important;
        left: 60% !important;
    }

    .saifdesign .info {
        padding-right: 0 !important;
    }

    .contact {
        width: 33%;
    }

    #portfolio .item {
        transition: opacity 1s;
    }
}

@media screen and (max-width: 900px) {
    #portfolio #contacts-block {
        height: auto;
    }

    .contact {
        width: 50%;
        min-width: 240px;
    }
}

@media screen and (max-width: 480px) {
    .contact {
        font-size: 16px;
        width: 100%;
        display: block;
    }
    #homepage .splash {
        padding-left: 1rem;
        padding-bottom: 2rem;
    }
    .splash-background {
        background-image: url(images/splash-background_portrait.jpg);
        background-position-y: bottom;
    }
    .splash-background::after {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 45%;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 100%);
        background-position: 50% 50%;
    }
    @keyframes background-zoom {
        from {
            background-size: 100%;
        }
        to {
            background-size: 108%;
        }
    }
    #homepage h2 {
        font-size: 32px;
    }
    #homepage p {
        font-size: 14px;
    }

    #portfolio .saifdesign {
        height: 750px;
    }
    #portfolio .item h2 {
        font-size: 2em;
    }
    #balls {
        display: none;
    }

    .arrow-down {
        display: none;
    }
}

@media screen and (max-width: 630px) {
    .company-logo {
        position: absolute;
        bottom: 0;
        left: 80px;
    }
}

.arrow-down {
    background: url(images/arrow-down.png) no-repeat;
    bottom: 40px;
    cursor: pointer;
    height: 27px;
    left: 0;
    position: absolute;
    right: 0;
    margin: auto;
    width: 50px;
}

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