﻿body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Shared card animation */
#products .akp-motion-card,
#services .akp-motion-card,
#clients .akp-motion-card,
#team .akp-motion-card,
#blog .akp-motion-card {
    position: relative;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

/* Card icons */
.akp-motion-icon {
    transition: transform 300ms ease, background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}

/* Product, service and blog headings */
.akp-motion-title {
    transition: color 250ms ease;
}

/* Team avatar */
.akp-motion-avatar {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

/* CTA arrows */
#home a svg,
#products a svg {
    transition: transform 250ms ease;
}

/* Keep focus interactions visible */
.akp-motion-card:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 16px 35px -18px rgba(37, 99, 235, 0.3);
}

/* Hover animations only on devices with a hover-capable pointer */
@media (hover: hover) and (pointer: fine) {
    #products .akp-motion-card:hover,
    #services .akp-motion-card:hover,
    #clients .akp-motion-card:hover,
    #team .akp-motion-card:hover,
    #blog .akp-motion-card:hover {
        transform: translateY(-7px);
        border-color: #93c5fd;
        box-shadow: 0 22px 45px -22px rgba(37, 99, 235, 0.35), 0 8px 18px -14px rgba(15, 23, 42, 0.15);
    }

    .akp-motion-card:hover .akp-motion-icon {
        transform: translateY(-3px) rotate(-5deg) scale(1.06);
    }

    .akp-motion-card:hover .akp-motion-title {
        color: #2563eb;
    }

    .akp-motion-card:hover .akp-motion-avatar {
        transform: translateY(-4px) scale(1.07);
        box-shadow: 0 12px 24px -10px rgba(37, 99, 235, 0.5);
    }

    #home a:hover svg,
    #products a:hover svg {
        transform: translateX(4px);
    }

    #home a {
        transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease, border-color 250ms ease, color 250ms ease;
    }

        #home a:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 24px -14px rgba(37, 99, 235, 0.55);
        }
}

/* Animate the card inside a Swiper slide, not the slide itself */
#clients .swiper,
#team .swiper {
    padding-top: 12px;
    padding-bottom: 28px;
}

/* Scroll entrance animation */
.akp-reveal-pending {
    opacity: 0;
    transform: translateY(22px);
}

.akp-reveal-enter {
    animation: akpRevealUp 600ms ease both;
    animation-delay: var(--akp-reveal-delay, 0ms);
}

@keyframes akpRevealUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    #home *,
    #products *,
    #services *,
    #clients *,
    #team *,
    #blog * {
        animation: none !important;
        transition: none !important;
    }

    .akp-reveal-pending,
    .akp-reveal-enter {
        opacity: 1 !important;
        transform: none !important;
    }
}

#services a svg {
    transition: transform 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
    #services a:hover svg {
        transform: translateX(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #services a svg {
        transition: none !important;
        transform: none !important;
    }
}
/* Room for the raised center card and its shadow */
#clients .testimonialSwiper,
#team .teamSwiper {
    padding: 38px 8px 58px;
}

#clients .swiper-wrapper,
#team .swiper-wrapper {
    align-items: stretch;
}

#clients .swiper-slide,
#team .swiper-slide {
    display: flex;
    height: auto;
    position: relative;
    z-index: 1;
}

#clients .swiper-slide-active,
#team .swiper-slide-active {
    z-index: 3;
}

/* Side cards: normal state */
#clients .swiper-slide > div,
#team .swiper-slide > div {
    flex: 1;
    width: 100%;
    min-width: 0;
    transform: scale(0.94);
    transform-origin: center center;
    border-color: #e2e8f0;
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.2);
    transition: transform 550ms ease, box-shadow 550ms ease, border-color 550ms ease;
}

    /* Disable the old card hover lift inside these sliders */
    #clients .swiper-slide > div:hover,
    #team .swiper-slide > div:hover {
        transform: scale(0.94);
        border-color: #e2e8f0;
        box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.2);
    }

/* Center card: larger, raised, and visually in front */
#clients .swiper-slide-active > div,
#clients .swiper-slide-active > div:hover,
#team .swiper-slide-active > div,
#team .swiper-slide-active > div:hover {
    transform: translateY(-12px) scale(1.04);
    border-color: #60a5fa;
    box-shadow: 0 26px 42px -20px rgba(37, 99, 235, 0.45), 0 10px 20px -12px rgba(15, 23, 42, 0.2);
}

/* Pagination */
#clients .swiper-pagination,
#team .swiper-pagination {
    bottom: 5px;
}

#clients .swiper-pagination-bullet,
#team .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px;
    border-radius: 999px;
    background: #cbd5e1;
    opacity: 1;
    transition: width 250ms ease, background-color 250ms ease;
}

#clients .swiper-pagination-bullet-active,
#team .swiper-pagination-bullet-active {
    width: 24px;
    background: #2563eb;
}

/* Fractional rating stars */
.akp-rating {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.akp-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.akp-rating-star {
    position: relative;
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

    .akp-rating-star svg {
        display: block;
        width: 16px;
        height: 16px;
    }

.akp-rating-star-base {
    color: #cbd5e1;
}

.akp-rating-star-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    overflow: hidden;
    color: #f59e0b;
}

.akp-rating-number {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    #clients .swiper-slide > div,
    #team .swiper-slide > div {
        transition: none !important;
    }
}
