/* ============================================
   NETEVOLUTION — Animations & Keyframes
   ============================================ */

/* --- Hero title typing effect --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Hero background gradient animation --- */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero--animated-bg {
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

/* --- Floating elements --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.float {
    animation: float 4s ease-in-out infinite;
}

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

/* --- Glow pulse --- */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(108, 60, 233, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(108, 60, 233, 0.4),
            0 0 60px rgba(108, 60, 233, 0.1);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* --- Line drawing animation --- */
@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* --- Counter pop effect --- */
@keyframes counterPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Card hover shine --- */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(108, 60, 233, 0.03) 45%,
            rgba(108, 60, 233, 0.05) 50%,
            rgba(108, 60, 233, 0.03) 55%,
            transparent 60%);
    transform: translateX(-100%) translateY(-100%);
    transition: none;
}

.card-shine:hover::after {
    animation: cardShine 0.8s ease-out forwards;
}

@keyframes cardShine {
    to {
        transform: translateX(50%) translateY(50%);
    }
}

/* --- Magnetic button effect --- */
.btn-magnetic {
    transition: transform 0.1s ease-out;
}

/* --- Stagger delay utilities --- */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

.delay-7 {
    animation-delay: 0.7s;
}

.delay-8 {
    animation-delay: 0.8s;
}

/* --- Hero content animation sequence --- */
.hero__badge {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__title {
    animation: fadeInUp 0.7s ease-out 0.4s both;
}

.hero__subtitle {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero__actions {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.hero__stats {
    animation: fadeInUp 0.6s ease-out 1s both;
}

.hero__visual {
    animation: fadeInRight 0.8s ease-out 0.6s both;
}

/* --- Ambient particles --- */
@keyframes particleDrift {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate(var(--drift-x, 100px), var(--drift-y, -200px)) scale(0);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-primary-light);
    opacity: 0;
    pointer-events: none;
}

.particle:nth-child(odd) {
    background: var(--color-secondary);
}

/* --- Text gradient shimmer --- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background: linear-gradient(90deg,
            var(--color-primary-light) 0%,
            var(--color-secondary) 25%,
            var(--color-primary-light) 50%,
            var(--color-secondary) 75%,
            var(--color-primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* --- Rotating border animation --- */
@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating-border {
    position: relative;
}

.rotating-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
            var(--color-primary),
            var(--color-secondary),
            var(--color-primary));
    animation: rotate360 4s linear infinite;
    z-index: -1;
}

/* --- Parallax layers --- */
@keyframes parallaxSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes parallaxFast {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }
}

/* --- Nav link underline --- */
@keyframes underlineExpand {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* --- Toast notifications --- */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .reveal-stagger>* {
        opacity: 1;
        transform: none;
    }
}