/*** Spinner Start ***/
/*** 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;
}
/*** Spinner End ***/

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

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

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

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

.btn-md-square {
    width: 44px;
    height: 44px;
}

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

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    transition: 0.5s;
}

.btn.btn.btn-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    background: transparent;
    color: var(--bs-secondary);
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    border: none;
    transition: 0.5s;
}

.btn.btn-secondary:hover {
    color: var(--bs-primary) !important;
}

.btn.btn-primary.border-secondary {
    border: 2px solid var(--bs-secondary) !important;
}

/*** Section Title Start ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.section-title .sub-style::before {
    content: "";
    width: 53px;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: -6px;
    margin-left: -52px;
    border: 1px solid var(--bs-secondary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: -8px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before {
    content: "";
    width: 53px;
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: -8px;
    margin-right: -52px;
    border: 1px solid var(--bs-secondary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: -6px;
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}


/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}


@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Raleway', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-primary) !important;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-brand img {
    max-height: 45px;
}

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

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary) !important;
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 991.98px) {
    .sticky-top .navbar-light {
        background: var(--bs-light) !important;
    }

    /*** Top and Bottom borders go out ***/
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        top: 30px;
        bottom: 30px;
        left: 0px;
        width: 100%;
        height: 2px;
        background: var(--bs-primary);
        opacity: 0;
        transition: all 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:before {
        bottom: auto;
    }

    .navbar-light .navbar-nav .nav-link:after {
        top: auto;
    }

    .navbar-light .navbar-nav .nav-link:hover:before,
    .navbar-light .navbar-nav .nav-link.active:before {
        top: 20px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        bottom: 20px;
        opacity: 1;
    }
}

#searchModal .modal-content {
    background: rgba(240, 245, 251, 0.5);
}
/*** Navbar End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(0, 58, 102, 0.8)), url(../img/breadcrumb1.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: initial;
    background-size: cover;
    padding: 100px 0 60px 0;
}
/*** Single Page Hero Header End ***/


/*** Carousel Hero Header Start ***/
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    margin-left: -60px;
    border-radius: 50%;
    background-size: 60% 60%;
    transition: 0.5s;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-left: 0;
    margin-right: -60px;
}

.carousel-header .carousel .carousel-indicators {
    padding-bottom: 0;
    transition: 0.5s;
}


.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-primary);
    border-radius: 50%;
    margin-right: 30px;
    transition: 0.5s;
}

.carousel-header .carousel .carousel-indicators li.active {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-secondary);
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 100vh 
}

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

.carousel-header .carousel-inner .carousel-item .carousel-caption  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0.6));
    background-size: cover;
}


@media (max-width: 768px) {
    .carousel-header {
        height: 700px !important;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-top: 500px;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon {
        margin-left: 0px;
    }

    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-right: 0px;
    }

    .carousel-header .carousel .carousel-indicators {
        padding: 0;
    }
}
/*** Carousel Hero Header End ***/


/*** Counter Facts Start ***/
.counter-facts {
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0.8)), url(../img/breadcrumb1.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
    background: var(--bs-white);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background-color: var(--bs-primary);
    
}
.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--bs-secondary);
    background: rgba(1, 143, 252, 0.5);
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter .counter-icon:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 90px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: rgba(0, 58, 102, 0.5);
    z-index: -1;
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter:hover .counter-icon i {
    transform: rotate(360deg);
    transition: all 0.3s ease;
}
.counter-facts .counter h3 {
    color: var(--bs-primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.counter-facts .counter .counter-value {
    font-size: 30px;
    font-weight: 700;
    display: block;
    color: var(--bs-secondary);
}

@media screen and (max-width: 1200px) {
    .counter-facts .counter { margin-bottom: 40px; 
    }
}
/*** Counter Facts End ***/


/*** service Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
}

.service .service-item .service-inner .service-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 58, 102, 0.9), transparent);
    margin-top: 0;
}

.service .service-item .service-inner .service-title .service-title-name h4 {
    color: #fff;
    margin: 0;
}

.service .service-item .service-inner .service-title .service-content {
    position: absolute;
    right: 20px;
    bottom: 25px;
    opacity: 0;
    transition: all 0.3s ease;
}

.service .service-item:hover .service-inner .service-title .service-content {
    opacity: 1;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
    opacity: 1; /* Keep title visible on hover */
}

.service .service-item .service-inner .service-title .service-title-name {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
    opacity: 0;
}

.service .service-item .service-inner .service-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.service .service-item .service-inner .service-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    transition: 0.5s;
    opacity: 0;
}

