@import "common.css";

* {
    box-sizing: border-box;
}

.bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-image: url("../images/stars.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.body {
    background-color: black;
    color: white;
    background: url("../images/clouds-top-2.png") no-repeat,
        url("../images/clouds-bottom-2.png") no-repeat bottom left;
    overflow: hidden;
}

.container {
    margin: 0 auto;
}



/* Nav */

.main-nav {
    padding-left: 30px;
    padding-right: 30px;
}

.main-nav .container {
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    padding: 38px 0;
    align-items: center;
}

.main-nav .logo {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 20px;
    filter: drop-shadow(0px 0px 9px cyan);
}

.main-nav .logo span {
    font-weight: 500;
}

.main-nav ul {
    display: none;
    filter: drop-shadow(0px 0px 9px #2BFFD9);
}

.main-nav ul li {
    display: inline-block;
}

.main-nav ul li:nth-child(n + 2) {
    margin-left: 60px;
}

.main-nav ul a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

section h2 {
    font-size: 25px;
    display: inline-block;
    padding: 15px;
    border: 3px solid white;
    -webkit-text-stroke-width: 2px;
    color: transparent;
    font-weight: 900;
    line-height: 30px;
}


/* Main */

#main .container {
    max-width: 900px;
    padding-top: 90px;
    padding-bottom: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main h1 {
    -webkit-text-stroke: 2px #FAFF00;
    font-weight: 800;
    font-size: 30px;
    line-height: 35px;
    color: transparent;
    padding: 38px 25px;
    border: 4px solid white;
    display: inline-block;
    border-radius: 5px;
    transform: rotate(-4.23deg);
    animation-name: turn-on;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

.mobile-nav {
    margin-top: 16px;
    filter: drop-shadow(0px 0px 9px #2BFFD9);
    transform: rotate(-4.23deg);
}

.mobile-nav ul li {
    display: inline-block;
    /*border: 2px solid white;*/
    padding: 10px;
}

.mobile-nav ul li:nth-child(n + 2) {
    margin-left: 15px;
}

.mobile-nav a {
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 14px;
}



/* Services */

#services {
    margin-top: 100px;
}

#services .container {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#services h2 {
    -webkit-text-stroke: 2px white;
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.8));
    position: relative;
    width: 245px;
    left: 50%;
    will-change: filter;
}

#services .service-type {
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.8));
    padding: 40px;
    border: 3px solid white;
    display: inline-block;
    will-change: filter;
}

#services .service-type:nth-child(2) {
    position: relative;
    left: 97px;
}

#services .service-type:nth-child(3) {
    margin-top: 100px;
    position: relative;
    left: calc(100vw - 300px);
}

#services .service-type h3 {
    -webkit-text-stroke-width: 1px;
    font-size: 18px;
    font-weight: 800;
    color: transparent;
}

#services .service-type:nth-child(2) h3 {
    -webkit-text-stroke-color: #00FF66;
}

#services .service-type:nth-child(3) h3 {
    -webkit-text-stroke-color: #1ABAFF;
}

#services .service-subtype {
    margin-top: 25px;
}

#services .service-subtype h4 {
    font-weight: 600;
}

#services .icons-container {
    display: flex;
    margin-top: 14px;
}

#services .icon-container {
    border: 3px solid white;
    width: 70px;
    height: 70px;
    border-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#services .icon-container:nth-child(n + 2) {
    margin-left: 11px;
}


/* Team */

#team .container {
    max-width: 565px;
    position: relative;
    padding-bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#team h2 {
    display: inline-block;
    padding-top: 30px;
    padding-left: 30px;
    width: 245px;
    height: 245px;
    border: 3px solid white;
    -webkit-text-stroke-color: #EFF7FF;
    animation-name: turn-on-2;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

#team .members-container {
    margin-top: 50px;
}

#team .member {
    max-width: 245px;
}

#team .ghost-member {
    visibility: hidden;
    display: none;
}

#team .member:nth-child(n + 2) {
    margin-top: 56px;
}

#team .member img {
    display: block;
    margin: 0 auto;
}

#team .member .desc-container {
    filter: drop-shadow(0px 0px 9px #97FFE0);
    border: 3px solid white;
    padding: 28px 0;
    display: flex;
    justify-content: center;
}

#team .member .desc {
    display: flex;
    flex-direction: column;
}

#team .member .name {
    font-size: 20px;
    font-weight: 600;
}

#team .member .position {
    margin-top: 3px;
}


/* Contacts */

#contacts {
    margin-top: 100px;
}

#contacts .container {
    max-width: 1000px;
    padding-top: 100px;
    padding-bottom: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

#contacts h2 {
    -webkit-text-stroke-color: #FAFF00;
    padding-top: 66px;
    padding-bottom: 77px;
    animation-name: turn-on-3;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

#contacts .container > div {
    margin-top: 63px;
}

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

#contacts .call-or-text-us-block,
#contacts .contact-form-block {
    max-width: 400px;
}

#contacts .call-or-text-us-block {
    display: flex;
    flex-direction: column;
}

#contacts .call-or-text-us-block span,
#contacts .contact-form-block span {
    font-size: 20px;
    color: transparent;
    -webkit-text-stroke: 1px white;
    font-weight: 800;
}

#contacts .phone-number {
    display: inline-block;
    padding: 10px 10px 10px 52px;
    background-image: url("../images/phone.svg");
    background-repeat: no-repeat;
    background-position-y: center;
    font-size: 24px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px white;
    margin-top: 42px;
}

#contacts .whatsapp-telegram-links {
    margin-top: 25px;
}

#contacts .whatsapp-telegram-links a {
    background-repeat: no-repeat;
    background-position: center center;
    width: 47px;
    height: 47px;
    display: inline-block;
}

