
/*** Global Overflow Fix ***/
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/*** Consistent Section Spacing ***/
.container-fluid.about,
.container-fluid.service,
.container-fluid.project,
.container-fluid.team,
.container-fluid.testimonial {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Section Header Styling */
.section-header {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(6, 163, 218, 0.1), rgba(52, 173, 84, 0.1));
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-badge h5 {
    color: var(--bs-primary);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(135deg, #06a3da, #34ad54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 500;
}

/*** 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;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid var(--bs-white);
    cursor: pointer;
}

.back-to-top:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/*** 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-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn-primary:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}

.btn.btn-dark {
    background: var(--bs-dark) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn-dark:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}

.btn.btn-light {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn-light:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}
/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-dark) !important;
}

@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/

/*** Navbar ***/
.sticky-top,
.sticky-top .container {
    transition: 0.5s !important;
}

.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark) !important;
    position: relative;
    transition: all 0.3s ease;

}

.navbar .navbar-nav .nav-item {
    position: relative;
    margin: 0 5px !important;
}

/* Desktop-only styles */
@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-item {
        margin: 0 5px !important;
    }
}

/* Mobile: Remove desktop margins */
@media (max-width: 1199px) {
    .navbar .navbar-nav .nav-item {
        margin: 0 !important;
    }
}

/* Hover effect for nav items - DESKTOP ONLY */
@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-link:hover {
        color: var(--bs-primary) !important;
        transform: translateY(-2px);
    }

    /* Underline animation on hover - DESKTOP ONLY */
    .navbar .navbar-nav .nav-link::before {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--bs-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar .navbar-nav .nav-link:hover::before {
        width: 80%;
    }
}

/* Active state styling */
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    display: none; /* Remove the border lines */
}

.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate dropdown arrow on hover */
.navbar .dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Level 1 Dropdown Menu */
@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
        visibility: hidden;
        top: 100%;
        transform: translateY(-10px);
        border: 0;
        border-radius: 10px;
        margin-top: 0 !important;
        opacity: 0;
        z-index: 999;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-item:hover > .dropdown-menu {
        display: block;
        visibility: visible;
        transform: translateY(0);
        opacity: 1;
    }

    /* Level 2 Submenu (nested dropdown) - CRITICAL FIX */
    .dropdown-submenu {
        position: relative !important;
    }

    /* Force submenu to align at top of parent */
    .navbar .dropdown-menu .dropdown-submenu > .dropdown-menu {
        top: 0 !important; /* Align with the TOP of parent item */
        left: 100% !important; /* Position to the right */
        margin: 0 !important;
        margin-left: -2px !important; /* Slight overlap to prevent gap */
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-10px) !important;
        transition: all 0.3s ease !important;
        border-radius: 10px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        position: absolute !important;
        z-index: 1000 !important;
    }
    
    /* Override for rightmost nav items - open submenus to the left */
    .navbar .navbar-nav > .nav-item:nth-last-child(-n+4) .dropdown-menu .dropdown-submenu > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
        margin-left: 0 !important;
        margin-right: -2px !important;
        transform: translateX(10px) !important;
    }

    .navbar .dropdown-menu .dropdown-submenu:hover > .dropdown-menu,
    .navbar .dropdown-menu .dropdown-submenu.show > .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    /* Create invisible bridge between parent and child to prevent gap */
    .dropdown-submenu::before {
        content: "";
        position: absolute;
        top: 0;
        right: -2px;
        width: 4px;
        height: 100%;
        background: transparent;
        z-index: 1000;
    }

    /* Ensure submenu item positioning */
    .dropdown-submenu > a {
        position: relative;
    }

    /* Arrow indicator for submenu */
    .dropdown-submenu > a::after {
        display: inline-block;
        margin-left: auto;
        vertical-align: middle;
        content: "\f105";
        font-family: "Font Awesome 5 Free";
        font-weight: 600;
        float: right;
        transition: transform 0.3s ease;
    }

    .dropdown-submenu:hover > a::after {
        transform: translateX(3px);
    }

    /* Dropdown item hover effect */
    .dropdown-menu .dropdown-item {
        transition: all 0.3s ease;
        padding: 12px 20px;
        position: relative;
        white-space: nowrap;
    }

    .dropdown-menu .dropdown-item:hover {
        background: var(--bs-primary) !important;
        color: var(--bs-white) !important;
        padding-left: 25px;
    }

    /* Increase clickable area for dropdown items */
    .dropdown-menu {
        padding: 8px 0;
        min-width: 220px;
    }

    /* Remove extra padding that creates gaps */
    .navbar .nav-item .dropdown-menu {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .dropdown-submenu > .dropdown-menu {
        padding: 8px 0;
    }

    /* Ensure dropdown items in submenu have full width hover area */
    .dropdown-submenu .dropdown-item {
        display: block;
        width: 100%;
    }
}

