/* * {
    font-family: Coda;
} */

@font-face {
    font-family: eurostile-extended;
    src: url('../fonts/eurostile_extended_black.ttf') format('truetype');
}

h1 {
    font-family: "eurostile-extended";
}

nav {
    border-top: 1px solid rgba(0,0,0,0.3);
}

.logo {
    position: absolute;
    top: -1px;
    /* animation-name: spin;
    animation-duration: 7s;
    animation-fill-mode: forwards;
    animation-iteration-count: 3;
    animation-delay: 3s; */
}

.underline-link{
    font-size: 16px;
    font-weight: bold;
    transition: border-bottom 0.1s linear!important;
    text-transform: uppercase;
}

.underline-link:hover{
    border-bottom: 2px solid brown!important;
}

.active {
    border-bottom: 2px solid darkblue!important;
}

.bg-image {
    background: url("../../images/background.jpg");
    background-position: center;
    background-size: cover;
    min-height: 550px;
    border-top:10px solid rgba(0,0,0,0.2);
    border-bottom:10px solid rgba(0,0,0,0.2);
}

.bg-blue {
    border: 4px solid transparent!important;
    border-image: linear-gradient(0deg,#33346A,#C02635)!important;
    border-image-slice: 1!important;
}

#service {
    background-color: #f7f7f7;
}

#project {
    background-color: #c4c3c3;
}

#service p, #service h3 {
    transition: all 0.9s linear;
    opacity: 0;
    color: rgba(0,0,0,0.6)
}

h3 {
    font-family: eurostile-extended!important;
}

.video-container {
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: 0; 
    top: 0;
    left: 0;
}

.caption {
    z-index: 1;
    padding-top: 50px;
}

.caption h1:nth-child(1) {
    text-transform: uppercase;
    font-size: 3.8rem;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: currentColor;
}

.caption h1 strong {
    outline: 0;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke-width: 0;
    -webkit-text-stroke-color: transparent;
}

.caption h1:nth-child(2) {
    color: #C02635;
    font-size: 3.8rem;
    text-transform: uppercase;
    position: absolute;
    top: 243px;
    -webkit-animation: animate 4s ease-in-out infinite;
    animation: animate 4s ease-in-out infinite;
}

@keyframes animate{
    0%,
    100%{clip-path:polygon(0% 45%, 15% 44%, 32% 50%, 54% 60%, 70% 61%, 84% 69%, 100% 52%, 100% 100%, 0% 100%)}
    50%{clip-path:polygon(0% 60%, 16% 65%, 34% 66%, 51% 62%, 67% 50%, 84% 45%, 100% 46%, 100% 100%, 0% 100%)}
}

.card-text {
    text-align: left;
}

#construct {
    position: relative;
}

.main {
    position: relative;
}

.main img {
    height: 100%;
}

.fig {
    position:absolute;
    bottom: 5px;
    padding: 10px 5px;
    opacity:0;
    background-color: rgba(0,0,0,0.6);
    transition: all 0.5s linear;
    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
}

.fig p {
    color: #ffffff;
    line-height: 1.7em;
    font-size: 11px;
    font-weight: bold;
    width: 60%;
    height: 25%;
}

#construct img {
    position: relative;
    /* background-color: blanchedalmond; */
    /* width: 350px;
    height: 350px; */
    margin-top: 25px;
    margin-left: 150px;
    z-index: 2;
}

.bg-img-design {
    position: absolute;
    left: 80px;
    top: 10px;
    width: 24.375em;
    height: 28.125em;
    border: 27px solid rgba(0,0,0,0.6);
    /* background-color: #ffffff; */
    z-index: 1;
    animation: shift 5s linear 2s infinite alternate forwards;
}

#contact h2 {
    font-family: 'Raleway', sans-serif;
}

@keyframes shift {
    0%{
        left: 80px;
    }
    100%{
        left: 280px;
    }
}

.lead {
    /* color: #C02635; */
    color: #33346A;
    padding-left: 310px;
}

.lead::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    margin: 15px 0 0 -54px;
    background-color: #C02635;
}

.lead::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    margin: 15px 0 0 6px;
    background-color: #C02635;
}

.caption-img {
    z-index: 1;
    opacity: 0.2;
    width: 300px;
    height: 300px !important;
    margin-top: 120px;
}

.social-network {
    position:absolute;
    top:0;
    right: 0;
    padding-top: 5px;
    background-color: rgba(0,0,0,0.8);
    width: 35%;
    height: 35px;
}

.social-network ul {
    list-style: none;
    padding: 0;
}

.social-network ul li {
    display: inline-block;
    padding: 0 10px;
}

.social-network ul li i {
    color: #fff;
    cursor: pointer;
    transition: color 0.4s ease-in-out;
}

.fa-facebook:hover {
    color: #4267B2;
}

.fa-twitter:hover {
    color: #1DA1F2;
}

.fa-linkedin:hover {
    color: #0077b5;
}

