/* ========================================
   NOW2CODE — CSS Animations & Keyframes
   DARK PREMIUM THEME (Stripe / Linear vibe)
   ======================================== */

/* === Pulse (Badge dot) === */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* === Glow Pulse (Hero image glow) === */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* === Floating Badge Animations === */
@keyframes floatBadge1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(1deg);
    }
    50% {
        transform: translateY(-6px) rotate(-0.5deg);
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

@keyframes floatBadge2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(-1deg);
    }
    66% {
        transform: translateY(-18px) rotate(0.5deg);
    }
}

@keyframes floatBadge3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    20% {
        transform: translateY(-8px) rotate(0.5deg);
    }
    60% {
        transform: translateY(-14px) rotate(-1deg);
    }
    80% {
        transform: translateY(-5px) rotate(0.5deg);
    }
}

/* === Grid Pattern Fade === */
@keyframes gridFade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* === Border Glow (card hover) === */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(99, 102, 241, 0.2);
    }
    50% {
        border-color: rgba(99, 102, 241, 0.4);
    }
}


/* === Split Text Overflow Wrapper === */
.line-wrapper {
    overflow: hidden;
    display: block;
}


/* === Focus Styles === */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}


/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero__badge-dot::after {
        animation: none !important;
    }

    .hero__orb {
        opacity: 0.2 !important;
    }

    .hero__float-badge {
        animation: none !important;
    }

    .hero__image-glow {
        animation: none !important;
    }

    .hero__grid-pattern {
        animation: none !important;
    }
}
