* {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Raleway, sans-serif;
    font-weight: 400;
}
p {
    font-family: "Open Sans", sans-serif;
}

#home-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: fixed #000000D0 url("../images/hero-bg.jpg") center no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
}
#home-page>div {
    display: flex;
    justify-content: center;
}

#home-page>h1 {
    align-self: center;
    margin-top: 24px;
    color: white;
    font-size: 36px;
    font-weight: 700;
}

#home-page>h2 {
    align-self: center;
    margin-top: 12px;
    color: #999;
    font-size: 24px;
    font-weight: 400;
    perspective: 1000px;
}
#home-page>h2>span {
    display: inline-block;
    transform-style: preserve-3d;
    animation: flipAnimation 3s infinite;
    animation-delay: 5s;
    backface-visibility: hidden;
}

@keyframes flipAnimation {
    0% {
        transform: rotateX(180deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    20% {
        transform: rotateX(0deg);
    }
    36% {
        transform: rotateX(-30deg);
    }
    52% {
        transform: rotateX(30deg);
    }
    68% {
        transform: rotateX(-20deg);
    }
    84% {
        transform: rotateX(10deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

#btn1, #btn2 {
    padding: 16px;
    font-family: Raleway, sans-serif;
}
#btn1>button {
    padding: 12px 16px;
    border: solid 2px #03c4eb;
    border-radius: 2px;
    background: #03c4eb;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: 0.5s;
}
#btn1>button:hover {
    background: transparent;
    border: solid 2px white;
}

#btn2>button {
    position: relative;
    padding: 12px 24px;
    border: solid 2px #fff;
    background: transparent;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: 0.5s;
}
#btn2>button:hover {
    color: #03c4eb;
}
#btn2>button>span{

    position: absolute;
    display: inline-block;
    transition: 0.5s;
    opacity: 0;
}
#btn2>button>span:nth-of-type(1){
    left:-2px;
    top:80px;

    width: 2px;
    height: 50px;
    background: rgb(3, 196, 235);
}
#btn2>button>span:nth-of-type(2){
    left:-160px;
    top:-2px;

    width: 146px;
    height: 2px;
    background: rgb(3, 196, 235);
}
#btn2>button>span:nth-of-type(3){
    left: 142px;
    top:-80px;

    width: 2px;
    height: 50px;
    background: rgb(3, 196, 235);
}

#btn2>button>span:nth-of-type(4){
    left:160px;
    top:48px;

    width: 146px;
    height: 2px;
    background: rgb(3, 196, 235);
}

#btn2>button:hover>span:nth-of-type(1){
    top:-2px;
    opacity: 1;
}
#btn2>button:hover>span:nth-of-type(2){
    left:-2px;
    opacity: 1;
}
#btn2>button:hover>span:nth-of-type(3){
    top:-2px;
    opacity: 1;
}
#btn2>button:hover>span:nth-of-type(4){
    left:-2px;
    opacity: 1;
}

#nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    background: #111111;
    font-family: Raleway, sans-serif;
    z-index: 1000;
}
#nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.9;
}

#nav a {
    text-decoration: none;
    color: #fff;
    margin: 0 8px;
}
#nav a.drop:after {
    content: "\f107";
    font-family: FontAwesome;
}
#nav a:hover {
    color: #2aabd2;
}

.page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0 64px 0;
}

.about {
    font-family: Raleway, sans-serif;
}
.sub-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sub-title * {
    display: block;
    align-self: center;
}
.sub-title>h1 {
    margin: 16px 0;
    font-weight: 700;
}
.sub-title>span {
    width: 64px;
    height: 3px;
    background: #2aabd2;
}
.sub-title>p {
    margin: 16px 0 32px 0;
    color: #666666;
}

.services {
    background: fixed #FFFFFFD0 url("../images/services-bg.jpg") center no-repeat;
    background-size: cover;
    background-blend-mode: lighten;
}
.services>.sub-content {
    height: 158px;
    column-count: auto;
    column-width: 311px;
    column-gap: 8px;
}
.services>.row
{
    margin: 0 64px;
}
.services>.row>div {
    display: flex;
    flex-direction: row;
    height: 196px;
}
.services>.row>div>div:first-of-type {
    position: absolute;
    width: 64px;
    height: 64px;
    background: #2aabd2;
    border: solid 2px #2aabd2;
    border-radius: 50%;
    transition: 0.8s;
}
.services>.row>div:hover>div:first-of-type {
    background: transparent;
    border: solid 2px #2aabd2;
    border-radius: 50%;
}
.services>.row>div>div:last-of-type {
    position: absolute;
    left: 96px;
}
.services>.row>div>div:last-of-type>h5 {
    font-weight: 900;
}
.services>.row>div>div:last-of-type>p {
    font-size: 14px;
    color: #666666;
}

.subscribe {
    background: fixed #00000090 url("../images/subscribe-bg.jpg") center no-repeat;
    background-size: cover;
    background-blend-mode: darken;
}

.subscribe h3{
    color: white;
    font-weight: 900;
}
.subscribe p{
    color: white;
    font-size: 14px;
}
.subscribe div.col-4 {
    display: flex;
    justify-content: center;
    align-items: center;
}
.subscribe div.col-4 a {
    border: solid 2px white;
    padding: 8px 16px;
    color: white;
    border-radius: 2px;
    text-decoration: none;
    transition: 0.8s;
}
.subscribe div.col-4 a:hover {
    border-color: #2aabd2;
    background: #2aabd2;
}

.portfolio>.sub-content {
    align-self: center;
    display: flex;
    flex-direction: row;
}
.portfolio>.sub-content .image-box {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 16px;
    overflow: hidden;
    width: 216px;
    height: 256px;
    background: center no-repeat;
    background-blend-mode: lighten;
    transition: 0.6s;
}
.portfolio>.sub-content .image-box:hover {
    background-color: #FFFFFFB0;
}
.portfolio>.sub-content .image-box>span:first-of-type {
    display: block;
    position: absolute;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-weight: 900;
    top: 64px;
    opacity: 0;
    transition: 0.6s;
}
.portfolio>.sub-content .image-box>span:last-of-type {
    display: block;
    position: absolute;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    top: 128px;
    opacity: 0;
    transition: 0.6s;
}

.portfolio>.sub-content .image-box:hover>span:first-of-type {
    top: 80px;
    opacity: 1;
}
.portfolio>.sub-content .image-box:hover>span:last-of-type {
    top: 112px;
    opacity: 1;
}

.contact form {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    width: fit-content;
    margin: 8px 32px;
}
.contact form>input:not(:last-of-type),
.contact form>textarea {
    width: 384px;
    padding: 4px 8px;
    outline: none;
    border: solid 1px #aaa;
}
.contact form>textarea {
    height: 128px;
}
.contact form>input:focus {
    border-color: #2aabd2;
}
.contact form>input:last-of-type {
    align-self: center;
    padding: 4px 16px;
    width: fit-content;
    height: fit-content;
    border: none;
    background-color: #2aabd2;
    color: white;
}
.contact>.sub-content {
    display: flex;
    flex-direction: row;
    align-self: center;
}
.contact>.sub-content>div {
    margin: 8px 32px;
    font-family: "Open Sans", sans-serif;
}