/*** 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: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/* Mobile responsiveness for back-to-top */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 35px;
        height: 35px;
    }
}

/*** 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-dark) !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-primary) !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;
}

/* Mobile responsiveness for buttons */
@media (max-width: 768px) {
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .btn-square {
        width: 28px;
        height: 28px;
    }
    
    .btn-sm-square {
        width: 30px;
        height: 30px;
    }
    
    .btn-md-square {
        width: 38px;
        height: 38px;
    }
    
    .btn-lg-square {
        width: 48px;
        height: 48px;
    }
    
    .btn-xl-square {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .btn-square {
        width: 26px;
        height: 26px;
    }
    
    .btn-sm-square {
        width: 28px;
        height: 28px;
    }
    
    .btn-md-square {
        width: 34px;
        height: 34px;
    }
    
    .btn-lg-square {
        width: 42px;
        height: 42px;
    }
    
    .btn-xl-square {
        width: 52px;
        height: 52px;
    }
}

/*** 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;
}

.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: 1800px;
    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: 1800px;
    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.5);*/
    z-index: 2 !important;
}

.header-carousel .header-carousel-item .carousel-caption {
    border-radius: 18px;
    margin-bottom: 55px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    width: 50%;
    height: 45%;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
}

@media (max-width: 992px) {
    .header-carousel .header-carousel-item .carousel-caption {
        background: rgba(0, 0, 0, 0.5);
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 10px;
    }
    .header-carousel-item img {
        height: 1200px;
        object-fit: cover;
    }

    .owl-prev,
    .owl-next {
        top: 40px !important;
    }

    .owl-prev {
        left: 65%;
    }
}

