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

/* :root {
    --primary: #AB7442;
    --light: #F5F5F5;
    --dark: #353535;
} */

:root {
    --primary: #FF0000;  /* Dominant red from the logo */
    --light: #FFFFFF;   /* White from the background */
    --dark: #1D2B75;    /* Dark blue from the "X" in the logo */
}

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

.custom-icon{
    color:var(--dark);
}

.custom-icon2{
    color:var(--primary);
}


/*** 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-secondary {
    color: #FFFFFF;
    background:var(--dark);
    border:none;
}

.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 .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    z-index:1000;
}


.navbar{
    height:4.7rem;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #e5eaed;      
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

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


.owl-carousel {
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow to the whole carousel */
}

.header-carousel {
    background-color: #e5eaed; /* Light gray background for the entire carousel */
}

.owl-carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e5eaed; 
    /* height: 50vh;  */
    height: 70vh;
    position:relative;
}

.owl-carousel-item img {
    /* width: 100%;
    height: 100%;
    object-fit: contain;  */
    object-fit: contain;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    mix-blend-mode: multiply;
}

.carousel-label {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 12px;
    /* border-radius: 5px; */
    font-size: 1rem;
    font-weight: 500;
}


.container-fluid.p-0.pb-5.position-relative {
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 0; /* Remove any bottom margin */
    border-bottom: none; /* Very light gray overlay */
}

/*** logo ***/
.logo-img {
    height: 2.7em; /* Scales based on viewport height */
    width: auto; /* Maintains aspect ratio */
    max-width: 200px; /* Prevents excessive width on large screens */
    /* filter: brightness(0) saturate(100%) invert(48%) sepia(20%) saturate(1094%) hue-rotate(341deg) brightness(91%) contrast(84%); */
    border: none;
    margin:0.5em;
}

@media (min-width:500px){
    .logo-long{
        display:block;
    }
}

@media (max-width: 500px) {
    .owl-carousel-item {
        height: auto; /* Let height adjust dynamically */
        min-height: 40vh; /* Ensure it doesn’t become too small */
    }

    .logo-long{
        display:none;
    }

    .owl-carousel-item img {
        width: auto; /* Prevents forced stretching */
        max-width: 100%; /* Ensures it fits within the container */
        height: auto; /* Maintain aspect ratio */
        max-height: 40vh; /* Restrict excessive height */
    }
}




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

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

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

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@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 ***/
@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 h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: transparent;
    border: none;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    /* background: var(--primary);
    border-color: var(--primary); */
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: none;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid black;
    border-radius:50%;
}

.header-carousel .owl-dot.active {
    /* background: var(--dark); */
    border-color: var(--primary);
    /* background: var(--dark); */
    /* border-radius:50%; */
}

.header-carousel .owl-dot.active::after {
    /* background: var(--dark); */
    /* border-color: var(--primary); */
    background: var(--dark);
    /* border-radius:50%; */
}

.back-to-products:hover{
    background-color:var(--primary);
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/about/excel_4.png) center center no-repeat;
    background-size: cover;
}

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


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
    color:var(--dark);
}

.section-title.text-start h1 {
    padding-left: 0;
}

/* .section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
} */

/* .section-title h1::before {
    left: 0;
} */

/* .section-title h1::after {
    right: 0;
} */

/* .section-title.text-start h1::before {
    display: none;
} */


.logo-marquee {
    overflow: hidden;
    padding: 20px 0;
    background-color: transparent; /* No background */
  }
  
  .logo-track {
    display: flex;
    height: 50px;
    width: fit-content;
    align-items: center;
    animation: scroll 30s linear infinite;
  }
  
  .logo-track img {
    height: 50px;
    margin: 0 100px;
    object-fit: contain;
    max-width: 100%;
  }

  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-80%);
    }
  }
  
  /* Responsive: smaller logos on mobile */
  @media (max-width: 768px) {
    .logo-track img {
      height: 40px;
      margin: 0 20px;
    }
  }
    


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

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


/*** 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-item img {
    transition: .5s;
}

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

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}

/* info display div */
/* .product-container {
    position: fixed;
    right: -100%;
    top: 0;
    width: 40vw;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index:9999;
    
} */
/* .product-container.active {
    right: 0;
} */
.product-title { text-align: center; font-size:1.5em; }
.product-images img { width: 100%; max-width: 10rem; margin: 0.5rem; }
.product-table, .product-table th, .product-table td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 0.5rem;
    text-align: left;
    width: 100%;
}
.product-header {
    display: flex;
    align-items: center;
    gap: 1vw; 
    margin-bottom:0.5em;
}

.video-wrapper {
    width:50vw;
    margin: 20px auto;
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
    padding: 0 16px;
    box-sizing: border-box;
}

.video-wrapper video {
    width: 100%;
    /* max-width: 800px; */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Optional: Reduce max width on very small screens */
@media (max-width: 480px) {
    .video-wrapper video {
        /* max-width: 100%; */
        border-radius: 8px;
    }

}

@media (max-width: 980px){
    .video-wrapper {
        width:70vw;
        margin: 20px auto;
        display: flex;
        /* justify-content: center; */
        /* align-items: center; */
        padding: 0 16px;
        box-sizing: border-box;
    }
}




.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 2rem;
}
.icon {
    cursor: pointer;
    padding: 1rem;
    background: lightgray;
    display: inline-block;
    margin: 0.5rem;
}
/* @media (max-width: 768px) {
    .product-container {
        width: 80vw;
    }
    .product-title{
        font-size:1em;
    }
    .product-logo{
        width:15%;
        max-width:3rem;
    }
} */



/* Make sure the portfolio container aligns items properly */
.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Ensures items stretch to the same height */
}

/* Ensure all portfolio items are of equal height */
.portfolio-item {
    display: flex;
    flex-direction: column;
}

/* Ensure images scale properly while maintaining aspect ratio */
.portfolio-item .position-relative {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevents any image overflow */
}

.portfolio-item img {
    width: 100%;
    height: auto; /* Maintains original aspect ratio */
    max-height: 250px; /* Prevents excessive height variation */
    object-fit: cover;
}

/* Ensure text content expands properly */
.portfolio-item .border {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* Ensure the overlay always covers the entire portfolio item */
.portfolio-item .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensures overlay fully covers the portfolio item */
    background: rgba(53, 53, 53, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
}

/* Show overlay on hover */
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}





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

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

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

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

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

.team-item:hover .team-social {
    left: 0;
}


/*** 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-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

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

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    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);
}


/*** 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 ***/
.footer {
    background: var(--dark);
    /* background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat; */
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

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

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


@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #e5eaed !important;
        padding: 1rem;
        /* optional spacing */
        border-radius: 0 0 8px 8px;
        /* optional rounded corners */
    }
}
