/* Futuristic Effects CSS */

/* Keyframe Animations */

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--glow-primary);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.8), 0 0 60px rgba(0, 240, 255, 0.5), 0 0 90px rgba(0, 240, 255, 0.3);
        opacity: 0.9;
    }
}

/* Text Glow Pulse */
@keyframes textGlow {
    0%, 100% {
        text-shadow: var(--glow-text);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 240, 255, 1), 0 0 30px rgba(0, 240, 255, 0.8), 0 0 45px rgba(0, 240, 255, 0.6);
    }
}

/* Neon Border Pulse */
@keyframes borderPulse {
    0%, 100% {
        border-color: var(--border-color);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    }
    50% {
        border-color: var(--border-color-hover);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.4);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 3D Rotate */
@keyframes rotate3d {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Particle Animation */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.8), transparent);
    pointer-events: none;
    z-index: 9999;
    animation: trailFade 0.5s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Glassmorphism Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

/* Neon Glow Text */
.neon-text {
    color: var(--primary-color);
    text-shadow: var(--glow-text);
    animation: textGlow 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

/* Glowing Border */
.neon-border {
    border: 2px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    animation: borderPulse 2s ease-in-out infinite;
}

/* Hover Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

/* Pulse Effect */
.pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Float Effect */
.float {
    animation: float 6s ease-in-out infinite;
}

/* 3D Card Container */
.card-3d-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-3d {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* Animated Background Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.gradient-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

/* Staggered Animation */
.stagger-item {
    opacity: 0;
    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; }

/* Loading Spinner */
.futuristic-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 240, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(
        45deg,
        rgba(0, 240, 255, 0.1),
        rgba(176, 38, 255, 0.1),
        rgba(0, 255, 136, 0.1)
    );
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    position: relative;
    overflow: hidden;
}

.holographic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}
