/********** Template CSS **********/
:root {
    --primary: #ca0b0b;
    --primary-dark: #a00909;
    --primary-light: #ff4444;
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, #041e42 100%);
}

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

.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: 15px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 20px;
    height: 100%;
    top: 0;
    right: -10px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

.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 ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%);
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
    background-size: 50% 50%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%), url(../img/carousel-2.jpg) 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::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(202, 11, 11, 0.1) 0%, transparent 50%);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

.facts .border {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.facts .border:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.facts .border i {
    transition: all 0.4s ease;
}

.facts .border:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary) !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: var(--primary);
}

@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: var(--primary);
    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: var(--primary);
    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: 20px 0 25px 0;
    padding-top: 45px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
}

/* Ensure parent containers don't clip the circle */
.col-md-6.col-lg-4 {
    overflow: visible !important;
}

.row.gy-5.gx-4 {
    overflow: visible !important;
}

.service-item:hover {
    transform: translateY(-15px);
}

.service-item .service-img {
    position: absolute;
    padding: 8px;
    width: 90px;
    height: 90px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.service-item:hover .service-img {
    transform: translateX(-50%) rotate(360deg) scale(1.1);
}

.service-item .service-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    margin-top: 0;
}

.service-item .service-content > img.img-fluid {
    border-radius: 20px;
    width: 100%;
}

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

.service-item .service-title {
    position: absolute;
    padding: 50px 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;
    border-radius: 20px;
}

.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(2, 36, 91, .7);
    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: var(--primary);
}


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


.project-item {
    display: block;
    width: 100%;
     position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 250px; /* Adjust this value to the desired height */
    object-fit: cover; /* Ensures images maintain aspect ratio without distortion */
  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: var(--primary);
    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: var(--primary);
    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: #B0B9AE;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

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


/*** Modern Enhancements - Glassmorphism, Animations & Responsive Fixes ***/

/* Modern Color Variables */
/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Body Styling */
body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

/* Modern Navbar with Glass Effect */
.navbar.sticky-top {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 70%;
}

/* Modern Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(202, 11, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(202, 11, 11, 0.4);
    background: var(--gradient-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Glassmorphism Facts Section */
.facts {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.facts::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(202, 11, 11, 0.1) 0%, transparent 50%);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

.facts .border {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.facts .border:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.facts .border i {
    transition: all 0.4s ease;
}

.facts .border:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary) !important;
}

