/********** Template CSS **********/
:root {
    --primary: #FDA12B;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #182333;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
/* =========================================
   NAVBAR
========================================= */

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 25px 0;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}


/* =========================================
   OUR SERVICES ARROW
========================================= */

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Arrow rotate when dropdown is open */
.navbar .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* =========================================
   DESKTOP OUR SERVICES MEGA DROPDOWN
   2 COLUMNS + HOVER + CLICK
========================================= */

@media (min-width: 992px) {

    .navbar .nav-item.dropdown {
        position: relative;
    }

    .navbar .nav-item .dropdown-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 4px;

        position: absolute;
        top: 100%;
        left: 50%;
        right: auto;

        width: 680px;
        min-width: 680px;
        max-width: calc(100vw - 30px);

        padding: 15px;
        margin: 0;

        background: #ffffff;
        border: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translate(-50%, 10px);
        transition: opacity 0.25s ease,
                    transform 0.25s ease,
                    visibility 0.25s ease;

        z-index: 9999;
    }

    /* Hover par open */
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    /* Click par open - Bootstrap show class */
    .navbar .nav-item.dropdown > .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    /* Dropdown items */
    .navbar .dropdown-menu .dropdown-item {
        display: flex;
        align-items: flex-start;

        min-width: 0;
        min-height: 54px;

        padding: 13px 12px;

        color: #333333;
        background: transparent;

        font-size: 15px;
        font-weight: 500;
        line-height: 1.45;

        white-space: normal;
        overflow-wrap: break-word;

        border-radius: 4px;
        transition: background 0.25s ease,
                    color 0.25s ease;
    }

    /* Orange arrow */
    .navbar .dropdown-menu .dropdown-item::before {
        content: "\f054";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 9px;

        color: var(--primary);

        margin-right: 12px;
        margin-top: 5px;
        flex-shrink: 0;
    }

    /* Hover effect */
    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item:focus {
        color: #ffffff;
        background: var(--primary);
    }

    .navbar .dropdown-menu .dropdown-item:hover::before,
    .navbar .dropdown-menu .dropdown-item:focus::before {
        color: #ffffff;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 991.98px) {

    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 25px;
        border-top: 1px solid #EEEEEE;
    }


    /* Mobile dropdown */
    .navbar .dropdown-menu {
        position: static !important;

        width: 100%;
        min-width: 100%;

        margin: 5px 0 10px;

        padding: 5px 0;

        background: #f8f9fa;

        border: 1px solid #eeeeee;
        border-radius: 6px;

        box-shadow: none;
    }


    .navbar .dropdown-menu .dropdown-item {
        padding: 11px 15px;

        color: #333333;

        font-size: 14px;

        white-space: normal;
        line-height: 1.4;
    }


    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item:focus {
        color: var(--primary);
        background: #ffffff;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    /* background: rgba(0, 0, 0, .65); */
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 50px;
}

.carousel-caption .breadcrumb-item+.breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

/* =========================================
   MOBILE CAROUSEL RESPONSIVE FIX
========================================= */

@media (max-width: 768px) {

    #header-carousel {
        width: 100%;
        overflow: hidden;
        background: #ffffff;
    }

    #header-carousel .carousel-inner {
        width: 100%;
    }

    #header-carousel .carousel-item {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        background: #ffffff;
    }

    /* Show complete banner image without cropping */
    #header-carousel .carousel-item img {
        display: block;
        position: relative;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }

    /* Keep caption inside the banner */
    #header-carousel .carousel-caption {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        display: flex;
        align-items: center;
        text-align: left;
        z-index: 1;
    }

    #header-carousel .carousel-caption .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    #header-carousel .carousel-caption .row {
        margin: 0;
    }

    /* Smaller carousel arrows */
    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        width: 36px;
        opacity: 1;
        z-index: 2;
    }

    #header-carousel .carousel-control-prev-icon,
    #header-carousel .carousel-control-next-icon {
        width: 26px;
        height: 26px;
        background-color: #555555;
        background-size: 50% 50%;
        border: 0;
        border-radius: 50%;
    }

    #header-carousel .carousel-control-prev {
        left: 2px;
    }

    #header-carousel .carousel-control-next {
        right: 2px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {

    #header-carousel .carousel-caption {
        padding: 6px;
    }

    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        width: 30px;
    }

    #header-carousel .carousel-control-prev-icon,
    #header-carousel .carousel-control-next-icon {
        width: 23px;
        height: 23px;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
.facts-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
}

.facts-overlay h1 {
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
    color: var(--primary) !important;
}


/*** Service ***/
.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 1;
}

.service-text * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: #FFFFFF !important;
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    width: 100%;
}

.team-text * {
    transition: .5s;
}

.team-item:hover .team-text * {
    letter-spacing: 2px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* gallery css start */
/* =========================================
   AJAX FIORI GALLERY
========================================= */

.ajax-gallery-section {
    position: relative;
}


/* Gallery Box */

.ajax-gallery-box {
    position: relative;
    width: 100%;
    height: 280px;

    overflow: hidden;

    background: #f5b400;

    cursor: pointer;

    border-radius: 5px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;
}


/* Gallery Image */

.ajax-gallery-box img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


/* Yellow Overlay */

.ajax-gallery-overlay {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(245, 180, 0, 0.78);

    opacity: 0;

    transition: all 0.35s ease;
}


/* Search Icon Circle */

.ajax-gallery-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: #1f2933;

    border-radius: 50%;

    font-size: 21px;

    transform: scale(0.6);

    transition: all 0.35s ease;
}