#home {
    background-image: url("../../images/bg2.png");
    background-position: center;
    background-size: cover;
}

#contact {
    color: rgba(0,0,0,0.3);
    /* background-color: #eeeded; */
    background-color: #a7a6a6;
}

#contact input, #contact textarea {
    font-size: 10px;
}

#contact h6 {
    margin-bottom: 0!important;
}


.contact-icon {
    margin-right: 10px;
}

.conatct-info {
    margin-top: 6.6rem;
}

.contact-email {
    line-break: anywhere;
}

.btn-send {
    padding: 10px;
    background-color: #ffffff;
    color: #0d6efd;
    border: none;
    box-shadow: 1px 1px 2px #000;
    border-radius: 5px;
    width: 6.2em;
    transition: all 0.7s linear;
}

.btn-send:hover {
    padding: 10px;
    background-color: #0d6efd;
    color: #ffffff;
    /* border: 1px solid #ffffff; */
    width: 6.2em;
}

.scrollup {
    position: fixed;
    bottom: 1px;
    right: 1px;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.6);
    text-align: center;
    transition: all 0.5s linear;
    opacity: 0;
}

.scrollup a {
    margin: 12px 0;
    text-decoration: none;
    color: #fff;
} 

@media(max-width: 740px) {
    .caption h1 {
      font-size: 3.2rem!important;
    }

    .caption h1:nth-child(2) {
        top: 221px;
    }
}

@media(max-width: 575px) {

    .caption h1 {
        font-size: 1.5rem!important;
    }

    .caption h1:nth-child(2) {
        top: 167px;
        left: 69px;
    }

    .lead {
        display: none;
    }
}

@media(width: 360px) {
    .caption h1:nth-child(2) {
        left: 81px;
        top: 155px;
    }
}

@media(max-width: 320px) {
    .caption h1:nth-child(2) {
        left: 61px;
        top: 154px;
    }
}

@media(width: 415px) {
    .caption h1:nth-child(2) {
        left: 108px;
        top: 155px;
    }
}

@media(width: 414px) {
    .caption h1:nth-child(2) {
        left: 107px;
        top: 155px;
    }
}

@media(width: 413px) {
    .caption h1:nth-child(2) {
        left: 107px;
        top: 155px;
    }
}

@media(width: 412px) {
    .caption h1:nth-child(2) {
        left: 107px;
        top: 155px;
    }
}

@media(width: 411px) {
    .caption h1:nth-child(2) {
        left: 107px;
        top: 155px;
    }
}

@media(width: 410px) {
    .caption h1:nth-child(2) {
        left: 107px;
        top: 155px;
    }
}

@media(max-width: 409px) {
    .caption h1:nth-child(2) {
        left: 105px;
        top: 155px;
    }
}

@media(width: 428px) {
    .caption h1:nth-child(2) {
        left: 115px;
        top: 156px;
    }
}

@media(width: 375px) {
    .caption h1:nth-child(2) {
        left: 89px;
        top: 155px;
    }
}

@media(width: 384px) {
    .caption h1:nth-child(2) {
        left: 93px;
        top: 156px;
    }
}

@media(width: 390px) {
    .caption h1:nth-child(2) {
        left: 96px;
        top: 156px;
    }
}

@media(width: 414px) {
    .caption h1:nth-child(2) {
        left: 108px;
        top: 155px;
    }
}

@media(max-width: 575px) {
    .scrollup {
        right: 12px;
        bottom:5px;
    }

    .box1, .box2, .box3, .box4 {
        display: none;
    }
}

@media(max-width: 991px) {
    .logo {
        width: 90px;
        height: 90px;
    }

    .active{
        border-top: 2px solid darkblue!important;
        border-bottom: none!important;
        color: darkblue!important;
        margin-top: 5px;
    }

    .main img {
        max-height: auto;
    }
}

@media(max-width: 1396px) {
    .bg-img-design {
        left:0;
    }

    #construct img {
        margin-left: 0;
    }
}

.box1, .box2, .box3, .box4 {
    position:absolute;
    height: 530px;
    width: 100px;
    transition: transform 0.3s linear;
    box-shadow: 0px 0 2px #fff;
    animation-name: rotate;
    animation-duration: 7s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-delay: 3s;
    z-index: 50;
}

.box1 {
    left: 2px;
    background-color: rgba(0,0,0,0.9);
}

.box2 {
    left: 103px;
    background-color: rgba(0,0,0,0.7);
}

.box3 {
    left: 204px;
    background-color: rgba(0,0,0,0.5);
}

.box4 {
    left: 305px;
    background-color: rgba(0,0,0,0.3);
}

@keyframes rotate {
    0% {
        transform:rotateY(0deg);
        -webkit-transform:rotateY(0deg);
        -moz-transform:rotateY(0deg);
    }
    50% {
        transform:rotateY(35deg);
        -webkit-transform:rotateY(35deg);
        -moz-transform:rotateY(35deg);
    }
    100% {
        transform:rotateY(5deg);
    }
}