@media (max-width: 1199px) {
    /* CRITICAL: Override Bootstrap's default nav spacing */
    .navbar-nav .nav-item,
    .navbar-nav .nav-link,
    .navbar-nav .dropdown {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0 !important;
        transition: 0.5s;
        border-radius: 10px;
    }

    /* Mobile submenu styling */
    .dropdown-submenu > .dropdown-menu {
        position: static;
        display: none;
        padding-left: 1.5rem;
        border: none;
        background: rgba(0, 0, 0, 0.03);
        margin-top: 0 !important;
        border-radius: 5px;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > a::after {
        display: inline-block;
        margin-left: auto;
        content: "\f107";
        font-family: "Font Awesome 5 Free";
        font-weight: 600;
        float: right;
        transition: transform 0.3s ease;
    }

    .dropdown-submenu.show > a::after {
        transform: rotate(180deg);
    }

    /* Make mobile menu scrollable */
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Ensure navbar nav takes full width on mobile */
    .navbar-nav {
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Add padding to prevent content from being cut off */
    .navbar-collapse.show {
        padding-bottom: 20px !important;
        padding-top: 0 !important;
    }

    /* CRITICAL: Reset all nav items to have consistent spacing */
    .navbar-nav > * {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Style for direct link items (Home, Projects, Career, Contact Us) */
    .navbar-nav > a.nav-item.nav-link {
        padding: 14px 20px !important;
        margin: 0 !important;
        display: block !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        line-height: 1.5 !important;
    }

    /* Style for dropdown containers */
    .navbar-nav > .nav-item.dropdown {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Style for dropdown toggle links */
    .navbar-nav > .nav-item.dropdown > .nav-link {
        padding: 14px 20px !important;
        margin: 0 !important;
        display: block !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        line-height: 1.5 !important;
    }

    /* Remove hover animations on mobile */
    .navbar .navbar-nav .nav-link:hover {
        transform: none !important;
        background: rgba(6, 163, 218, 0.1);
    }

    .navbar .navbar-nav .nav-link::before {
        display: none !important;
    }

    /* Dropdown toggle styling on mobile */
    .navbar .dropdown-toggle::after {
        margin-left: auto;
        float: right;
    }

    /* Better spacing for dropdown items */
    .dropdown-menu .dropdown-item {
        padding: 12px 20px !important;
        margin: 0 !important;
    }

    /* Override py-0 class */
    .navbar-nav.py-0 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Ensure all children have consistent display */
    .navbar-nav > .nav-item,
    .navbar-nav > .nav-link {
        display: block !important;
        width: 100% !important;
    }

    /* Remove any flex spacing */
    .navbar-nav {
        display: block !important;
    }

    /* Override any Bootstrap margin utilities */
    .navbar-nav .ms-auto {
        margin-left: 0 !important;
    }
}

@media (max-width: 991px) {
    .navbar .navbar-nav .nav-item.nav-link {
        margin: 0 !important;
/*        padding: 0 !important;*/
    }

    .navbar .navbar-nav .nav-item {
        margin: 0 !important;
    }

    .navbar .navbar-nav .nav-link {
        margin: 0 !important;
    }
}

.dropdown .dropdown-menu a.active {
    background: var(--bs-primary) !important;
    color: var(--bs-white);
}

.navbar .nav-item .dropdown-menu.show {
    display: block;
    visibility: visible;
    background: var(--bs-light) !important;
    margin-top: 0 !important;
    transition: 0.5s;
}

.navbar .navbar-toggler {
    padding: 8px 15px;
    color: var(--bs-dark);
    background: var(--bs-primary);
}

#searchModal .modal-content {
    background: rgba(250, 250, 250, .6);
}
/*** Navbar End ***/

/*** Carousel Header Start ***/
.header-carousel .header-carousel-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.owl-prev,
.owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px 20px;
    border-radius: 40px;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.owl-prev {
    left: 30px;
}

.owl-next {
    right: 30px;
}

.owl-prev:hover,
.owl-next:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-white) !important;
}

.owl-carousel .owl-dots {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 10;
    position: relative;
}

.owl-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-light) !important;
    border: 1px solid var(--bs-primary) !important;
    border-radius: 10px;
    transition: 0.5s;
    cursor: pointer;
    padding: 0;
}

