/********** Template CSS **********/
:root {
    --primary: #809aa7; /* warm gray/tan */
    --secondary: #393e46; /* medium gray */
    --light: #dfd0b8; /* light beige */
    --dark: #222831; /* dark gray/black */
    /* e7e7e7  */
}

.hero-header .text-primary {
    color: var(--dark);
}

.hero-header h1,
.hero-header h2,
.hero-header h3,
.hero-header h4,
.hero-header h5,
.hero-header h6 {
    color: var(--dark); /* headings in dark */
}

.hero-header p {
    color: var(--secondary); /* paragraphs softer than black */
}

/* Buttons */
.btn {
    border-color: #809aa7 !important;
}

.btn.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

/* Small accents like "Play Video" */
.hero-header h5,
.hero-header .small-text,
.hero-header .meta {
    color: var(--secondary);
}

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

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

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

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

.btn.btn-primary {
    background-color: var(--primary);
    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;
    background-color: var(--secondary);
    color: #ffffff;
}

/*** Navbar ***/
.navbar {
    /* background-color: #000 !important; */
    background-color: #00000069;
    backdrop-filter: blur(20px);
}

.navbar.fixed-top {
    display: block;
    transition: 0.5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    border-bottom: #809aa7 !important;
}

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

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

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

    .navbar .dropdown-menu {
        background: rgba(0, 0, 0, 0.8); /* dark semi-transparent background */
    }

    .navbar .dropdown-item {
        color: #ffffff !important;
    }

    .navbar .dropdown-item:hover {
        background: var(--primary);
        color: #ffffff !important;
    }

    /* White toggler icon (for mobile) */
    .navbar-toggler {
        border-color: #ffffff !important;
    }
    .navbar-toggler-icon {
        filter: invert(1); /* makes the default bootstrap icon white */
    }

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

/*** Header ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
    background: var(--primary);
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
    background: var(--primary);
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #ffffff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}

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

/*** Facts ***/
.fact-item {
    transition: 0.3s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #ffffff !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

/*** About ***/
.img-twice::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 1rem solid var(--light);
    z-index: -1;
}

/*** Service ***/
.service-item,
.service-item * {
    transition: 0.3s;
}

.service-item:hover {
    margin-top: -10px;
    color: #eee4e4;
    /* background: #e7e7e7  !important; */
}

.service-item .service-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transition: 0.5s;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

/*** Project ***/
.project-item {
    position: relative;
}

.project-item .project-title {
    position: absolute;
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 1rem;
    text-align: center;
    background: #ffffff;
    transition: 0.5s;
}

.project-item:hover .project-title {
    color: #ffffff;
    background: var(--primary);
}

/*** Team ***/
.team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: transparent transparent #ffffff transparent;
}

@media (min-width: 576px) {
    .flex-sm-row .team-img::after,
    .flex-lg-row-reverse .team-img::after {
        top: 50%;
        right: 0;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        border-color: transparent #ffffff transparent transparent;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .flex-sm-row-reverse .team-img::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 0;
        transform: translateY(-50%);
        border-color: transparent transparent transparent #ffffff;
    }
}

@media (min-width: 992px) {
    .flex-lg-row-reverse .team-img::after,
    .flex-sm-row-reverse .team-img::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 0;
        transform: translateY(-50%);
        border-color: transparent transparent transparent #ffffff;
    }

    .flex-sm-row-reverse.flex-lg-row .team-img::after {
        top: 50%;
        right: 0;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        border-color: transparent #ffffff transparent transparent;
    }
}

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

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #ffffff !important;
}

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

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

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

/*** Footer ***/
@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--secondary);
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--secondary);
    transform: skew(40deg);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #fff;
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.3s;
    border: unset !important;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #fff;
    letter-spacing: 1px;
    box-shadow: none;
    border: unset !important;
}

/* Other text elements for general content */
body,
.content p,
.content span,
.content li {
    color: var(--primary);
    font-family: "Marcellus", Sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
}

/* About Section */
.container-xxl .text-primary {
    color: var(
        --primary
    ); /* replace yellow with dark for headings/accent text */
    font-weight: 600;
}

.container-xxl h1,
.container-xxl h2,
.container-xxl h3,
.container-xxl h4,
.container-xxl h5,
.container-xxl h6 {
    color: var(--primary);
    font-family: "Marcellus", Sans-serif;
}

.container-xxl p {
    color: var(--primary); /* paragraphs softer than black */
    line-height: 1.7;
}

.container-xxl .fa-check {
    color: var(--primary); /* icon accents */
}

.container-xxl .btn.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
}

.container-xxl .btn.btn-primary:hover {
    background-color: var(--dark);
    color: #ffffff;
}

/* About images border accent */
.img-twice::before {
    border: 1rem solid var(--light); /* maintain subtle border with light beige */
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    color: #fff !important;
}

.why-card {
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.display-font {
    font-family: "Marcellus", Sans-serif;
}
