/* ==========================================================================
   ALPHADEFEND SECURITY - FUTURISTIC CYBERPUNK STYLESHEET
   ========================================================================== */

:root {
    --neon-purple: #8b5cf6;
    --neon-purple-dim: #7c3aed;
    --neon-glow: rgba(139, 92, 246, 0.45);
    --neon-cyan: #06b6d4;
    --neon-cyan-dim: #0891b2;
    --neon-cyan-glow: rgba(6, 182, 212, 0.4);
    --neon-emerald: #10b981;
    --neon-crimson: #ef4444;
    --cyber-black: #05050a;
    --cyber-darker: #080811;
    --cyber-card: #121224;
    --cyber-surface: #181830;
    --cyber-border: #2a2254;
}

/* Base resets & typography */
body {
    background-color: var(--cyber-black);
    color: #e2e8f0;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.font-mono-code {
    font-family: 'JetBrains Mono', monospace;
}

/* Cyber Matrix Grid Background */
.cyber-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(18, 18, 36, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.glass-panel-hover {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
    background: rgba(24, 24, 48, 0.88);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.28), inset 0 0 15px rgba(139, 92, 246, 0.12);
    transform: translateY(-4px);
}

.glass-nav {
    background: rgba(5, 5, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.22);
}

/* Glow Effects */
.neon-border-purple {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
}

.neon-text-glow {
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.7), 0 0 28px rgba(124, 58, 237, 0.45);
}

.neon-cyan-glow {
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
}

.neon-btn-glow:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6), 0 0 45px rgba(6, 182, 212, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #05050a;
}

::-webkit-scrollbar-thumb {
    background: #2a2254;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Radar Sweep Animation */
.radar-sweep-beam {
    background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(139, 92, 246, 0.25) 330deg, rgba(6, 182, 212, 0.85) 360deg);
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-radar-sweep {
    animation: radarSweep 3.2s linear infinite;
}
/* Chat Bot & Widget Custom Animations & Styles */
@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-modal-enter {
    animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-bubble-bot {
    background: rgba(26, 20, 50, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(8px);
}

.chat-bubble-user {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(91, 33, 182, 0.95));
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

/* Typing indicator dots */
@keyframes typingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-purple);
    display: inline-block;
    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; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

/* Modal Backdrop Blur */
.modal-backdrop {
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Toast Notification Animation */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-animate-in {
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chat Modal Window (professional glass) */
.glass-modal {
    background: rgba(10, 10, 22, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Floating chat trigger subtle glow pulse */
#chat-trigger-btn {
    animation: chatTriggerGlow 3s ease-in-out infinite;
}

@keyframes chatTriggerGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), 0 0 50px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 35px rgba(139, 92, 246, 0.75), 0 0 70px rgba(6, 182, 212, 0.35); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #chat-trigger-btn { animation: none; }
    .chat-modal-enter { animation: none; }
}
