/********** Template CSS **********/
:root {
    /* --primary: #32C36C; */
    --primary: #32C36C;
    --light: #F6F7F8;
    --dark: #1A2A36;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #393838;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-brand img {
    height: 75px;
    width: auto;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

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

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

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

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    inset: 0;
    align-items: center;
    background: rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    display: none;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: #27146c;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    background: #FFFFFF;
    min-height: 350px;
}

.service-icon {
    position: relative;
    margin: 0 auto 30px auto;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}



/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


.footer {
    background-color: #020715;
    background-image:
        linear-gradient(rgba(60, 60, 60, 0.85),
            rgba(60, 60, 60, 0.75)),
        url('../img/about/aboutfeature.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f1f3f5 !important;
}

.footer.text-body {
    color: #f1f3f5 !important;
}

.footer .btn.btn-social {
    margin-right: 5px;
    color: #f1f3f5;
    border: 1px solid rgba(241, 243, 245, 0.7);
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: #fff;
    border-color: #fff;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #f1f3f5;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.footer .copyright a {
    color: #fff;
}

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

.footer .text-white,
.footer a.text-white,
.footer .text-body,
.footer p,
.footer h5 {
    color: #f1f3f5 !important;
}

.footer .footer-gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    filter: saturate(72%) brightness(0.82) contrast(0.9);
    opacity: 0.9;
    transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.footer .footer-gallery-thumb:hover {
    filter: saturate(88%) brightness(0.9) contrast(0.95);
    opacity: 1;
    transform: translateY(-2px);
}

.hidden {
    display: none !important;
}

.container-fluid {
    position: relative;
}

.header-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    height: 70vh;
}

.owl-carousel-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.video-wrapper,
.owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Ensures content covers the container without distortion */
    overflow: hidden;
    z-index: -1;
}

.owl-carousel-inner {
    position: relative;
    z-index: 1;
    /* Ensures text and buttons appear above video/image */
}

@media (max-width: 768px) {

    .header-carousel,
    .header-carousel .owl-carousel-item {
        height: 60vh;
    }

    .owl-carousel-inner h1 {
        font-size: 1.8rem;
    }

    .owl-carousel-inner p {
        font-size: 1rem;
    }

    .owl-carousel-inner .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #f6f7f8;
}

.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: translate(-50%, -50%);
}

.service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure the item takes full height of its container */
}

.service-item img {
    max-height: 350px;
    /* Set a maximum height for images to keep proportions consistent */
    object-fit: cover;
    /* Ensures the image covers the set area without distortion */
    width: 100%;
    /* Full width */
}

.service-item .position-relative.p-4 {
    flex-grow: 1;
    /* Makes the content area flexible to fill available space */
}

.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.col-md-6.col-lg-4 {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .row.g-4 {
        flex-direction: column;
        /* Stack items vertically on mobile */
    }

    .col-md-6.col-lg-4 {
        width: 100%;
        /* Full width for smaller screens */
    }
}

/* Image container */
.product-card-img-wrapper {
    width: 100%;
    height: 60vh;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    padding: 20px;
    /* move padding here */
    box-sizing: border-box;
}

/* Image */
.product-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/*** Homepage Quote Highlight ***/
.quote-highlight {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);
}

.quote-panel {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    padding: 1.25rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(50, 195, 108, 0.18);
    border-left: 2px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(26, 42, 54, 0.08);
    text-align: center;
}

.quote-panel h2 {
    color: var(--dark);
    line-height: 1.25;
}

.quote-panel .lead {
    font-size: 1.06rem;
    line-height: 1.75;
    color: #4c4c4c;
}

@media (max-width: 767.98px) {
    .quote-panel {
        padding: 1.25rem 1.25rem;
    }

    .quote-panel h2 {
        font-size: 1.6rem;
    }

    .quote-panel .lead {
        font-size: 0.98rem;
        line-height: 1.65;
    }
}

/* Trust Strip Styles */
.trust-strip {
    background-color: #32C36C;
    padding: 20px 0;
    width: 100%;
    margin: 0;
    display: block;
    line-height: 1;
}

.trust-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 1px;
    line-height: 1;
}

.footer {
    margin-top: 0 !important;
}

.trust-strip+.container-fluid {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .trust-strip {
        padding: 15px 0;
    }

    .trust-text {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

/* Homepage slider mobile fixes: keep desktop behavior unchanged */
@media (max-width: 768px) {

    .header-carousel,
    .header-carousel .owl-carousel-item {
        height: 50vh;
        min-height: 280px;
    }

    .header-carousel .owl-carousel-item {
        min-height: 0 !important;
    }

    .video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .video-wrapper video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: 70% center;
        transform: translate(-50%, -50%);
    }


}