* {
    font-family: Poppins, sans-serif;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #002e5b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.industry-card {
    transition: transform .45s ease, opacity .6s ease;
}

.industry-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.industry-icon {
    transition: transform .45s ease;
}

.gradient-primary {
    background: linear-gradient(135deg, #002e5b 0, #1e40af 100%);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero-float {
    animation: float 4s ease-in-out infinite;
}

.tabs-section {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

.tab-btn {
    padding: 12px 28px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05);
}

.tab-btn:hover {
    background: #f1f5f9;
    color: #334155;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #002e5b;
    color: #fff;
    border-color: #002e5b;
    box-shadow: 0 10px 15px -3px rgba(0, 46, 91, .3);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tab-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width:1024px) {
    .tab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {
    .tabs-nav {
        gap: .5rem;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: .85rem;
        flex: 1;
        justify-content: center;
        white-space: nowrap;
    }

    .tab-grid {
        grid-template-columns: 1fr;
    }

    .tab-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

@keyframes blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes gradient-xy {

    0%,
    100% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-xy {
    animation: gradient-xy 15s ease infinite;
}

@keyframes scroll-y {
    0% {
        transform: translateY(0);
    }

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

.testimonial-column {
    animation: scroll-y 60s linear infinite;
}

.testimonial-column.reverse {
    animation-direction: reverse;
}

.testimonial-column:hover {
    animation-play-state: paused;
}

.review-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    transition: all .3s ease;
}

.review-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .15);
    transform: translateY(-2px);
}

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

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

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

    100% {
        transform: translateX(0);
    }
}

.client-track {
    display: flex;
    width: max-content;
    padding: 1rem 0;
}

.animate-scroll-left {
    animation: scroll-left 40s linear infinite;
}

.animate-scroll-right {
    animation: scroll-right 40s linear infinite;
}

.client-track:hover {
    animation-play-state: paused;
}

.client-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 160px;
    min-height: 5.75rem;
    padding: 1rem 1.35rem;
    border-radius: 1.25rem;
    border: none;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    box-shadow:
        0 4px 24px -10px rgba(0, 46, 91, .14),
        0 1px 3px rgba(0, 46, 91, .05);
    filter: none;
    opacity: 1;
    transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
}

.client-logo-tile:hover {
    background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    box-shadow:
        0 22px 44px -14px rgba(0, 46, 91, .2),
        0 8px 16px -8px rgba(59, 130, 246, .12);
    transform: translateY(-4px) scale(1.02);
}

.client-logo-tile img {
    max-height: 3.25rem;
    width: auto;
    max-width: min(100%, 200px);
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (min-width:768px) {
    .client-logo-tile {
        min-width: 220px;
        min-height: 6.75rem;
        padding: 1.2rem 1.65rem;
        border-radius: 1.15rem;
    }

    .client-logo-tile img {
        max-height: 3.75rem;
        max-width: min(100%, 240px);
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    border-radius: 2.5rem;
    transition: all .5s cubic-bezier(.23, 1, .32, 1);
    box-shadow: 0 10px 30px -15px rgba(0, 46, 91, .05);
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(0, 46, 91, .15);
}

.bento-card.bg-white {
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bento-card h3 {
    letter-spacing: -.03em;
}

@keyframes gradient-slow {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.animate-gradient-slow {
    background-size: 200% 200%;
    animation: gradient-slow 15s ease infinite;
}

.hero-slide:first-child .hero-slider-image {
    object-fit: cover !important;
    object-position: center 78%;
    background-color: #fff8df;
}

.hero-slide:not(:first-child) .hero-slider-image {
    object-fit: cover !important;
}

.hero-slide[data-active=true] .hero-animate {
    animation: heroInLeft .8s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes heroInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-in-out, visibility .8s;
    z-index: 0;
}

.hero-slide[data-active=true] {
    opacity: 1;
    visibility: visible;
    z-index: 20;
}

.hero-progress-ring {
    --hero-progress-duration: 6000ms;
    position: relative;
    width: clamp(1.5rem, 3vw, 2.25rem);
    height: 1.55rem;
    margin: 0 .35rem;
}

.hero-slider-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 9999px;
    color: #fff;
    background: rgba(0, 46, 91, .22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.hero-slider-control-button:hover {
    border-color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .2);
    transform: translateY(-1px);
}

.hero-slider-control-button i,
.hero-slider-control-button svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.5;
}

.hero-progress-ring__fill,
.hero-progress-ring__center {
    position: absolute;
    border-radius: 9999px;
}

.hero-progress-ring__fill {
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 16px rgba(255, 255, 255, .45);
    transform: translateY(-50%);
}

.hero-progress-ring__center {
    top: 50%;
    left: 0;
    width: .72rem;
    height: .72rem;
    background: #fff;
    border: 2px solid rgba(0, 46, 91, .75);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 6px 16px rgba(0, 0, 0, .18);
    transform: translate(0, -50%);
}

.hero-progress-ring::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .36);
    transform: translateY(-50%);
}

.hero-progress-ring.is-running .hero-progress-ring__fill {
    animation: heroProgressLine var(--hero-progress-duration) linear forwards;
}

.hero-progress-ring.is-running .hero-progress-ring__center {
    animation: heroProgressCircleDot var(--hero-progress-duration) linear forwards;
}

.hero-progress-ring.is-paused .hero-progress-ring__fill {
    animation-play-state: paused;
}

.hero-progress-ring.is-paused .hero-progress-ring__center {
    animation-play-state: paused;
}

@keyframes heroProgressLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes heroProgressCircleDot {
    from {
        left: 0;
    }

    to {
        left: calc(100% - .72rem);
    }
}

.hero-dot.active .dot-progress {
    width: 100% !important;
    transition: width 6s linear !important;
}

.hero-dot.active {
    transform: scale(1.25);
    background-color: rgba(255, 255, 255, .9);
    border-color: rgba(0, 46, 91, .8);
}

/* Below-the-fold sections: hint the browser for faster initial paint */
@supports (content-visibility: auto) {
    #stats-section,
    #about-section,
    #solutions-tabs,
    #why-choose-us,
    #industry-expertise,
    #testimonials,
    #clients-carousel {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }
}