#contacts .whatsapp-link {
    background-image: url("../images/whatsapp.svg");
}

#contacts .telegram-link {
    background-image: url("../images/telegram.svg");
    margin-left: 16px;
}

#contacts .email-link {
    margin-top: 30px;
    background-image: url("../images/email.svg");
    background-repeat: no-repeat;
    background-position-y: center;
    font-size: 18px;
    color: transparent;
    -webkit-text-stroke: 1px white;
    padding: 10px 10px 10px 52px;
    font-weight: 600;
}

#contacts .contact-form-block {
    margin-top: 100px;
}

#contacts form {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

#contacts form input,
#contacts form textarea {
    background: none;
    border: 2px solid white;
    padding: 15px;
    color: white;
    font-size: 16px;
    width: 100%;
}

#contacts form input::placeholder,
#contacts form textarea::placeholder {
    color: #c2c2c2;
}

#contacts form .input-container:nth-child(n + 2) {
    margin-top: 13px;
}

#contacts form textarea {
    height: 120px;
    resize: none;
}

#contacts form .input-container {
    position: relative;
}

#contacts form .input-container.invalid-data input,
#contacts form .input-container:nth-child(4).invalid-data {
    border: 2px solid red;
}

#contacts form .input-container .error-message {
    position: absolute;
    right: 0;
    top: 0;
    background-color: red;
    color: white;
    font-size: 15px;
    font-weight: 400;
    padding: 5px;
    display: none;
}

#contacts form .input-container.invalid-data .error-message {
    display: inline-block;
}


#contacts form button {
    margin-top: 16px;
    padding: 11px 0;
    color: white;
    background-color: #9d9d9d;
    border: none;
    font-size: 16px;
}

#contacts form button:hover {
    background-color: #4c4c4c;
}

#contacts form.disabled input,
#contacts form.disabled textarea,
#contacts form.disabled button {
    pointer-events: none;
}

#contacts form.disabled input,
#contacts form.disabled textarea {
    border-color: #393939;
    color: #393939;
}

#contacts form.disabled ::placeholder {
    color: #5f5f5f;
}

#contacts form.submitting button {
    background-color: #4c4c4c;
}

#contacts form.submitted button {
    background-color: green;
}

#contacts form.failed button {
    background-color: red;
}

@media(min-width: 350px) {
    #contacts .phone-number {
        font-size: 30px;
    }
}

@media(min-width: 400px) {
    #main h1 {
        font-size: 36px;
        line-height: 44px;
    }
}

@media(min-width: 440px) {
    section h2 {
        font-size: 30px;
        display: inline-block;
        padding: 30px;
        -webkit-text-stroke-width: 3px;
        line-height: 35px;
    }

    #contacts .call-or-text-us-block,
    #contacts .contact-form-block {
        width: 400px;
    }
}

@media(min-width: 600px) {
    .mobile-nav {
        display: none;
    }

    .main-nav ul {
        display: block;
    }

    #main .container {
        display: block;
    }

    #main h1 {
        position: relative;
        left: 35%;
    }

    #services .container {
        padding-bottom: 100px;
    }

    #team .container {
        padding-top: 180px;
    }
}

@media(min-width: 650px) {
    #team .container {
        display: block;
        flex-direction: initial;
        align-items: initial;
    }

    #team h2 {
        position: absolute;
        right: 0;
    }

    #team .members-container {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-top: 0;
    }

    #team .member {
        width: 245px;
    }

    #team .member:nth-child(n + 2) {
        margin-top: 0;
    }

    #team .member:nth-child(1) {
        margin-top: -160px;
    }

    #team .ghost-member {
        display: block;
        margin-top: 0;
    }

    #team .member:nth-child(3) {
        margin-top: -90px;
    }

    #team .member:nth-child(4) {
        margin-top: 20px;
    }

    #team .member:nth-child(5) {
        margin-top: -55px;
    }

    #team .member:nth-child(6) {
        margin-top: 70px;
    }
}

@media(min-width: 768px) {
    #services .container {
        flex-direction: row;
        justify-content: space-between;
        max-width: 766px;
        align-items: flex-start;
        position: relative;
    }

    #services h2 {
        position: absolute;
        left: unset;
        right: 30px;
        top: 0;
        width: auto;
    }

    #services .service-type:nth-child(3) {
        margin-top: 320px;
        position: static;
        left: unset;
    }
}

@media(min-width: 900px) {
    #contacts .container {
        display: block;
        flex-direction: initial;
        align-items: initial;
    }

    #contacts .container > div {
        display: flex;
        justify-content: space-between;
    }

    #contacts .contact-form-block {
        margin-top: -255px;
        width: 400px;
    }
}

@keyframes turn-on {
    0% {
        -webkit-text-stroke-color: #4c4c4c;
    }

    50% {
        -webkit-text-stroke-color: #FAFF00;
        filter: drop-shadow(0px 0px 9px #2BFFD9);
    }

    100% {
        -webkit-text-stroke-color: #4c4c4c;
    }
}

@keyframes turn-on-2 {
    0% {
        -webkit-text-stroke-color: #4c4c4c;
    }

    50% {
        filter: drop-shadow(0px 0px 9px #17d1ff);
        -webkit-text-stroke-color: #fff;
    }

    100% {
        -webkit-text-stroke-color: #4c4c4c;
    }
}

@keyframes turn-on-3 {
    0% {
        -webkit-text-stroke-color: #4c4c4c;
    }

    50% {
        -webkit-text-stroke-color: #FBFBFB;
        filter: drop-shadow(0px 0px 9px #FAFF00);
    }

    100% {
        -webkit-text-stroke-color: #4c4c4c;
    }
}
