/********** Template CSS **********/
body{
    font-family: "Nunito Sans", sans-serif!important;
}


:root {
    --primary: #000;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #333;
}

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


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

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** 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 {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.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: 70px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    /* Similar to default h4 font weight */
    font-size: 14px;
    /* Adjust font size as needed */
    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 ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.301);
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

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

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

.carousel-item {
    text-transform: lowercase;
}

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

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

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    /* background: rgba(26, 83, 110, 0.301); */
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
    border: 5px solid transparent;
    transition: border-color 0.3s ease-in-out;
    box-sizing: border-box;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
    z-index: -1;
    opacity: 0;
}

.service-item:hover .service-img img,
.service-item:active .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    color: #000000;
    padding: 20px;
}

.service-item:hover .service-text,
.service-item:active .service-text {
    background: #FFFFFF;
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: color 0.3s ease-in-out;
}

.service-item .service-text h4 {
    color: #000000;
}

.service-item:hover .service-text h4,
.service-item:active .service-text h4 {
    color: #000000;
}

.service-item:hover .service-text p,
.service-item:active .service-text p {
    color: #000000;
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: background 0.1s ease-in-out;
}

.service-item:hover .service-text .btn-square,
.service-item:active .service-text .btn-square {
    background: #000;
}

.service-item:hover .service-text .btn-square .bi,
.service-item:active .service-text .btn-square .bi {
    color: #fff !important;
}

.service-item .service-text .btn {
    width: 31px;
    height: 41px;
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    background: #000000;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
}


.service-item:hover .service-text,
.service-item:active .service-text {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover .service-text .btn,
.service-item:active .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

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

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

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

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

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

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

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

/** Animation **/
.about-us-section {
    transition: transform 1s ease-in-out;
}

.about-us-section {
    transform: scale(1);
}

.about-us-section.scroll-down {
    transform: scale(1.1);
}

.about-us-section {
    perspective: 1px;
    /* add perspective to prevent rotation */
    transform-origin: center;
    /* set transform origin to center */
    transition: transform 0.5s ease-in-out;
}

.about-us-section.scroll-up {
    transform: scale(0.9);
}

/** Animation **/
.vision-mission-section {
    transition: transform 1s ease-in-out;
}

.vision-mission-section {
    transform: scale(1);
}

.vision-mission-section.scroll-down {
    transform: scale(1.1);
}

.vision-mission-section {
    perspective: 1px;
    /* add perspective to prevent rotation */
    transform-origin: center;
    /* set transform origin to center */
    transition: transform 0.5s ease-in-out;
}

.vision-mission-section.scroll-up {
    transform: scale(0.9);
}

/** MileStone **/
.timeline-container {
    position: relative;
    width: auto;
    height: auto;
    /* Adjust height as needed */
    overflow: hidden;
    /* Hide default scrollbars */
}

.timeline {
    display: flex;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.5s ease;
    /* Smooth scrolling effect */
}

/* Hide default scrollbars */
.timeline::-webkit-scrollbar {
    display: none;
}

.timeline {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.timeline-item {
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 24px;
    flex: 0 0 300px;
    /* width: 320px; */
    /* height: 380px; */
    margin: 10px;
    padding: 15px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content h2 {
    color: #2A69D8;
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    margin: 5px 0;
}

/* Minimalist and subtle hover effect */
.timeline-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Vertical scrolling for mobile devices */
@media screen and (max-width: 768px) {
    .timeline {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
    }

    .timeline-item {
        flex: 0 0 auto;
        margin: 15px 0;
    }
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #0E4FCE;
}

.copyright a {
    color: #FFFFFF;
}

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


.p-5 {
    padding: 2rem !important
}

.carousel-inner {
    transition: border-radius 0.2s ease, transform 0.2s ease;
}

/* All Heading in centre for MB view */
h1.display-1 {
    text-align: left; /* Align left on desktop */
    margin-bottom: 0;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    h1.display-1 {
        text-align: center; /* Center text on mobile */
        display: flex;
        justify-content: center;
        align-items: center;
        /*height: 100vh; /* Full viewport height */
        margin-bottom: 0;
    }
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .text-container {
        order: 0;
    }

    .image-container {
        display: none;
    }

    .service-item .service-text p {
        min-height: 120px;
    }

    .culture-heading {
        font-size: 43.55px;
        line-height: 52.26px;
    }

    .milestone-heading {
        font-size: 43.55px;
        line-height: 52.26px;
    }

    .carousel-control-prev, .carousel-control-next {
        display: none;
    }

}

.culture-heading {
    font-size: 3rem;
}

.milestone-heading {
    font-size: 3rem;
}

.jarallax {
    height: 50vh;
}