:root {
    --clr-black: rgb(21, 21, 21);
    --clr-darkgrey: rgb(36, 36, 36);
    --clr-ligthgrey: rgb(69, 68, 68);
    --clr-green: rgb(78, 225, 160);
    --clr-grey: rgb(217, 217, 217);
    --clr-white: rgb(255, 255, 255);
    --clr-invalid: #FF6F5B;
}

body,
p,
h1,
h2 {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

html {
    font-family: 'Space Grotesk', sans-serif;
    font-feature-settings: 'clig' off, 'liga' off;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--clr-white);
}

a {
    text-decoration: none;
}

/* Typography */
.text-white {
    color: var(--clr-ligthgrey);
}

.text-grey {
    color: var(--clr-grey);
}

.headingXL {
    font-size: 5.5rem;
    /* 88px */
    font-weight: bold;
    letter-spacing: -2.5px;
    line-height: 5.5rem;
}

.headingL {
    font-size: 2rem;
    /* 40px */
    font-weight: bold;
    letter-spacing: -1.5px;
}

.headingM {
    font-size: 1.5rem;
    /* 24px */
    font-weight: bold;
    letter-spacing: -1.5px;
}

.text-medium {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 500;
    color: var(--clr-ligthgrey);
    line-height: 155%;
}

.btn {
    display: inline;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2.286px;
    text-transform: uppercase;
    line-height: 26px;
    background-color: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: var(--clr-black);
    padding: 0.7em 0;
    border-bottom: 1px solid var(--clr-green);
}

.btn:hover {
    color: var(--clr-green);
    cursor: pointer;
}


/* content */
.container {
    max-width: 1110px;
    width: 90%;
    margin: 2.4em auto;
}

/* social media */
.social-media {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.444px;
}

.social-media a {
    color: inherit;
}

.social-media a:hover {
    color: var(--clr-green);
}

.social-media-icons {
    display: flex;
    gap: 1.5em;
}

/* intro */
.intro {
    display: flex;
    justify-content: space-between;
    padding: 73px 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--clr-ligthgrey);
}

.intro-description {
    margin: auto 0;
}

.intro-name {
    border-bottom: 6px solid var(--clr-green);
}

.intro-description p {
    margin-top: 43px;
    margin-bottom: 66px;
    color: var(--clr-ligthgrey);
}

.intro img {
    width: 35%;
    background-color: transparent;
    min-width: 277px;
}

/* clients */
.clients-title {
    margin-top: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clients-details {
    background-color: var(--clr-white);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin: 70px 0;
    padding: 70px;
}

.services-details{
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    padding: 5px;
}

.clients-details a {
    width: 25%;
    height: 100%;
}

.clients-details a:hover {
    background-color: var(--clr-green);
}

.clients-details img {
    width: 100%;
    height: 100%;
}

footer {
    background-color: var(--clr-white);
    width: 100%;
}

.copyright {
    display: flex;
}

input,
textarea {
    background-color: var(--clr-darkgrey);
    color: var(--clr-black);
    font-size: 1rem;
    line-height: 1.625em;
    font-weight: 500;
    letter-spacing: -0.222px;
    width: 90%;
    padding: 1em 1.5em;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--clr-black);
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--clr-green);
}

input:invalid,
textarea:invalid {
    border-bottom: 1px solid var(--clr-invalid);
}

#contact-us {
    display: flex;
    justify-content: space-between;
    padding-bottom: 5em;
}

.border-top-white {
    border-top: 1px solid var(--clr-ligthgrey);
    padding-top: 2em;
}

.contact-left,
.contact-right {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.contact-left {
    gap: 2em;
}

.contact-right {
    gap: 1em;
}

#btnSend {
    margin-top: 1em;
    text-align: right;
}

.logo-image {
    width: 8%;
}

p.contact-us{
    display: inline-block;
}

a.contact-us{
    font-size: 1.125rem;
    /* 18px */
    font-weight: 800;
    color: var(--clr-black);
    line-height: 155%;
}

/* tablet */
@media only screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        max-width: 706px;
    }

    .intro-description div {
        max-width: 100%;
    }

    #contact-us {
        display: flex;
        flex-direction: column;
        width: 60%;
        margin: 60px auto;
    }

    .contact-left {
        margin-bottom: 2em;
        text-align: center;
    }

    .contact-right {
        text-align: right;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }

    .intro img {
        visibility: hidden;
        min-width: 0 !important;
    }

    .logo-image {
        width: 16%;
    }

    .intro {
        padding: 33px 0;
    }

    .intro-description p {
        margin-top: 33px;
        margin-bottom: 10px;
    }

    .clients-title {
        margin-top: 30px;
    }

    .clients-details {
        gap: 20px;
        justify-content: space-between;
        align-items: center;
        margin: 10px 0;
        padding: 10px;
    }

    .clients-details a {
        width: 45%;
        height: 100%;
    }
    
}

/* mobile */
@media only screen and (max-width: 375px) {
    html {
        font-size: 12px;
    }

    .container {
        max-width: 343px;
        margin: 20px auto;
    }

    #contact-us {
        width: 95%;
        margin: 20px auto;
    }

    .social-media {
        flex-direction: column;
        gap: 2.5em;
        margin-bottom: 2em;
    }

    .intro {
        flex-direction: column-reverse;
        width: 100%;
    }

    .intro-description {
        width: 100%;
        max-width: 343px;
        text-align: center;
    }

    .intro img {
        width: 100%;
        background-color: transparent;
        min-width: 277px;
        margin-bottom: 2em;
    }

    .intro-description div {
        width: 100%;
    }

    .intro-description p {
        text-align: center;
    }

    .intro-description a {
        margin-top: 1em;
    }

    .intro img {
        visibility: hidden;
        min-width: 0 !important;
    }

    .logo-image {
        width: 16%;
    }

    .intro {
        padding: 33px 0;
    }

    .intro-description p {
        margin-top: 33px;
        margin-bottom: 10px;
    }

    .clients-title {
        margin-top: 30px;
    }

    .clients-details {
        gap: 20px;
        justify-content: space-between;
        align-items: center;
        margin: 10px 0;
        padding: 10px;
    }

    .clients-details a {
        width: 45%;
        height: 100%;
    }
}