@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

* {
    margin: 0;
    padding: 0;
    /* width: fit-content; */
    /* overflow-x: hidden; */
}

html {
    scroll-behavior: smooth;
}

:root {
    --yellow: #F5C32C;
    --boxShadow: 0px 19px 60px rgb(0 0 0 / 8%);
    --orange: #FCA61F;
}

.button {
    background: linear-gradient(180deg, #fdc50f 26.71%, #fb982f 99.36%);
    box-shadow: 0px 20px 24px 3px rgba(251, 161, 40, 0.42);
    border-radius: 34px;
    border: 1px solid transparent;
    color: white;
    font-size: 16px;
    padding: 9px 26px 9px 26px;
}

.button:hover {
    background: white;
    cursor: pointer;
    border: 1px solid var(--orange);
    color: var(--orange);
    transition: .4s;
}

.main {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100%;
}

.navbar {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 100;
    background-color: #fff;
}

.navbar .logo {
    margin-left: 3rem;
    font-weight: 600em;
    font-size: 17px;
}

.navbar nav {
    display: flex;
    margin-right: 3rem;
}

.navbar nav ul {
    display: flex;
    margin-right: 3.5rem;
    align-items: center;
}

.navbar i {
    display: none;
}

.menu {
    display: none;
    font-size: 22px;
}

.close {
    display: none;
}

.navbar ul li {
    list-style: none;
    margin-left: 40px;
}

.navbar ul li a {
    text-decoration: none;
    font-weight: 500;
    color: black;
    font-size: 16.7px;
}

.home {
    height: 100%;
    background-image: url('assets/bg.webp');
    min-height: 92vh;
    padding: 10rem 7% 0rem;
    display: flex;
}

.home-content {
    width: 53%;
}

.home-content h3 {
    margin-bottom: 1.2rem;
    font-size: 22px;
}

.home-content h1 {
    font-size: 3.4rem;
    line-height: 1.3;
    font-weight: bolder;
    margin-bottom: 1rem;
    color: var(--orange);
}

.home-content p {
    font-size: 1rem;
    /* max-width: 90%; */
    line-height: 1.4;
    color: #4b5563;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1.5px solid var(--orange);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--orange);
    margin: 0.5rem 1rem 0.5rem 0;
    transition: .3s;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--orange);
    color: #fff;
    box-shadow: 0 0 1rem var(--yellow);
    transform: translateY(-3px);
}

.home-content button {
    margin-top: 1.5rem;
}

.home-img {
    background: url('assets/home-img-bg.png') no-repeat;
    background-size: cover;
    width: 700px;
    height: 550px;
    margin-top: -94px;
}

.home-img img {
    margin-left: 160px;
    height: 444px;
}

.about-warpper {
    height: 100%;
    /* margin-top: 60px; */
    padding: 8rem 7% 0rem;

}

.about-warpper h1 {
    text-align: center;
    margin-bottom: 80px;
}

.about-warpper span {
    color: var(--orange);
}

.about {
    display: flex;
    margin-right: 300px;
}

.about-left {
    width: 250px;
    height: 330px;
    border: 1px solid #4b5563;
    border-radius: 30px;
    background-color: #fdc50f;
    rotate: -4deg;
}

.about-left img {
    height: 330px;
}

.about-left:hover {
    transition: .15s ease-in-out;
    transform: translateY(-10px);
    transition-property: all;

}

.about-right {
    width: 75%;
    margin-left: 8rem;
}

.about-right h2 {
    margin-bottom: 20px;
    font-weight: bolder;
    margin-top: 20px;
}

.about-right p {
    font-size: 1rem;
    margin: 2rem 0;
    line-height: 1.5rem;
    color: #4b5563;
}

.work-wrapper {
    height: fit-content;
}

.work-wrapper h1 {
    text-align: center;
}

.work-wrapper span {
    color: var(--orange);
}

.work {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}


.work-item-head {
    display: flex;
    height: 5px;
    align-items: center;
}

.work-item-head i {
    color: var(--orange);
}

.work-item-head hr {
    width: 200px;
    height: 2px;
    background-color: var(--orange);
    border: none;
    align-items: center;
    margin-left: 10px;
}

.work-item h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-top: 25px;
}

.work-item h5 {
    color: #4b5563;
    font-size: 14px;
    margin-top: 9px;
    margin-bottom: 15px;
}

.work-item li {
    margin-top: 5px;
    color: #4b5563;
}

.project-wrapper {
    height: fit-content;
    margin-top: 200px;
}

.project-wrapper h1 {
    text-align: center;
}

.project-wrapper span {
    color: var(--orange);
}

.portfolio {
    padding: 8rem 3rem 0 3rem;

}


.portfolioContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolioContainer .portfolioBox {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: 0 0 0.8rem var(--orange);
    overflow: hidden;
    display: flex;
    width: 100%;
    height: 14rem;
}

.portfolioBox img {
    width: 100%;
}

.portfolioBox .portfolioLayer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--yellow));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    transform: translateY(100%);
}

.portfolioBox:hover .portfolioLayer {
    transform: translateY(0);
    transition: .5s ease;
}

.portfolioLayer h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.portfolioLayer p {
    font-size: .9rem;
    color: white;
    margin-bottom: 15px;
}

