/* NUMB Services - Global Styles (Purple Dark Theme) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    /* Primary Purple Colors */
    --primary-purple: #8B5CF6;
    --primary-purple-dark: #6D28D9;
    --primary-purple-light: #A78BFA;
    --primary-purple-glow: #7C3AED;
    
    /* Accent Colors */
    --accent-violet: #8B5CF6;
    --accent-indigo: #6366F1;
    --accent-pink: #EC4899;
    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    
    /* Dark Backgrounds */
    --bg-primary: #050505;
    --bg-secondary: #0A0A0B;
    --bg-tertiary: #111113;
    --bg-card: #161618;
    --bg-hover: #1C1C1F;
    --bg-modal: rgba(5, 5, 5, 0.95);
    
    /* Purple Tinted Backgrounds */
    --bg-purple-subtle: rgba(139, 92, 246, 0.03);
    --bg-purple-hover: rgba(139, 92, 246, 0.08);
    --bg-purple-active: rgba(139, 92, 246, 0.12);
    
    /* Text Colors */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --text-disabled: #52525B;
    
    /* Border Colors */
    --border-primary: rgba(139, 92, 246, 0.5);
    --border-secondary: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.8);
    --border-focus: #8B5CF6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --gradient-purple: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 50%, #A78BFA 100%);
    --gradient-dark: linear-gradient(180deg, #050505 0%, #111113 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    --gradient-glow: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(139, 92, 246, 0.3) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(236, 72, 153, 0.2) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(99, 102, 241, 0.2) 0px, transparent 50%);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.9);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.4);
    --shadow-glow-lg: 0 0 80px rgba(139, 92, 246, 0.6);
    
    /* Blur Effects */
    --blur-sm: 8px;
    --blur-md: 12px;
    --blur-lg: 24px;
    --blur-xl: 40px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.4;
    animation: meshAnimation 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes meshAnimation {
    0%, 100% { transform: scale(1) rotate(0deg); filter: blur(40px); }
    33% { transform: scale(1.1) rotate(120deg); filter: blur(50px); }
    66% { transform: scale(0.9) rotate(240deg); filter: blur(45px); }
}

/* Noise Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.3));
}

h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 1.5vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.2vw, 1.25rem); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

a {
    color: var(--primary-purple-light);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--accent-violet);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 2;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(22, 22, 24, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Buttons - Modern Purple Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: var(--bg-purple-subtle);
    color: var(--primary-purple-light);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-purple-hover);
    border-color: var(--primary-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-glow {
    background: var(--gradient-purple);
    color: white;
    animation: glow-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
                    0 0 60px rgba(99, 102, 241, 0.3),
                    inset 0 0 20px rgba(167, 139, 250, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.8),
                    0 0 80px rgba(99, 102, 241, 0.5),
                    inset 0 0 30px rgba(167, 139, 250, 0.3);
    }
}

/* Button Sizes */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Cards - Modern Dark Style */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-secondary);
    position: relative;
    transition: all var(--transition-base);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

/* Forms - Modern Input Style */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
}

.form-control:hover {
    background: var(--bg-hover);
    border-color: rgba(139, 92, 246, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1),
                0 0 20px rgba(139, 92, 246, 0.2);
}

.form-control::placeholder {
    color: var(--text-disabled);
}

/* Tables - Dark Purple Style */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table thead {
    background: var(--bg-purple-subtle);
}

.table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: 600;
    color: var(--primary-purple-light);
    border-bottom: 1px solid var(--border-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-purple-subtle);
}

/* Badges - Purple Variants */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-purple-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(6, 182, 212, 0.15);
    color: #06B6D4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Alerts - Glass Style */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.alert-info {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--primary-purple-light);
}

/* Loading Spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-purple), var(--accent-indigo));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-purple-light), var(--accent-violet));
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.blur-sm { backdrop-filter: blur(var(--blur-sm)); }
.blur-md { backdrop-filter: blur(var(--blur-md)); }
.blur-lg { backdrop-filter: blur(var(--blur-lg)); }

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-purple { color: var(--primary-purple); }
.text-success { color: #10B981; }
.text-danger { color: #EF4444; }
.text-warning { color: #F59E0B; }

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

/* Responsive Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: calc(var(--space-md) * -1);
}

.col {
    flex: 1;
    padding: var(--space-md);
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .col-md-6 { flex: 0 0 100%; max-width: 100%; }
    .col-md-4 { flex: 0 0 100%; max-width: 100%; }
    .col-md-3 { flex: 0 0 50%; max-width: 50%; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease;
}

.animate-slideInDown {
    animation: slideInDown 0.6s ease;
}