/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    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;
}

/* ==================== Facts Section (Reverted) ==================== */
.facts-3d {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Container styling */
.container-fluid.facts-3d {
    width: 100%;
    padding: 20px;
}

/* ======================================================
   BASE STYLES FOR CUSTOM MENU (GRID MENU ONLY)
   ====================================================== */
.custom-grid-menu {
    display: none;
    background: rgba(255, 255, 255, 0.932);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px !important;
    border: none !important;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.3);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px; /* Changed from 1200px to 1100px */
    max-width: 90vw;
}

/* Menu items */
.custom-grid-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(41, 128, 185, 0.1);
    font-weight: 500;
}

.custom-grid-menu .dropdown-item i {
    font-size: 1.2em;
    width: 28px;
    text-align: center;
    margin-right: 15px;
    color: #1377e9;
    transition: all 0.3s ease;
}

/* Hover */
.custom-grid-menu .dropdown-item:hover,
.custom-grid-menu .dropdown-item.active {
    background-color: #105be7fd;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(41, 128, 185, 0.3);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.1);
}

.custom-grid-menu .dropdown-item:hover i,
.custom-grid-menu .dropdown-item.active i {
    color: #ffffff;
}

/* ======================================================
   DESKTOP (no flicker fix)
   ====================================================== */
@media (min-width: 992px) {

    /* Prevent Bootstrap JS click dropdown conflict */
    .dropdown-toggle::after {
        display: none !important;
    }

    /* Disable Bootstrap's .show dropdown on desktop */
    .dropdown-menu {
        display: none !important;
    }

    /* Pure hover dropdown (flicker-free) */
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: grid !important;
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}

/* ======================================================
   MOBILE
   ====================================================== */
@media (max-width: 991.98px) {

    .custom-grid-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 15px 20px !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-grid-menu .dropdown-item {
        padding: 12px 15px;
        margin-bottom: 8px;
        width: 100%;
    }

    .navbar-dark .navbar-nav .nav-link {
        margin-left: 0;
        padding: 12px 20px;
    }
}

/* Small Phones */
@media (max-width: 575.98px) {
    .custom-grid-menu {
        grid-template-columns: 1fr;
    }
}






/* 3D Scene with enhanced perspective */
.carousel-3d-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1100px; /* Changed from 1200px to 1100px */
    margin: 0 auto;
    transform-style: preserve-3d;
    position: relative;
    min-height: 400px;
}

/* Individual card styling with enhanced 3D effects */
.carousel-3d-item {
    flex: 1;
    max-width: 350px;
    height: 300px;
    margin: 0 15px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    opacity: 0;
    animation: fadeInScale 0.8s forwards;
}

.carousel-3d-item-left {
    animation-delay: 0.2s;
    transform: rotateY(15deg) translateZ(-50px);
}

.carousel-3d-item-center {
    animation-delay: 0.4s;
    transform: rotateY(0deg) translateZ(50px);
    z-index: 2;
}

.carousel-3d-item-right {
    animation-delay: 0.6s;
    transform: rotateY(-15deg) translateZ(-50px);
}

/* Enhanced card styling */
.fact-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00a3d7 0%, #0056b3 100%);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

