@import url(https://fonts.googleapis.com/css?family=Overpass:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
@import url(https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);

/* VARIABLES */
:root {
    --primary-color: royalblue;
    --secondary-color: #111111;
    --primary-font: 'Poppins', sans-serif;
    --secondary-font: 'Overpass', sans-serif;
}

/* RESET DEFAULT STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--secondary-font);
    margin-bottom: 1rem;
}

/* UTILITY CLASSES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-primary {
    color: var(--primary-color);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.btn {
    display: inline-block;
    max-width: max-content;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: royalblue;
    color: #fff;
}

.btn-primary:hover {
    background-color: goldenrod;
}

.btn-secondary {

    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.section-subheading {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: royalblue;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 3rem;
    max-width: 600px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-heading.left {
    margin-right: auto;
}

.section-heading.right {
    margin-left: auto;
}



/* GLOBAL STYLES */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--primary-font);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    color: var(--secondary-color);
    scroll-behavior: smooth;
}

section {
    position: relative;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;

}

/* HEADER */

header{
    padding: 1rem 0;
    width: 100%;
    position: absolute;
    z-index: 999;
}

header.sticky{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header__logo img{
    width: 100px;
    height: 30px;
}

.header__menu{
    gap: 1rem;
}

.header__menuli li a{
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.3s;
}

.header__menu li a:hover{
    color: royalblue;
}

header .right{
    gap: 1rem;
}

.menu-btn{
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* HERO */

#hero{
    min-height: 100vh;
}

.hero__content{
    height: 100%;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__content h1{
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero__content p{
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}
 .hero-img{
    width: 60%;
 }

/* ABOUT */

.features{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature{
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--color);
}

.feature__icon{
    font-size: 2rem;
    color: var(--color);
    margin-bottom: 1rem;
}

.feature__title{
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature__text{
    font-size: 0.9rem;
}

.about__details{
    display: flex;
    gap: 2rem;
    margin-top: 5rem;
}

.about__details-content{
    width: 50%;
}

.about__details-content h1{
    font-size: 2rem;
    font-weight: 700;
}

.about__details-content p{
    font-size: 0.9rem;
    font-weight: 400;
}

.about__details-content .btn{
    margin-top: 1rem;
}

.about__details-img{
    width: 50%;
}




/* SERVICES */

#services .section-heading,
#services .section-subheading{
    text-align: right;;
}

.services{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service{
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.service__icon img{
    width: 50px;
    margin-bottom: 1rem;
}

.service__title{
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service__text{
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service .arrow-icon{
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: auto;
    transition: transform 0.3s;
}

.service:hover .arrow-icon{
    transform: translate(5px);
}

/* Projects */

.projects{
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 5rem;
}

.project{
    display: flex;
    gap: 10%;
    align-items: center;
}

.project:nth-child(2){
    flex-direction: row-reverse;
}

.project__img{
    position: relative;
    min-width: 35%;
}

.project__img::after{
    content: '';
    position: absolute;
    top: -20px;
    width: 90%;
    height: 90%;
    border-radius: 8px;
    z-index: 1;
    border: 4px solid #f1e8ed;
}

.project:nth-child(1) .project__img::after,
.project:nth-child(3) .project__img::after{
    left: -20px;
}

.project:nth-child(2) .project__img::after{
    right: -20px;
    border-color: #6bc2ed;
}

.project:nth-child(3) .project__img::after{
    border-color: #fed440;
}

.project__category{
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project__title{
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.project__text{
    font-size: 0.9rem;
    margin-bottom: 1rem;
}


/* TEAM */

.members{
    display: flex;
    gap: 3rem;
}

.member:nth-child(2),
.member:nth-child(4){
    margin-top: 5rem;
}

.member__img{
    margin-bottom: 1rem;
}

.member__content h1{
    margin-bottom: 0.25rem;
}

.member__content p{
    opacity: 0.4;
    font-weight: 600;
}


/* TESTIMONIALS */

#testimonials{
    display: flex;
    align-items: center;
    gap: 5rem;
}

#testimonials .section-subheading{
    margin-bottom: 2rem;
}

.testimonials-wrapper{
    position: relative;
    width: 70%;
}

.quotes{
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial__title{
    font-size: 2rem;
    padding-left: 6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonial__text{
    opacity: 0.8;
    margin-bottom: 3rem;
}

.testimonial__img img{
    max-height: 500px;
}

.testimonial__author{
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__author h3{
    margin: 0;
}

.testimonial__author p{
    color: rgb(95, 95, 95);
    font-size: 0.8rem;
    font-weight: 600;
}

.testimonial__author::before{
    content: '';
    width: 15px;
    transform: translate(-70%);
    border-bottom: 1px solid #111111;
}

.testimonial-navigation{
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-navigation span{
    width: 10px;
    height: 10px;
    border-radius: 50px;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-navigation span.active{
    width: 30px;
}

/* CONTACT */
.contact{
    display: flex;
    align-items: center;
    gap: 5rem;
}

.contact__form{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__form input,
.contact__form textarea{
    padding: 1rem;
    border-radius: 8px;
    border: none;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.contact__form textarea{
    resize: vertical;
}

.contact__details{
    width: 50%;
}

.contact__details .text{
    font-size: 0.9rem;
    color: #2e2e2e;
    margin-bottom: 2rem;
}

.contact__details .details{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__details .detail{
    display: flex;
    gap: 2rem;
    align-items: center;
}

.detail__icon{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    background: #fe6686;
}

.detail:nth-child(2) .detail__icon{
    background: #54d6a1;
}

.detail:nth-child(3) .detail__icon{
    background: #fe9a3f;
}

.detail__content{
    margin: 0;
    line-height: 1;
}

.detail__content p{
    color: #747474;
    font-size: 0.9rem;
}

/* FOOTER */

footer{
    padding: 2rem 0;

}

.footer__content{
    display: grid;
    gap: 5rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer__logo{
    width: 170px;
    height: 30px;
    margin-bottom: 1rem;
}

.footer__text{
    font-size: 0.9rem;
    color: #747474;
    margin-bottom: 1rem;
}

.footer__newsletter{
    position: relative;
}

.footer__newsletter input{
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    outline: none;
    background-color: #f3f9fb;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.1);
}

.footer__newsletter .icon{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.footer__menu-list{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.8rem;
    color: #747474;
}

.footer__bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #747474;
    margin-top: 3rem;
}

.footer__bottom-icons{
    display: flex;
    gap: 1rem;
}

.facebook{
    color: #3b5998;
}

.twitter{
    color: #00acee;
}

.instagram{
    color: #e4405f;
}

.linkedin {
    color: #0e76a8;
}


/* MEDIA QUERIES */
@media screen and (max-width: 768px) {

    /* GLOBAL */
    .container{
        padding: 0 1rem;
    }

    section{
        padding-top: 2rem !important;
        padding-bottom: 3rem !important;
    }

    .section-heading{
        font-size: 2rem;
    }

    
    /* HEADER */
    .header__menu{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .header__menu.show{
        transform: translateX(0);
    }

    .header__menu li{
        margin: 1rem 0;
    }

    .menu-btn{
        display: block;
        z-index: 99;
    }


    /* HERO */

    #hero{
        flex-direction: column;
        text-align: center;
    }

    .hero__content{
        width: 100%;
        text-align: center;
        margin-top: 5rem;
    }

    .hero__content h1{
        font-size: 2.5rem;
    }

    .hero__content .btn{
        margin:  0 auto;
    }

    .hero__img{
        width: 100%;
    }


    /* ABOUT */

    .features{
        grid-template-columns: repeat(1fr);
    }

    .feature{
        padding: 1rem;
    }

    .about__details{
        flex-direction: column;
    }

    .about__details-content,
    .about__details-img{
        width: 100%;
    }


    /* PROJECTS */

    .project{
        flex-direction: column !important;
        gap: 2rem;
    }

    .project__img{
        width: 100%;
        max-width: 300px;
    }

    .project__title{
        font-size: 1.5rem;
    }

    /* TEAM */

    .members{
        flex-direction: column;
        text-align: center;
    }

    .member{
        margin: 0 !important;
    }

    .member__img img{
        max-width: 300px;
    }


    /* TESTIMONIALS */

    .testimonial__img{
        display: none;
    }

    .testimonials-wrapper{
        width: 100%;
    }


    /* CONTACT */

    .contact{
        flex-direction: column;
    }

    .contact__form,
    .contact__details{
        width: 100%;
    }


    /* FOOTER */

    .footer__content{
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        
    }

    .footer__bottom{
        flex-direction: column;
        text-align: center;
    }


}


