* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smotthing: antialiased;
}

html {
    scroll-behavior: smooth;
}

.arrow {
    background-color: transparent;
    font-size: 3rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 20;
}

.arrow a {
    text-decoration: none;
}

/* Utilities class....................................................................................... */
:root {
    --primary: #3DCFD3;
    --dark: #161616;
    --lightText: #898989;
    --secondary: #070606;
    --lightBackground: rgba(220, 220, 220, 0.365);
}

.flex {
    display: flex;
}

.center {
    align-items: center;
    text-align: center;
}

.gap-between {
    justify-content: space-between;
}

.container {
    max-width: 1150px;
    padding: 0 17px;
    margin: 0 auto;
}

.btn {
    width: 150px;
    height: 50px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.primary-button {
    color: black;
    background: var(--primary);
    border-radius: 8px;
    outline: none;
    position: relative;
    transition: all 0.3s ease-in-out;
}
.primary-button:hover {
    cursor: pointer;
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.primary-button::after{
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-color: var(--dark);
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scale(0);
    z-index: 1;
}
.primary-button:hover::after{
    cursor: pointer;
    width: 100%;
    transform: scale(1);
    transition: all 0.4s linear;
    z-index: -1;
}

.secondary-button {
    color: var(--primary);
    background-color: transparent;
    border-color: var(--primary);
    border-radius: 8px;
    transition: all 0.4s ease-in-out;
    position: relative;
    z-index: 1;
}
.secondary-button:hover{
    cursor: pointer;
    /* background-color: var(--primary); */
    color: var(--dark);
    border-color: var(--primary);
}
.secondary-button::before{
    content: "";
    width: 00%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
}
.secondary-button:hover::before{
    width: 100%;
    transition: all 0.4s ease-in-out;
}

/* Navbar and button...................................................................................... */
header {
    background: var(--dark);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 57% 84%, 0 100%);
}

.nav-bar {
    padding: 25px 0;
}

.logo {
    margin-right: 3.5rem;
}

.link a {
    font-size: 23px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    margin-right: 2rem;
    position: relative;
}
.link a::before{
    content: "";
    width: 100%;
    height: 2.5px;
    background-color: var(--primary);
    /* border: 2px solid red; */
    position: absolute;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
}

.link a:hover {
    color: var(--primary);
    transition: all 0.4s ease-in-out;
}

.link a:hover::before{
    width: 100%;
    transform: scaleX(1);
    transition: all 0.3s ease-in-out;
}



/* Hero Image Section...................................................................................... */
.right_image img {
    height: 700px;
    transition: all 0.3s ease;
    clip-path: polygon(40% 9%, 93% 9%, 93% 100%, 40% 100%, 40% 100%);
}

.right_image img:hover {
    cursor: pointer;
    scale: 1.3;
}

.imageTextBox {
    background: var(--dark);
}

.left_text {
    width: 600px;
    color: white;
    margin-top: 100px;
}

.left_text h4 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.left_text h1 {
    font-size: 3.5rem;
    font-weight: 100;
    line-height: 1;
    margin-bottom: 25px;
}

.left_text h1 span {
    color: var(--primary);
}

.left_text p {
    font-size: 1.3rem;
}

.left_text i {
    font-size: 1rem;
    display: inline-block;
    line-height: 1.7;
    margin-bottom: 25px;
}




/* About Me section..................................................................................... */
.about {
    margin: 3rem 0;
    padding: 3rem 0;
}

.left-image img {
    width: 500px;
    margin-right: 20px;
}

.right-text {
    width: 500px;
    margin-left: 20px;
}

.right-text p {
    font-family: 'Lato', sans-serif;
    color: var(--lightText);
    line-height: 1.7;
}

.right-text h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 400;
}

.right-text h1 span {
    color: var(--primary);
}

