@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Work+Sans:wght@400;500&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
}
:root {
    --white:#fff;
    --black: #212529;
    --bg:rgb(249 249 255);
    --heading: rgb(0 10 45);
    --para: #777;
    --para-tint: #e4e4e4;
    --helper:#8490ff;
    --helper-tint:#f3f4ff;
    --shadow: 0px 0px 20px 0px rgb(132 144 255 / 40%);
    --overlay:#3e64ff;    
    --icons-bg: rgba(144, 172, 209, 0.2);
    --gradient: linear-gradient(0deg, rgb(132 144 255) 0%, rgb(98 189 252) 100%);
    --grandientSupport:-webkit-linear-gradient(0deg, rgb(132 144 255) 0%, rgb(98 189 252) 100%);
}
html{
    font-size: 62.5%;
    scroll-behavior: smooth;
    /* 1rem = 10px; */
    overflow-x: hidden;
}
body{
    overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}
h1 {
    color: var(--heading);
    font-size:6rem;
    font-weight: 600;
}
h3{
    font-size: 1.8rem;
    font-weight: 400;
}
p{
	display: flex;
	align-items: center;
    color:var(--para);
    font-size: 1.7rem;
    line-height: 1.6;    
}
a{
    text-decoration: none;
}
li{
    list-style: none;
}
.header{
    padding: 0 4.8rem;
    height: 10rem;
    background: var(--bg);
    display: flex;
    justify-content:left;
    align-items: center;
}
.header .logo{
    height: 4rem;
}
.navbar-list{
    padding-left: 10%;
    display: flex;
    gap: 4.8rem;
}
.navbar-link:link, .navbar-link:visited{
    display: inline-block;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--black);
    transition: color 0.3s linear;
}
.navbar-link:hover, .navbar-link:active{
    color: var(--helper);
}
.mobile-navbar-btn{
    display: none;
    background-color: transparent;
    cursor: pointer;
    border: none;
}
.mobile-nav-icon[name="close-outline"]{
    display:none;
}

/* main section */

.section{
    padding: 9rem 0;
}
.container{
    max-width: 110rem;
    margin: 0 auto;
}
.grid{
    display: grid;
    gap: 9rem;
}
.grid-two-column{
    grid-template-columns: repeat(2, 1fr);
}
.grid-three-column{
    grid-template-columns: repeat(3, 1fr);
}
.grid-four-column{
    grid-template-columns: repeat(4, 1fr);
}
.btn{
    background: var(--grandientSupport);
    padding: 1.4rem 3.2rem;
    border: none;
    color: var(--helper-tint);
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover, .btn:active{
    box-shadow: var(--shadow);
}
.common-heading{
    font-size: 4.8rem;
    font-weight: 600;
    margin-bottom: 6rem;
    text-transform: capitalize;
    position: relative;
}
.common-heading::before{
    content: "";
    position: absolute;
    top: 110%;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--helper);
    border-radius: 50%;
}
.common-heading::after{
    content: "";
    position: absolute;
    top: 118%;
    left: 1.5rem;
    min-width: 20rem;
    height: 0.3rem;
    background: var(--helper);
}
.main-image{
    box-shadow: var(--shadow);
    transition: all 1s ease;
}
.section-main{
    background-color: var(--bg);
}
.section-main-data{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.main-top-data{
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--helper);
}
.main-heading{
    text-transform: uppercase;
    font-weight: 700;
    font-size: 6.4rem;
}
.main-para{
    margin-top: 1.5rem;
    margin-bottom: 5rem;
    max-width: 60rem;
}
.section-main-image{
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-image{
    max-width: 80%;
    border-radius: 10%;
}

@keyframes water-wave {
    0%{
        border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
    }
    50%{
        border-radius: 73% 97% 15% 85% / 30% 54% 46% 70%;
    }
    100%{
        border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
    }
}

/* freelance section */

.section-freelancing{
    background-image: url(../img/BgOutside.webp);
    background-repeat: no-repeat;
    background-attachment:fixed;
    position: relative;
    background-size:cover;
    transition: all 0.5s linear;
    text-align: center;
}
.section-freelancing .overlay{
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
    opacity: 0.7;
}
.section-freelancing .container{
    position: relative;
}
.section-freelancing h2{
    font-size: 5.4rem;   
}
.section-freelancing span{
    color:rgb(74, 189, 3);    
}
.section-freelancing h2, .section-freelancing p{
    color: var(--white);
    margin-bottom: 1.8rem;
}

/* contact us */

.section-contact-main{
    width: 60rem;
    margin: 0 auto;
    margin-top: 9rem;
    transition: all 0.3s linear;
}
.section-contact-main grid{
    gap: 3.2rem;
}
.section-contact-main form{
    display:flex;
    flex-direction: column;
    gap: 3.2rem;
}
.section-contact-main input, .section-contact-main textarea{
    padding: 1.5rem;
    border: 0.1rem solid;
    border-radius: 5px;
    font-size: 1.6rem;
    font-family: "work sans";
    width: 100%;
    resize: none;
}
.section-contact-main input[type="submit"]{
    max-width: 30%;
    border: none;
}

/* footer section */

.section-footer{
    background: var(--heading);
    transition: all 0.7s linear;
    box-shadow: var(--shadow);
}
.section-footer h3{
    color: var(--white);
    margin-bottom: 4rem;
    margin-top: 1.8rem;
}
.f-about p {
    color: #adadad;
}
.f-links ul, .f-services ul, .f-address address{
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    justify-content: center;
}
.f-links li, .f-links a, .f-services li, .f-services a{
    font-size: 1.8rem;
    color: #adadad;
    text-transform: capitalize;
}
.f-links span,  .f-services span, .f-address span{
    margin-right: 1rem;
}
.f-address p, .f-address p a{
    font-style: normal;
    color: #adadad;
    font-size:medium;
}
.f-credits p{
    text-align: center;
    color: #adadad;
    padding: 3rem;
}
.section-footer a:hover, .section-footer a:active{
    color: var(--white);
}

/* scroller top */

.scrollTop-style{
    position:fixed;
    right: 2%;
    bottom: 5%;
    z-index: 1;
}
.scroll-top{
    width: 3rem;
    height: 3rem;
    background: var(--helper);    
    display: inline-block;
    padding: 1.4rem 1.8rem;
    color: var(--heading);
    animation: water-wave 10s linear infinite;
    cursor: pointer;
}
/* media query */
/* px */
/* em */
/* rem */
/* divide by 16 for em-px*/

/* for 980px */
@media (max-width: 980px){
    html{
        font-size: 50%;
    }
    .header{
        position: relative;
    }

    /* section main */
    .section-main h1{
        line-height: 1.05;
    }
    .section-services .grid-three-column{
        grid-template-columns: repeat(2,1fr);
    }
    .section-footer .grid-four-column{
        grid-template-columns: 1fr 1fr;
    }
}

/* for 1200px */
@media(max-width: 75em){
    html{
        font-size: 37%;
    }
    .container{
        max-width: 110rem;
    }
    .grid{
        gap: 4.8rem;
    }
    .section-freelancing{
        background-repeat: repeat;
        background-size:100%;
    }
    .f-address p, .f-address p a{
        font-size:x-small;
    }
}

/* for 1500px */
@media(max-width: 95em){
    .container{
        max-width: 130rem;
        padding: 0 3.2rem;
    }
    .navbar-list{
        gap: 3.4rem;
    }
}