.service .service-item:hover .service-inner .service-img::after {
    height: 100%;
    opacity: 1;
}

.service .service-item .service-inner .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-img img {
    transform: scale(1.3);
}
/*** Service End ***/


/*** Features Start ***/
.features .feature-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.features .feature-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 58, 102, 0.1);
    z-index: -1;
    transition: 0.5s;
}

.features .feature-item:hover::after {
    height: 100%;
}

.features .feature-item .feature-icon {
    width: 120px; 
    height: 120px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-light);
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon {
    border-radius: 50%;
    background: var(--bs-white) !important;
}

.features .feature-item .feature-icon i {
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon i {
    color: var(--bs-secondary) !important;
    transform: rotate(360deg);
    transition: all 0.5s ease;
}
/*** Features End ***/


/*** Country Start ***/
.country .country-item {
    position: relative;
}

.country .country-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 58, 102, 0.7);
    border-radius: 10px;
    transition: 0.5s;
    z-index: 1;
}

.country .country-item:hover::after {
    height: 100%;
}

.country .country-item .country-flag {
    position: absolute;
    width: 90px; 
    height: 90px; 
    border-radius: 50%;
    top: -45px; 
    left: 50%; 
    transform: translateX(-50%);
    transition: 0.5s;
    z-index: 2;
}

.country .country-item .country-flag img {
    border: 5px solid var(--bs-white);
    transition: 0.5s;
}

.country .country-item:hover .country-flag img {
    border: 5px solid var(--bs-white);
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

.country .country-item .country-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.country .country-item:hover .country-name {
    opacity: 1;
}

.country .country-item img {
    transition: 0.5s;
}

.country .country-item:hover img {
    transform: scale(1.2);
}

.country .country-item .country-name a.fs-4 {
    transition: 0.5s;
}

.country .country-item .country-name a.fs-4:hover {
    color: var(--bs-secondary) !important;
}
/*** Country End ***/


/*** testimonial Start ***/
.testimonial .owl-carousel.testimonial-carousel {
    position: relative;
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content {
    position: relative;
    border-radius: 10px;
    background: var(--bs-light);
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 45px;
    bottom: -20px;
    left: 30px;
    transform: rotate(45deg);
    background: var(--bs-light);
    z-index: -1;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: var(--bs-primary);
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-secondary);
}
/*** testimonial end ***/


/*** training Start ***/
.training .training-item .training-inner {
    position: relative;
}

.training .training-item .training-inner .training-title-name {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: flex; 
    flex-direction: column;
    justify-content: end;
    text-align: center;
    transition: 0.5s;
}

.training .training-item {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.training .training-item:hover .training-inner .training-title-name {
    background: rgba(0, 58, 102, 0.5);
}

.training .training-item:hover .training-inner .training-title-name a {
    opacity: 0;
}

.training .training-item .training-inner img {
    transition: 0.5s;
}

.training .training-item:hover .training-inner img {
    transform: scale(1.3);
}

.training .training-item .training-content {
    position: absolute;
    width: 100%;
    bottom: -100%;
    left: 0;
    transition: 0.5s;
}

.training .training-item:hover .training-content {
    bottom: 0;
}  
/*** training End ***/


/*** Contact Start ***/
.contact .office .office-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
    background: var(--bs-light);
    transition: 0.5s;
}

.contact .office .office-item:hover {
    box-shadow: 20px 20px 20px rgba(0, 58, 102, 0.3);
}

.contact .office .office-item .office-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact .office .office-item .office-img img {
    transition: 0.5s;
}

.contact .office .office-item:hover .office-img img {
    transform: scale(1.3);
}

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
    transition: 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
    color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
    color: var(--bs-primary) !important;
}

