/* Advanced Visual Effects */

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(0, 245, 255, 0.15) 0%,
        rgba(0, 245, 255, 0.05) 30%,
        transparent 70%
    );
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-purple), var(--color-accent-green));
    z-index: 10000;
    box-shadow:
        0 0 10px var(--color-accent-cyan),
        0 0 20px var(--color-accent-cyan);
    transition: width 0.1s ease-out;
}

/* Floating Orbs */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--x-start);
    top: var(--y-start);
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 245, 255, 0.1),
        rgba(184, 41, 255, 0.05) 50%,
        transparent 70%
    );
    filter: blur(40px);
    animation: floatOrb var(--duration) ease-in-out var(--delay) infinite;
}

.floating-orb:nth-child(2) {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(184, 41, 255, 0.1),
        rgba(0, 245, 255, 0.05) 50%,
        transparent 70%
    );
}

.floating-orb:nth-child(3) {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 255, 136, 0.08),
        rgba(0, 245, 255, 0.04) 50%,
        transparent 70%
    );
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(100px, -50px) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: translate(50px, 100px) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translate(-50px, 50px) scale(1.05);
        opacity: 0.2;
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.glitch-text.glitching::before {
    opacity: 0.4;
    color: var(--color-accent-purple);
    animation: glitch-1 2s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text.glitching::after {
    opacity: 0.4;
    color: var(--color-accent-green);
    animation: glitch-2 2.5s ease-in-out infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    50% {
        transform: translate(-2px, 1px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    50% {
        transform: translate(2px, -1px);
    }
}

/* Text Scramble Characters */
.scramble-char {
    color: var(--color-accent-purple);
    opacity: 0.8;
}

/* Neural Network Canvas */
.neural-network-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

/* Feature Card - Clean styling (animated gradient border removed for executive audience) */
.feature-card {
    position: relative;
    background: var(--glass-bg);
    z-index: 1;
}

/* Magnetic Button Transform Override */
.cta-primary {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease !important;
}

/* Tilt Card Styles - only for stat items now */
.stat-item {
    transform-style: preserve-3d;
}

/* Particle styles handled by JS but we can add hover states */
.cta-primary:active {
    transform: scale(0.98) !important;
}

/* Tech Visual Container for Neural Network */
.tech-visual {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

/* Enhanced Testimonial Card */
.testimonial-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px var(--glow-cyan);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cursor-glow,
    .floating-orb {
        display: none;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }

    .feature-card::before {
        animation: none;
    }

    .scroll-progress {
        transition: none;
    }
}