.owl-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary) !important;
}

.header-carousel .header-carousel-item-img-1,
.header-carousel .header-carousel-item-img-2,
.header-carousel .header-carousel-item-img-3 {
    position: relative;
    overflow: hidden;
}

.header-carousel .header-carousel-item-img-1::before,
.header-carousel .header-carousel-item-img-2::before,
.header-carousel .header-carousel-item-img-3::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
    border-radius: 300px;
    border: 100px solid rgba(68, 210, 246, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}

@keyframes RotateMoveCircle {
    0% {top: -400px;}
    50%   {right: -200px;}
    75%   {top: -200px;}
    100%  {top: -400px;}
}

.header-carousel .header-carousel-item-img-1::after,
.header-carousel .header-carousel-item-img-2::after,
.header-carousel .header-carousel-item-img-3::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 70px;
    transform: rotate(-30deg);
    background: rgba(68, 210, 246, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}

@keyframes RotateMoveRight {
    0%   {left: 0px;}
    50%   {left: 70px;}
    100%  {left: 0px;}
}

.header-carousel .header-carousel-item::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 1200px;
    top: -150px;
    left: -265px;
    transform: rotate(-30deg);
   /* background: var(--bs-dark);*/
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}

@keyframes RotateMoveLeft {
    0%   {left: -240px;}
    50%   {left: -300px;}
    100%  {left: -240px;}
}

.header-carousel .header-carousel-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2 !important;
}

.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 80%;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 9;
}

@media (max-width: 992px) {
    .header-carousel .header-carousel-item .carousel-caption {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 15px;
        position: relative;
        background: rgba(0,0,0,0.3);
        height: auto;
        min-height: 300px;
    }
    .header-carousel-item img {
        height: auto !important;
        min-height: 250px;
        max-height: 500px;
        object-fit: contain !important;
        background: #000;
    }

    .owl-prev,
    .owl-next {
        top: 50% !important;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }

    .owl-prev {
        left: 10px !important;
    }

    .owl-next {
        right: 10px !important;
    }
}
/*** Header Carousel End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
}

.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
}

.bg-breadcrumb .bg-breadcrumb-single {
    position: absolute;
    width: 500px;
    height: 1200px;
    top: 0px;
    left: 0;
    margin-left: 30px;
    transform: rotate(-30deg);
    background: var(--bs-dark);
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}


.bg-breadcrumb::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    border-radius: 200px;
    border: 80px solid rgba(68, 210, 246, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}

@keyframes RotateMoveCircle {
    0% {top: -200px;}
    50%   {right: -100px;}
    75%   {top: -100px;}
    100%  {top: -200px;}
}


.bg-breadcrumb::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 0;
    margin-left: 160px;
    transform: rotate(-30deg);
    background: rgba(68, 210, 246, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}
/*** Single Page Hero Header End ***/

/*** Image Overflow Prevention ***/
.container-fluid img,
.container img {
    max-width: 100%;
    height: auto;
}

.row img {
    max-width: 100%;
    height: auto;
}
/*** Image Overflow Prevention End ***/

/* Read More Functionality */
.read-more-content {
    max-height: 250px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

.read-more-content.expanded {
    max-height: 2000px; /* Large enough for full content */
}

.read-more-content:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, rgba(248, 249, 250, 0.9)); /* Matches bg-light */
    pointer-events: none;
    transition: opacity 0.3s;
}

/* For white background sections like MD Message */
.bg-white .read-more-content:not(.expanded)::after {
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
}

