/* 
    =====================
    This is the css file for index(all the app in the root folder).
    ====================== 
*/

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* ==================== root ==================== */
/* ==================== root ==================== */
:root {
    --primary-color: #198754;
    /* Marketplace Green */
    --secondary-color: #0d6efd;
    /* Trust Blue */
    --accent-orange: #f98d00;
}

/* Removes the blue glow from all interactive elements */
*:focus,
*:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Keep the background perfect for modal */
body.modal-open {
    overflow: auto !important;
    padding-right: 0px !important;
}


/* ==================== body ==================== */
/* ==================== body ==================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}


h1,
h2,
h3,
.btn,
.navbar-brand,
.fw-bold {
    font-weight: 600;
    /* slightly bolder headings for contrast */
}

/* If the offcanvas is closed, make sure no backdrop hangs around */
body:not(.offcanvas-open) .offcanvas-backdrop {
    display: none !important;
    opacity: 0 !important;
}


/* ==================== nav ==================== */
/* ==================== nav ==================== */
.nav-link1 li a {
    margin: 3px;
    font-size: 12px;
}

.nav-link2 li a {
    margin: 3px;
    font-size: 12px;

}

/* quick links */
.dropdown-toggle {
    /* forces quick link to have dim color white unless when active/focus */
    color: rgba(255, 255, 255, 0.5) !important;
}

.dropdown-toggle:hover {
    color: #fff !important;
}

/* 1. Remove focus glow from all buttons both menubar */
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* ==================== js for scroll bg and hide ==================== */
/* ==================== js for scroll bg and hide ==================== */
.navbar.fixed-top {
    /* Smooth hide/show for both navbars */
    transition: transform 0.7s ease, background-color 0.7s ease !important;
}

.navbar-hidden {
    /* Hide the navbar by sliding it up */
    transform: translateY(-100%);
}

.navbar.scrolled {
    /* White background when scrolled */
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.7s ease !important;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link,
.navbar.scrolled .dropdown-toggle {
    /* Keep mobile navbar white text when scrolled (if you want dark text) */
    /* color: #212529 !important ; */
    color: #000 !important;
}





/*==================== maintains opacity 1 in for navbar-toggler-icon ==================== */
/*==================== maintains opacity 1 in for navbar-toggler-icon ==================== */
.navbar-toggler-icon {
    /* Override the default Bootstrap toggler icon with a high-contrast version */
    /* start with a solid black icon (will be inverted on dark backgrounds) */
    opacity: 1 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.scrolled .navbar-toggler-icon {
    filter: invert(1);
    transition: filter 0.3s ease;
    /* turns white icon to black */
}

.navbar-dark.bg-transparent .navbar-toggler-icon,
.navbar-dark:not(.scrolled) .navbar-toggler-icon {
    filter: brightness(0) invert(1) !important;
    /* pure white, thick lines */
    /* On the transparent navbar (no scrolled class), make the icon bright white */
}

.navbar.scrolled .navbar-toggler-icon {
    filter: brightness(0) !important;
    /* solid black, no invert */
    /* When the navbar becomes white (scrolled), the icon should be dark black */
}


/* ================ Dropdown (quick links) ================ */
/* ================ Dropdown (quick links) ================ */
.dropdown-menu {
    /* border-radius: 15px !important; */
    border: none;

    /* Animation Properties */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.2s ease-out;
}

/* When Bootstrap triggers the dropdown */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Slide up to original position */
}

.dropdown-menu .dropdown-item {
    margin: 1px;
    font-size: 13px;
    transition: background 0.3s ease;
    animation: nav-drop-item 0.3s linear;
}

@keyframes nav-drop-item {
    0% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(20px);
        transition: 0.3s;
    }

    100% {
        opacity: 1;
        transition: 0.3s;

    }
}

.dropdown-menu .dropdown-item:hover {
    color: #198754;
    background-color: transparent;
    transition: 0.3s ease;
}




/* ==================== Hero ================== */
/* ==================== Hero ================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1533900298318-6b8da08a523e?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    max-width: 700px;
    font-size: 1.2rem;
}


.custom-btn-width {
    /* This ensures they are the same size on all screens */
    min-width: 220px;
    /* Adjust this number until it looks perfect for your text */
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* On very small mobile screens, make them full width if you prefer */
@media (max-width: 576px) {
    .custom-btn-width {
        width: 100%;
        max-width: 300px;
        /* Prevents them from getting TOO wide on mobile */
    }
}