/* Modern Service Cards */
.service-item {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-item .service-img {
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-item:hover .service-img {
    transform: translateX(-50%) rotate(360deg) scale(1.1);
}

.service-item .service-text {
    background: linear-gradient(135deg, rgba(2, 36, 91, 0.9) 0%, rgba(202, 11, 11, 0.8) 100%);
    backdrop-filter: blur(5px);
}

/* Modern Testimonial Cards with Glass Effect */
.testimonial-text {
    background: white;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.testimonial-img img {
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.testimonial-item:hover .testimonial-img img {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(202, 11, 11, 0.25);
}

/* Modern About Section */
.flex-shrink-0.bg-primary.p-4 {
    background: var(--gradient-primary) !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.flex-shrink-0.bg-primary.p-4::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.flex-shrink-0.bg-primary.p-4:hover::before {
    transform: scale(2);
}

.flex-shrink-0.bg-primary.p-4:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(202, 11, 11, 0.3);
}

/* Modern Icon Circles */
.btn-lg-square.rounded-circle.bg-primary {
    background: var(--gradient-primary) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(202, 11, 11, 0.3);
}

.btn-lg-square.rounded-circle.bg-primary:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(202, 11, 11, 0.4);
}

/* Carousel Modern Styling */
.carousel-caption {
    background: linear-gradient(to right, rgba(2, 36, 91, 0.95) 0%, rgba(2, 36, 91, 0.5) 50%, transparent 100%);
}

.carousel-caption h1 {
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(202, 11, 11, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed !important;
    right: 30px !important;
    bottom: 30px !important;
    left: auto !important;
    background: var(--gradient-primary);
    box-shadow: 0 5px 20px rgba(202, 11, 11, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    z-index: 99;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(202, 11, 11, 0.5);
}

/* Advanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-on-scroll {
    animation: slideInUp 0.8s ease forwards;
}

/* Image Hover Effects */
.img-fluid {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wow img.img-fluid:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Modern Spinner */
#spinner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#spinner .spinner-border {
    width: 4rem !important;
    height: 4rem !important;
    border-width: 4px;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Improved Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .navbar-brand h1 {
        font-size: 1.2rem;
    }
    
    .navbar .navbar-brand {
        padding-right: 10px;
    }
    
    .navbar .navbar-brand::after {
        width: 15px;
        right: -7px;
    }
}

@media (max-width: 768px) {
    .facts .border {
        padding: 30px 20px !important;
        margin-bottom: 15px;
    }
    
    .facts h1.display-2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-1 {
        font-size: 2.2rem;
    }
    
    .service-item {
        margin: 40px 0 25px 0;
    }
    
    .service-item .service-img {
        width: 100px;
        height: 100px;
        top: -50px;
    }
    
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        display: none;
    }
    
    .flex-shrink-0.bg-primary.p-4 {
        padding: 20px !important;
    }
    
    .flex-shrink-0.bg-primary.p-4 h1.display-2 {
        font-size: 2.5rem;
    }
    
    .topbar-right {
        padding: 10px 15px !important;
    }
    
    .topbar-right span.fs-5 {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .container-xxl {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .carousel-caption h1 {
        font-size: 1.4rem !important;
        line-height: 1.3;
    }
    
    .facts .row {
        margin: 0 -5px;
    }
    
    .facts .col-md-6 {
        padding: 0 5px;
    }
    
    .facts .border {
        padding: 20px 15px !important;
    }
    
    .facts h1.display-2 {
        font-size: 2rem;
    }
    
    .facts span.fs-5 {
        font-size: 0.85rem !important;
    }
    
    .btn-primary.px-3 {
        padding: 8px 15px !important;
        font-size: 0.85rem;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer .d-flex.pt-3 {
        justify-content: center;
    }
    
    h1.display-5 {
        font-size: 1.5rem;
    }
    
    p.fw-medium {
        font-size: 0.85rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn-primary:hover {
        transform: none;
    }
    
    .service-item:hover {
        transform: none;
    }
    
    .facts .border:hover {
        transform: none;
    }
}

/* Text Selection Styling */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Smooth Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading Skeleton Animation for Images */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img[src] {
    animation: none;
    background: transparent;
}

/* Parallax-like Effect for Sections */
.container-xxl {
    position: relative;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Page Header Glass Effect */
.page-header {
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 36, 91, 0.9) 0%, rgba(202, 11, 11, 0.3) 100%);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* Project Items Modern Style */
.project-item {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-item .project-title {
    background: linear-gradient(135deg, var(--dark) 0%, rgba(2, 36, 91, 0.9) 100%);
    backdrop-filter: blur(10px);
}

/* Floating Animation for Cards */
.wow.fadeInUp,
.wow.fadeIn {
    transition: transform 0.3s ease;
}

.wow.fadeInUp:hover,
.wow.fadeIn:hover {
    transform: translateY(-5px);
}

/* Fix for extra white space at bottom */
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

.footer {
    margin-bottom: 0 !important;
}

.copyright {
    margin-bottom: 0 !important;
    padding-bottom: 20px;
}

/* Ensure back-to-top stays on right */
.back-to-top {
    left: auto !important;
    right: 30px !important;
}

/*** Product Showcase ***/
.product-showcase-card {
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
}

.product-showcase-card img {
    transition: transform 0.5s ease;
}

.product-showcase-card:hover img {
    transform: scale(1.1);
}

.product-showcase-overlay {
    transition: all 0.3s ease;
}

.product-showcase-card:hover .product-showcase-overlay {
    background: linear-gradient(transparent 30%, rgba(202, 11, 11, 0.85)) !important;
}

/* Product card badge */
.product-showcase-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Product grid for products page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.product-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.product-card-modern img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover img {
    transform: scale(1.1);
}

/* Color swatches */
.color-swatch-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
    margin: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.color-swatch-mini:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.color-swatch-mini img {
    transition: transform 0.3s ease;
}

.color-swatch-mini:hover img {
    transform: scale(1.05);
}

/* Homepage swatch hover effects */
.swatch-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.swatch-hover:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
}

.swatch-hover img {
    transition: transform 0.3s ease;
}

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

.color-swatch-link:hover small {
    color: var(--primary) !important;
}

/* Inspiration section */
.inspiration-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.inspiration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.inspiration-card:hover img {
    transform: scale(1.1);
}

.inspiration-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.inspiration-card:hover .inspiration-card-overlay {
    background: linear-gradient(transparent 30%, rgba(202, 11, 11, 0.8));
}

.inspiration-card-overlay h5,
.inspiration-card-overlay p {
    color: white;
    margin: 0;
}

/* Product category cards on homepage */
.product-category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.product-category-card:hover img {
    transform: scale(1.1);
}

.product-category-card .btn {
    transition: all 0.3s ease;
}

.product-category-card:hover .btn {
    background: var(--primary);
    border-color: var(--primary);
}

/* Featured Product Section */
.featured-product h3 {
    color: white !important;
}

/* Logo Brand Text */
.navbar-brand h1 {
    font-size: 1.825rem !important; /* Original 1.2rem + ~10px */
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .navbar-brand h1 {
        font-size: 1.825rem !important; /* Same size for mobile as requested */
    }
}