.read-more-btn {
    display: inline-block;
    color: var(--bs-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 15px;
    padding-left: 25px; /* Alignment with text ps-4 */
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: var(--bs-dark);
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

/*** About Start ***/
.about .text {
    position: relative;
}

.about .text::after {
    content: "";
    width: 4px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-primary);
}

.about-img-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
/*** About End ***/

@media (max-width: 991.98px) {
    .header-carousel-item img {
        height: auto;
        min-height: 400px;
        max-height: 550px;
        object-fit: cover;
    }
}

/*** Unified Card System ***/
.unified-card-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.unified-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.5s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.unified-card-img {
    position: relative;
    width: 100%;
    height: 220px; /* Standardized height for all card images */
    overflow: hidden;
}

.unified-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.unified-card:hover .unified-card-img img {
    transform: scale(1.1);
}

.unified-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
}

.unified-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    height: 3.5rem; /* Fixed height for titles to align text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.unified-card-text {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    height: 4.8rem; /* Fixed height for descriptions (approx 3 lines) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.container-fluid.service,
.container-fluid.project {
    overflow-x: hidden !important;
    overflow-y: visible;
    max-width: 100vw;
}

.service-carousel.owl-carousel,
.project-carousel.owl-carousel {
    position: relative;
    overflow: hidden !important;
    max-width: 100%;
}

.service-carousel .owl-stage-outer,
.project-carousel .owl-stage-outer {
    overflow: hidden !important;
}

.owl-carousel {
    overflow: hidden !important;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden !important;
}

.service-carousel.owl-carousel .owl-nav,
.project-carousel.owl-carousel .owl-nav {
    display: block;
}

.service-carousel.owl-carousel .owl-nav .owl-prev,
.service-carousel.owl-carousel .owl-nav .owl-next,
.project-carousel.owl-carousel .owl-nav .owl-prev,
.project-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10;
    margin: 0;
}

@media (min-width: 1400px) {
    .service-carousel.owl-carousel .owl-nav .owl-prev,
    .project-carousel.owl-carousel .owl-nav .owl-prev {
        left: 10px;
    }
    .service-carousel.owl-carousel .owl-nav .owl-next,
    .project-carousel.owl-carousel .owl-nav .owl-next {
        right: 10px;
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .service-carousel.owl-carousel .owl-nav .owl-prev,
    .project-carousel.owl-carousel .owl-nav .owl-prev {
        left: 10px;
    }
    .service-carousel.owl-carousel .owl-nav .owl-next,
    .project-carousel.owl-carousel .owl-nav .owl-next {
        right: 10px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .service-carousel.owl-carousel .owl-nav .owl-prev,
    .project-carousel.owl-carousel .owl-nav .owl-prev {
        left: 5px;
    }
    .service-carousel.owl-carousel .owl-nav .owl-next,
    .project-carousel.owl-carousel .owl-nav .owl-next {
        right: 5px;
    }
}

@media (max-width: 991px) {
    .service-carousel.owl-carousel .owl-nav .owl-prev,
    .project-carousel.owl-carousel .owl-nav .owl-prev {
        left: 5px;
    }
    .service-carousel.owl-carousel .owl-nav .owl-next,
    .project-carousel.owl-carousel .owl-nav .owl-next {
        right: 5px;
    }
    .service-carousel.owl-carousel .owl-nav .owl-prev,
    .service-carousel.owl-carousel .owl-nav .owl-next,
    .project-carousel.owl-carousel .owl-nav .owl-prev,
    .project-carousel.owl-carousel .owl-nav .owl-next {
        width: 45px;
        height: 45px;
    }
}

.service .service-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
    min-height: 480px;
}

.service .service-item .service-img {
    height: 220px;
    flex-shrink: 0;
}

.service .service-item .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service .service-item .service-content .service-content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.service .service-item .service-content .service-content-inner .h4 {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.service .service-item .service-content .service-content-inner p {
    flex: 1;
    margin-bottom: 1.5rem;
}

.service .service-item .service-content .service-content-inner .btn {
    margin-top: auto;
}

.service .service-item .service-img::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    right: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(68, 210, 246, 0.4);
    transition: 0.5s;
}

.service .service-item:hover .service-img::after {
    width: 100% !important;
    height: 100% !important;
}

.service .service-item .service-content {
    position: relative;
}

.service .service-item .service-content::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-dark);
    transition: 0.5s;
    z-index: 1;
}

.service .service-item:hover .service-content::after {
    width: 100% !important;
    height: 100% !important;
}

.service .service-item .service-content .service-content-inner {
    transition: 0.5s;
}

.service .service-item:hover .service-content .service-content-inner {
    position: relative;
    color: var(--bs-white) !important;
    transition: 0.5s;
    z-index: 2;
}

.service .service-item:hover .service-content .service-content-inner a.h4 {
    color: var(--bs-white) !important;
    transition: 0.5s;
}

.service .service-item:hover .service-content .service-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}
/*** Service End ***/