/* Additional mobile responsiveness for carousel */
@media (max-width: 768px) {
    .header-carousel .header-carousel-item .carousel-caption {
        width: 95% !important;
        height: 40%;
        top: 30%;
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    
    .header-carousel-item img {
        height: 800px;
        object-fit: cover;
    }
    
    .owl-prev,
    .owl-next {
        width: 45px;
        height: 45px;
        top: 30px !important;
        padding: 15px;
        border-radius: 30px;
    }
    
    .owl-prev {
        left: 60%;
    }
    
    .owl-next {
        right: 10px;
    }
    
    .header-carousel .header-carousel-item-img-1::before,
    .header-carousel .header-carousel-item-img-2::before,
    .header-carousel .header-carousel-item-img-3::before {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
        border-radius: 150px;
        border: 50px solid rgba(68, 210, 246, 0.2);
    }
    
    .header-carousel .header-carousel-item::before {
        width: 200px;
        height: 1200px;
        left: -200px;
    }
    
    .header-carousel .header-carousel-item-img-1::after,
    .header-carousel .header-carousel-item-img-2::after,
    .header-carousel .header-carousel-item-img-3::after {
        width: 100px;
        height: 1200px;
        left: 40px;
    }
}

@media (max-width: 480px) {
    .header-carousel .header-carousel-item .carousel-caption {
        width: 90% !important;
        height: 35%;
        top: 25%;
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .header-carousel-item img {
        height: 600px;
        object-fit: cover;
    }
    
    .owl-prev,
    .owl-next {
        width: 35px;
        height: 35px;
        top: 20px !important;
        padding: 10px;
        border-radius: 25px;
    }
    
    .owl-prev {
        left: 55%;
    }
    
    .owl-next {
        right: 5px;
    }
    
    .header-carousel .header-carousel-item-img-1::before,
    .header-carousel .header-carousel-item-img-2::before,
    .header-carousel .header-carousel-item-img-3::before {
        width: 200px;
        height: 200px;
        top: -100px;
        right: -100px;
        border-radius: 100px;
        border: 30px solid rgba(68, 210, 246, 0.2);
    }
    
    .header-carousel .header-carousel-item::before {
        width: 150px;
        height: 800px;
        left: -150px;
    }
    
    .header-carousel .header-carousel-item-img-1::after,
    .header-carousel .header-carousel-item-img-2::after,
    .header-carousel .header-carousel-item-img-3::after {
        width: 80px;
        height: 800px;
        left: 20px;
    }
}
/*** 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;
}

/* Mobile responsiveness for breadcrumb */
@media (max-width: 768px) {
    .bg-breadcrumb {
        padding: 40px 0;
    }
    
    .bg-breadcrumb .bg-breadcrumb-single {
        width: 300px;
        height: 800px;
        margin-left: 15px;
    }
    
    .bg-breadcrumb::before {
        width: 250px;
        height: 250px;
        top: -100px;
        right: -100px;
        border-radius: 125px;
        border: 50px solid rgba(68, 210, 246, 0.2);
    }
    
    .bg-breadcrumb::after {
        width: 100px;
        height: 800px;
        margin-left: 100px;
    }
}

@media (max-width: 480px) {
    .bg-breadcrumb {
        padding: 30px 0;
    }
    
    .bg-breadcrumb .bg-breadcrumb-single {
        width: 200px;
        height: 600px;
        margin-left: 10px;
    }
    
    .bg-breadcrumb::before {
        width: 150px;
        height: 150px;
        top: -50px;
        right: -50px;
        border-radius: 75px;
        border: 30px solid rgba(68, 210, 246, 0.2);
    }
    
    .bg-breadcrumb::after {
        width: 80px;
        height: 600px;
        margin-left: 60px;
    }
}
/*** Single Page Hero Header End ***/


/*** About Start ***/
.about .text {
    position: relative;
}

.about-img {
    margin-top: -55px;
    width: 100%;
    max-width: 395px;
    margin-left: auto;
    margin-right: auto;
}

/* Update the image styling */
.about-img img {
    height: 250px;
    max-width: 100% !important;
    width: auto;
    margin-top: 35px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-img {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .about-img img {
        height: auto;
        max-height: 200px;
        margin-top: 20px;
    }
    
    .about .text {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .about-img {
        margin-top: -20px;
        padding: 0 10px;
    }
    
    .about-img img {
        max-height: 180px;
        margin-top: 15px;
    }
    
    .about .text {
        padding: 0 10px;
    }
}

.about .text::after {
    content: "";
    width: 4px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: (var-primary);
}

/* Mobile responsiveness for text decoration */
@media (max-width: 768px) {
    .about .text::after {
        width: 3px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .about .text::after {
        width: 2px;
        left: 10px;
    }
}
/*** About End ***/

.impact {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -35px;
    width: 100%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
    padding: 0 15px;
}

/* Optional: Improve mobile appearance */
@media (max-width: 768px) {
    .impact {
        margin-top: -20px;
        padding: 0 10px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .impact {
        margin-top: -15px;
        padding: 0 8px;
        margin-bottom: 20px;
    }
}

/*** 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);
}

/* Mobile responsiveness for blog */
@media (max-width: 768px) {
    .blog .blog-item .project-img {
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .blog .blog-item .project-img .blog-plus-icon {
        border-radius: 8px;
    }
    
    .blog .blog-item:hover .project-img img {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .blog .blog-item .project-img {
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .blog .blog-item .project-img .blog-plus-icon {
        border-radius: 6px;
    }
    
    .blog .blog-item:hover .project-img img {
        transform: scale(1.05);
    }
}
/*** Blog End ***/

/*** Testimonial Start ***/
.testimonial .testimonial-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary);
}

/* Mobile responsiveness for testimonial */
@media (max-width: 768px) {
    .testimonial .testimonial-carousel .owl-dots {
        margin-top: 20px;
    }
    
    .testimonial .testimonial-carousel .owl-dot {
        margin: 0 3px;
        width: 12px;
        height: 12px;
        border-radius: 8px;
    }
    
    .testimonial .testimonial-carousel .owl-dot.active {
        width: 32px;
    }
}

@media (max-width: 480px) {
    .testimonial .testimonial-carousel .owl-dots {
        margin-top: 15px;
    }
    
    .testimonial .testimonial-carousel .owl-dot {
        margin: 0 2px;
        width: 10px;
        height: 10px;
        border-radius: 6px;
    }
    
    .testimonial .testimonial-carousel .owl-dot.active {
        width: 28px;
    }
}
/*** Testimonial End ***/