@media (max-width: 992px) {
    nav {
        position: sticky;
        top: 0;
    }

    nav ul:last-child {
        position: fixed;
        left: -250px; 
        top: 0; 
        flex-direction: column;
        gap: 0; 
        display: flex; 
        background-color: white;
        width: 250px;
        height: 100vh; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: left 0.5s ease;
        z-index: 99;
        overflow-y: auto;
    }
    

    nav ul:last-child li {
        text-align: center;
        padding: 20px 0;
        width: 100%;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 40px;
        z-index: 100;
    }

    .hamburger div {
        width: 30px;
        height: 3px;
        background-color: #000;
        transition: all 0.4s ease-in-out;
        border-radius: 2px;
    }

    .nav-active ul:last-child {
        left: 0;
        border-right: 2px solid #fd9827;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg) translate(7px, 6px);
        background-color: #fd9827;
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
        background-color: #fd9827;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: #fd9827;
    }
    .benefit-item{
        height: auto;
    }
}

@media screen and (max-width:769px) {
    .special_center{
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4px 0;
    }
    .hero-section {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .about_com ,.quick_links ,.contact_det{
        text-align: center;
    }
    .spe_flex{
        display: flex;
    }
    .foollow_us_footer{
        margin-right: 10px;
        padding: 0;
        margin-top: 5px;
    }
}

@media screen and (max-width: 765px) {
    /* Adjust carousel container width for small screens */
    .carousel {
        width: 100%;
        margin: 0 auto;
    }

    /* Make the carousel images responsive */
    .carousel-inner img {
        height: auto;
        max-height: 250px;
        object-fit: cover;
        width: 100%; /* Ensure image takes full width */
    }

    /* Adjust carousel caption for small screens */
    .carousel-caption {
        font-size: 14px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.5);
        text-align: center;
        width: 90%; /* Adjust the width to fit the screen */
        margin: 0 auto; /* Center the caption */
    }

    .carousel-caption h5 {
        font-size: 16px;
        font-weight: bold;
    }

    .carousel-caption p {
        font-size: 12px;
        margin-bottom: 0;
    }

    /* Adjust navigation buttons */
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .prev-btn svg, .next-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Indicators adjustment */
    .carousel-indicators {
        bottom: -15px;
    }

    .carousel-indicators button {
        width: 8px;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .carousel-indicators .active {
        background-color: #fff;
    }
    .prev-btn{
        left: 10px;
    }
    .next-btn {
        right: 10px; 
    }
}





@media (max-width: 768px) {
    .h1h1 {
        font-size: 36px; 
    }
    .p_other {
        font-size: 16px; 
    }
    .infra-section ,.about-section ,.con-section ,.process-section {
        height: 300px; 
        border-radius: 0;
    }
    .footer_logoo{
        display: flex;
        justify-content: center;
        padding: 20px;
    }
}










/* jump to top */
.scroll-to-top {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 53px;
    height: 52px;
    bottom: 20px;
    right: 20px; 
    background-color: #ff8700;
    border-bottom: 4px solid rgb(241, 241, 241);
    border-radius: 50%;
    cursor: pointer; 
    display: none; 
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
    animation: bounce 1s infinite; /* Change to bounce animation */
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    background-color: #ff8700; 
    transform: scale(1.1) rotate(10deg); /* Scale and rotate on hover */
}

.scroll-to-top svg {
    width: 30px; 
    height: 30px;
}

.scroll-to-top path {
    fill: black; 
    transition: fill 0.3s ease-in-out;
}

.scroll-to-top:hover path {
    fill: white; 
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px); 
    }
}





::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}


::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5; 
}
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #fd9827; 
    background-image: linear-gradient(
        to top,
        rgba(253, 152, 39, 0.8) 44%,
        rgba(253, 152, 39, 0.6) 72%,
        rgba(253, 152, 39, 0.4) 86% 
    );
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(253, 152, 39, 0.9); 
}

