/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection Color */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: #f8fafc;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #0ea5e9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.3);
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: radial-gradient(circle, #334155 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Neon Glow Effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.glow-secondary {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Loading Animation */
.loading-pulse {
    animation: loadingPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Navigation Transition */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Image Overlay Gradient */
.img-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
}

/* Custom Form Styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Stat Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Industry Card Active State */
.industry-active {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

/* Demo Section Terminal Effect */
.terminal-text {
    font-family: 'Courier New', monospace;
    color: #10b981;
}

/* Floating Elements Animation */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Border Gradient */
.border-gradient {
    border: double 1px transparent;
    background-image: linear-gradient(#0f172a, #0f172a), linear-gradient(to right, #0ea5e9, #8b5cf6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Widget Animations */
@keyframes chatPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(14, 165, 233, 0);
    }
}

.chat-widget-bounce {
    animation: chatBounce 2s infinite;
}

@keyframes chatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Chat Message Animations */
.message-enter {
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator for chat */
.typing-dot {
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}
