@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.8)
    }
    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg)
    }
    to {
        opacity: 1;
        transform: rotate(0)
    }
}

@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgb(0 212 255 / .3)
    }
    50% {
        box-shadow: 0 0 40px rgb(0 212 255 / .6)
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }
    50% {
        transform: scale(1.05);
        opacity: .8
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0
    }
    100% {
        background-position: 1000px 0
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-10px)
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }
    to {
        transform: rotate(360deg)
    }
}

@keyframes slideInBlur {
    from {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(10px)
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0)
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

@keyframes textGlow {
    0%,
    100% {
        text-shadow: 0 0 10px rgb(0 212 255 / .5)
    }
    50% {
        text-shadow: 0 0 20px rgb(0 212 255 / .8), 0 0 30px rgb(0 212 255 / .6)
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out forwards
}

.animate-glow {
    animation: glow 2s ease-in-out infinite
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite
}

.animate-spin {
    animation: spin 1s linear infinite
}

.stagger-1 {
    animation-delay: 0.1s
}

.stagger-2 {
    animation-delay: 0.2s
}

.stagger-3 {
    animation-delay: 0.3s
}

.stagger-4 {
    animation-delay: 0.4s
}

.stagger-5 {
    animation-delay: 0.5s
}

.stagger-6 {
    animation-delay: 0.6s
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgb(0 0 0 / .3)
}

.hover-glow {
    transition: box-shadow 0.3s ease
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgb(0 212 255 / .5)
}

.hover-scale {
    transition: transform 0.3s ease
}

.hover-scale:hover {
    transform: scale(1.05)
}

.hover-rotate {
    transition: transform 0.3s ease
}

.hover-rotate:hover {
    transform: rotate(5deg)
}

.hover-shine {
    position: relative;
    overflow: hidden
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .3), transparent);
    transition: left 0.5s ease
}

.hover-shine:hover::before {
    left: 100%
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0)
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgb(0 212 255 / .1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s
}

.animated-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #00d4ff, #0066ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite
}

.text-glitch {
    position: relative
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.text-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #00d4ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse
}

.text-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 31px, 0)
    }
    20% {
        clip: rect(70px, 9999px, 71px, 0)
    }
    40% {
        clip: rect(60px, 9999px, 130px, 0)
    }
    60% {
        clip: rect(10px, 9999px, 105px, 0)
    }
    80% {
        clip: rect(40px, 9999px, 20px, 0)
    }
    100% {
        clip: rect(25px, 9999px, 40px, 0)
    }
}

.typing-text {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: #fff0
    }
    50% {
        border-color: var(--primary)
    }
}

.gpu-accelerate {
    transform: translateZ(0);
    will-change: transform
}

@media (prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms!important;
        animation-iteration-count: 1!important;
        transition-duration: 0.01ms!important
    }
}