/********** Template CSS **********/
:root {
    --bs-primary: #ffc107; /* Yellow (Bootstrap-style gold) */
}
/* FORCE PRIMARY COLOR TO YELLOW EVERYWHERE */
.text-primary,
.btn-primary,
.btn-outline-primary,
.border-primary,
.bg-primary,
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
    background-color: transparent;
}

.btn-primary,
.bg-primary {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

.btn-outline-primary:hover {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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 {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/*** Buttons ***/
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

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

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

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

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

.btn-primary {
    color: #ffffff;
}

/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar .navbar-nav .nav-link {
    margin-right: 20px;
    padding: 28px 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

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

/*** Header / Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

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

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

/*** Titles ***/
.title {
    margin-bottom: 2rem;
}

.title-left,
.title-center,
.title-right {
    display: inline-block;
    text-transform: uppercase;
}

.title-center {
    text-align: center;
}

.title-left h5,
.title-center h5,
.title-right h5 {
    font-size: 18px;
    font-weight: 300;
    position: relative;
}

.title-left h1,
.title-center h1,
.title-right h1 {
    border-bottom: 1px solid #ffffff;
}

/*** Services ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    content: "";
    position: absolute;
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, 0.5);
    border-radius: 300px;
}

.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item {
        border-radius: 12px;
        background: var(--bs-dark);
    }
}

/*** Testimonials ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--bs-primary);
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: 0.3;
    transition: 0.5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

/* Footer with Video Background */
.footer {
    position: relative;
    overflow: hidden;
    background: #000;
}

.footer video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 1;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    z-index: 2;
}

.footer .container {
    position: relative;
    z-index: 3;
}

/* Footer text */
.footer h1,
.footer p,
.footer a {
    color: #fff;
}
/* ===================================
   Hero / Carousel Optimization
=================================== */

#header-carousel .carousel-item {
    min-height: 100vh;
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        min-height: 85vh;
    }

    #header-carousel .carousel-item img {
        height: 85vh;
    }

    .carousel-caption {
        padding: 0 1.5rem;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .carousel-caption h5 {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }
}
/* ===================================
   Decorative Line for Hero h5
=================================== */

.carousel-caption h5 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Left & Right lines */
.carousel-caption h5::before,
.carousel-caption h5::after {
    content: "";
    width: 60px;
    height: 1px;
    background-color: #ffffff;
    opacity: 0.8;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .carousel-caption h5::before,
    .carousel-caption h5::after {
        width: 35px;
    }
}@media (max-width: 768px) {
    .footer video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .footer video {
        display: none;
    }

    .footer {
        background: url("../img/footer-fallback.jpg") center/cover no-repeat;
    }
}
/* Testimonial name underline */
.testimonial-line {
    display: block;
    width: 60px;       /* length of the line */
    height: 3px;       /* thickness */
    background-color: #ffc107; /* your yellow */
    margin: 10px auto 0; /* space above + center align */
}
