/*** Global ***/
:root {
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-secondary: #10b981;
    --bs-secondary-rgb: 16, 185, 129;
    --bs-dark: #0f172a;
    --bs-dark-rgb: 15, 23, 42;
    --bs-light: #f8fafc;
    --bs-light-rgb: 248, 250, 252;
}

html, body { overflow-x: hidden; }

/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar Start ***/

.topbar .top-info {
    letter-spacing: 1px;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    max-width: 500px;
    overflow: hidden;
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 5s infinite;
    animation-timing-function: all;
}

@keyframes mymove {
    from {left: -100%;}
    to {left: 100%;}
}

/*** Topbar End ***/


/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: var(--bs-white);
    font-size: 18px;
    outline: none;
    
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@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;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/*** Navbar End ***/


/*** Carousel Start ***/

.carousel-item {
    position: relative;
    height: 550px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--bs-primary);
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-prev:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--bs-primary);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--bs-primary);
    color: #ffffff;
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--bs-primary);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

#carouselId .carousel-indicators li {
    width: 30px;
    height: 10px;
    background: var(--bs-primary);
    margin: 10px;
    border-radius: 30px;
    opacity: 1;
}

#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
    opacity: 1;
}

@media (max-width: 992px) {
    .carousel-item {
        height: 500px;
    }

    .carousel-item h1 {
        font-size: 40px !important;
    }

    .carousel-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-item h1 {
        font-size: 28px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/*** Carousel End ***/


/*** Services Start ***/

.services .services-item {
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
}


.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    background: rgba(var(--bs-primary-rgb), 0.8);
    transition: .5s;
}

.services-content::after {
    top: 0;
    bottom: auto;
    border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
    transition: .5s;
}

.services-item:hover .services-content-icon {
    position: relative;
    z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon p {
    transition: .5s;
}

.services-item:hover .services-content-icon i {
    color: var(--bs-secondary) !important;
}

.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}

/*** Services End ***/


/*** Blog Start ***/
.blog-item .blog-btn {
    z-index: 2;
}

.blog-btn .blog-btn-icon {
    height: 50px;
    position: relative;
    overflow: hidden;
}

.blog-btn-icon .blog-icon-2 {
    display: flex;
    position: absolute;
    top: 6px;
    left: -140px;
    
}

.blog-btn-icon:hover .blog-icon-2 {
    transition: 1s;
    left: 5px;
    top: 6px;
    padding-bottom: 5px;
}
.blog-icon-1 {
    position: relative;
    top: -4px;
}
.blog-btn-icon:hover .blog-icon-1 {
    top: 0;
    right: -140px;
    transition: 1s;
}
/*** Blog End ***/


/*** Contact Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(209, 250, 229, 1), rgba(236, 253, 245, .3)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map {
    background: var(--bs-secondary);
}

.contact-form {
    background: var(--bs-secondary);
}

/*** Contact End ***/


/*** Footer Start ***/

.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    transition: .5s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    letter-spacing: 1px;
}

.footer .hightech-link a:hover {
    background: var(--bs-secondary);
    border: 0;
}

/*** Footer End ***/


/*** Mobile Responsive Start ***/

