@keyframes infinite-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-infinite-scroll {
    animation: infinite-scroll 30s linear infinite;
}

.grid-bg {
    background-image:
        linear-gradient(#f1f5f9 1px, transparent 1px),
        linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
    background-size: 50px 50px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card,
.benefit-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(27, 75, 138, 0.08);
    border-color: rgba(43, 188, 212, 0.3);
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.custom-options.show {
    display: block;
}

.custom-option {
    padding: 12px 16px;
    transition: background 0.2s;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
}

.custom-option:hover {
    background: #f1f5f9;
    color: #0F3D7A;
}

/* Gentle Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FAQ Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #14B8A6;
}

.faq-item.active {
    border-color: #14B8A6;
    background-color: #f8fafc;
}

/* ===============================
   GLOBAL PAGE SIDE MARGINS
=============================== */

/* Desktop */
.container {
    max-width: 1280px !important;
    margin-left: auto;
    margin-right: auto;

    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Large Desktop */
@media (min-width: 1536px) {

    .container {
        max-width: 1400px !important;

        padding-left: 40px !important;
        padding-right: 40px !important;
    }

}

/* Tablet */
@media (max-width: 1024px) {

    .container {

        padding-left: 20px !important;
        padding-right: 20px !important;

    }

}

/* Mobile */
@media (max-width: 768px) {

    .container {

        padding-left: 16px !important;
        padding-right: 16px !important;

    }

}

/* Small Mobile */
@media (max-width: 480px) {

    .container {

        padding-left: 14px !important;
        padding-right: 14px !important;

    }

}

.map-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #14B8A6;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    animation: pulseDot 2s infinite;
}

.map-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(20, 184, 166, 0.4);
    animation: ripple 2s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.4);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.lottie-bg {

    width: 420px;
    height: 420px;

    opacity: 0.08;

    animation: floatLottie 8s ease-in-out infinite;

}

/* Floating motion */

@keyframes floatLottie {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

}


/* Responsive */

@media (min-width: 768px) {

    .lottie-bg {
        width: 520px;
        height: 520px;
    }

}

@media (min-width: 1024px) {

    .lottie-bg {
        width: 620px;
        height: 620px;
    }

}


.option-btn {

    width: 100%;

    /* Smaller height */
    padding: 8px 12px;

    /* Smaller text */
    font-size: 13px;

    font-weight: 600;

    border-radius: 12px;

    background: #f1f5f9;

    color: #0F3D7A;

    text-align: left;

    transition: 0.2s;

    /* Reduce vertical spacing */
    line-height: 1.2;

}

/* Hover */
.option-btn:hover {

    background: linear-gradient(to right,
            #0F3D7A,
            #14B8A6);

    color: white;

}

/* ===============================
   PREMIUM FINTECH UI SYSTEM
=============================== */

/* Base Scaling */
html {
    font-size: 15px;
}

body {
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ===============================
   PREMIUM TYPOGRAPHY
=============================== */

h1 {
    font-size: clamp(2.3rem, 4vw, 3rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem) !important;
    font-weight: 600 !important;
}

h3 {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
}

p {
    font-size: 0.95rem !important;
    color: #64748b;
}

/* ===============================
   NAVBAR PREMIUM STYLE
=============================== */

nav {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    backdrop-filter: blur(16px);
}

/* ===============================
   PREMIUM BUTTONS
=============================== */

button,
a[class*="px-"] {

    font-size: 0.95rem !important;

    padding: 0.75rem 1.5rem !important;

    border-radius: 12px !important;

    transition: all 0.25s ease;
}

/* Primary Button */

.bg-navy {

    box-shadow: 0 6px 16px rgba(27, 75, 138, 0.15);
}

.bg-navy:hover {

    transform: translateY(-1px);

    box-shadow: 0 10px 25px rgba(27, 75, 138, 0.25);
}

/* ===============================
   PREMIUM CARD STYLE
=============================== */

.service-card,
.benefit-card {

    padding: 1.6rem !important;

    border-radius: 18px !important;

    transition: all 0.25s ease;

    border: 1px solid #e2e8f0;

}

.service-card:hover,
.benefit-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);

}

/* ===============================
   SECTION SPACING
=============================== */

section {

    padding-top: 90px !important;

    padding-bottom: 90px !important;

}

/* ===============================
   PREMIUM FORM STYLE
=============================== */

input {

    border-radius: 12px !important;

    padding: 0.75rem 1rem !important;

    font-size: 0.95rem !important;

    background: #f8fafc;

}

input:focus {

    background: white;

    border-color: #2BBCD4;

    box-shadow: 0 0 0 3px rgba(43, 188, 212, 0.15);

}

/* ===============================
   HERO IMAGE STYLE
=============================== */

img {

    border-radius: 20px;

}

/* ===============================
   PREMIUM ICON SIZE
=============================== */

svg {

    width: 18px !important;

    height: 18px !important;

}

/* ===============================
   PREMIUM SHADOWS
=============================== */

.shadow-lg {

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;

}

.shadow-xl {

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08) !important;

}

/* ===============================
   MOBILE PREMIUM FIX
=============================== */

@media (max-width: 768px) {

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    section {

        padding-top: 60px !important;

        padding-bottom: 60px !important;

    }

}

/* LOGO PARTNER SLIDER ANIMATION */
@keyframes logo-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }
}

.logo-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: transparent;
}

.logo-slider-container::before,
.logo-slider-container::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider-container::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.logo-slider-container::before {
    left: 0;
    top: 0;
}

.logo-slider-track {
    display: flex;
    width: calc(250px * 14);
    animation: logo-scroll 30s linear infinite;
}

.logo-slider-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logo-slide img {
    max-width: 100%;
    max-height: 45px;
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-slide img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .logo-slide {
        width: 180px;
    }

    .logo-slider-track {
        width: calc(180px * 14);
    }

    @keyframes logo-scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-180px * 7));
        }
    }

    .logo-slider-container::before,
    .logo-slider-container::after {
        width: 60px;
    }
}