/* BlackBox Forensics - Professional Dark Theme */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --card-bg: #2d2d2d;
    --text-light: #e9ecef;
    --text-muted: #adb5bd;
    --border-color: #495057;
}

/* Global Styles */
body {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Mobile Typography Optimization */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.7;
    }
    
    .display-5 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1.15rem;
        line-height: 1.6;
    }
    
    .btn-lg {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Trust Bar Styles */
.trust-bar {
    max-width: 600px;
}

/* Implementation Support Card */
.implementation-support-card {
    max-width: 500px;
}

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

/* Navigation Enhancements */
.navbar-dark .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1e3a8a 50%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-graphic {
    position: relative;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

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

/* Section Backgrounds */
.bg-dark-subtle {
    background-color: var(--card-bg) !important;
}

/* Card Enhancements */
.card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.card-footer {
    border-radius: 0 0 15px 15px !important;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background-color: var(--card-bg);
    color: var(--text-light);
}

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

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4dabf7);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0b5ed7, var(--primary-color));
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), #ffda6a);
    border: none;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #e0a800, var(--warning-color));
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: #000;
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    /* transform: translateY(-2px); */
}

/* Process Steps */
.process-step {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.1);
    /* transform: translateY(-5px); */
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.2);
    border: 3px solid var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success/Error Messages */
.alert-success {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    border: none;
    color: white;
    border-radius: 10px;
}

.alert-danger {
    background: linear-gradient(45deg, var(--danger-color), #e74c3c);
    border: none;
    color: white;
    border-radius: 10px;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

/* Footer */
footer {
    background: var(--darker-bg) !important;
    border-top: 1px solid var(--border-color);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}
