/* variables */
:root {
  --base-color: #fff;
  --second-color: #272727;
  --third-color: #747474;
  --fourth-color: rgba(28, 119, 210, 0.7);
  --fifth-color: #fead26;
  --sixth-color: #14a76c;
  --seventh-color: rgba(234, 31, 31, 0.7);
}

/* general */
* {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
}

.wrapper {
    width: 80%;
    max-width: 1250px;
    margin: 0 auto;
    color: var(--second-color);
    font-family: 'Poppins', sans-serif;
}

.sr-only {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    margin: -1px !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

/* header */
.header {
    width: 100%;
    background-color: var(--second-color);
}

.header-wrapper {
    line-height: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.header-wrapper a {
    color: var(--base-color);
    text-decoration: none;
    -webkit-transition: color 0.5s;
    -o-transition: color 0.5s;
    transition: color 0.5s;
}

.header-wrapper a:hover {
    color: var(--fifth-color);
}

.logo a {
    color: var(--sixth-color);
}

.menu {
    padding: 0;
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.menu li {
    margin-left: 1rem;
    font-size: 0.8rem;
}

.menu li:first-of-type {
    margin-left: 0;
}

/* hero */
.hero {
    width: 100%;
    padding: 1rem 0 3rem;
    background: var(--second-color);
    margin-bottom: 2.5rem;
}

.hero-wrapper {
    color: var(--base-color);
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.second-header {
    font-size: 0.5rem;
    display: none;
}

.hero-wrapper img {
    width: 70%;
    max-width: 500px;
    margin-bottom: 1rem;
}

.hero-paragraph {
    width: 100%;
    line-height: 2;
    margin-bottom: 3rem;
}

.hero-btn-wrapper {
    line-height: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.hero-btn {
    margin: 1rem 0 0;
    padding: 0.5rem 2.5rem;
    color: var(--second-color);
    background: var(--base-color);
    text-decoration: none;
    border-radius: 5px;
    -webkit-transition: color 0.5s, background 1s;
    -o-transition: color 0.5s, background 1s;
    transition: color 0.5s, background 1s;
}

.hero-btn:hover {
    color: var(--base-color);
    background: var(--fourth-color);
}

/* about-us */
.about-us {
    margin-bottom: 3rem;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.third-header {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.about-us-header {
    margin: 0 0 1.5rem;
    text-align: center;
}

.about-us-wrapper {
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.info {
    width: 100%;
    padding-right: 0;
}

.info-paragraph {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-paragraph:last-of-type {
    margin-bottom: 2rem;
}

.competences {
    width: 100%;
    margin-top: 1rem;
    padding-left: 0;
    line-height: 1.5;
}

.competences-list {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1/5;
}

.competences-list li {
    margin-top: 0.5rem;
}

.competences-list span {
    margin-right: 0.5rem;
}


.competences-list li::after {
    content: "➪";
    font-size: 1.5rem;
    color: var(--fourth-color);
    position: absolute;
    bottom: -10px;
    left: -30px;
}

/* team */
.team {
    width: 100%;
    padding: 1rem 0 8rem 0;
    background: var(--second-color);
}

.team-wrapper {
    color: var(--base-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.members-header {
    margin-top: 2rem;
}

.members-box {
    width: 100%;
    margin-top: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.member {
    width: 100%;
    margin: 2rem 2rem 0 0;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.member img {
    border-radius: 50%;
    margin-bottom: 1rem;
}

.member-name {
    color: var(--sixth-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.member-name-boss {
    color: var(--fifth-color);
}

.member-status {
    width: 90%;
    line-height: 1.5;
}

.member-social-icons {
    margin-top: 1rem;
}

.member-social-icons a {
    margin: 0 0.5rem 0 0;
    font-size: 1rem;
    color: var(--base-color);
    text-decoration: none;
    -webkit-transition: color 0.5s;
    -o-transition: color 0.5s;
    transition: color 0.5s;
}

.member-social-icons a:hover {
    color: var(--fifth-color);
}

/* contact */
.contact {
    margin-bottom: 1rem;
}

.third-header-contact {
    margin: 3rem 0 1rem 0;
    font-size: 1.5rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.contact-wrapper {
    padding: 2rem 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.form {
    width: 100vw;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.form label {
    padding: 1.5rem 0 0.5rem 0;
}

.form label:first-of-type {
    padding-top: 0;
}

.form input {
    width: 80%;
}

.message {
    width: 80%;
    height: 20vh;
    margin-bottom: 2rem;
    resize: vertical;
}

.submit {
    padding: 0.6rem 2.5rem;
    font-size: 1rem;
    color: var(--base-color);
    background: var(--sixth-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: background 1s;
    -o-transition: background 1s;
    transition: background 1s;
}

.submit:hover {
    background: var(--fourth-color);
}

.contact-info {
    width: 100vw;
    padding-right: 0.5rem;
    position: relative;
}

.contact-info::after {
    content: "";
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: -2rem;
}

.contact-info p {
    margin: 1.5rem 0 0;
    line-height: 2;
    font-style: normal;
}

.contact-info a {
    color: var(--second-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--second-color);
    text-decoration: underline;
}

/* arrow back-to-top */
.back-to-top-wrapper {
    padding: 1rem 0 2rem 0;
    font-size: 3rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.back-to-top {
    color: var(--second-color);
    -webkit-transition: color 0.5s;
    -o-transition: color 0.5s;
    transition: color 0.5s;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.back-to-top:hover {
    color: var(--fifth-color);
}

/* footer */
.footer {
    width: 100%;
    padding: 1rem 0;
    background: var(--second-color);
}

.footer-wrapper {
    color: var(--base-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-animation: show 3s ease-in;
            animation: show 3s ease-in;
}

.social-icons a {
    color: var(--base-color);
    font-size: 1.5rem;
    text-decoration: none;
    -webkit-transition: color 0.5s;
    -o-transition: color 0.5s;
    transition: color 0.5s;
}

.social-icons a:nth-last-of-type(2) {
    margin: 0 1rem;
}

.social-icons a:hover {
    color: var(--fifth-color);
}

/* media queries*/
@media only screen and (min-width: 740px) {
    /* header */
    .header-wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    .menu li {
        margin-left: 1.5rem;
        font-size: 1rem;
    }

    /* hero */
    .hero {
        padding: 5rem 0 6rem;
        margin-bottom: 3rem;
    }

    .hero-paragraph {
        width: 60%;
    }

    /* about-us */
    .about-us {
        margin-bottom: 5rem;
    }

    .about-us-header {
        margin: 0 0 2rem;
    }

    .about-us-wrapper {
        text-align: left;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    .info {
        width: 65%;
        margin-right: 4rem;
    }

    .competences {
        width: 30%;
    }

    /* team */
    .members-box {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    .member {
        width: 200px;
    }

    /* contact */
    .contact-wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    .form {
        width: 60vw;
    }

    .contact-info {
        width: 40vw;
    }

    .contact-info::after {
        border: 0.5px solid var(--fourth-color);
    }

    /* arrow back-to-top */
    .back-to-top-wrapper {
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
    }

    /* footer */
    .footer-wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }
}

/* animations */
@-webkit-keyframes show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
