/* base */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root{
    --bg-color: rgb(240, 240, 240);
    --black-color: #000;
    --white-color: #fff;
    --other-color: rgb(46, 46, 46);
    --header-height: 60px;
    --grid-template-cloumns: 4;
    --grid-column: 4;
    --half-grid-column: 2;
    --charater-section-column:4;
    --section-top-spacing: 150px;
}

body{
    background-color: var(--bg-color);
    color: var(--black-color);
}

body.changeTheme{
    --black-color: #fff;
    --white-color: #000;
    --bg-color: rgb(46,46,46);
    --header-color: rgba(41, 41, 41, 0.7);
    --other-color: rgb(224, 224, 224);
}

ul{
    list-style: none;
}

a{
    display: inline-block;
    text-decoration: none;
    color: var(--black-color);
}

input{
    border: 0;
    background: none;
    outline: none;
}

button{
    border: 0;
    background: none;
    outline: none;
    cursor: pointer;
}

img{
    display: block;
}

.container{
    width: 90%;
    margin: auto;
}

/* shortcut */
.scroll-to-top,.scroll-to-bottom{
    position: fixed;
    top: 55%;
    right: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background-color: rgb(44, 44, 44);
    cursor: pointer;
}

.scroll-to-top{
    top: 45%;
}


/* header section */
#header{
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
}

#header.scrollEffect{
    background-color: rgba(226, 226, 226, 0.4);
}

.nav{
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-toggler{
    font-size: 30px;
    color: var(--black-color);
}

.nav-logo{
    font-weight: 400;
    font-size: 12px;
}

.pc-menu{
    display: none;
}

.mobile-menu{
    position: absolute;
    z-index: 100;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: 0.5s ease-in-out;
}

.mobile-menu.show{
    left: 0;
}

.close-menu-btn-wrapper{
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgb(221, 220, 220);
}

.close-menu-btn{
    height: var(--header-height);
    padding: 0px 10px;
    font-size: 30px;
    color: var(--black-color);
    cursor: pointer;
}

.nav-link{
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px 10px;
}

.nav-link:hover{
    background-color: orange;
}

.change-theme-btn{
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.change-theme-btn.active{
    background: royalblue;
}

.switch{
    position: absolute;
    top: 2px;
    left: 2px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    transition: all 0.3s ease-in-out;
}

.switch.active{
    left: 33px;
}

/* footer */
.footer-content-container{
    margin-top: 85px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 0px;
}

.email-contact{
    display: flex;
    margin-top: 10px;
}

.email-contact label{
    margin-left: 10px;
}

.send-email-container{
    height: 40px;
    width: 300px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgb(158, 158, 158);
    background-color: var(--white-color);
}

.email-input{
    flex: 1;
    height: 100%;
    padding: 0px 5px;
    color: var(--black-color);
}

.send-email-btn{
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0px 5px;
}

.send-email-icon{
    color: var(--black-color);
}

@media screen and (min-width: 1024px) {
    :root{
        --header-height: 70px;
    }

    .container{
        width: 80%;
    }

    .mobile-menu, .nav-toggler{
        display: none;
    }

    .pc-menu{
        display: flex;
        align-items: center;
    }

    .pc-nav-link{
        position: relative;
        margin: 0px 10px;
        padding: 10px 20px;
        font-size: 18px;
    }

    .pc-nav-link::before{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 5%;
        opacity: 0;
        background-color: var(--black-color);
        transition: all 0.3s ease-in-out
    }

    .pc-nav-link:hover::before{
        opacity: 1;
        width: 100%;
    }

    .footer-content-container{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .about .description{
        width: 300px;
    }
}

@media screen and (min-width: 1280px) {
    .container{
        width: 70%;
    }

    .nav-logo{
        font-size: 16px;
    }
}