/* Center card different styling */
.carousel-3d-item-center .fact-card {
    background: linear-gradient(135deg, #ffffff 0%, #eaf7ff 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Animated background elements */
.fact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

/* Icon styling with animation */
.fact-card .icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}

.carousel-3d-item-center .fact-card .icon-container {
    background: linear-gradient(135deg, #00a3d7 0%, #0056b3 100%);
}

.fact-card i {
    font-size: 36px;
    color: white;
    transition: all 0.3s ease;
}

.carousel-3d-item-center .fact-card i {
    color: white;
}

/* Text styling */
.fact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.carousel-3d-item-center .fact-card h3 {
    color: #0056b3;
}

.fact-card h5 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.carousel-3d-item-center .fact-card h5 {
    color: #00a3d7;
}

/* Hover effects */
.carousel-3d-item:hover {
    transform: translateY(-20px) scale(1.05);
    z-index: 10;
}

.carousel-3d-item-left:hover {
    transform: translateY(-20px) scale(1.05) rotateY(0deg) translateZ(100px);
}

.carousel-3d-item-center:hover {
    transform: translateY(-20px) scale(1.05) rotateY(0deg) translateZ(100px);
}

.carousel-3d-item-right:hover {
    transform: translateY(-20px) scale(1.05) rotateY(0deg) translateZ(100px);
}

.carousel-3d-item:hover .fact-card::before {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

.carousel-3d-item:hover .fact-card {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.carousel-3d-item:hover .icon-container {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-3d-item:hover i {
    transform: rotateY(360deg);
}

.carousel-3d-item:hover h3 {
    transform: translateY(-5px);
}

.carousel-3d-item:hover h5 {
    transform: translateY(-5px);
}

/* Particle effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .carousel-3d-scene {
        flex-direction: column;
        perspective: none;
    }

    .carousel-3d-item {
        width: 100%;
        max-width: 500px;
        margin: 15px 0;
        transform: none !important;
        animation: fadeInScale 0.8s forwards;
    }

    .carousel-3d-item-left,
    .carousel-3d-item-center,
    .carousel-3d-item-right {
        animation-delay: 0.2s;
    }

    .carousel-3d-item-center {
        animation-delay: 0.4s;
    }

    .carousel-3d-item-right {
        animation-delay: 0.6s;
    }

    .carousel-3d-item:hover {
        transform: translateY(-10px) scale(1.02) !important;
    }
}

/* Active state for carousel rotation */
.carousel-3d-scene.rotate-left .carousel-3d-item-left {
    transform: rotateY(0deg) translateZ(50px);
    z-index: 2;
}

.carousel-3d-scene.rotate-left .carousel-3d-item-center {
    transform: rotateY(15deg) translateZ(-50px);
}

.carousel-3d-scene.rotate-left .carousel-3d-item-right {
    transform: rotateY(-15deg) translateZ(-50px);
}

.carousel-3d-scene.rotate-right .carousel-3d-item-right {
    transform: rotateY(0deg) translateZ(50px);
    z-index: 2;
}

.carousel-3d-scene.rotate-right .carousel-3d-item-center {
    transform: rotateY(-15deg) translateZ(-50px);
}

.carousel-3d-scene.rotate-right .carousel-3d-item-left {
    transform: rotateY(15deg) translateZ(-50px);
}

.carousel-control-next,
.carousel-control-prev {
    width: 10%;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    width: 3rem;
    height: 3rem;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0;
    background: #fff;
    -webkit-animation: 5s linear infinite section-title-run;
    animation: 5s linear infinite section-title-run;
}

.section-title.text-center::after {
    -webkit-animation: 5s linear infinite section-title-run-center;
    animation: 5s linear infinite section-title-run-center;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
    -webkit-animation: 5s linear infinite section-title-run-sm;
    animation: 5s linear infinite section-title-run-sm;
}

@keyframes section-title-run {

    0%,
    100% {
        left: 0;
    }

    50% {
        left: 145px;
    }
}

@keyframes section-title-run-center {

    0%,
    100% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 45px;
    }
}

@keyframes section-title-run-sm {

    0%,
    100% {
        left: 0;
    }

    50% {
        left: 85px;
    }
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        max-height: 75vh;              /* limit visible height */
        overflow-y: auto !important;   /* enable scrolling */
        overflow-x: hidden;
        scroll-behavior: smooth;       /* optional */
    }
}


@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
        left: 30rem;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    
}

/* Custom CSS for Nested Dropdowns (Sub-menus) */
/* Bootstrap 5 does not support sub-dropdowns by default, so we add this. */
.navbar-nav .dropdown-menu {
    /* Ensure the dropdown is positioned correctly */
    position: absolute;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    /* Aligns the submenu perfectly */
    margin-left: -0.1rem;
}

/* On hover, show the submenu */
.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Style the arrow to indicate a submenu */
.dropdown-submenu>.dropdown-item:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #6c757d;
    /* Arrow color */
    margin-right: -10px;
    margin-top: 5px;
}

/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}

