@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

:root{

    --header-height : 3.5rem;

    /* ====== Colors ====== */
    --title-color : #090f15;
    --text-color: #090f15;
    --container-color : #b3b7ba;
    --white-color : #fff;
    --black-color: #000;
    --body-color : #fff;
    --hover-color: #b76e79;

    /* ===== Typography and Font ====== */
    --body-font : "Inter", sans-serif;
    --biggest-font-size: 3rem;
    --big-font-size : 2.25rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .938rem;
    --smallest-font-size: .813rem;

    /* ====== font weight ====== */

    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 800;

    /* ====== z index ====== */
    --z-fixed : 100;
    --z-tooltip : 10;
}
/* ======== RESPONSIVE TYPOGRAPHY ======== */
@media screen and (min-width: 1023px) {
    :root{
    --biggest-font-size: 6rem;
    --big-font-size : 4rem;
    --h1-font-size: 2.75rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 2.25rem;
    --normal-font-size: 1.25rem;
    --small-font-size: 1rem;
    --smallest-font-size: .938rem;
    }
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--body-color);
    font-family: var(--body-font);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.container{
    max-width: 1024px;
    margin-inline: 1.5rem;
}

.grid{
    display: grid;
}

.main{
    overflow: hidden;
}


/* ========= HEADER ======== */

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--title-color);
    z-index: var(--z-fixed);
    transition: .4s;
}

.nav{
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white-color);
}

.nav-logo h1{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
}

@media screen and (max-width: 1023px) {
    .nav-menu{
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        padding: 10rem 5rem;
        background-color: var(--title-color);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease, right 0.5s ease;
    }
}

.nav-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 3rem;
    font-size: var(--h3-font-size);
}

.nav-link{
    color: var(--body-color);
    font-weight: var(--font-semi-bold);
    transition: .4s;
}

.nav-link:hover{
     color: var(--hover-color);
}

.nav-close,
.nav-toggle{
    font-size: var(--h2-font-size);
    transition: .4s;
}

.nav-close{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.nav-close:hover,
.nav-toggle:hover{
    cursor: pointer;
    color: var(--hover-color);
}

/* show-menu */
.show-menu{
    opacity: 1;
    visibility: visible;
    right: 0;
}

/* scroll-header */
.scroll-header{
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

/* active-link */
.active-link{
    color: var(--hover-color);
}

/* ========== HOME ======== */
.home{
    width: 100%;
    height: 100vh;
    position: relative;
}

.home-bg{
    background-image: url(img/home-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-bg::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    opacity: .4;
}

.home-desc{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    top: 35%;
    left: 10%;
}

.home-logo{
    width: 100px;
    height: 100px;
    font-size: 6.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--body-color);
    border: 1px solid var(--body-color);
    padding: 5rem;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.home-title{
    color: var(--body-color);
    font-size: var(--big-font-size);
    letter-spacing: 2px;
}

.home-text{
    color: var(--body-color);
    font-weight: var(--font-light);
    font-size: var(--normal-font-size);
    margin-top: 1rem;
}

/* =========== SERVICES ========= */

.services{
    background-color: var(--text-color);
    padding-block: 3rem 2rem;
}

.services-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 4rem;
}

.services-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
}

.services-title h1{
    font-size: var(--h1-font-size);
    color: var(--body-color);
    font-weight: var(--font-medium);
}

.title-line{
    width: 50%;
    height: 3px;
    background-color: var(--body-color);
}

.services_grid{
    grid-template-columns: repeat(1,1fr);
    align-items: center;
    justify-content: center;
    row-gap: 3rem;
    text-align: center;
}

.services-data{
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
}

.data-logo{
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--biggest-font-size);
    border: 1px solid white;
    border-radius: 50%;
}

.data-title{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
}

.services-data p{
    font-weight: var(--font-light);
    font-size: var(--small-font-size);
}

/* ======== WORK ========= */

.work{
    padding-block: 3rem 1rem;
    background-color: var(--body-color);
}

