/* Advanced Animations */

/* Gradient Animations */
.gradient-animate {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card Hover Effects */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.3),
        0 15px 12px rgba(139, 92, 246, 0.22);
}

/* Glow Animations */
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(139, 92, 246, 0.5),
            0 0 10px rgba(139, 92, 246, 0.5),
            0 0 15px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(139, 92, 246, 0.8),
            0 0 20px rgba(139, 92, 246, 0.8),
            0 0 30px rgba(139, 92, 246, 0.8);
    }
}

/* Text Animations */
.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--primary-purple) 0%,
        var(--neon-purple) 25%,
        var(--gold) 50%,
        var(--neon-purple) 75%,
        var(--primary-purple) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Orbit Animation - Disabled to prevent scrolling issues */
.orbit-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    /* Animation disabled to prevent scrolling */
}

.orbit-1 {
    width: 100%;
    height: 100%;
}

.orbit-2 {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
}

.planet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    top: -5px;
    left: calc(50% - 5px);
}

/* Particle Effects */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat 4s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* Wave Animation */
.wave {
    animation: wave 2s linear infinite;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(9deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Bounce Animation */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Slide Animations */
.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scale Animation */
.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Flip Animation */
.flip-in {
    animation: flipIn 0.6s ease-out;
}

@keyframes flipIn {
    from {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0);
        opacity: 1;
    }
}

/* Loading Dots */
.loading-dots {
    display: inline-flex;
    gap: 0.25rem;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-purple);
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0; }

@keyframes loadingDot {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Navigation Menu Entrance Animation */
.navigation-menu {
    animation: menuSlideDown 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes menuSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tab Sequential Animation */
.nav-tab {
    animation: tabFadeIn 0.5s ease-out backwards;
}

.nav-tab:nth-child(1) { animation-delay: 0.1s; }
.nav-tab:nth-child(2) { animation-delay: 0.2s; }
.nav-tab:nth-child(3) { animation-delay: 0.3s; }
.nav-tab:nth-child(4) { animation-delay: 0.4s; }
.nav-tab:nth-child(5) { animation-delay: 0.5s; }
.nav-tab:nth-child(6) { animation-delay: 0.6s; }

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Floating Background Animation */
.navigation-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent
    );
    animation: backgroundWave 8s linear infinite;
    pointer-events: none;
}

@keyframes backgroundWave {
    from { left: -100%; }
    to { left: 100%; }
}

/* Hover Bubble Effect */
.nav-tab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 215, 0, 0.1),
        transparent 70%
    );
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.nav-tab:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}