*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

:root {
    --white: #ffffff;
    --primary: #1ABC9C;
    --secondary: #2c3e50;
    --form-color: #4950576b;
    --submit-color: #1abc9c;
    --a-background-hover-icon: #f8f9fa;
    --a-color-hover-icon: #212529;
    --a-link-hover: #117964;
    --copyright-color: #1A252F;
    --margin-bottom: 3rem;
    --padding-right: 1.5rem;
    --padding-left: 1.5rem;
    --padding: 1.5rem;
    --padding-top: 6rem;
    --padding-bottom: 6rem;
    --padding-top-bottom: 6rem 0;
    --footer-padding: 5rem 0;
    --max-width: 1140px;
    --font-size: 1.70rem;
    --margin-left-right: 1rem;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.5;
}

a {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    color: var(--white);
}

.custom-transition {
    transition: all 0.3s ease-in-out;
}

label,
textarea,
button[type="submit"] {
    text-transform: capitalize;
    display: block;
}

.padding-top-bottom {
    padding: var(--padding-top-bottom);
}

.margin-right-line {
    margin-right: var(--margin-left-right);
}

.margin-left-line {
    margin-left: var(--margin-left-right);
}

.button-custom {
    padding: 1rem 1.75rem;
    font-size: 1.25rem;
    text-transform: capitalize;
    color: var(--a-background-hover-icon);
    background-color: transparent;
    border: 0.125rem solid var(--a-background-hover-icon);
    border-radius: 0.5rem;
}

.button-custom:hover {
    color: var(--a-color-hover-icon);
    background-color: var(--a-background-hover-icon);
    cursor: pointer;
}


/*
*
* ============================  navbar  ============================
*
*/

.navbar {
    font-weight: 700;
    color: var(--white);
    background-color: var(--secondary);
}

.navbar-toggler {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: 1.25rem;
    right: 20px;
}

.navbar .container .logo {
    font-size: var(--font-size);
}


/*
*
* ============================  header  ============================
*
*/

.header {
    background-color: var(--primary);
    padding-top: calc(6rem + 80px);
    color: var(--white);
}

.header__image {
    width: 15rem;
    margin-bottom: var(--margin-bottom);
}

.header__title {
    font-size: 4rem;
    line-height: 3.5rem;
    text-transform: uppercase;
}

.break-line {
    margin: 1.25rem 0 1.5rem;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-line {
    width: 100%;
    max-width: 7rem;
    height: 0.25rem;
    background-color: var(--white);
}

.header__text {
    font-size: var(--padding);
    font-weight: 300;
    font-family: "Lato", sans-serif;
}


/*
*
* ============================  portfolio  ============================
*
*/

.portfolio {
    color: var(--secondary);
}

.portfolio__h2 {
    font-size: var(--margin-bottom);
}

.portfolio .break-line .divider-line {
    background-color: var(--secondary);
}

.card__image {
    cursor: pointer;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card__image .card__overlay {
    position: absolute;
    width: 100%;
    align-items: center;
    display: flex;
    height: 100%;
    top: 50%;
    left: -50%;
    color: var(--a-background-hover-icon);
    background-color: var(--primary);
    font-size: var(--padding-top);
    margin: auto 0;
    transform: translate(-50%, -50%);
    justify-content: center;
    transition: left .5s ease-in-out;
}

.card__image:hover .card__overlay {
    left: 50%;
}


/*
*
* ============================  about  ============================
*
*/

.about {
    background-color: var(--primary);
    color: var(--white);
}

.about__h2 {
    font-size: var(--margin-bottom);
}

.about__p {
    font-weight: 300;
    font-size: 1.25rem;
    text-align: left;
    /* word-break: break-all; */
}


/*
*
* ============================  contact  ============================
*
*/

.contact {
    color: var(--secondary);
    text-align: center;
}

.contact__h2 {
    font-size: var(--margin-bottom);
}

.contact .break-line .divider-line {
    background-color: var(--secondary);
}

.contact-holder {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.contact-holder .form {
    display: block;
    width: 100%;
    margin: 0 auto;
    max-width: 70%;
}

.contact-holder .form>div {
    margin-bottom: var(--margin-left-right);
    text-align: left;
    margin: 0 1.5rem;
}

input[type="text"],
input[type="email"],
input[type=number],
textarea,
button[type="submit"] {
    padding: 1.75rem;
    font-size: 1.25rem;
    width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--a-background-hover-icon);
    box-shadow: 0.01rem 0.01rem 0.05rem rgba(0, 0, 0, 0.270);
    /* 0.025rem */
    color: var(--secondary);
    resize: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type=number]:focus,
textarea:focus {
    color: var(--primary);
    font-weight: 500;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type=number]::placeholder,
textarea::placeholder {
    color: var(--form-color);
}

#my-button {
    width: initial;
    padding: 1rem 1.75rem;
    font-size: 1.25rem;
    color: #fff;
    border: none;
    border-radius: .5rem;
    background-color: #1abc9c;
    border-color: #1abc9c;
}

#my-button:hover {
    cursor: pointer;
    background-color: var( --a-link-hover);
}


