@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text-container {
    position: relative;
    margin: 1rem auto;
    display: flex;
    max-width: fit-content;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur;
    transition: shadow 0.5s;
    overflow: hidden;
    cursor: pointer;
    font-size: 1.25rem;
}

.gradient-border {
    position: absolute;
    inset: 0;
    background-size: 300% 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-border-inner {
    position: absolute;
    inset: 0;
    background-color: #fff;
    border-radius: 1.25rem;
    z-index: -1;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.gradient-text {
    display: inline-block;
    position: relative;
    z-index: 2;
    color: transparent;
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.animate-gradient {
    animation: gradient var(--animation-duration, 8s) linear infinite;
}