/* Custom styles adapted from peru-example */

body {
    font-family: 'Inter', sans-serif;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* --- Button Animations --- */

/* Option 1: Pulse Scale */
@keyframes pulse-scale {
    0% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3); }
    100% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2); }
}

.btn-anim-pulse {
    animation: pulse-scale 2s infinite ease-in-out;
}

/* Option 2: Running Border */
.btn-anim-border {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none !important; /* Override default borders */
}

/* The spinning gradient background */
.btn-anim-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 90deg,
        #3b82f6 180deg, /* Blue tail */
        #60a5fa 270deg, /* Light blue head */
        transparent 360deg
    );
    animation: border-spin 4s linear infinite;
    z-index: -2;
}

/* The inner background to cover the center and create the "border" effect */
.btn-anim-border::after {
    content: '';
    position: absolute;
    inset: 3px; /* Thickness of the border */
    background: #0f172a; /* Matches slate-900 */
    border-radius: inherit; /* Inherit rounded-2xl */
    z-index: -1;
}

@keyframes border-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}