/*
*
*  ============================  footer ============================
*
*/

.footer {
    background-color: var(--secondary);
    padding: var(--footer-padding);
}

.footer__title {
    font-size: 1.24rem;
    color: white;
}

.footer__p {
    font-size: 1rem;
    font-weight: 300;
    color: white;
}

.footer__a {
    color: var( --a-link-hover) !important;
}

.footer__a:hover,
.navbar__a:hover {
    color: var(--primary) !important;
    text-decoration: none;
}

.social {
    border-radius: 50%;
    border: 1.5px solid var(--a-background-hover-icon);
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.25rem;
    justify-content: center;
    align-items: center;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    margin: 3px;
}

.social:hover {
    background-color: var(--a-background-hover-icon);
    color: var(--a-color-hover-icon);
}


/*
*
*  ============================ copyright ============================
*
*/

.copyright {
    background-color: var(--copyright-color);
}

.copyright__p {
    color: var(--white);
}


/*
*
*   ============================  media query   ============================
* 
*/


/*
*
*   Extra small devices (phones, 600px and down)
* 
*/

@media only screen and (max-width: 576px) {
    .navbar .container .logo {
        font-size: 1.1rem;
    }
    .navbar-button {
        padding: 1rem 1.0rem;
        top: 8px;
    }
    .header .container .title {
        font-size: 2.8rem;
    }
    .header {
        padding-top: calc(6rem + 20px);
    }
    .header__image {
        width: 12rem;
    }
    .header__title {
        font-size: 1.9rem;
    }
    .contact-holder .form {
        max-width: 100%;
    }
    .portfolio__h2,
    .about__h2,
    .contact__h2 {
        font-size: 2.25rem;
    }
}


/*
*
*   Small devices (portrait tablets and large phones, 600px and up)
* 
*/

@media only screen and (min-width: 576px) {
    .navbar .container .logo {
        font-size: 1.25rem;
    }
    .contact-holder .form {
        max-width: 100%;
    }
}


/*
*
*   Medium devices (landscape tablets, 768px and up) The navbar toggle appears at this breakpoint
* 
*/

@media only screen and (min-width: 768px) {
    .contact-holder .form {
        max-width: 95%;
    }
}


/*
*
*    the side navbar till here 
*
*/

@media only screen and (min-width: 850px) {
    .contact-holder .form {
        max-width: 100%;
    }
    .navbar .container .logo {
        font-size: 1.50rem;
    }
}


/*
*
*   Large devices (laptops/desktops, 992px and up)
* 
*/

@media only screen and (min-width: 992px) {
    .contact-holder .form {
        max-width: 75%;
    }
}