/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-primary);
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-secondary) !important;
}
/*** copyright end ***/

/* Mega Menu Styles */
.mega-menu {
    position: static; 
}

.mega-menu .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    left: 0;
    right: 0;
    width: 100%; 
    padding: 0;
    margin-top: 0;
    background-color: #fff; 
    z-index: 1000;
}

/* Desktop-only styles for hover animation */
@media (min-width: 992px) {
    .mega-menu .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .mega-menu:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.mega-menu .dropdown-menu .container {
    padding: 0;
}

.mega-menu .dropdown-menu .row {
    margin: 0;
}

.mega-menu .dropdown-menu .col-lg-3 {
    padding: 25px; 
    border-right: 1px solid #f0f0f0;
}

.mega-menu .dropdown-menu .col-lg-3:last-child {
    border-right: none;
}

.mega-menu .dropdown-menu h5 {
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--bs-primary);
}

.mega-menu .dropdown-item {
    padding: 10px 0; 
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent !important;
}

.mega-menu .dropdown-item:hover {
    color: var(--bs-primary);
    padding-left: 8px; 
}

/* Responsive Mega Menu for Mobile */
@media (max-width: 991.98px) {
    .mega-menu .dropdown-menu {
        box-shadow: none;
        background-color: transparent !important;
    }
    .mega-menu .dropdown-menu .row {
        display: block;
    }
    .mega-menu .dropdown-menu .col-lg-3 {
        border-right: none;
        padding: 0 15px; 
    }
    .mega-menu .dropdown-menu h5 {
        font-size: 1rem;
        margin-top: 15px;
        padding-bottom: 5px;
        border-bottom: 1px solid #ddd;
    }
    .mega-menu .dropdown-item {
        padding: 8px 15px;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background: var(--bs-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

/* === Modern Product Section Styles === */
/* ===== Modern Product Cards ===== */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    z-index: 1;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,58,102,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 58, 102, 0.15);
}
.product-card:hover::before {
    opacity: 1;
}
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, #ff4d4d, #f94444);
    box-shadow: 0 4px 15px rgba(249, 68, 68, 0.3);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}
.product-img img {
    max-height: 160px;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}
.product-card:hover .product-img img {
    transform: scale(1.1) rotate(2deg);
}
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 58, 102, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card:hover .product-overlay {
    opacity: 1;
}
.product-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}
.product-card:hover .product-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}
.product-content {
    padding: 20px;
    position: relative;
    background: #fff;
}
.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.product-card:hover .product-content::before {
    transform: scaleX(1);
}
.product-overlay .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.product-overlay .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-outline-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-secondary));
    transition: width 0.3s ease;
    z-index: -1;
}
.btn-outline-primary:hover::before {
    width: 100%;
}
.btn-outline-primary:hover {
    color: white !important;
    border-color: transparent;
}
.btn-view-all {
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 58, 102, 0.3);
}
.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-secondary));
    z-index: -1;
    opacity: 1;
}
.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 58, 102, 0.4);
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.btn-view-all {
    animation: pulse 2s infinite;
}
.btn-view-all:hover {
    animation: none;
}