/*** Project Start ***/
.project-carousel.owl-carousel {
    position: relative;
    overflow: visible;
}

.project-carousel.owl-carousel .owl-nav {
    display: block;
}

.project .project-carousel.owl-carousel {
    height: 100%;
}

.project .project-carousel .project-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.project .project-carousel .project-item .project-img {
    height: 240px;
    flex-shrink: 0;
}

.project .project-carousel .project-item .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project .project-carousel .project-item .project-content .project-content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.project .project-carousel .project-item .project-content .project-content-inner .unified-card-title {
    min-height: 50px;
    display: flex;
    align-items: center;
}

.project .project-carousel .project-item .project-content .project-content-inner .unified-card-text {
    flex: 1;
    margin-bottom: 1rem;
}

.project .project-carousel .project-item .project-content .project-content-inner .pt-4 {
    margin-top: auto;
}

.project .project-carousel .project-item .project-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project .project-carousel .project-item .project-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(68, 210, 246, 0.4);
    transition: 0.5s;
}

.project .project-carousel .project-item:hover .project-img::after {
    height: 100%;
}

.project .project-carousel .project-item .project-img img {
    transition: 0.5s;
}

.project .project-carousel .project-item:hover .project-img img {
    transform: scale(1.2);
}

.project .project-carousel .project-item .project-content {
    position: relative;
    width: 75%;
    height: 100%;
    bottom: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.project .project-carousel .project-item .project-content::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px !important;
    background: var(--bs-dark);
    transition: 0.5s;
}

.project .project-carousel .project-item .project-content .project-content-inner {
    position: relative;
    z-index: 2;
}

.project .project-carousel .project-item:hover .project-content .project-content-inner p,
.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4,
.project .project-carousel .project-item:hover .project-content .project-content-inner .project-icon i {
    color: var(--bs-white) !important;
    transition: 0.5s;
}

.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}

.project .project-carousel .project-item:hover .project-content::after {
    height: 100%;
}

.project-carousel .owl-dots {
    margin-top: 20px;
    position: relative;
    z-index: 5;
}
/*** Project End ***/

/*** Blog Start ***/
.blog .blog-item .project-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.5s;
}

.blog .blog-item .project-img .blog-plus-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(68, 210, 246, 0.2);
    transition: 0.5s;
    opacity: 0;
}

.blog .blog-item:hover .project-img .blog-plus-icon {
    opacity: 1;
}

.blog .blog-item .project-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .project-img img {
    transform: scale(1.3);
}

/*** Blog End ***/

/*** Team Start ***/
.team .team-item {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bs-dark);
    transition: 0.5s;
}

.team .team-item:hover {
    border: none !important;
}

.team .team-item::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    border: 1px solid;
    border-color: var(--bs-primary) transparent transparent var(--bs-primary) !important;
    z-index: 5;
    transition: 1s;
    opacity: 0;
}

.team .team-item::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 10px;
    border: 1px solid;
    border-color: transparent var(--bs-primary) var(--bs-primary) transparent !important;
    z-index: 5;
    transition: 1s;
    opacity: 0;
}

.team .team-item:hover:after,
.team .team-item:hover::before {
    width: 100% !important;
    height: 100% !important;
    opacity: 1;
}

.team .team-item .team-img {
    position: relative;
    height: 320px; /* Standardized height for team photos */
    overflow: hidden;
}

.team .team-item .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.team .team-item .team-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(68, 210, 246, 0.2);
    transition: 0.5s;
}

.team .team-item:hover .team-img::after {
    height: 100%;
}

.team .team-item .team-img .team-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 8;
    transition: 0.5s;
}

.team .team-item .team-img .team-icon .team-icon-share {
    position: relative;
    margin-top: -200px;
    transition: 0.5s;
    z-index: 9;
}

.team .team-item:hover .team-img .team-icon .team-icon-share {
    margin-top: 0 !important;
}

.team .team-item .team-content {
    position: relative;
}

