/* Custom CSS for the Hero Section */
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  opacity: 0;
  transform: scale(1.05);
}

.hero-image-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-image-inactive {
  opacity: 0;
  transform: scale(1.05);
  z-index: 0;
}

.hero-text.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Navigation Bar */
/* Mobile dropdowns: Initially hidden with a height of 0 */


#nav-menu.active {
    max-height: 500px;
    /* A large enough value to show the full menu */
}

/* Mobile dropdown sub-menus: Also initially hidden */
.dropdown-menu,
.sub-dropdown-menu {
    display: none;
    transition: all 0.3s ease-in-out;
}

.dropdown-menu.visible,
.sub-dropdown-menu.visible {
    display: block;
}

/* Desktop dropdowns: Use Tailwind's group-hover for visibility */
@media (min-width: 768px) {
    #nav-menu {
        max-height: none !important;
        /* Override mobile max-height */
        overflow: visible;
    }

    .dropdown-menu,
    .sub-dropdown-menu {
        display: block;
        /* Show dropdowns on desktop */
    }
}

/* Underline Hover Effect for Navbar Links */
.nav-link-underline {
    position: relative;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    /* Thickness of the underline */
    left: 50%;
    bottom: 0;
    background-color: #E46F36;
    /* Color of the underline */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link-underline:hover::after {
    width: 100%;
}

/* Services Section */
@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-x {
    background-size: 400% 400%;
    animation: gradient-x 15s ease infinite;
}

/* Common Styles for Item Grid, Services, and Testimonials */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, and Opera */
}

.hover\:shadow-\[0_0_20px_rgba\(255,
138,
0,
0.7\)\]:hover {
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.7);
}

.collection_text {
    position: relative;
    top: -300px;
    left: 20px;
}

.collection_ul {
    position: relative;
    top: -300px;
    left: 25px;

}

.maxx_height {
    height: 316px;
}

.collection_img {
    background: #000;
    filter: brightness(50%);
}

.collection_img:hover {
    filter: brightness(50%);
}

.testi_card-box {
    width: 500px;
}

.collect_box {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.hidden-bot {
    display: none;
}

.captcha_bg {
    display: inline-block;
    background: url(../images/bg9.webp);
    width: 110px;
    text-align: center;
    top: 0 !important;
    font-size: 20px;
    align-items: center;
    display: flex;
    justify-content: center;
    color: #747474;
}

#order-type-modal.show,
#click-collect-modal.show,
#doorstep-delivery-modal.show,
.orderhistory_modal.show,
.ratingModal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-in-out;
}



.emoji {
    transition: transform 0.2s ease;
}

.emoji.selected {
    transform: scale(1.25);
}

/* Smooth fade for modal */
#rating-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}