@media (min-width: 992px) {

    html {
        font-size: min(0.86vw, 1.9vh);
    }

}


/*
====================================
Small Screen - Tablate
====================================
*/
@media (max-width: 991px) {

    html {
        font-size: 1.5vw;
    }

    .back_btn {
        display: none;
    }

    .hamburgar_btn {
        width: 2rem;
        height: 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hamburgar_btn button {
        background: transparent;
        border: none;
        outline: none;
        padding: 0;
        cursor: pointer;
    }

    .hamburgar_btn button img {
        width: 2rem;
    }

    .hamburgar_btn [src="img/close.png"] {
        width: 1.5rem;
    }

    .offcanvas_menu {
        display: flex;
        transition: 0.5s all ease;
    }

    .offcanvas_menu.offcanvas {
        right: 0;
        transition: 0.5s all ease;
    }

    .side_bar::after {
        height: 5rem;
    }

    .home_body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .portfolio_header {
        left: 21rem; /* Account for desktop sidebar width */
    }

    .portfolio_header h4 {
        width: 85%;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
    }

    .portfolio_row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* index page */
    .header_area {
        padding: 1.5rem 2rem;
    }

    .main_nav ul {
        justify-content: center;
    }

    .main_nav {
        display: none;
    }

    .menu_togler {
        width: 2.4rem;
        display: block;
        margin-left: auto;
        z-index: 1024;
    }

    .main_wrapper {
        height: 50rem;
    }

    .toggle_box {
        max-width: 40rem;
        width: 100%;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .big_logo {
        width: 70%;
        left: 49%;
        top: 68%
    }

    .feature_box {
        display: none;
    }

    .animate_text1 {
        top: 12%;
        left: 5%;
    }

    .animate_text2 {
        right: 5%;
        left: initial;
        top: 15%;
    }

    .animate_text3 {
        left: 5%;
        top: 35%;
    }

    .animate_text4,
    .animate_text5,
    .animate_text6,
    .animate_text7,
    .animate_text8 {
        display: none;
    }

    .about_text {
        left: 4%;
        top: 65%;
    }

    .about_text h3 {
        font-size: 4.2rem;
        letter-spacing: -0.25rem;
    }

    .about_text p {
        font-size: 1.2rem;
        letter-spacing: normal;
    }

    .footer_area {
        flex-direction: column;
        position: initial;
        padding: 1rem 2rem 1.5rem;
        margin-top: 0rem;
    }

    .footer_left {
        width: 100%;
        justify-content: space-between;
    }

    .footer_icon1 img {
        width: 5.4rem;
    }

    .footer_icon2 img {
        width: 3.5rem;
    }

    .footer_icon3 img {
        width: 2.8rem;
    }

    .footer_text h4,
    .footer_text p {
        font-size: 1.3rem;
    }

    .footer_right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        margin-top: 2rem;
    }

    .footer_right img {
        width: 34rem;
    }

    .footer_right p {
        font-size: 1.2rem;
    }

    .marquee_area {
        margin-top: 0rem;
    }

    .about_text img {
        width: 15rem;
    }

    .flower-img {
        width: 25rem;
    }

    .preloader_logo img {
        width: 6.5rem;
    }


}


/*
====================================
Small Screen - Mobile
====================================
*/
@media screen and (max-width: 767px) {

    html {
        font-size: 2.1vw;
    }

    .main_content {
        padding: 0.6rem 0.6rem 0.6rem 18.6rem;
    }

    .side_bar {
        width: 18rem;
    }

    .portfolio_header {
        left: 18rem; /* Account for tablet sidebar width */
    }

    .portfolio_row {
        grid-template-columns: 1fr;
    }

    /* index page */
    .about_text h3 {
        font-size: 3rem;
        letter-spacing: -0.15rem;
    }

    .about_text p {
        font-size: 1rem;
    }

    .about_text {
        top: 69%;
        left: 3.5%;
    }

    .big_logo {
        width: 80%;
        top: 73%;
    }

    .footer_right img {
        width: 28rem;
    }

    .footer_left {
        gap: 0.5rem;
    }

    .footer_icon1 img {
        width: 4rem;
    }

    .footer_icon2 img {
        width: 2.5rem;
    }

    .footer_icon3 img {
        width: 2rem;
    }

    .footer_text h4,
    .footer_text p {
        font-size: 1.03rem;
    }

    .footer_item a {
        gap: 0.5rem;
    }

    .fullscreen-overlay {
        width: calc(100% - 18.6rem);
        padding: 2.5rem 2.5rem;
    }

    .about_text img {
        width: 11rem;
    }

    .flower-img {
        width: 20rem;
    }

    .preloader_logo img {
        width: 6rem;
    }

}

@media screen and (max-width: 575px) {

    html {
        font-size: 2.666vw;
    }

    .main_content {
        padding: 0.6rem 0.6rem 0.6rem 15rem;
    }

    .side_bar {
        width: 14.5rem;
    }

    .side_menu a {
        gap: 0.5rem;
    }

    .side_menu a span {
        width: 1.6rem;
        height: 1.6rem;
    }

    .side_menu a span img {
        width: 0.8rem;
    }

    .side_menu a p {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
    }

    .hamburgar_btn {
        width: 1.6rem;
        height: 1.6rem;
    }

    .hamburgar_btn button img {
        width: 1.6rem;
    }

    .hamburgar_btn [src="img/close.png"] {
        width: 1.3rem;
    }

    .sidebar_header img {
        width: 4.2rem;
    }

    .portfolio_header {
        left: 14.5rem; /* Account for mobile sidebar width */
        padding-left: 0.5rem;
    }

    .side_menu {
        padding: 1.2rem 0rem 1.2rem 0.6rem;
    }

    .animation_page {
        font-size: 2.1vw;
    }

    .portfolio_header h4 {
        font-size: 1.4rem;
        width: 85%;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
    }

    .fullscreen-overlay {
        width: calc(100% - 15rem);
        padding: 1rem 1rem;
    }

    .flower-img {
        width: 18rem;
    }

    .preloader_logo img {
        width: 5.5rem;
    }

}