.team .team-item .team-content::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-primary) !important;
    transition: 0.5s;
}

.team .team-item .team-content::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-primary) !important;
    transition: 0.5s;
}

.team .team-item:hover .team-content::after,
.team .team-item:hover .team-content::before {
    width: 100% !important;
    height: 50% !important;
}

.team .team-item:hover .team-content .team-content-inner {
    position: relative;
    color: var(--bs-white);
    z-index: 2;
}

.team .team-item .team-content .team-content-inner h4,
.team .team-item .team-content .team-content-inner p {
    transition: 0.5s;
}

.team .team-item:hover .team-content .team-content-inner p {
    color: var(--bs-white) !important;
}

.team .team-item:hover .team-content .team-content-inner h4 {
    color: var(--bs-dark) !important;
}
/*** Team End ***/

/*** Testimonial Start ***/
.testimonial .testimonial-carousel {
    position: relative;
}

/* Testimonial dots use generic styles */
/*** Testimonial End ***/

/*** FAQ'S Start ***/
.faq {
    position: relative;
    overflow: hidden;
}

.faq::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url(../img/bg.png);
    object-fit: cover;
    z-index: -1;
}

.faq .faq-img {
    position: relative;
}

.faq .faq-img .faq-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/*** FAQ'S End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.back-to-top i {
    font-size: 20px;
    line-height: 46px;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*** Vendor Start ***/
.vendor-carousel img {
    width: auto;
    max-width: 150px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(0%);
    opacity: 1;
    transition: 0.5s;
}

.vendor-carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
/*** Vendor End ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}
.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-primary);
}

.footer .footer-item-post a {
    transition: 0.5s;
}

.footer .footer-item-post a:hover {
    color: var(--bs-primary) !important;
}

.footer .footer-item-post .footer-btn a {
    transition: 0.5s;
}

.footer .footer-item-post .footer-btn a:hover {
    color: var(--bs-dark);
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}
/*** copyright end ***/






/*simran changes service page css image command font-face background img css*/
/*.about {
    position: relative;
    background-image: url('/investaassets/img/bg4.png');*/ /* apni image ka path */
    /*background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}*/

    /* White overlay for readability */
    /*.about::before {
        content: "";
        position: absolute;
        inset: 0;*/
        /*  background: rgba(2, 255, 255, 0.6); */
        /*z-index: 1;
    }*/

    /* Content upar lane ke liye */
    /*.about .container {
        position: relative;
        z-index: 2;
    }*/

/* Mobile responsive fix */
/*@media (max-width: 768px) {
    .about {
        background-position: top;
    }
}


.digitization-img {
    text-align: center;
    padding: 20px;
}

    .digitization-img img {
        width: 100%;*/ /* full width */
        /*max-width: 520px;*/ /* desktop size bada */
        /*height: auto;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        transition: transform 0.4s ease;
    }*/

        /* .digitization-img img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            transition: transform 0.4s ease;
        } */

        /*.digitization-img img:hover {
            transform: scale(1.05);
        }*/



/* Mobile adjustments */
/*@media (max-width: 768px) {
    .digitization-img {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .digitization-img img {
        max-width: 100%;*/ /* mobile full width */
    /*}

    .about p {
        padding-left: 0 !important;
        text-align: justify;
    }
}

.about .text,
.about p,
.about li {
    color: #000 !important;
}*/


/*source client css command vendor slider css */
.client-category-modern {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all .35s ease;
}

    .client-category-modern:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    }