.work-container{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.work-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 1rem;
}

.work-title h1{
    font-weight: var(--font-medium);
    font-size: var(--h1-font-size);
}

.title-line-2{
    width: 10%;
    background-color: var(--text-color);
    height: 3px;
}

.work-title h3{
    font-weight: var(--font-light);
    font-size: var(--normal-font-size);
}

.work_grid{
    grid-template-columns: repeat(1, 1fr);
}

.work-image{
    width: 100%;
    height: 400px;
}

/* ======== ABOUT ======= */
.about{
    padding-block: 3rem 1rem;
    background-color: var(--container-color);
}

.about-container{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    row-gap: 1rem;
    background-color: var(--body-color);
}

.about-container h1{
    font-weight: var(--font-medium);
    font-size: var(--h1-font-size);
}

.about-container p{
    font-weight: var(--font-light);
    font-size: var(--normal-font-size);
}

/* ======= BANNER ======== */
.banner{
    width: 100%;
    height: 40vh;
}

.banner-container{
    background-image: url(img/about-img.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
    width: 100%;
    height: 100%;
}

/* ======= CONTACT ======== */
.contact{
    padding-block: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
    background-color: var(--container-color);
}

.contact-image{
    width: 100%;
    height: 300px;
}

.contact-div{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
    padding-block: 2rem;
    background-color: var(--body-color);
    width: 90%;
}

.contact-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 1rem;
    width: 100%;
}

.contact-title h1{
    font-weight: var(--font-regular);
    font-size: var(--h1-font-size);
    color: var(--text-color);
    letter-spacing: 1px;
}

.contact-line{
    width: 15%;
    height: 3px;
    background-color: var(--text-color);
}

.contact-div_2{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 1rem;
    width: 100%;
}

.contact-desc{
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.contact-desc h1,
.contact-desc p{
    font-weight: var(--font-light);
    font-size: var(--normal-font-size);
}

.contact-form{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 1rem;
    width: 100%;
}

.form-div{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 1rem;
    width: 75%;
}

.form-div label{
    font-size: 1.25rem;
    font-weight: 300;
}

.form-div input,
.form-div textarea{
    width: 100%;
    border: 1px solid var(--text-color);
    padding: 1rem;
    transition: border-color .4s ease;
}

.form-div input:hover,
.form-div textarea:hover{
    border-color: var(--container-color);
}

.contact-btn{
    padding: 1rem 3rem;
    background-color: var(--text-color);
    color: var(--body-color);
    font-weight: var(--font-medium);
    transition: .4s;
}

.contact-btn:hover{
    opacity: .5;
}

.footer{
    width: 100%;
    background-color: var(--text-color);
    height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-copy{
    color: var(--body-color);
    font-weight: var(--font-light);
    font-size: var(--smallest-font-size);
}

/* scrollup */
.scrollup{
    position: fixed;
    right: 1.5rem;
    bottom: -5rem;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 50%;
    background-color: var(--hover-color);
    color: var(--body-color);
    font-size: var(--h2-font-size);
    transition: .4s;
}

.show-scroll{
    bottom: 3rem;
}

@media screen and (max-width: 391px) {
    .home-desc{
        left: 5%;
    }
}

@media screen and (min-width : 501px) and (max-width: 913px) {
    .home-desc{
        left: 28%;
    }
}

@media screen and (min-width: 1023px) {

    .container{
        max-width: 1440px;
        margin-inline: 2.5rem;
    }

    .nav-toggle,
    .nav-close{
        display: none;
    }

    .nav-logo h1{
        font-size: var(--small-font-size);
    }

    .nav-list{
        flex-direction: row;
        font-size: 1rem;
        column-gap: 2rem;
    }

    .home-bg{
        background-attachment: fixed;
    }

    .home-desc{
        width: 100%;
        left: 0;
    }

    .services_grid{
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
    }

    .work_grid{
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .contact-div_2{
        flex-direction: row;
        align-items: center;
    }

    .banner-container{
        background-attachment: fixed;
    }
}