/* =============== hero animation */
/* =============== hero animation */
@keyframes animate3 {
    0% {
        opacity: 0;
        transform: translateX(-4%);
    }

    50% {
        opacity: 0.2;
    }

    75% {
        opacity: 0.5;
    }


    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes animate2 {
    0% {
        opacity: 0;
        transform: translateX(4%);
    }

    50% {
        opacity: 0.2;
    }

    75% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----- Initial state: no animation yet ----- */
.hero-animate1,
.hero-animate2,
.hero-animate3 {
    opacity: 0;
    /* hidden until animation starts */
    animation: none;
    /* no movement until triggered */
}

/* ----- Triggered after page load ----- */
.animate-active.hero-animate1 {
    animation: animate3 0.6s ease-in-out forwards;
}

.animate-active.hero-animate2 {
    animation: animate2 0.6s ease-in-out forwards;
}

.animate-active.hero-animate3 {
    animation: animate3 0.6s ease-in-out forwards;
}







/* ============ breadcrumb ============ */
/* ============ breadcrumb ============ */
.breadcrumb-item+.breadcrumb-item::before {
    /* This targets the "/" separator specifically */
    color: #ffc107 !important;
    /* Makes it yellow/warning to match your 'Home' link */
    content: "/";
    /* This ensures the slash is what is being colored */
}

.breadcrumb-item+.breadcrumb-item::before {
    /* Optional: If you want to make it a bit bolder so it's easier to see */
    font-weight: bold;
    padding-right: 10px;
    /* Gives it a bit more space */
}


/* ============ Features Section =============== */
/* ============ Features Section =============== */
.features-section {
    padding: 80px 0;
    background-color: #ffffff;
    min-height: 100vh;
}

.card {
    border: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: none !important;
    border: none !important;
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}





/* ======================= general Preloader ======================= */
/* ======================= general Preloader ======================= */
#preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    /* fixes iOS Safari */
    z-index: 99999 !important;
    background: #fff !important;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}


/* ======================= general prevent image drap ======================= */
/* ======================= general prevent image drap ======================= */
.no-drag-element {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    pointer-events: none;
}





/* ==================== generla image reflection ====================*/
/* ==================== general image reflection ====================*/
.img-reflection {
    -webkit-box-reflect: below 0px linear-gradient(transparent, rgba(0, 0, 0, 0.2)) !important;
    margin-bottom: 80px !important;
}









/* ========= Loading overlay(for image, element or content) spinner */
/* ========= Loading overlay(for image, element or content) spinner */
.loading-trigger {
    position: relative;
    transition: opacity 0.2s;
}

.loading-trigger.is-loading {
    pointer-events: none;
    opacity: 1;
}

.loading-trigger.is-loading::before {
    content: "\f110";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: fa-spin 0.7s infinite linear;
}

/* Adjust icon size for small buttons */
.loading-trigger.btn-sm.is-loading::before {
    font-size: 0.8rem;
}

/* For dark backgrounds */
.loading-trigger.is-loading::before {
    color: rgb(255, 255, 255);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Ensure the existing Font Awesome animation is used */
@keyframes fa-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}







/* ============== Scroll Animation System */
/* ============== Scroll Animation System */
.scroll-animate {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Ultra Smooth Fade Up */
.animate-fade-up {
    transform: translate3d(0, 50px, 0);
}

/* 2. Ultra Smooth Fade Down */
.animate-fade-down {
    transform: translate3d(0, -50px, 0);
}

/* 3. Ultra Smooth Fade Left */
.animate-fade-left {
    transform: translate3d(50px, 0, 0);
}

/* 4. Ultra Smooth Fade Right */
.animate-fade-right {
    transform: translate3d(-50px, 0, 0);
}

/* 5. Fluid Zoom In Scale */
.animate-zoom-in {
    transform: scale3d(0.92, 0.92, 1);
}

/* --- THE ACTIVE FINISHED STATE --- */
.scroll-animate.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Optional: Cleanly disables animations if the visitor has a slow phone or has 
   "Reduce Motion" enabled in their operating system settings */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}




/* ============== GLOBAL MODAL DESIGN */
/* ============== GLOBAL MODAL DESIGN */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .12);
}

.modal-header {
    padding: 1rem 1.25rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
}

.modal-backdrop.show {
    opacity: .65;
}


.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal.fade .modal-dialog {
    transform: translateY(30px) scale(.96);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}