@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,700&display=swap');


/* base */

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html{
    overflow-x: hidden;
}

body{
    background-color: #f2f2f2;
    overflow-x: hidden;
    font-family: 'Raleway', sans-serif;
}

a, p, h1, h2, h3{
    color: #fff;
}

img{
    max-width: 100%;
    width: 100%;
}


.section{
    padding: 60px 10%;
    /* margin-top: 10%; */
    min-height: 70vh;
}

.section-wrapper{
    max-width: 1100px;
    padding: 0 30px;
    margin: 0 auto;
}
.section-title{
    position: relative;
    color: #212529;
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    padding: 2% 0;
}

h2:after{
	content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 100px;
    border-radius: 2px;
    background-image: linear-gradient(to right, #ba1363, #9d45d9);
}

/* header */

.header{
    padding: 20px 80px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
}

.header-inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1550px;
    margin: 0 auto;
}

.menu-toggle{
    display: none;
}

.logo{
    text-transform: uppercase;
    font-size: 2rem;
    line-height: 24px;
}

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

.nav-item{
    padding-right: 90px;
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
}

.nav-item:last-child{
    padding-right: 0;
}

.nav-item::before{
    content: '';
    position: absolute;
    width: 50%;
    height: 1px;
    background: #fff;
    top: 50%;
    left: 0;
    pointer-events: none;
    height: 2px;
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s cubic-bezier(0.4, 1, 0.8, 1);
}

.nav-item:last-child::before{
    width: 100%;
}

.nav-item:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

.nav-item a{
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 1, 0.8, 1);
}

.nav-item a:hover{
    transform: scale3d(1.1, 1.1, 1.1);
}


/* hero */

.hero{
    width: 100%;
    height: 100vh;
    background-image: radial-gradient(closest-side at 1000px 450px, #ba1363 40%, #9d45d9 180%);
}

.hero-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10%;
}

.hero img{
    width: 48%;
    margin-top: 10%;
    animation: scale .5s forwards;
}

.copy{
  	width: 500px;
    font-size: 3rem;
    font-weight: bold;
    margin-top: 25%;
    animation: scale .5s forwards;
}

.hero-btn{
    font-size: 1rem;
    display: inline-block;
    padding: 15px 30px;
    margin-top: 10%;
    background-image: linear-gradient(to right, #ba1363, #9d45d9);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 30px;
}

.hero-btn:hover{
    background-image: linear-gradient(to right, #9d45d9, #ba1363);
}




/* about */

.section:first-of-type{
    margin-top: 10%;
}


.about-lead{
    max-width: 800px;
    margin: 0 auto;
    padding-top: 5%;
    text-align: center;
    color: #222;
    font-size: 1.5rem;
    line-height: 2rem;
}


/* projects */
#projects{
    padding: 60px 5%;
}

#projects .section-wrapper{
    padding: 0;
}

.projects-item{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 100px 0;
}

.projects-img-wrapper{
    width: 100%;
    border-radius: 20px;
}

.projects-img-wrapper img{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 30px;
}

.projects-text-wrapper{
    width: 100%;
    z-index: 2;
    padding-left: 15%;
}

.projects-text-wrapper h3{
    font-size: 2rem;color: #222;
    font-weight: bold;
    padding-bottom: 5%;
    font-family: 'Inter', sans-serif;

}

.projects-text{
    color: #808080;
    font-size: 1.2rem;
    padding-bottom: 8%;
    font-family: 'Inter', sans-serif;
}

.project-link{
    color: #fff;
    font-weight: bold;
    padding: 12px 50px;
    border-radius: 30px;
    background-image: linear-gradient(to right, #ba1363, #9d45d9);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.project-link:hover{
    background-image: linear-gradient(to right, #9d45d9, #ba1363);
    transition: .5s;
}

.reverse .projects-img-wrapper{
    margin-left: -8%;
    margin-right: 30%;
    background-image: linear-gradient(to right, #ba1363, #9d45d9);
    padding: 2% 10% 6% 2%;
}


.reverse .projects-text-wrapper{
    left: 61%;
}

.reverse .project-link{
    margin-left: 70%;
}


/* contact */
.form{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5% 0;
}

.field{
    width: 50%;
    padding: 10px 20px;
    margin: 1% 0;
    border-radius: 30px;
    outline: none;
    border: 2px solid #9d45d9;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    font-family: 'Inter', sans-serif;
}

.field:focus{
    border: 2px solid #ba1363;
}

.form button{
    padding: 15px 55px;
    margin-top: 20px;
    border: none;
    background-image: linear-gradient(to right, #ba1363, #9d45d9);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 30px;
    color: #fff;
    font-size: 1rem;
}

.form button:hover{
    background-image: linear-gradient(to right, #9d45d9, #ba1363);
}


/* footer */

.footer{
    line-height: 60px;
    background-image: linear-gradient(to right, #9d45d9, #ba1363);
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
}


@media screen and (max-width: 1100px){
    .fa-times{
        display: none;
    }

    .menu-toggle{
        display: block;
        color: #fff;
        font-size: 2.2rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 2.5rem;
        cursor: pointer;
        z-index: 1500;
    }

    .nav-list{
        position: absolute;
        top: 0;
        left: 0;
        width: 45%;
        height: 100vh;
        background-image: linear-gradient(to right, #ba1363, #9d45d9);
        opacity: .9;
        padding: 4.4rem;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        z-index: 1250;
        transform: translateX(-100%);
        transition: transform .5s;
    }

    .nav-item:last-child {
        padding-right: 90px;
    }

    .open .fa-times{
        display: block;
    }
    .open .fa-bars{
        display: none;
    }
    .open .nav-list{
        transform: translateX(0);
    }
    .open .nav::before{
        opacity: 1;
        transform: scale(1);
    }

    .nav{
        display: block;
        color: #fff;
        text-transform: uppercase;
        font-size: 1.6rem;
        letter-spacing: 2px;
        margin-right: -2px;
        transition: color.5s;
    }


    /* hero */
    .hero{
        background-image: linear-gradient(to right bottom,#9d45d9, #ba1363);    
    }

    .hero img{
        display: none;
    }

    .copy{
        font-size: 2.5rem;
        margin-top: 30%;
        text-align: center;
    }
}

@media screen and (max-width: 1000px){
    .projects-item{
        flex-direction: column;
        position: unset;
        align-items: flex-start;
    }

    .projects-img-wrapper{
        /* width: 80%; */
        margin: 0;
    }

    .projects-text-wrapper{
        position: unset;
        margin-top: 10%;
      	padding-left: 0;
    }

    .projects-text{
        padding-bottom: 10%;
    }
}

@media screen and (max-width: 840px){

    .copy{
        margin-top: 45%;
    }

    .projects-text-wrapper{
        width: 300px;
    }

    .field{
        width: 90%;
    }
}

@media screen and (max-width: 540px){
  	.header{
        padding: 20px 40px;
    }
  
    .section-title{
        font-size: 3rem;
    }

    .nav-list{
        padding: 2rem;
        width: 70%;
    }

    .projects-text-wrapper h3{
        font-size: 1.5rem;
    }

    .projecr-text{
        font-size: .8rem;
    }
}

/* animation */
@keyframes scale{
    0%{
        transform: scale(2);
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
}