/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -5px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}

/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}

/* tools and products */

/* Tools Section Styles */


.feature-list {
    padding-left: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #0d6efd; /* primary color */
    border-radius: 50%;
}

.feature-list li:after {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.6rem;
    width: 0.3rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* --- Styles for screens smaller than 992px (tablets and small laptops) --- */
@media (max-width: 991.98px) {
    #tools {
        padding-top: 3rem !important; /* Reduces top padding from py-5 (3rem) */
        padding-bottom: 3rem !important; /* Reduces bottom padding from py-5 (3rem) */
    }

    .service-item {
        padding: 1.5rem !important; /* Reduces padding from p-4 (1.5rem) to p-3 (1rem) */
    }
}

#tools {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

#tools::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #6610f2, #0d6efd);
    background-size: 200% 100%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Section Header Styles */
.section-title {
    display: inline-block;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #0d6efd;
}

/* Service Card Styles */
.service-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
}

.service-item h4 {
    font-weight: 600;
    color: #212529;
    transition: color 0.3s ease;
}

.service-item:hover h4 {
    color: #0d6efd;
}

.service-item p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #0a58ca;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Category Labels */
.category-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    #tools {
        padding: 60px 0;
    }

    .service-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    #tools {
        padding: 40px 0;
    }

    .display-6 {
        font-size: 1.75rem;
    }

    .service-item {
        margin-bottom: 20px;
    }
}

/* Animation for wow.js */
.wow {
    visibility: hidden;
}

.wow.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon Colors by Category */
/* HR Tools - Blue */
.fa-users,
.fa-user-plus,
.fa-clock,
.fa-chart-line {
    color: #0d6efd;
}

/* Sales & Marketing - Green */
.fa-handshake,
.fa-envelope,
.fa-poll {
    color: #198754;
}

/* Finance - Orange */
.fa-file-invoice-dollar,
.fa-chart-pie,
.fa-receipt {
    color: #fd7e14;
}

/* Operations - Purple */
.fa-cash-register,
.fa-warehouse,
.fa-headset {
    color: #6f42c1;
}

/* Additional Tools - Teal */
.fa-laptop,
.fa-tools,
.fa-book {
    color: #20c997;
}

/* Communication - Pink */
.fa-video,
.fa-calendar,
.fa-bell {
    color: #d63384;
}

/* Management - Indigo */
.fa-tasks,
.fa-box,
.fa-shopping-cart,
.fa-file-contract {
    color: #6610f2;
}

/* Service Icon Backgrounds by Category */
/* HR Tools */
.fa-users,
.fa-user-plus,
.fa-clock,
.fa-chart-line {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Sales & Marketing */
.fa-handshake,
.fa-envelope,
.fa-poll {
    background-color: rgba(25, 135, 84, 0.1);
}

/* Finance */
.fa-file-invoice-dollar,
.fa-chart-pie,
.fa-receipt {
    background-color: rgba(253, 126, 20, 0.1);
}

/* Operations */
.fa-cash-register,
.fa-warehouse,
.fa-headset {
    background-color: rgba(111, 66, 193, 0.1);
}

/* Additional Tools */
.fa-laptop,
.fa-tools,
.fa-book {
    background-color: rgba(32, 201, 151, 0.1);
}

/* Communication */
.fa-video,
.fa-calendar,
.fa-bell {
    background-color: rgba(214, 51, 132, 0.1);
}

/* Management */
.fa-tasks,
.fa-box,
.fa-shopping-cart,
.fa-file-contract {
    background-color: rgba(102, 16, 242, 0.1);
}

/* Loading Animation */
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.service-item:hover::after {
    transform: translateX(100%);
}

/* our journey */
/* Modern Timeline Styles */
.modern-timeline {
    position: relative;
    padding: 20px 0;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #e3f2fd, #90caf9, #64b5f6);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.3);
}

.timeline-content {
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid #e3f2fd;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.2);
    border-left-color: #64b5f6;
    background: #f5fbff;
}

.timeline-content h5 {
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #546e7a;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .modern-timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 15px 20px;
    }
}



/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    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;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}