/* 3. Cursor Spotlight */
#cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: opacity 0.3s;
}

/* 5. Liquid Morphing Blobs */
.liquid-blob {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15));
    filter: blur(45px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 15s ease-in-out infinite alternate, spinBlob 25s linear infinite;
    pointer-events: none;
    z-index: -2;
    transform-origin: center;
    mix-blend-mode: screen;
    will-change: filter, transform, border-radius;
}
@keyframes morphBlob {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes spinBlob {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 7. AI Thinking Glow */
.ai-thinking {
    animation: breathingGlow 1.5s ease-in-out infinite alternate !important;
}
@keyframes breathingGlow {
    0% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.3), inset 0 0 10px rgba(168, 85, 247, 0.2); }
    100% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.9), inset 0 0 20px rgba(168, 85, 247, 0.6); border-color: rgba(168, 85, 247, 1); }
}

/* 2. Glassmorphism Dynamic Glare */
.glass-glare {
    position: relative;
    overflow: hidden;
}
.glass-glare::before {
    content: '';
    position: absolute;
    top: var(--y, 0);
    left: var(--x, 0);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.2s;
}

/* Base styles for magnetic & tiltable */
.magnetic {
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.tiltable {
    transition: transform 0.1s;
    will-change: transform;
}