/* === Font Family and Typography for All Pages === */
body, p, .product-content, .spec-item, .modal-body, .modal-content, .footer, .navbar, .dropdown-menu, .section-title, .sub-title, .btn, .form-control, .input-group-text {
    font-family: 'Open Sans', Arial, sans-serif !important;
    font-size: 1rem;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn, .product-title, .product-badge, .btn-view-all, .section-title h1, .section-title h5, .sub-title, .display-5, .display-1, .display-3, .display-4 {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.btn, .btn-primary, .btn-outline-primary, .btn-secondary {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 600;
}
.product-content, .spec-item, .modal-body, .modal-content, .footer, .form-control, .input-group-text {
    font-size: 1rem;
    font-family: 'Open Sans', Arial, sans-serif !important;
}
.product-title, .product-badge, .btn-view-all {
    font-family: 'Poppins', Arial, sans-serif !important;
}
@media (max-width: 575.98px) {
    body, p, .product-content, .spec-item, .modal-body, .modal-content, .footer, .navbar, .dropdown-menu, .section-title, .sub-title, .btn, .form-control, .input-group-text {
        font-size: 0.97rem;
    }
    h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn, .product-title, .product-badge, .btn-view-all, .section-title h1, .section-title h5, .sub-title, .display-5, .display-1, .display-3, .display-4 {
        font-size: 1.1em;
    }
}

/* === Animated Icon UI for Product Cards and Modals === */
.product-overlay .btn .fa-eye {
    transition: transform 0.3s cubic-bezier(0.4,1,0.4,1), color 0.3s;
}
.product-overlay .btn:hover .fa-eye {
    transform: scale(1.2) rotate(-10deg);
    color: var(--bs-secondary);
}
.spec-item i {
    transition: transform 0.3s, color 0.3s;
}
.spec-item:hover i {
    transform: scale(1.2) rotate(-8deg);
    color: var(--bs-secondary);
}

/* Responsive CSS for filter controls */
@media (max-width: 767.98px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls .btn-group-vertical {
        width: 100%;
        margin-bottom: 1rem;
    }

    .filter-controls .dropdown {
        width: 100%;
    }

    .filter-controls .dropdown .btn {
        width: 100%;
    }
}

/* === WhatsApp Button === */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-whatsapp:hover {
    background-color: #20b859;
    color: white;
    transform: scale(1.05);
}

/********** Testimonial CSS **********/
.testimonial .testimonial-item {
    padding: 0 30px 30px 30px;
}

/*** Service Page Enhancements ***/
.service-cards-container {
    perspective: 1000px;
}

.service-item {
    transition: all 0.4s ease;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #FFFFFF; /* Ensure a base background color */
}

.service-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    animation: pulse 1.5s infinite; /* Applied animation to all cards on hover */
}

.service-item i {
    transition: transform 0.4s ease, color 0.4s;
}

.service-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #ffc107 !important; /* Use important to override any conflicting theme color */
}

.service-item p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.service-item .btn-outline-primary {
    transition: all 0.3s ease;
}

.service-item .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Custom Dropdown Styling */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
    animation: fadeInDown 0.3s;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: var(--bs-primary);
}

.dropdown-item:hover {
    background-color: var(--bs-primary);
    color: white;
}

.dropdown-item:hover i {
    color: white;
}

/* Responsive improvements for products page */
@media (max-width: 991.98px) {
    .row.g-4 > [class^='col-'],
    .row.g-4 > [class*=' col-'] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .product-img {
        height: 160px;
        padding: 10px;
    }
    .product-content {
        padding: 15px 10px;
    }
    .product-card {
        margin-bottom: 1.5rem;
    }
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .filter-controls .btn-group,
    .filter-controls .dropdown {
        width: 100%;
    }
    .filter-controls .btn-group .btn,
    .filter-controls .dropdown .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-img {
        height: 120px;
        padding: 5px;
    }
    .product-content {
        padding: 10px 5px;
    }
    .modal-dialog {
        max-width: 98vw;
        margin: 0.5rem auto;
    }
    .modal-content {
        padding: 0.5rem;
    }
}

/* Prevent horizontal scrolling on all pages */
html, body {
    overflow-x: hidden !important;
}