/* Premium CSS Keyframe Animations */

@keyframes float-slow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes float-medium {
    0% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) scale(1.05) rotate(-90deg);
    }
    100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes draw-path {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animations Classes */
.animate-float-1 {
    animation: float-slow 15s infinite linear;
}

.animate-float-2 {
    animation: float-medium 10s infinite ease-in-out;
}

.animate-glow {
    animation: pulse-glow 3s infinite ease-in-out;
}

.fade-up {
    animation: slide-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Parallax Grid Hover Matrix Effect */
.interactive-hover-card {
    position: relative;
    overflow: hidden;
}

.interactive-hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(99, 102, 241, 0.08), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.interactive-hover-card:hover::before {
    opacity: 1;
}

/* Glow gradient shapes for hero background */
.hero-glow-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

[data-theme="dark"] .hero-glow-shape {
    opacity: 0.3;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -10%;
    right: 5%;
}

.hero-glow-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 10%;
    left: -5%;
}
