/* ============================================================
   KEDLLON SOLUTIONS — animations.css
   Keyframes e animações do tema
   ============================================================ */

/* ── KEYFRAMES ───────────────────────────────────────────────── */

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.97);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.2;
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(123, 0, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(123, 0, 255, 0.7);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── HERO ANIMAÇÕES ───────────────────────────────────────────── */

/* Entrada do hero content */
.ks-hero .ks-hero__content {
    animation: fadeInUp 0.9s ease both;
}

.ks-hero .ks-hero__visual {
    animation: scaleIn 1s ease 0.3s both;
}

/* Texto gradiente animado no hero */
.ks-hero__title .ks-text-gradient {
    background: linear-gradient(270deg, #7B00FF, #b800ff, #5500cc, #7B00FF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* ── HEADER ANIMAÇÕES ─────────────────────────────────────────── */

/* Fade in header ao carregar */
.ks-header {
    animation: fadeIn 0.5s ease both;
}

/* ── BOTÃO: ripple effect ─────────────────────────────────────── */
.ks-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    border-radius: inherit;
    transition: background 0.3s;
}

.ks-btn:active::after {
    background: rgba(255, 255, 255, 0.1);
}

/* ── NUMBER COUNTER ─────────────────────────────────────────── */
.ks-number-item {
    animation: fadeInUp 0.7s ease both;
}

.ks-number-item:nth-child(1) {
    animation-delay: 0.0s;
}

.ks-number-item:nth-child(2) {
    animation-delay: 0.1s;
}

.ks-number-item:nth-child(3) {
    animation-delay: 0.2s;
}

.ks-number-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* ── HOVER: card 3D tilt (via JS) ────────────────────────────── */
.ks-service-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ── LOADING SPINNER (para submit form) ──────────────────────── */
.ks-btn--loading .ks-btn__text {
    opacity: 0;
}

.ks-btn--loading::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.ks-mobile-menu__link {
    animation: slideInLeft 0.35s ease both;
}

.ks-mobile-menu__list li:nth-child(1) .ks-mobile-menu__link {
    animation-delay: 0.05s;
}

.ks-mobile-menu__list li:nth-child(2) .ks-mobile-menu__link {
    animation-delay: 0.10s;
}

.ks-mobile-menu__list li:nth-child(3) .ks-mobile-menu__link {
    animation-delay: 0.15s;
}

.ks-mobile-menu__list li:nth-child(4) .ks-mobile-menu__link {
    animation-delay: 0.20s;
}

.ks-mobile-menu__list li:nth-child(5) .ks-mobile-menu__link {
    animation-delay: 0.25s;
}

.ks-mobile-menu__list li:nth-child(6) .ks-mobile-menu__link {
    animation-delay: 0.30s;
}

.ks-mobile-menu__list li:nth-child(7) .ks-mobile-menu__link {
    animation-delay: 0.35s;
}

/* ── STACK ITEMS ─────────────────────────────────────────────── */
.ks-stack__item {
    will-change: transform;
}

/* ── SHIMMER NO BADGE ─────────────────────────────────────────── */
.ks-badge--purple .ks-badge__dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ── BACKGROUND GRADIENT HERO BORDER ─────────────────────────── */
.ks-hero__avatar {
    animation: borderGlow 3s ease-in-out infinite;
}

/* ── SCROLL SMOOTH SECTION REVEAL ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ks-reveal {
        opacity: 1;
        transform: none;
    }
}