
/* Main section  */
.main-banner {
    background: url("../Images/main-banner.png")no-repeat top center;
    background-position: center;
    background-size: cover;
    min-height: 890px;
}

.main-section {
    padding: 7.5rem 1.87rem;
    display: flex;
    justify-content: space-between;
}

.main-section__info {
    margin-top: 150px;
}

.main-section__image {
    text-align: right;
    position: relative;
    top: 120px;
}

.main-section__image img {
    height: 535px;
}

.main-section__welcome {
    font-size: 1rem; /* 16 / 16 = 1rem */
    font-weight: 400;
    margin-bottom: 1.25rem;/* 20 / 16 = 1.25rem */
    letter-spacing: 2px;/* Harifini yonidan joylashadi*/
    color: #797979;
}

.main-section__introduction {
    margin: 1.25rem 0 1.25rem 0;/* 1) 20 /16 = 1.25rem 2) 20 /16 = 1.25rem */
    font-size: 3.50rem;/* 60 / 16 = 3.75rem */
    font-weight: 500;
    color: #05364e;
}

.main-section__position {
    color: #05364d;
    font-size: 1.5rem;/* 24 /16 = 1.5rem */
    font-weight: 300;
    margin-bottom: 1.25rem;/* 20 / 16 = 1.25rem */
}

.main-section__socila-networks a {
    color: #8fa1aa;
    font-size: 1.25rem;
    display: inline-block;
    margin-right: 1rem;
    cursor: pointer;
}

.main-section__socila-networks i:hover {
    color: #1c44e4;
}

.main-section__action {
    margin-top: 1.87rem;/* 30 /16 = 1.87rem */
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 20px 40px;
    cursor: pointer;
    border-radius: 5px;
}

/* Statistics styles*/
.statistics {
    display: flex;
    margin-top: 90px;
}

.statistics__item {
    width: 150px;
    height: 122px;
    background-color: #f8faff;
    text-align: center;
    padding: 0.32rem 0.625rem;/* 1) 5/ 16 = 0.32rem 2) 10 / 16 = 0.625rem */ 
    margin-right: 1.25rem;/* 20 / 16 = 1.25rem */
}

.statistics__number {
    font-size: 1.68rem;/* 27 / 16 = 1.69rem */ 
    margin-bottom: 0.32rem;/* 5 / 16 = 0.32rem */
    background: linear-gradient(90deg, #1345e6 0%, #ed239f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.statistics__title {
    font-size: 1rem;
    color: #797979;
    font-weight: 300;
}

/* About me section*/
.about-me {
    padding: 6.25rem 0;
    display: flex;
    align-items: center;
}

.about-me > div {
    flex: 1;
}

.about-me__image img {
    width: 90%;
}



.about-me__description {
    font-size: 0.87rem;/* 14 / 16 = 0.87rem */
    font-weight: 300;
    color: #797979;
    line-height: 1.69rem;
}

.about-me__action {
    margin-top: 2.5rem;/* 40 . 16 = 2.5rem */
}

/* services section styles */
.services {
    padding-top: 6.25rem;
}

.services__cards {
    padding-top: 3.75rem;/* 1) 60 / 16 = 3.75rem 2) 30 / 16 = 1.87rem */
    padding-bottom: 1.87rem;
    display: flex;
    justify-content: space-between;
}

.service-card {
    background-color: #f8faff;
    margin-right: 3%;
    text-align: center;
    border-radius: 3px;
    padding: 60px;
    box-sizing: border-box;
    transition: all 0.4s ease 0s;
}

.service-card__title {
    color: #05364d;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.service-card__desription {
    font-size: 0.87rem;
    line-height: 1.68rem;
    font-weight: 300;
    color: #797979;
}

.service-card__link {
    font-size: 0.81rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #05364d;
    text-decoration: none;
}

.service-card:hover {
    background-color: #5f30ff;
}

.service-card:hover .service-card__title,
.service-card:hover .service-card__desription,
.service-card:hover .service-card__link {
    color: #fff;
}

/* Client section styles */
.clients {
    padding-top: 6.25rem;
}

.client-item {
    display: flex;
    align-items: center;
}

.client-item > div {
    flex: 1;
    box-sizing: border-box;
    padding-top: 0.53rem;
}

.client-item__image img {
    width: 100%;
}

.client-item__info {
    padding-left: 3.12rem;/* 50 / 16 = 3.25rem 2) 50 / 16 = 3.25rem */
}

.client-item__name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.client-item__position {
    font-size: 0.87rem;
    font-weight: 300;
    color: #5b6d75;
}

.client-item__review {
    font-size: 0.87rem;
    line-height: 1.68rem;
    font-weight: 300;
    color: #5b6d75;
}

.client-item__rate {
    color: #ffd805;
}

.client-item__rate .disabled {
    color: #aeb9be;
}

/* portfolio section styles */
.portfolio {
    padding: 6.25rem 0;
}

.portfolio-filters {
    list-style: none;
    padding: 0;
    margin-top: 3.12rem;
}

.portfolio-filters li{
    display: inline-block;
    margin-right: 2.5rem;
    font-size: 0.81rem;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
}

.portfolio-filters li:hover,
.portfolio-filters li.active {
    color: #1345e5;
}

.portfolio-items {
    position: relative;     
    margin-top: 3.12rem;
}

.portfolio-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 50%;
    padding: 0.625rem;
    box-sizing: border-box;
}

