/* ===== ADVANCED ANIMATIONS ===== */

/* Predator Pulse Animation */
@keyframes predatorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

.predator-pulse {
    animation: predatorPulse 3s ease-in-out infinite;
}

/* Ocean Wave Animation */
@keyframes oceanWave {
    0% {
        transform: translateX(-100%) translateY(0);
    }
    50% {
        transform: translateX(0) translateY(-10px);
    }
    100% {
        transform: translateX(100%) translateY(0);
    }
}

.ocean-wave {
    animation: oceanWave 4s ease-in-out infinite;
}

/* Neural Network Pulse */
@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.neural-pulse {
    animation: neuralPulse 2s ease-in-out infinite;
}

/* Data Stream Animation */
@keyframes dataStream {
    0% {
        transform: translateY(100vh) translateX(-50%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(-50%);
        opacity: 0;
    }
}

.data-stream {
    animation: dataStream 3s linear infinite;
}

/* Predator Hunt Animation */
@keyframes predatorHunt {
    0% {
        transform: translateX(-100px) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(100px) rotate(10deg);
        opacity: 0;
    }
}

.predator-hunt {
    animation: predatorHunt 5s ease-in-out infinite;
}

/* Glow Intensity Animation */
@keyframes glowIntensity {
    0%, 100% {
        filter: drop-shadow(0 0 5px var(--electric-blue));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--electric-blue)) drop-shadow(0 0 30px var(--gold));
    }
}

.glow-intensity {
    animation: glowIntensity 2s ease-in-out infinite;
}

/* Market Volatility Animation */
@keyframes marketVolatility {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(5px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.market-volatility {
    animation: marketVolatility 1.5s ease-in-out infinite;
}

/* Apex Predator Entrance */
@keyframes apexEntrance {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: scale(1.1) translateY(-10px);
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.apex-entrance {
    animation: apexEntrance 1.2s ease-out forwards;
}

/* Deep Ocean Depth Animation */
@keyframes deepOcean {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.deep-ocean {
    background: linear-gradient(45deg, var(--primary-navy), var(--deep-blue), var(--ocean-blue));
    background-size: 400% 400%;
    animation: deepOcean 8s ease-in-out infinite;
}

/* AI Processing Animation */
@keyframes aiProcessing {
    0% {
        transform: rotate(0deg);
        border-color: var(--electric-blue);
    }
    25% {
        border-color: var(--gold);
    }
    50% {
        transform: rotate(180deg);
        border-color: var(--electric-blue);
    }
    75% {
        border-color: var(--gold);
    }
    100% {
        transform: rotate(360deg);
        border-color: var(--electric-blue);
    }
}

.ai-processing {
    animation: aiProcessing 3s linear infinite;
}

/* Predatory Focus Animation */
@keyframes predatoryFocus {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        border-radius: 30%;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        border-radius: 20%;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        border-radius: 30%;
    }
}

.predatory-focus {
    animation: predatoryFocus 4s ease-in-out infinite;
}

/* Financial Dominance Animation */
@keyframes financialDominance {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.financial-dominance {
    animation: financialDominance 6s ease-in-out infinite;
}

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

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.hover-glow {
    transition: filter 0.3s ease;
}

.hover-glow:hover {
    filter: drop-shadow(0 0 20px var(--electric-blue));
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Scroll-triggered Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-slide-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.scroll-slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scroll-scale-up.animate {
    opacity: 1;
    transform: scale(1);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-up {
    animation: countUp 0.6s ease-out forwards;
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: var(--electric-blue);
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--electric-blue);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Particle System Animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--electric-blue);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(2) { animation-delay: 1s; }
.particle:nth-child(3) { animation-delay: 2s; }
.particle:nth-child(4) { animation-delay: 3s; }
.particle:nth-child(5) { animation-delay: 4s; }

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top: 4px solid var(--electric-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Progress Bar Animation */
@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: var(--progress-width, 100%);
    }
}

.progress-bar {
    animation: progressFill 2s ease-out forwards;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Morphing Animation */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morphing-shape {
    animation: morph 8s ease-in-out infinite;
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s linear;
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s ease;
}

.magnetic-hover:hover {
    transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) scale(1.05);
}

/* Parallax Scroll Effect */
.parallax-element {
    transform: translateY(var(--scroll-y, 0));
    transition: transform 0.1s ease-out;
}

/* Intersection Observer Animations */
.observe-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.observe-fade.in-view {
    opacity: 1;
}

.observe-slide {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.observe-slide.in-view {
    transform: translateY(0);
    opacity: 1;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .predator-pulse,
    .ocean-wave,
    .neural-pulse,
    .data-stream,
    .predator-hunt,
    .glow-intensity,
    .market-volatility,
    .deep-ocean,
    .ai-processing,
    .predatory-focus,
    .financial-dominance,
    .particle,
    .spinner,
    .morphing-shape {
        animation: none;
    }
    
    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }
    
    .scroll-fade-in,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-scale-up {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