.category-header-new {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.icon-badge {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg,#06A3DA,#34AD54);
    color: #fff;
    font-size: 1.4rem;
}

.category-content {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

    .category-content::-webkit-scrollbar {
        width: 6px;
    }

    .category-content::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

.client-tabs .nav-link {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    color: #555;
    transition: all .3s ease;
}

    .client-tabs .nav-link.active {
        background: linear-gradient(135deg,#06A3DA,#34AD54);
        color: #fff;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.gradient-text {
    font-weight: 900;
    background: linear-gradient(135deg, #102147, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*.trusted-badge {
    display: inline-block;
    background: linear-gradient(145deg, #0f172a, #1e3a8a);*/ /* smooth dark gradient */
    /*padding: 10px 28px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);*/ /* soft shadow for depth */
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .trusted-badge:hover {
        transform: scale(1.05);*/ /* subtle zoom on hover */
        /*box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    }

    .trusted-badge h5 {
        font-size: 0.9rem;
        letter-spacing: 2px;
        font-weight: 700;
        text-transform: uppercase;
        color: #0ea5e9;*/ /* bright cyan text for contrast */
        /*margin: 0;
    }*/
/* Box styling with gradient */
.trusted-badge {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #1e40af); /* light blue → blue → dark blue */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

    /* Hover effect */
    .trusted-badge:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    }

    /* Text styling */
    .trusted-badge h5 {
        font-family: 'Poppins', 'Montserrat', sans-serif; /* modern clean fonts */
        font-weight: 700;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #ffffff; /* white text for contrast */
        margin: 0;
        text-align: center;
    }


.client-tabs .nav-link.active {
    background: linear-gradient(135deg, #102147, #06b6d4);
    color: #fff;
    box-shadow: 0 8px 25px rgba(16,33,71,0.35);
}

.client-tabs .nav-link {
    border-radius: 50px;
    transition: all .3s ease;
}
/* Base Icon Badge */
.icon-badge {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #102147, #0ea5e9);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(16,33,71,0.35);
    transition: all .3s ease;
}

/* Hover Effect */
.client-category-modern:hover .icon-badge {
    transform: scale(1.1) rotate(3deg);
}


/* Fix Dropdown Overflow - Make rightmost dropdowns open to the left */
@media (min-width: 992px) {
    /* Target the last few nav items to open dropdowns to the left */
    .navbar-nav > .nav-item:nth-last-child(-n+3) .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
    
    /* For nested submenus on the right side, open them to the left */
    .navbar-nav > .nav-item:nth-last-child(-n+3) .dropdown-submenu > .dropdown-menu {
        right: 100% !important;
        left: auto !important;
    }
    
    /* Ensure Business Applications dropdown opens to the left */
    .navbar-nav .nav-item:has(.dropdown-menu) {
        position: relative;
    }
    
    /* Specific fix for Business Applications and other right-side menus */
    .navbar-nav > .nav-item:nth-last-child(1) .dropdown-menu,
    .navbar-nav > .nav-item:nth-last-child(2) .dropdown-menu,
    .navbar-nav > .nav-item:nth-last-child(3) .dropdown-menu,
    .navbar-nav > .nav-item:nth-last-child(4) .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
    
    /* Nested submenus should also open to the left when parent is on right */
    .navbar-nav > .nav-item:nth-last-child(-n+4) .dropdown-submenu .dropdown-menu {
        right: 100% !important;
        left: auto !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Override any existing left positioning for right-side dropdowns */
    .navbar-nav > .nav-item:nth-last-child(-n+4) .dropdown-menu[style*="left"] {
        left: auto !important;
        right: 0 !important;
    }
}

/* Additional fix with even higher specificity */
@media (min-width: 1200px) {
    .navbar .navbar-nav > .nav-item:nth-last-child(-n+4) .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
    
    .navbar .navbar-nav > .nav-item:nth-last-child(-n+4) .dropdown-submenu > .dropdown-menu {
        right: 100% !important;
        left: auto !important;
        top: 0 !important;
    }
}


/* ========================================
   OWL CAROUSEL EQUAL HEIGHTS FIX
   ======================================== */
.owl-carousel .owl-item {
    display: flex !important;
    height: auto;
}

.owl-carousel .owl-item > div {
    width: 100%;
    display: flex;
}

.service-carousel .owl-item,
.project-carousel .owl-item {
    display: flex !important;
    align-items: stretch;
}

.service-carousel .service-item,
.project-carousel .project-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.owl-carousel .owl-stage {
/*    display: flex !important;*/
    align-items: stretch;
}


/* Sticky Navbar - Full Width at Top - FIXED POSITIONING */
/* Removed - was causing topbar to be hidden */

/* Navbar will be made sticky via JavaScript */
/* Initial state - relative positioning */
.container-fluid.sticky-top {
    position: relative;
    background: transparent;
}

/* Make navbar container full width when sticky */
.sticky-top .container-fluid {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure navbar stays full width */
.sticky-top .navbar {
    width: 100% !important;
}


/* =========================
   Global Float Animation
   ========================= */
/*@keyframes floatEffect {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.float-img {
    animation: floatEffect 4s ease-in-out infinite;
}
*/