/* Hover Image */

.ajax-gallery-box:hover img {
    transform: scale(1.08);
}


/* Hover Overlay */

.ajax-gallery-box:hover .ajax-gallery-overlay {
    opacity: 1;
}


/* Hover Icon */

.ajax-gallery-box:hover .ajax-gallery-icon {
    transform: scale(1);
}


/* Gallery Box Hover */

.ajax-gallery-box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


/* =========================================
   LIGHTBOX
========================================= */

.ajax-lightbox {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 999999;
}


/* Active Lightbox */

.ajax-lightbox.active {
    opacity: 1;

    visibility: visible;
}


/* Large Image */

.ajax-lightbox-image {
    display: block;

    max-width: 90%;

    max-height: 90vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 5px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);

    transform: scale(0.85);

    transition: transform 0.3s ease;
}


/* Image Animation */

.ajax-lightbox.active .ajax-lightbox-image {
    transform: scale(1);
}


/* =========================================
   CLOSE BUTTON
========================================= */

.ajax-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 48px;
    height: 48px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: #f5b400;

    color: #1f2933;

    font-size: 34px;

    line-height: 42px;

    text-align: center;

    cursor: pointer;

    z-index: 1000000;

    transition: all 0.3s ease;
}


/* Close Hover */

.ajax-lightbox-close:hover {
    background: #ffffff;

    color: #1f2933;

    transform: rotate(90deg);
}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 767px) {

    .ajax-gallery-box {
        height: 240px;
    }


    .ajax-gallery-overlay {
        opacity: 1;

        background: rgba(245, 180, 0, 0.15);
    }


    .ajax-gallery-icon {
        width: 50px;
        height: 50px;

        font-size: 18px;

        transform: scale(0.9);
    }


    .ajax-lightbox {
        padding: 20px;
    }


    .ajax-lightbox-image {
        max-width: 95%;

        max-height: 80vh;
    }


    .ajax-lightbox-close {
        top: 15px;

        right: 15px;

        width: 42px;

        height: 42px;

        font-size: 30px;

        line-height: 38px;
    }

}
/* gallery css end */

 /* =========================================
   AJAX CLIENTS SLIDER
========================================= */

.ajax-clients-section {
    padding: 70px 0;
    background: #fff;
    overflow: hidden;
}


/* Heading */

.ajax-clients-heading {
    margin-bottom: 50px;
}

.ajax-clients-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #1685d8;
    border-radius: 50%;
    margin: 0 auto 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ajax-clients-icon span {
    width: 11px;
    height: 11px;
    background: #b9d9ee;
    border-radius: 50%;
}

.ajax-clients-heading h6 {
    color: #8D9297;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.ajax-clients-heading h1 {
    color: #000000;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
}


/* =========================================
   SLIDER
========================================= */

.ajax-client-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}


/* Track */

.ajax-client-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    transform: translateX(0);
    transition: transform 0.8s ease;
}

/* Individual Logo */

.ajax-client-slide {
    flex: 0 0 20%;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 30px;
    box-sizing: border-box;
}


/* Logo Image */

.ajax-client-slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100px;

    object-fit: contain;

    display: block;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .ajax-client-slide {
        flex: 0 0 33.333%;
        width: 33.333%;
    }

    .ajax-clients-heading h1 {
        font-size: 34px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .ajax-clients-section {
        padding: 50px 0;
    }

    .ajax-clients-heading {
        margin-bottom: 30px;
    }

    .ajax-clients-heading h1 {
        font-size: 27px;
    }

    .ajax-client-slide {
        flex: 0 0 50%;
        width: 50%;

        height: 120px;

        padding: 10px;
    }

    .ajax-client-slide img {
        max-height: 75px;
    }

}

/* =========================================
   AJAX CLIENTS SLIDER END
========================================= */

/* =====================================
   FLOATING CALL & WHATSAPP BUTTONS
===================================== */

.floating-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}

.floating-contact-btn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 24px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.floating-contact-btn:hover {
    transform: scale(1.08);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

/* Call Button */
.floating-call-btn {
    background: #ff9f24;
}

/* WhatsApp Button */
.floating-whatsapp-btn {
    background: #25D366;
}


/* Mobile Navbar & Our Services Dropdown Fix */
@media (max-width: 767px) {

    /* Mobile menu ko scrollable banayein */
    .navbar-collapse {
        max-height: calc(100vh - 70px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Dropdown menu ki height control karein */
    .navbar-nav .dropdown-menu,
    .navbar-nav .mega-menu,
    .navbar-nav .mega-dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        max-height: 55vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    /* Dropdown links ko poora visible rakhein */
    .navbar-nav .dropdown-menu a,
    .navbar-nav .mega-menu a,
    .navbar-nav .mega-dropdown-menu a {
        white-space: normal !important;
        overflow-wrap: anywhere;
        line-height: 1.5;
    }
}