/* Custom animations and effects */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
        transform: scale(1.05);
    }
}

@keyframes dissolve {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
    }
}

/* Scrollbar styling */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(55, 65, 81, 0.3);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Gradient text effect */
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Focus states */
input:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}

/* Button hover effects */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

/* AI avatar pulse effect */
.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Particle effect for UI dissolution */
.dissolving {
    animation: dissolve 2s ease-in-out forwards;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 2.5rem;
    }
    
    .grid-cols-1.lg\\:grid-cols-2 > div {
        margin-bottom: 1rem;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: opacity 0.3s ease-in-out;
}

/* Loading state styles */
.thinking {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.3) 50%, rgba(139, 92, 246, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced glow effects */
.glow-ai {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.glow-ai:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}