.portfolio-item__images {
    width: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.portfolio-item-1 {
    padding-left: 0;
}

.portfolio-item-2 {
    position: absolute;
    top: 0;
    right: 0;
    
}

.portfolio-item-3 {
    position: absolute;
    top: 322px;
    right: 0;
    
}

.portfolio-item__overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.4s ease 0s;
}   

.portfolio-item__info {
    position: absolute;
    bottom: 44px;
    left: 80px;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: all 0.4s ease 0s;
}

.portfolio-item__info a {
    color: #fff;
    text-decoration: none;
}
 
.portfolio-item:hover .portfolio-item__overlay {
    visibility: visible;
    top: 20px;
    left: 20px; 
    background: rgba(19,69,239,0.9);
}

.portfolio-item:hover .portfolio-item__info {
    visibility: visible;
    bottom: 24px;
    left: 60px;
    opacity: 1;
}

/* Blog section styles  */
.blog {
    padding-top: 100px;
}

.blog-items {
    margin-top: 3.12rem;
    display: flex;
    justify-content: space-between;
}

.blog-item {
    margin-right: 3%;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-item:hover {
    box-shadow: 0px 10px 20px rgb(5 54 77 / 10%);
}

.blog-item:hover .blog-item__info {
    background-color: #fff;
}

.blog-item:hover .blog-item__image img {
    transform: scale(1.1);
}

.blog-item__image img {
    width: 100%;
    vertical-align: middle;
    transition: all 0.4s ease 0s;
}

.blog-item__image {
    overflow: hidden;
}

.blog-item__info {
    background-color: #fff;
    padding: 1.87rem;
    color: #797979;
}

.blog-item__main-info span {
    font-size: 0.87rem;
    margin-right: 1.87rem;
}

.blog-item__info i {
    margin-right: 0.31rem; 
    cursor: pointer;
}



.blog-item__title {
    font-size: 1.25rem;
    margin: 1.25rem 0 1.25rem 0;
    color: #05364d;
    font-weight: 700;
}

.blog-item__descripition {
    line-height: 1.68rem;
    font-weight: lighter;
    font-size: 0.94rem;
}

.blog-item__learn-more {
    font-size: 0.81rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #05364d;
    cursor: pointer;
    text-decoration: none;
}

.blog-item__learn-more:hover {
    color: #ed239f;
}

/* Partners section styles  */
.partners {
    padding-top: 6.25rem;
    display: flex;
    justify-content: space-between;
}

.partner {
    padding: 0 1.20rem;
}

@media only screen and (max-width: 991px) {
    /* Main section */
    .main-section > div {
        width: 100%;
    }

    .main-section__image {
        display: none;
    }

    /* Stastistisc */
    .statistics {
        padding-top: 1rem;  
        text-align: center;
        justify-content: center;  
    }
    
    /* About me section  */
    .about-me {
        padding: 1.5rem 0;
    }

    .about-me > div {
        width: 100%;
    }

    .about-me__image {
        display: none;
    }

    
    /* Services section */
    .sevices {
        padding: 1.5rem 0;
    }
    
    .services__cards {
        flex-wrap: wrap;
    } 
    .services__cards {
        flex-basis: 45%;
        margin-right: 0;
        margin-bottom: 20px;    
    }

    

    /* Clients */
    .clients {
        padding: 1.5rem 0;
    }

    .client-item {
        flex-direction: column;
    }

    .client-item > div {
        width: 100%;
        float: none;
    }

    /* Blogs */
    .blog {
        padding: 1.5rem 0;
    }

    .blog-items {
        flex-wrap: wrap;
    }

    .blog-item {
        flex-basis: 45%; 
        margin-bottom: 20px;
    }

    /* Partners */
        .partners {
        padding: 1.5rem 0;
    }

    .partners {
        flex-direction: column;
    }

    .partner {
        padding: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Portfolio */
    .portfolio-item-3 {
        top: 200px;
    }
}

@media only screen and (max-width: 767px) {
    /* Main section */
    .main-banner {
        min-height: auto;
        background: none;
    }

    .main-section__action {
        display: none;
    }

    .main-section > div {
        width: 100%;
    }

    .main-section__introduction {
        font-size: 2.2rem;
    }

    /* statistics section */
    .statistics {
        flex-direction: column;
    }

    .statistics__item {
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
        background: #f8faff;
        text-align: center;
        padding: 30px 15px; 
    }

    /* Services section */
    .sevices {
        padding: 1.5rem 0;
    }
    
    .service-card {
        flex-basis: 100%;
        margin-right: 0;
        margin-bottom: 20px;    
    }

    /* Portfolio  */
    .portfolio {
        padding: 1.5rem 0;
    }

    .portfolio-item {
        width: 100%;
    }

    .portfolio-item-2,
    .portfolio-item-3 {
        position: static;
    }

    /* Blogs */
    .blog-items {
        flex-direction: column;
    }
    .blog-item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

}