/* App Fonts */

@font-face {
    font-family: "TTNorms";
    src: url("../fonts/TTNorms-Regular.otf") format("openType");
}

@font-face {
    font-family: "TTNorms Medium";
    src: url("../fonts/TTNorms-Medium.otf") format("openType");
}

@font-face {
    font-family: "TTNorms Light";
    src: url("../fonts/TTNorms-Light.otf") format("openType");
}

@font-face {
    font-family: "Times New Roman Italic";
    src: url("../fonts/Times-new-roman-italic.ttf") format("truetype");
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* general */

:root{
    --color-primary: #2f5bea;
    --color-primary-dark: #0050c8;
    --color-primary-hover: #0067c8;
    --color-secondary: #87bc25;
    --color-secondary-hover: #a0bc25;

    --color-white: #fff;
    --color-black: #000;
    --color-text: #6c7890;

    --font-size-base: 16px;

    --spacing-section-lg: 100px;
    --spacing-section-sm: 50px;
    --spacing-mb: 40px;

    --btn-padding: 10px 20px;
}

body{
    font-family: 'TTNorms';
}

.container{
    max-width: 1280px;
    width: 100%;
    margin: auto;
    padding: 0 16px;
} 

a{
    text-decoration: none;
    color: var(--color-black);
}

.btn-link {
    padding: var(--btn-padding);
    border-radius: 5px;
    font-size: var(--font-size-base);
    color: var(--color-white);
    background-color: var(--color-primary-dark);
    transition: background-color 0.2s ease;
}
.btn-link:hover {
    background-color: var(--color-primary-hover);
}

.center{
    text-align: center;
}


/* start css style */

/* header */
/* header top */

.header-top{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}
.header-top-nav{
    display: flex;
    align-items: center;
}
.header-top-nav-logo{
    margin-right: 30px;
    transform: translateY(3px);
}
.header-top-nav-menu{
    list-style-type: none;
    display: flex;
}
.header-top-nav-item{
    margin-right: 16px;
}
.header-top-icon{
    display: none;
    cursor: pointer;
}
.header-top-icon__icon{
    font-size: 30px;
}

/* header-bottom */
.header-bottom{
    margin-top: var(--spacing-section-lg);
    display: flex;
    align-items: center;
}
.header-bottom-left{
    flex-basis: 50%;
}
.header-bottom-left-wrapper{
    width: 440px;
}
.header-bottom-left-title{
    line-height: 40px;
    font-weight: normal;
}
.header-bottom-left-text{
    color: var(--color-text);
    line-height: 32px;
    margin-bottom: var(--spacing-mb);
}
.header-bottom-left-links{
    display: flex;
    flex-wrap: wrap;
}
.header-bottom-left__link{
    cursor: pointer;
    display: inline-block;
    width: 140px;
    margin-bottom: 10px;
}
.header-bottom-left__link:first-child{
    background-color: var(--color-secondary);
    margin-right: 16px;
}
.header-bottom-left__link:first-child:hover{
    background-color: var(--color-secondary-hover);
}
.header-bottom-right{
    flex-basis: 50%;
}
.header-bottom-right__img{
    width: 100%;
}


/* main */
section[class*='section']{
    margin-top: var(--spacing-section-lg);
}

/* first section */
.work-text{
    color: var(--color-text);
    margin-bottom: 16px;
}
.work-title{
    margin-bottom: 80px;
    font-family: 'TTNorms-Medium';
    font-weight: normal;
}
.works-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.work-content-item{
    flex-basis: 300px;
    margin-bottom: 30px;
}
.work-content-item-title{
    margin-bottom: 30px;
    font-weight: normal;
}
.work-content-item-text{
    line-height: 30px;
    color: var(--color-text);
}
.work-logo{
    max-width: 500px;
    /* width: 100%; */
    margin: auto;
    margin-top: var(--spacing-section-sm);
}
.work-logo-img{
    width: 100%;
}

/* second section */
.person-comment-section{
    background-color: var(--color-primary);
    padding: 70px 0;
}
.person-comment-title{
    color: var(--color-white);
    margin-bottom: 30px;
}
.person-comment-desc{
    color: var(--color-white);
    max-width: 450px;
    margin: auto;
    line-height: 30px;
}
.person-comment-wrapper{
    max-width: 1000px;
    margin: 50px auto 0;
}
.person-comment-boxes{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.person-comment-box{
    background-color: var(--color-white);
    flex-basis: 300px;
    min-height: 350px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.person-comment-content{
    text-align: justify;
}
.person-comment-content-body{
    font-family: 'Times New Roman Italic';
    padding: 15px;
    line-height: 25px;
    color: var(--color-text);
}
.person-comment-content-info{
    display: flex;
    align-items: center;
    border-top: 1px solid #e8e8ef;
    padding: 10px 15px;
}
.person-comment-content-info-name{
    margin-left: 10px;
}
.person-comment-companies{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 120px;
}
.person-comment-company__img{
    margin: 15px;
}

/* third section */
.portfolio-text{
    color: var(--color-text);
    margin-bottom: 20px;
}
.portfolio-title{
    margin-bottom: 30px;
}
.portfolio-items{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.portfolio-item{
    flex-basis: 330px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}
.portfolio-item__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* footer */
.footer{
    margin-top: 80px;
}

/* newsletter */
.newsletter{
    background-color: var(--color-primary);
}
.newsletter-wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 100px 0;
}
.newsletter-text{
    color: var(--color-white);
    font-size: 25px;
    font-weight: normal;
}
.newsletter-email{
    background-color: var(--color-white);
    flex-basis: 350px;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}
.newsletter-email__txt{
    border: none;
    outline: none;
    padding-left: 10px;
    width: 75%;
}
.newsletter-email__btn{
    background-color: #2f5bea;
    border: none;
    outline: none;
    padding: 16px 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

/* copy right */
.copy-right{
    padding: 20px 0 0px 0;
}
.copy-right-wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.copy-right__text{
    color: var(--color-text);
    margin: 0 10px 20px 0;
}




/* responsive */

@media only screen and (max-width: 1200px){
    .container{
        max-width: 960px;
    }

    /* third section */
    .portfolio-item{
        flex-basis: 380px;
    }
} 

@media only screen and (max-width: 992px){
    .container{
        max-width: 720px;
    }
    /* header */
    /* header top */
    .header-top{
        justify-content: center;
    }
    .header-top-link__btn{
        display: none;
        visibility: hidden;
    }
    /* header bottom */
    .header-bottom{
        flex-direction: column-reverse;
    }
    .header-bottom-left{
        flex-basis: 100%;
        margin-top: 20px;
    }
    .header-bottom-left-wrapper{
        width: 100%;
    }
    .header-bottom-right{
        flex-basis: 50%;
    }
    
    /* third section */
    .portfolio-item{
        flex-basis: 330px;
    }

    /* footer */
    /* newsletter */
    .newsletter-text{
        width: 330px;
    }
}

@media only screen and (max-width: 768px){
    .container{
        max-width: 540px;
    }
    /* header */
    /* header top */
    .header-top{
        justify-content: space-between;
    }
    .header-top-nav-menu{
        flex-direction: column;
        background: var(--color-primary);
        position: fixed;
        top: 0;
        left: -250px;
        height: 100%;
        width: 250px;
        padding: 40px 30px;
        opacity: 0.8;
        transition: all 0.3s ease-in;
    }
    .header-top-nav-menu:hover{
        opacity: 1;
    }
    .header-top-nav-item__link{
        display: inline-block;
        margin-bottom: 30px;
        color: var(--color-white);
    }
    .header-top-icon{
        display: block;
    }
    
    /* main */
    /* first section */
    .work-content-item{
        flex-basis: 400px;
    }

    /* third section */
    .portfolio-item{
        flex-basis: 450px;
    }

     /* footer */
    /* newsletter */
    .newsletter-text{
        width: 100%;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 576px){
    .container{
        max-width: 100%;
    }

    /* main */
    /* second section */
    .person-comment-companies{
        flex-direction: column;
    }
    /* third section */
    .portfolio-item{
        flex-basis: 90%;
    }
}