/********** Template CSS **********/

/* Color Variables */
:root {
    --primary-color: #36190a;
    --primary-dark: #2a1208;
    --secondary-color: #aeb0ae;
}

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

/* Logo image */
.navbar-brand img.img-fluid {
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* Smooth scrolling (CSS fallback) */
html {
    scroll-behavior: smooth;
}

/* Navbar link hover animation */
.navbar .nav-link {
    transition: color .25s ease, transform .18s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .navbar-brand img.img-fluid {
        max-width: 150px;
        max-height: 50px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img.img-fluid {
        max-width: 158px;
        max-height: 83px;
    }
    .title .title-center h1 {
        font-size: 20px;
        margin-top: -1px;
        margin-bottom: 2px;
    }
    .fs-5 {
        
        font-size: 12px !important;
        margin-top: -3px;
    }
    .carousel-control-prev, .carousel-control-next
 
     {
        width: 6% !important;
    }
    .navbar{
        background-color: rgba(0, 0, 0, 0.17);
 
    }
    .team-item .team-name {
        position: absolute;
        width: 100%;
        height: 42px !important;
        left: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, .7);
    }
    .bg-secondary {
        background-color: var(--primary-dark) !important;
        text-align: center;
    }
    .col-6 {
    flex: 0 0 auto;
    width: 98%;
}
}

/* General image improvements */
img {
    max-width: 100%;
    height: auto;
    display: block;
    
}

/* Carousel images */
#header-carousel {
    overflow: hidden;
}

#header-carousel .carousel-item {
    position: relative;
    min-height: 87vh;
    overflow: hidden;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 80vh;
    min-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 991.98px) {
    #header-carousel .carousel-item {
        min-height: 60vh;
    }
    
    #header-carousel .carousel-item img {
        height: 60vh;
        min-height: 60vh;
    }
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        min-height: 50vh;
    }
    
    #header-carousel .carousel-item img {
        height: 50vh;
        min-height: 50vh;
    }
}

@media (max-width: 575.98px) {
    #header-carousel .carousel-item {
        min-height: 40vh;
    }
    
    #header-carousel .carousel-item img {
        height: 40vh;
        min-height: 40vh;
    }
}

/* About section image */
.col-lg-5 img.img-fluid {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991.98px) {
    .col-lg-5 img.img-fluid {
        max-height: 500px;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .col-lg-5 img.img-fluid {
        max-height: 400px;
    }
}

@media (max-width: 575.98px) {
    .col-lg-5 img.img-fluid {
        max-height: 300px;
    }
}

/* Service images - consolidated styles */

/* Team/Project images */
.team-item {
    overflow: hidden;
}

.team-item .team-body {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.team-item .team-body img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.team-item:hover .team-body img {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .team-item .team-body img {
        height: 280px;
    }
}

@media (max-width: 767.98px) {
    .team-item .team-body img {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .team-item .team-body img {
        height: 220px;
    }
}
/*** 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: 600;
    transition: .5s;
    border-radius: 50px;
}

.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: inherit;
}

.btn-primary {
    color: var(--bs-white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bs-white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    transition: .5s;
    background-color: #000000c0;
    height: 85px;

}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
    z-index: 99;
    background-color: turquoise;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #aeb0ae;
}

/* Override Bootstrap primary color */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Ensure all buttons with primary classes use the new color */
button.btn-primary,
a.btn-primary,
input.btn-primary {
    background-color: #3b1c0d;
    border-color: #3b1c0d;
    color: var(--bs-white);
}

button.btn-primary:hover,
a.btn-primary:hover,
input.btn-primary:hover,
button.btn-primary:focus,
a.btn-primary:focus,
input.btn-primary:focus {
    background-color: #2d1509;
    border-color: #2d1509;
    color: var(--bs-white);
}

button.btn-outline-primary,
a.btn-outline-primary,
input.btn-outline-primary {
    color: #ffffff;
    border-color: #aeb0ae;
    background-color: transparent;
}

button.btn-outline-primary:hover,
a.btn-outline-primary:hover,
input.btn-outline-primary:hover,
button.btn-outline-primary:focus,
a.btn-outline-primary:focus,
input.btn-outline-primary:focus {
    background-color: #3b1c0d;
    border-color: #3b1c0d;
    color: var(--bs-white);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
         padding: 10px 16px;
         margin-top: 8px;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

        .navbar .navbar-nav .nav-link {
            margin-right: 25px;
            padding: 10px 16px;
            color: var(--bs-white);
            font-size: 17px;
            text-transform: uppercase;
            border: 1px solid white;
            outline: none;
            transition: color .25s ease, background .2s ease, transform .18s ease;
            background:#38190b;
            border-radius: 10px;
            display: inline-block;
        }

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
          padding: 10px 16px;
    }

        .navbar .navbar-nav .nav-link:hover,
        .navbar .navbar-nav .nav-link.active {
            color: #38190b!important;
            background: rgb(255, 255, 255);
            /* transform: translateY(-3px); */
            border: 1px solid #38190b;
        }
    .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;
    }
}

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


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 45px;
    padding-top: 100px;
    background: rgba(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;
}

/* Carousel responsive styles are handled above */

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

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


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

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

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

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

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

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


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

.service-item .service-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

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

.service-item .service-img img {
    position: relative;
    width: 74%;
    height: 284px;
    max-width: 366px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
    z-index: 2;
}

.service-item .service-img:hover img {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .service-item .service-img img {
        height: 320px;
        max-width: 320px;
        width: 70%;
    }
}

@media (max-width: 767.98px) {
    .service-item .service-img img {
        height: 250px;
        max-width: 250px;
        width: 65%;
    }
}

@media (max-width: 575.98px) {
    .service-item .service-img img {
        height: 170px;
        max-width: 200px;
        width: 61%;
    }
    .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}
}

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

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

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


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

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.team-item .team-body {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}


/*** Testimonial ***/
.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: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

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


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
    background: linear-gradient(to bottom, #36190a59, var(--bs-dark));
	/* background-image: url(../img/f.jpeg);
	background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: cover;
	animation: footerAnimatedBg 50s linear infinite; */
}

/* Footer logo image */
.footer img {

    max-width: 268px;
    width: 259px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 72px !important;
    margin-left: 419px;
  
}

@media (max-width: 767.98px) {
    .footer img {
        max-width: 150px;
        max-height: 60px;
    }
}

@media (max-width: 575.98px) {
    .footer img {
        max-width: 195px;
        max-height: 69px;
        margin-left: 88px;
    }
    }