@media (max-width: 576px) {

    /* Logo */
    .navbar-brand img { height: 75px !important; }
    .footer img { height: 75px !important; }

    /* Carousel */
    .carousel-item { height: 420px; }
    .carousel-caption h1 { font-size: 22px !important; }
    .carousel-caption p { font-size: 13px !important; }
    .carousel-caption .carousel-content { padding: 0 10px; }
    .carousel-caption .carousel-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    .carousel-caption .carousel-btns a { margin: 0 !important; }
    .carousel-control-prev,
    .carousel-control-next { width: 40px; }

    /* Fact counters */
    .counter h1 { font-size: 28px; }
    .counter h5 { font-size: 13px; }

    /* Service icons */
    .services-content-icon .fa-7x { font-size: 3rem; }

    /* Blog card negative margins */
    .blog-btn { margin-top: -60px !important; }
    .blog-content { margin-top: -20px !important; }

    /* Back to top */
    .back-to-top { right: 15px; bottom: 15px; width: 40px; height: 40px; }

    /* Page header */
    .page-header h1 { font-size: 2rem; }

    /* Service detail page icon (uses .service-info-icon) */
    .service-info-icon .fa-7x { font-size: 3rem; }

    /* Project filter buttons */
    .filter-btn { padding: 6px 12px !important; font-size: 13px; }

    /* Project card images on mobile */
    .project-card img,
    .services-item > img { height: 160px !important; }

    /* BiasharaThrive logo area */
    .services-item [style*="height: 180px"],
    .services-item [style*="height: 200px"] { height: 130px !important; }

    /* Testimonial avatar stays small */
    .btn-square[style] { width: 40px !important; height: 40px !important; }

    /* Wrap buttons on small screens */
    .d-flex.gap-2.flex-wrap { gap: 6px !important; }

    /* Reduce pill button padding on xs */
    .btn.rounded-pill.px-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

    /* Badge text smaller */
    .badge { font-size: 0.65rem; }
}

@media (max-width: 768px) {
    /* Service detail: ensure info card doesn't have excess padding stacked */
    .service-info-icon { padding: 0 !important; }

    /* Featured projects image */
    .services-item img.rounded-top { height: 180px !important; }

    /* Testimonials quote text */
    .services-item .fst-italic { font-size: 0.9rem; }

    /* Projects page filter area */
    #projects-grid { row-gap: 1.5rem !important; }

    /* Service cards on list page — centre-align description */
    .services-inner .services-item p { font-size: 0.9rem; }
}

/*** Mobile Responsive End ***/


/*** Project & Service Card Improvements Start ***/

/* 1. Unscoped base card — applies everywhere .services-item is used */
.services-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .12);
    border-radius: 10px;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* overflow:hidden only where images need clipping — NOT on service-list icon cards
   (avoids clipping the ::after overlay animation on /service/ page) */
.project-card .services-item,
.service-sidebar-card {
    overflow: hidden;
}

/* 2. Hover lift — scoped to project cards only */
.project-card .services-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(79, 70, 229, .18);
}

/* 3. Badge chip style — overrides Bootstrap solid green without any HTML changes */
.badge.bg-secondary {
    background-color: rgba(16, 185, 129, .12) !important;
    color: #065f46 !important;
    border: 1px solid rgba(16, 185, 129, .35);
    font-weight: 500;
    font-size: 0.72rem;
    padding: .35em .65em;
    border-radius: 20px;
}

/* 4. Category tag overlaid on card image top-left */
.card-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .28em .7em;
    border-radius: 20px;
    pointer-events: none;
    color: #fff;
    line-height: 1.4;
}
.card-category-tag.cat-web        { background-color: rgba(79, 70, 229, .85); }
.card-category-tag.cat-automation { background-color: rgba(234, 88, 12, .85); }
.card-category-tag.cat-ussd       { background-color: rgba(124, 58, 237, .85); }
.card-category-tag.cat-mobile     { background-color: rgba(6, 182, 212, .85); }

/* 5a. Service sidebar top accent border */
.service-sidebar-card {
    border-top: 4px solid var(--bs-primary);
}

/* 5b. Service sidebar icon circle */
.service-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(79, 70, 229, .08);
    border: 2px solid rgba(79, 70, 229, .18);
    margin-bottom: 1.5rem;
}
.service-icon-circle .fa-7x {
    font-size: 3.2rem;
    margin-bottom: 0 !important;
}

/* 5c. Sidebar feature list with FA checkmarks via pseudo-element */
.service-feature-list {
    list-style: none;
    padding-left: 0;
}
.service-feature-list li {
    padding: .3rem 0 .3rem 1.75rem;
    position: relative;
}
.service-feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-secondary);
    position: absolute;
    left: 0;
    top: .35rem;
    font-size: .85rem;
}

/* 6. Card action area divider */
.card-actions {
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: .75rem;
    margin-top: .25rem;
}

/*** Project & Service Card Improvements End ***/