.right-text h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* icons div............................................................................................. */
.social-icons {
    margin: 20px 0;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-icons a img {
    width: 33px;
    margin-right: 20px;
    transition: all .3s ease;
}

.social-icons a img:hover {
    scale: 1.2;
}



/* Service Section and style.............................................................................. */
.service {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
    background-color: var(--lightBackground);
}

.service-head {
    font-size: 2.3rem;
    font-weight: 500;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 9px;
}

.service-head span {
    color: var(--primary);
}

.box-text {
    text-align: center;
    color: var(--lightText);
    font-family: 'Lato', sans-serif;
    margin-bottom: 6.7rem;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2.4rem;
    row-gap: 6rem;
}

.grid-wrapper h2 {
    color: var(--dark);
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.grid-wrapper p {
    color: var(--lightText);
    line-height: 1.5rem;
}

.card {
    background-color: white;
    padding: 3.5rem 2.5rem;
    position: relative;
    text-align: center;
    transition: all 0.5s ease;
}

.card img {
    padding: 15px 20px;
    background-color: var(--primary);
    height: 100px;
    position: absolute;
    top: -3.7rem;
    left: 33%;
    transition: all 0.4s ease-in-out;
}

/*Service Section and style: Hover section...............................................................*/
.card:hover {
    background-color: var(--dark);
}

.card h2:hover {
    color: white;
}

.grid-wrapper p:hover {
    color: white;
}

.card img:hover {
    scale: 1.2;
}


/* Freelancer Section and background image section..................................................... */
.cameraImage {
    padding: 3rem 0;
    background-color: var(--lightBackground);
    color: white;
    background: linear-gradient(rgb(0, 0, 0, 0.3), rgb(0, 0, 0, 0.3)), url(images/camera.png);
    background-size: cover;
    /* background-image:url(images/camera.png) ; */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 57% 84%, 0 100%);
    padding-bottom: 15rem;
    z-index: 0;
}

.cameraImage h2 {
    font-size: 2.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.cameraImage p {
    margin-bottom: 1.6rem;
    font-family: 'Lato', sans-serif;
}

.camera {
    padding-bottom: 3rem;
}


/* Work Section...................................................................................... */
.work p {
    margin-bottom: 3.4rem;
}

section.work {
    margin: 3.6rem 0;
}

.workImage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.phone-image {
    object-fit: contain;
    overflow: hidden;
    width: 350px;
    height: 2;
}

.workImage img {
    transition: all 0.3s ease;
}

.workImage img:hover {
    cursor: pointer;
    scale: 1.3;
}


/* contact Section..................................................................................... */
.Contact-text {
    text-align: center;
    color: var(--lightText);
    margin-bottom: 3.4rem;
}

.connect {
    text-align: center;
    width: 250px;
    padding: 1rem;
}

.connect img {
    width: 85px;
    margin-bottom: 1.3rem;
}

.contact_wrapper {
    display: flex;
    justify-content: space-evenly;
}

.contact_wrapper h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact_wrapper a {
    color: var(--lightText);
    text-decoration: none;
}

.contact_wrapper a:hover {
    color: blue;
}
.connect p a{
    transition: font-size 0.3s ease-in-out;
}
.connect p a:hover{
    font-size: 1.2rem;
}
.home p {
    color: var(--lightText);
}


/* input formm section.................................................................................. */
.input {
    padding: 4rem 3rem;
    /* background-color: var(--lightBackground); */
}

.input input {
    border: 2px solid var(--lightText);
    border-radius: 8px;
    padding: 10px;
    /* text-align: center; */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    height: 3rem;
    margin-bottom: 2rem;
}

.input input:focus {
    outline: none;
}

.text-mail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.subject {
    display: flex;
    flex-direction: column;
}

.subject textarea {
    font-size: 1rem;
    padding: 0.5rem;
    outline: none;
    border: 2px solid var(--lightText);
    margin-bottom: 2rem;
}


/* footer section......................................................................................... */
footer {
    background-color: var(--dark);
    padding: 4rem 0;
    text-align: center;
}

footer img {
    margin-bottom: 2.5rem;
}

footer p {
    color: var(--primary);
    /* color: white; */
}

.social a {
    margin-left: 2rem;
}
.social a img {
    transition: transform 0.3s ease-in-out;
}
.social a img:hover {
    transform: scale(1.3);
}


/* resposive section....................................................................................... */


/* main-nav bar section............app.js file class="open"................................................ */
.body-wrapper {
    position: relative;
}

.hamberger {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 11;
    background: none;
    border: none;
    cursor: pointer;
}

.hamberger img {
    width: 30px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    background-color: var(--secondary);
    width: 100%;
    height: auto;
    padding: 2rem;
    padding-top: 1rem;
    transform: translateX(-100%);
    transition: all 0.4s ease-in-out;
}

.open {
    transform: translateX(0);
}

.times {
    position: fixed;
    top: 35px;
    right: 35px;
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
}

.times img {
    background-color: var(--primary);
    width: 40px;
    height: 30px;
    border-radius: 10px;
    padding: 0.3rem;
}

.mobile-nav ul {
    list-style-type: none;
}

.mobile-nav ul li a {
    line-height: 3rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 2rem;
}


/* Media query section and max/min width of container ................................................. */
@media (min-width:800px) and (max-width:2600px) {

    .mobile-nav,
    .hamberger {
        display: none;
    }
}

@media (max-width:1440px) {
    .container {
        width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .work .workImage {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-content: space-evenly;
    }
}

@media (max-width:1024px) {
    .work .workImage {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: space-evenly;
    }
}

@media (max-width:768px) {
    .container {
        width: 700px;
    }

    .nav-bar {
        display: none;
    }

    .cameraImage {
        height: 5rem;
    }

    .about .container {
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .about .container .left-image img {
        width: 450px;
        padding: 1rem 2rem;
    }

    .about .container .right-text {
        width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .about .container .social-icons {
        margin-left: 60px;
    }

    .service .container .grid-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .arrow {
        display: none;
    }
}

@media (max-width:450px) {
    html {
        width: 500px;
    }

    .arrow {
        display: none;
    }

    .container {
        width: 400px;
    }

    header {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 90%, 0 100%);
    }

    .hero {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .hero .left_text {
        height: 600px;
        width: 400px;
        z-index: 2;
    }

    .hero .left_text i {
        width: 400px;
        display: block;
    }

    .hero .right_image {
        position: absolute;
        left: -10px;
        z-index: 1;
    }

    .about .container {
        display: flex;
        flex-direction: column;
    }

    .about .container .left-image img {
        width: 350px;
        padding: 1rem 2rem;
    }

    .about .container .right-text {
        width: 350px;
    }

    .service .container .grid-wrapper {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cameraImage {
        height: 370px;
        background-position: center;
        background-size: cover;
    }

    .work .workImage {
        display: grid;
        grid-template-columns: 1fr;
    }

    .work .container .box-text {
        margin-bottom: 1rem;
    }

    .phone-image {
        width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .phone-image img {
        width: 300px;
        height: 100px;
    }

    .text-mail {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .input input {
        margin-bottom: 1rem;
    }

    .contact_wrapper {
        display: grid;
        grid-template-columns: 1fr;
    }

    .connect {
        margin-left: auto;
        margin-right: auto;
    }
}