:root {
    /* body bg color */
    --bodyColor: #fff;

    /* primary brand color */
    --primary-color: #000;

    /* primary brand color */
    --box-color: #f9fafb;

    /* primary brand color */
    --brand-color: #00a4ef;
    /* for RGB >> rgb(0,164,239) */

    /* secondary brand color 2*/
    --brand-color2: #FFB900;
    /* for RGB >> rgb(255,185,0) */

    /* secondary brand color 3*/
    --brand-color3: #7e36f4;
    /* for RGB >> rgb(126,54,244) */

    /* grey color */
    --grey: #646464;

    /* border radius */
    --border-radius: 15px;

    /* Box Shadow  */
    --box-shadow: 0px 0px 2px 2px #f2f4fe;
}



/* Responsive CSS File */

@media (min-width: 992px) {
    .col-lg-6-1 {
        flex: 0 0 auto;
        width: 48%;
    }
}


@media screen and (max-width: 992px) {

    /* Navbar */

    .small-hide {
        display: none;
    }

    .navbar {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 10px 10px;
    }

    .navbar-collapse .collapse .show {
        background-color: black;
    }

    .navbar-brand img {
        height: 30px;
        width: auto;
    }

    .navbar.scrolled {
        width: -webkit-fill-available;
        /* margin: 10px !important; */
        top: 0;
        /* border-radius: 25px; */
        background: transparent !important;
        box-shadow: none;
        padding: 20px;
    }

    .scrolled a.navbar-brand {
        background: var(--box-color) !important;
        border-radius: 13px;
    }

    /* .navbar .nav-link {
        text-align: end;
    } */

    .vh-50 {
        height: 30vh;
    }

    /* .navbar.scrolled .nav-link {
        font-size: 18px;
        margin-right: 10px !important;
    } */


    .nav-item {
        margin-right: 0;
        border: 2px solid #aaaaaa40;
        min-width: 140px;
        text-align: center;
        border-radius: var(--border-radius);
    }

    .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        justify-items: normal;
    }

    .navbar .nav-link {
        color: #000;
        font-size: 20px;
    }

    .navbar-nav li:nth-child(odd) {
        margin-left: 15px;
    }

    .navbar-nav li:nth-child(even) {
        margin-right: 15px;
    }

    /* .navbar-nav li:nth-child(1) {
        margin-left: 20px;
    }

    .navbar-nav li:nth-child(2) {
        margin-right: 20px;
    } */



    .navbar-collapse {
        margin-top: 10px;
        border-radius: 15px;
        background-color: var(--box-color);
        /* box-shadow: var(--box-shadow); */
        transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* Reduce section paddings */
    .section-area,
    .service-area,
    .feature-area,
    .faq-area,
    .products-section-home {
        padding: 40px 10px;
        /* Reduce overall padding */
    }

    /* 0 Padding due to Slider in mobile   */

    .products-section {
        padding: 40px 0px;
        /* Reduce overall padding */
    }

    /* Features & Products Layout Fix */
    .feature-content,
    .product-item {
        width: 100%;
        /* Full width on mobile */
        height: auto;
        /* Maintain flexibility */
    }

    .scroll-image-wrapper {
        position: relative;
        width: 95%;
    }

    .product-item img {
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }

    .feature-icon i {
        font-size: 40px;
    }

    .feature-content h4 {
        font-size: 25px;
    }

    .feature-description {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 768px) {

    /* Adjust typography for smaller screens */
    h2 {
        font-size: 32px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    .title-2 {
        font-size: 14px;
    }

    .font-large {
        font-size: 40px !important;
        font-weight: 800 !important;
    }

    /* Adjust product cards in a column layout */
    .products-section .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-item {
        width: 90%;
        /* Keep cards uniform */
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-item .desc {
        flex-grow: 1;
        min-height: 300px;
    }

    .custom-slider-controls {
        display: none;
    }

    .w-half {
        width: 75%;
    }

    .hero .btn {
        padding: 10px 15px;
    }

    .comming-soon p {
        padding-right: 20px;
        padding-left: 20px;
    }

    .card-bg-image {
        padding: 30px 20px;
    }

    #scrollUpBtn {
        bottom: 95px;
    }

}

@media screen and (max-width: 480px) {

    /* Fine-tune small mobile devices */

    .scroll-image-container {
        padding: 15px;
        /* height: 65vh !important; */
    }

    .navbar-brand img {
        height: 30px;
        /* Further reduce logo size */
        width: auto;
    }

    .logo-fixed img {
        margin: 0;
    }

    .navbar .container {
        margin: 0;
        padding: 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn:hover {
        font-size: small;
    }

    /* Stack features and products properly */
    .feature-content,
    .product-item {
        width: 100%;
        margin: 10px 0;
    }

    .products-section .btn {
        font-size: 14px;
        font-weight: 400;
        padding: 5px 10px;
    }

}


@media (max-width: 991px) {

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        backdrop-filter: blur(3px) brightness(0.5);
        -webkit-backdrop-filter: blur(3px) brightness(0.5);
        background: rgba(0,0,0,0.25);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease; /* IMPORTANT */
        z-index: 998;
    }

    .mobile-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar {
        z-index: 999;
    }
}
