@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
body, html{
    scroll-behavior: smooth;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Public Sans', sans-serif;
}
header{
    position: fixed;
    top: 0;
    left: 0;
    height: 75px;
    box-shadow: 0px 2px 10px #00000011;
    width: 100%;
    position: fixed;
    background: #fff;
    z-index: 999;
}
nav{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 2000px;
    margin: 0 auto;
}
nav .menu-cross-btn{
    display: none;
}
nav .links a{
    margin: 0px 10px;
    text-decoration: none;
    color: #76777f;
    position: relative;
    transition: all .5s;
}
nav .links a::before{
    content: '';
    position: absolute;
    bottom: -20px;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, hsl(136, 65%, 51%), hsl(192, 70%, 51%));
    transition: all .5s;
}
nav .links a:hover::before{
    width: 100%;
}
nav .links a:hover{
    color: black;
}
.request-btn{
    padding: 15px 20px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    background: linear-gradient(to right, hsl(136, 65%, 51%), hsl(192, 70%, 51%));
    border: none;
    border-radius: 30px;
}
.request-btn:hover{
    filter: opacity(0.7);
}



/* hero section styling */
.hero{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}
.hero .left-part{
    max-width: 620px;
    padding-left: 90px;
    padding-bottom: 50px;
}
.hero .left-part h1{
    font-size: 2.9rem;
    font-weight: 500;
    margin: 8px 0;
    color: #2d314d;
}
.hero .left-part p{
    color: #76777f;
    margin: 8px 0;
    font-size: 1.1rem;
}
.hero .right-part{
    background: url(images/bg-intro-desktop.svg);
    background-position: -50px -160px;   
    overflow: hidden;
    background-size: 170%;
    background-repeat: no-repeat;
}
.hero .right-part img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 15% 100%;
    position: relative;
    left: 100px;
    top: 40px;
}


/*about section styling*/
.second{
    background-color: #f4f5f7;
}
#about{
    padding: 90px;
    display: flex;
    flex-direction: column;
    max-width: 1600px;
    margin: 0 auto;
}
.head{
    margin-bottom: 50px;
}
.head h2{
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #2d314d;
}
.head p, .benefit p{
    color: #76777f;
    font-size: 1.1rem;
}
.benefits-div{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.benefit h3{
    font-size: 1.5rem;
    font-weight: 400;
    margin: 25px 0;
    color: #2d314d;
}



/* blogs section styling */
.third{
    background-color: #fafafa;
}
#blog{
    padding: 90px;
    max-width: 1600px;
    margin: 0 auto;
}
#blog h2{
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #2d314d;
}
.blogs-flex{
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}
.one-blog{
    max-width: 24%;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
}
.one-blog:hover{
    .image img{
        transform: scale(1.04);
    }
    .text h3{
        color: rgb(38, 174, 74);
    }
}
.one-blog .image{
    height: 200px;
}
.image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.one-blog .text{
    padding: 30px;
}
.text *{
    margin-bottom: 9px;
}
.text p:first-child{
    font-size: 0.9rem;
    color: #76777f;
}
.text h3{
    font-size: 1.3rem;
    font-weight: 400;
    color: #2d314d;
    transition: all 0.3s ease;
}
.text p:last-child{
    font-size: 1.1rem;
    color: #76777f;
}


/* footer styling */
footer{
    background-color: #2d314dff;
}
.footer-content{
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 45px;
}
.footer-part-1{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
}
.footer-part-1 img{
    filter: brightness(5);
}
.footer-part-1 .socials a{
    color: #fff;
    transition: all 0.2s ease;
    font-size: 1.5rem;
}
.socials a:hover{
    color: #27ab4a;
}
.footer-part-2 *, .footer-part-3 *{
    margin-bottom: 15px;
}
.footer-part-2 p a, .footer-part-3 p a{
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-part-2 p a:hover, .footer-part-3 p a:hover{
    color: #27ab4a;
}
.footer-part-4 p{
    margin: 20px 0;
    color: rgb(210, 209, 209);
}


/* for reveal on scroll effect */
.reveal{
    position: relative;
    transform: translateY(70px);
    opacity: 0;
    transition: 1s all;
}
.reveal.active{
    transform: translateY(0px);
    opacity: 1;
}





/* media queries for responsive layout */
@media (max-width: 1024px){
    .hero{
        gap: 2rem;
        margin: 70px auto auto;
    }
    .hero .left-part{
        padding-bottom: 0;
        padding-left: 70px;
    }
    .hero .left-part h1{
        font-size: 2.3rem;
    }
    .hero .right-part{
        background-position: 0 0;
        overflow: visible;
    }
    .hero .right-part img{
        position: static;
    }
    .head h2{
        font-size: 2rem;
    }
    #about, #blog{
        padding: 60px;
    }
    #blog h2{
        font-size: 2rem;
    }
    .blogs-flex{
        gap: 1rem;
    }
    .one-blog{
        max-width: 26%;
    }
    .footer-content{
        justify-content: space-between;
    }
}

@media (max-width: 768px){
    .hero{
        margin: 30px auto auto;
    }
    header{
        height: 60px;
    }
    nav .links a {
        font-size: 0.8rem;
    }
    .hero .left-part h1 {
        font-size: 1.9rem;
    }
    .hero .left-part p{
        font-size: 0.9rem;
    }
    .request-btn{
        padding: 10px 12px;
        font-weight: 400;
        font-size: 0.8rem;
    }
    .head h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .head p, .benefit p {
        color: #76777f;
        font-size: 0.9rem;
    }
    .benefit h3 {
        font-size: 1rem;
        margin: 10px 0;
    }
    #blog h2 {
        font-size: 1.5rem;
    }
    .blogs-flex{
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .one-blog {
        max-width: 45%;
    }
    .footer-content{
        padding: 35px;
    }
}

@media (max-width: 426px){
    /* navbar responsiveness started*/

    header{
        padding: 15px 20px;
        height: 50px;
        overflow: hidden;
    }
    header.active{
        height: fit-content;
    }
    nav .menu-cross-btn {
        display: block;
    }
    nav .request-btn{
        display: none;
    }
    nav{
        flex-wrap: wrap;
        justify-content: space-between;
    }
    nav .links{
        flex-grow: 1;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    nav .links a{
        display: block;
        width: 100%;
        margin: 18px 0;
        text-align: center;
    }
    nav .links a::before{
        bottom: -10px;
        left: 155px;
        width: 0%;
    }
    nav .links a:hover::before{
        width: 20%;
    }
    nav img{
        width: 100px;
    }

    /* navbar responsiveness end */

    .hero{
        flex-direction: column-reverse;
    }
    .hero .left-part{
        padding: 30px 35px;
    }
    .hero .left-part h1 {
        font-size: 1.4rem;
    }
    .hero .left-part p {
        font-size: 0.8rem;
    }
    .hero .right-part {
        background: url(images/bg-intro-mobile.svg);
        background-repeat: no-repeat;
        background-position: top right;
    }
    #about, #blog {
        padding: 35px;
    }
    .benefits-div {
        flex-direction: column;
    }
    .blogs-flex{
        flex-direction: column;
    }
    .one-blog {
        max-width: 100%;
    }
    .text h3 {
        font-size: 1.12rem;
    }
    .text p:last-child {
        font-size: 1rem;
    }
    footer a, p{
        font-size: 0.9rem;
    }
    .footer-part-2, .footer-part-3{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .footer-content {
        padding: 30px;
        flex-direction: column;
    }
    .socials{
        margin-bottom: 1rem;
    }
    .footer-part-4 .request-btn{
        display: block;
        margin: 0 auto;
    }
}