/*--------------------- Responsive (Start) ---------------------*/
@media (max-width: 991px){
 
    /* Adjust font size for medium screens */
    html{
        font-size: 55%; 
    }

    /* Show the menu bar button in the header */
    .header #menubar{
        display: initial; 
    }

    /* Hide the navbar in the header */
    .header .navbar{
        display: none;
    }

    /* Style and position the mobile menu */
    .mobile-menu { 
        display: block;
        position: fixed;
        top: 0; 
        left: -110%; 
        height: 100%;
        width: 30rem;
        z-index: 10000;
        overflow-y: auto; 
        max-height: 100%;
        background: var(--secondary-color);
        -webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
        border: 0.1rem solid var(--black);
        -webkit-box-shadow: var(--box-shadow);
                box-shadow: var(--box-shadow);
    } 

    /* Show the mobile menu when active */
    .mobile-menu.active {
        left: 0;
    }
    
    /* Mobile menu Close button */
    .mobile-menu #close-side-bar {
        position: absolute;
        top: 1rem;
        right: 2rem;
        font-size: 4rem;
        cursor: pointer;
        color: var(--white);
    }
    
    /* Mobile menu Close button, On Hover */
    .mobile-menu #close-side-bar:hover {
        -webkit-transform: rotate(90deg);
                transform: rotate(90deg);
        color: var(--main-color);
    }
    
    /* Mobile menu navbar */
    .mobile-menu .mobile-navbar {
        padding-top: 8rem;
    } 

    /* Main-navigation links */
    .mobile-navbar .main-nav-link{
        border-top: 0.1rem solid var(--white);
        border-bottom: 0.1rem solid var(--white);
        background-color: var(--main-color);
        color: var(--white);
        font-size: 2rem;
        cursor: pointer; 
        width: 100%;
        padding: 2rem 1rem;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify; 
        justify-content: space-between; 
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .mobile-navbar .main-nav-link a{
        color: var(--white);
    }

    /* Main-navigation links, On Hover & Active */
    .mobile-navbar .main-nav-link:hover,
    .mobile-navbar .main-nav-link.active{
        background-color: var(--secondary-color);
    }
    
    /* Hide the sub-navigation links by default */
    .mobile-navbar .sub-nav-link {
        padding-left: 2rem;
        padding-bottom: 1rem;
        background: var(--white);
        display: none;
        -webkit-transition: all 0s;
        -moz-transition: all 0s;
        -o-transition: all 0s;
        transition: all 0s;
    }
    
    /* Sub-navigation links */
    .mobile-navbar .sub-nav-link a{
        color: var(--secondary-color);
        display: block;
        padding: 1rem 0rem;
        font-size: 1.8rem;
        border-bottom: 0.1rem solid var(--secondary-color);
    }
    
    /* Sub-navigation links, On Hover */
    .mobile-navbar .sub-nav-link a:hover{
        color: var(--main-color);
        border-color: var(--main-color);
    }
    
    /* Customize scrollbar for the navbar */
    .mobile-menu::-webkit-scrollbar{
        width: 0.8rem; 
    }
    
    .mobile-menu::-webkit-scrollbar-thumb{
        border-radius: 1rem;
        background-color: var(--black);
    }
    
    .mobile-menu::-webkit-scrollbar-track{
        background: var(--white);
    }

    /* Responsive layout for blog grid and list */
    .blog.grid, .blog.list{
        -ms-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
    }

    /* Reverse the flex wrap order for shop items */
    .shop{
        -ms-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
    }
    
}

@media (max-width: 768px){

    /* Adjust padding for sections */
    section{
        padding: 3rem 2rem;
    }

    /* Adjust padding for header */
    .header{
        padding: 0rem 2rem;
    }

    /* Adjust padding for footer */
    .footer{
        padding: 0 2rem;
    }

    .home-item{
        height: 75rem;
    }

    .home-item .content{ 
        padding: 10rem 2rem;
    }
    
    .home-slider .swiper-button-next,
    .home-slider .swiper-button-prev{
        display: none;
    }

    /* Contact Container */
    .contact .box-container{
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }
    
    /* Contact Information Section */
    .contact-info{
        margin: 0 5rem;
        margin-top: -5rem;
        -webkit-transform: translate(0, 5rem);
                transform: translate(0, 5rem);
    }
    
    /* Contact Form Padding */
    .contact-form{
        padding: 2rem;
        padding-top: 8rem;
    }

    .project-item{
        width: 50%;
    }

}

@media (max-width: 450px){
   
    /* Adjust font size for extra small screens */
    html{
      font-size: 50%;
    }

    /* Adjust padding for sections */
    section{
        padding: 3rem 1rem;
    }

    /* Adjust padding for header */
    .header{
        padding: 0rem 1rem;
    }

    /* Adjust padding for footer */
    .footer{
        padding: 0 1rem;
    }

    /* Adjust padding for footer container */
    .footer .box-container{
        padding: 1rem 0;
    }

    /* Search Container */
    .search-container{
        max-width: 100%;
        width: auto;
        right: 1rem;
        left: 1rem;
    }
 
    .home-item{
        height: 100vh;
    }

    .home-item .content{ 
        padding: 10rem 1rem;
    }

    /* Adjust padding for About Content */
    .about .content{
        padding-bottom: 2rem;
    }

    /* Team Single Skills */
    /* Remove the gap between items within the skills container on the team-single page. */
    .team-single .skills{
        gap: 0;
    }

    .project-item{
        width: 100%;
    }

    /* Product Item Image */
    /* Set the height of the image within the product-item container. */
    .product-item .image img{
        height: 40rem;
    }

    /* Account Form */
    .form.account{
        max-width: 100%;
    }

    /* Form Input Field inside input box container */
    .form .input-box .box{
        width: 100%;
    }

    /* Adjust the width of the cart summary within the cart page */
    .cart .cart-summary{
        width: 100%;
    }

    /* Adjust the width of the content within the order summary on the order-single page. */
    .order-single .order-summary .content{
        width: 100%;
    }
    
}

/*--------------------- Responsive (End) ---------------------*/