.portfolioLayer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    padding: 5px;
    background-color: white;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--orange);
}


.contact-wrapper {
    height: 100%;
    margin-top: 200px;
}

.contact-wrapper h1 {
    text-align: center;
}

.contact-wrapper span {
    color: var(--orange);
}

.contact {
    display: flex;
}


.contact-left {
    width: 50%;
    margin-top: 200px;
    /* margin-left: 1rem; */
}

.contact-left h1 {
    color: var(--orange);
}

.contact-left p {
    font-size: 32px;
    text-align: center;
    font-weight: bold;
}

.contact-right {
    padding: 0 14rem 0 14rem;
    background-position: center;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-right p {
    margin-top: 70px;
}

.contact-right .social-icons {
    margin-bottom: 30px;
}

.contact-right input {
    padding: 1rem;
    /* margin: 1rem 4rem 1rem 3rem; */
    border-radius: .5rem;
    border: none;
    background-color: rgb(234, 234, 235);
    outline: none;
    font-size: 1rem;
}

.contact-right button {
    width: 150px;
    text-align: center;
    /* margin-left: 3rem; */
    margin-top: 1rem;
}

.footer{
    margin-top: 80px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6rem;
}

@media (max-width: 991px) {



    .main {
        /* width: fit-content; */
        overflow-x: hidden;
        height: fit-content;
    }

    .home {
        padding: 10rem 7% 0rem;
        flex-direction: column;
        height: fit-content;
        align-items: center;
    }

    .home-content {
        width: 100%;
    }

    .home-img {
        width: 700px;
        height: 550px;
        margin-top: 15px;
    }

    .home-img img {
        margin-left: 170px;
        height: 474px;
    }

    .about-warpper {
        padding: 2rem 4% 0rem;
    }

    .about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-left {
        width: fit-content;
        height: fit-content;
        /* margin-left: 15rem; */

    }

    .about-left img {
        height: 330px;
    }

    .about-right {
        margin-left: 0;
        height: fit-content;
        margin-top: 4rem;
        width: 90%;
    }

    .about-right h2 {
        margin-top: 0px;
    }

    .work-wrapper {
        margin-top: 20rem;
        padding: 0px 3rem;
    }

    .portfolio {
        padding: 8rem 2rem;
    }

    .portfolioContainer {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        flex-direction: column;
    }

    .contact-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 5rem;
    }

    .contact-right {
        width: 65%;
        padding-left: 9rem;
    }

}

@media (max-width: 768px) {


    .navbar nav {
        display: none;
        align-items: center;
        border-top: 0.1rem solid rgba(0, 0, 0, .2);
        margin-left: 0;
        position: absolute;
        width: 100vw;
        flex-direction: column;
        background-color: white;
        margin-top: 19rem;
        z-index: 10;
        transition: .2s;
        justify-content: center;
        padding-bottom: 1rem;
    }

    .navbar nav ul {
        flex-direction: column;
        margin-top: 2rem;
        margin-right: 2.5rem;
    }

    .navbar ul li {
        padding: 10px;
    }

    .navbar-open {
        display: block;
    }



    .navbar button {
        /* margin-top: 1rem;
            margin-bottom: 1rem; */

    }

    #menu {
        display: block;
        position: absolute;
        top: 30px;
        left: 90%;
    }

    #close {
        font-size: 22px;
        display: none;
        position: absolute;
        top: 30px;
        left: 90%;
    }

    .home {
        padding-top: 8rem;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-img {
        width: 660px;
        height: 496px;
    }

    .home-img img {
        height: 420px;
    }

    .home-content button {
        margin-top: 1rem;
    }

    .social-icons {
        margin-top: 1rem;
    }

    .work-wrapper {
        padding: 0 2rem;
        margin-top: 5rem;
    }

    .work-item h3 {
        font-size: 1.1rem;
    }

    .work-item li {
        font-size: 14.5px;
    }

    .portfolio {
        padding: 8rem 1rem;
    }

    .portfolioContainer {
        grid-gap: 0.9rem;
    }

    .contact-wrapper{
        margin-top: 20px;
    }

    .contact {
        align-items: center;
    }

    .contact-right {
        padding: 0 7rem;
    }
}

@media (max-width: 617px) {
    .portfolioContainer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .home {
        padding: 7rem 4% 0rem;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h3 {
        font-size: 20px;
    }

    .home-content p {
        font-size: 0.9rem;
        line-height: 1.49;
    }

    .home-img {
        width: 474px;
        height: 353px;
    }

    .home-img img {
        height: 300px;
        margin-left: 109px;
    }

    .about-warpper {
        padding-top: 5rem;
    }

    .about-left img{
        height: 230px;
    }

    .about-right {
        width: 95%;
    }

    .about-right p{
        font-size: 0.89rem;
        line-height: 1.29rem;
    }

    .work-wrapper {
        margin-top: 7rem;
    }

    .work-item h3{
        font-size: 1rem;
    }

    .portfolio{
        padding-top: 3rem;
    }

    .contact-wrapper{
        margin-top: 10rem;
    }

    .contact-right{
        width: 92%;
    }

    .footer{
        padding: 0 1rem;
    }
}