/********** Template CSS **********/
:root {
    --primary: #D71920;      /* Primary Red */
    --secondary: #404040;    /* Dark Gray */
    --light: #E5E5E5;        /* Light Gray */
    --dark: #2E2E2E;         /* Charcoal */
    --primary-hover: #B00012;/* Dark Red */
}

body {
    overflow-x: hidden;
}

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

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

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

h5,
h6,
.h5,
.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: #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;
}


.topbar-right {
    position: relative;
    background: var(--primary);
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: transparent;
}

.navbar .navbar-brand::after {
    display: none;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    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 ***/
#header-carousel .carousel-item {
    position: relative;
    height: 82vh;
    min-height: 450px;
    max-height: 560px;
    background-color: var(--dark);
}

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

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    /* Darker, rich slate-navy gradient overlay on the left for maximum white text readability */
    background: linear-gradient(to right, rgba(15, 25, 40, 0.9) 0%, rgba(15, 25, 40, 0.65) 35%, rgba(15, 25, 40, 0.3) 65%, rgba(15, 25, 40, 0) 90%);
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

#header-carousel .hero-badge {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem !important;
}

#header-carousel .hero-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    margin-bottom: 0.5rem !important;
}

#header-carousel .hero-desc {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem !important;
}

#header-carousel .hero-badge-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

#header-carousel .hero-badge-item h6 {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}

#header-carousel .hero-badge-item small {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

#header-carousel .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#header-carousel .btn-outline-light:hover {
    background-color: #FFFFFF;
    color: var(--dark);
    border-color: #FFFFFF;
}

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

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

/* Responsive typography scaling for hero carousel */
@media (max-width: 1400px) {
    #header-carousel .hero-title {
        font-size: 2.0rem;
    }
}

@media (max-width: 1200px) {
    #header-carousel .carousel-item {
        min-height: 450px;
    }
    #header-carousel .hero-badge {
        font-size: 0.85rem;
    }
    #header-carousel .hero-title {
        font-size: 1.85rem;
        margin-bottom: 0.5rem !important;
    }
    #header-carousel .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem !important;
    }
    #header-carousel .d-inline-flex {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 992px) {
    #header-carousel .carousel-item {
        min-height: 400px;
    }
    #header-carousel .hero-title {
        font-size: 1.65rem;
    }
    #header-carousel .hero-desc {
        max-width: 480px;
    }
}

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

    #header-carousel .hero-badge {
        font-size: 0.8rem;
        margin-bottom: 0.4rem !important;
    }
    #header-carousel .hero-title {
        font-size: 1.45rem;
        margin-bottom: 0.5rem !important;
    }
    #header-carousel .hero-desc {
        font-size: 0.8rem;
        margin-bottom: 0.75rem !important;
    }
    #header-carousel .d-inline-flex {
        margin-bottom: 0.75rem !important;
    }
    #header-carousel .btn {
        padding: 0.45rem 1.15rem !important;
        font-size: 0.85rem;
    }
    #header-carousel .hero-badge-item {
        margin-right: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 300px;
    }
    #header-carousel .hero-title {
        font-size: 1.25rem;
    }
    #header-carousel .hero-desc {
        display: none; /* Hide description on mobile for optimal fit */
    }
    #header-carousel .hero-badge-item {
        display: none !important; /* Hide badges on mobile to prevent layout overflow */
    }
}

.page-header {
    background: linear-gradient(to right, rgba(46, 46, 46, 0.95) 0%, rgba(46, 46, 46, 0.5) 100%), url(../img/banner-2.png) 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);
}


/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}


/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: transparent;
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.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: transparent;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.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: transparent;
    border-radius: 100%;
    transition: all 200ms;
}

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


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

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

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(46, 46, 46, .85);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: transparent;
}


/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--dark);
}

.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}


/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: transparent;
    transition: .5s;
}

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

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

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

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


/*** Footer ***/
.footer {
    color: #CCCCCC;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #CCCCCC;
    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: #CCCCCC;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/*** Premium Aesthetic Overrides & Micro-Animations ***/
a {
    transition: color 0.25s ease;
}

.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px; /* subtle rounding for a more modern premium feel */
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.35);
    transform: translateY(-2px);
}

.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(1px);
}

.back-to-top {
    transition: all 0.3s ease;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(215, 25, 32, 0.4);
}

.service-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 6px;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
}

.service-item .btn {
    border-radius: 30px;
}

/* Category Cards (Product Range) */
.category-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(215, 25, 32, 0.35);
}

.category-card .category-img-wrap {
    height: 220px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

.category-card .category-img-wrap img {
    max-height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-card:hover .category-img-wrap img {
    transform: scale(1.04);
}

.category-card .category-body {
    padding: 22px 24px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

.category-card .category-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary, #D71920);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.category-card .category-link i {
    transition: transform 0.25s ease;
}

.category-card:hover .category-link i {
    transform: translateX(6px);
}

.project-item {
    overflow: hidden;
    border-radius: 6px;
}

.project-item img {
    transition: transform 0.5s ease;
}

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

.team-item {
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
/* Topbar custom black background */
.topbar-bg {
    background-color: #111111 !important;
}

/* Brand Cards Grayscale to Red Hover */
.brand-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
}
.brand-card h5 {
    transition: all 0.3s ease;
}
.brand-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(215, 25, 32, 0.08) !important;
}
.brand-card:hover h5 {
    color: var(--primary) !important;
}

/* Product Catalog Cards Hover Effect */
.product-item {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary) !important;
}

/* Focus and input animation visual cues */
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(215, 25, 32, 0.15) !important;
}

/* Custom focus animation outline for the product pre-fill input */
@keyframes highlight-glow {
    0% { box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(215, 25, 32, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(215, 25, 32, 0); }
}
.border-primary {
    animation: highlight-glow 1.5s ease-out;
}

/* Fix Logo Aspect Ratio in Navbar and Footer */
.navbar .navbar-brand img {
    height: 60px !important;
    width: auto !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        height: 50px !important;
        width: auto !important;
    }
}

.footer img {
    height: 70px !important;
    width: auto !important;
    max-width: 100%;
}

/* Quick Connect Action Buttons */
.connect-btn-whatsapp, .connect-btn-call {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.connect-btn-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35) !important;
}

.connect-btn-call:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(215, 25, 32, 0.35) !important;
}

