.tp-slider-section {
    height: 570px;
    width: 100%;
    padding-top: 6%;
}

.tp-slider-section .carousel-item {
    position: relative;
}

.tp-slider-section .carousel-control-next,
.tp-slider-section .carousel-control-prev {
    height: 2.5rem;
    width: 2.5rem;
    /* margin: inherit; */
    background-color: rgb(133 132 132 / 50%);
    border-radius: 25px;
    opacity: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.tp-slider-section .carousel-control-prev {
    left: 2%;
}

.tp-slider-section .carousel-control-next {
    right: 2%;
}

.tp-slider-section .carousel-control-next:hover,
.tp-slider-section .carousel-control-prev:hover {
    background-color: rgba(35, 209, 236, 0.8);
    transition: all 0.2s ease-in;
}

.tp-slider-section .carousel-control-next-icon,
.carousel-control-prev-icon {
    height: 1rem;
    width: 1rem;
}

.tp-slider-section .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tp-slider-section .carousel-item img {
    position: relative;
    height: 615px;
    object-fit: cover;
    filter: grayscale(2%) brightness(50%);
    width: 100%;
    z-index: 0;
    /* Ensures image is below the overlay */
}

.tp-slider-section .carousel-caption {
    position: absolute;
    top: 56%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 500 !important;
}

.tp-slider-section .carousel-caption h1 {
    font-weight: 500;
    font-size: 4.5rem;
    /* max-width: ,52%; */
}

.modal {
    --bs-modal-margin: 0.7rem;
}

.modal-header {
    padding: 1.5% 4%;
}

.modal-body {
    padding: 1.5% 4%;
}

.animate__animated.animate__zoomIn {
    --animate-duration: 1s;
}

.animate__animated.animate__backInUp {
    --animate-duration: 1s;
    --animate-delay: 1s;
}

.animate__animated.animate__backInDown {
    --animate-duration: 1s;
    --animate-delay: 1s;
}

@keyframes zoomInSlow {
    0% {
        transform: scale(1);
        /* 100% */
    }

    100% {
        transform: scale(1.1);
        /* 120% */
    }
}

.zoom-effect img {
    animation: zoomInSlow ease-in-out forwards;
    /* 3s slow zoom */
    animation-duration: 15s;
}

/* counter  */

.project-section .carousel-indicators {
    position: absolute;
    top: -52px;
    right: -15px;
    z-index: 0;
    display: flex;
    justify-content: end;
    padding: 0;
    margin-right: 6%;
    margin-bottom: 1rem;
    margin-left: 15%;
}

.project-section .carousel-indicators [data-bs-target] {
    width: 25px;
    height: 8px;
    padding-left: 0;
    padding-right: 0;
    border: none;
    border-radius: 30px;
    background-color: var(--tp-secondary-color);
}

.brands {
    position: relative;
    overflow: hidden;
    height: 11rem;
    white-space: nowrap;
}

.brands:hover .brands__wrapper,
.brands:hover .brands__preWrapper {
    animation-play-state: paused;
    /* Pause the scrolling when hovering over the brands container */
}

.brands__preWrapper {
    position: relative;
    width: 100%;
    height: 6rem;
    /* transform: translateX(0%);
    animation: scroll1 8s linear infinite;
    animation-delay: 4s;
    animation-direction: alternate;
    will-change: transform; */
}

.brands__wrapper {
    position: absolute;
    white-space: nowrap;
    /* transform: translateX(0%) translateZ(0);
    animation: scroll2 8s linear infinite;
    animation-delay: 4s;
    animation-direction: alternate;
    will-change: transform; */
    animation: scroll-left 30s linear infinite;
}

.brands__wrapper>a,
.brands__wrapper>img {
    position: relative;
    display: inline-block;
    margin: 0 3rem;
    vertical-align: middle;
    transition: transform 0.3s ease-in-out;
    /* Add transition for smooth scaling */
}

.brands__wrapper>a img {
    max-width: 12rem;
    max-height: 9rem;
}

/* Scale the image when hovered */

.brands__wrapper>a img:hover {
    transform: scale(1.1);
    /* Adjust scale as needed */
    transition: transform 0.3s ease-in-out !important;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}