@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --glass-bg: rgba(10, 15, 30, 0.45);
    --glass-border: rgba(0, 180, 255, 0.15);
    --glass-highlight: rgba(0, 200, 255, 0.08);
    --neon-blue: #00c8ff;
    --neon-cyan: #0dcaf0;
    --neon-purple: #8a2be2;
    --neon-gold: #ffd700;
    --hud-green: #00ff88;
    --panel-bg: rgba(5, 10, 25, 0.6);
    --blur-amount: 20px;
}

body.space-background {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}

.card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--blur-amount)) !important;
    -webkit-backdrop-filter: blur(var(--blur-amount)) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 60px rgba(0, 200, 255, 0.03) !important;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 200, 255, 0.3) !important;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 80px rgba(0, 200, 255, 0.06) !important;
}

.card-header {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(138, 43, 226, 0.1)) !important;
    border-bottom: 1px solid rgba(0, 200, 255, 0.15) !important;
    backdrop-filter: blur(16px) !important;
}

.card-body {
    background: transparent !important;
}

.form-control, textarea.form-control, #question {
    background: rgba(0, 10, 30, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #e0e8f0 !important;
    font-family: 'Rajdhani', sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.form-control:focus, textarea.form-control:focus, #question:focus {
    border-color: rgba(0, 200, 255, 0.5) !important;
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 200, 255, 0.15) !important;
    outline: none !important;
}

.form-control::placeholder, textarea::placeholder {
    color: rgba(200, 220, 240, 0.3) !important;
    font-weight: 300 !important;
}

.form-select {
    background-color: rgba(0, 10, 30, 0.5) !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
    border-radius: 10px !important;
    color: #e0e8f0 !important;
    backdrop-filter: blur(8px) !important;
}

.btn {
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-warning {
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: var(--neon-gold) !important;
    border-radius: 10px !important;
}

.btn-outline-warning:hover {
    background: rgba(255, 215, 0, 0.15) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2) !important;
}

.btn-outline-secondary {
    background: rgba(0, 200, 255, 0.06) !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
    color: rgba(200, 220, 240, 0.7) !important;
    border-radius: 10px !important;
}

.btn-outline-secondary:hover {
    background: rgba(0, 200, 255, 0.12) !important;
    border-color: rgba(0, 200, 255, 0.4) !important;
    color: #fff !important;
}

.btn-primary, .btn-info, #submitBtn {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(138, 43, 226, 0.2)) !important;
    border: 1px solid rgba(0, 200, 255, 0.4) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.btn-primary:hover, .btn-info:hover, #submitBtn:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.4), rgba(138, 43, 226, 0.35)) !important;
    border-color: rgba(0, 200, 255, 0.6) !important;
    box-shadow: 0 6px 30px rgba(0, 200, 255, 0.3), 0 0 60px rgba(138, 43, 226, 0.15) !important;
}

.btn-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 200, 255, 0.15)) !important;
    border: 1px solid rgba(0, 255, 136, 0.4) !important;
    border-radius: 10px !important;
    color: var(--hud-green) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.35), rgba(0, 200, 255, 0.25)) !important;
    border-color: rgba(0, 255, 136, 0.6) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25) !important;
}

.btn-warning {
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    border-radius: 10px !important;
    color: var(--neon-gold) !important;
}

.btn-warning:hover {
    background: rgba(255, 215, 0, 0.25) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    color: #fff !important;
}

.btn-danger {
    background: rgba(255, 50, 80, 0.15) !important;
    border: 1px solid rgba(255, 50, 80, 0.35) !important;
    border-radius: 10px !important;
}

.btn-danger:hover {
    background: rgba(255, 50, 80, 0.25) !important;
    border-color: rgba(255, 50, 80, 0.5) !important;
    box-shadow: 0 4px 20px rgba(255, 50, 80, 0.2) !important;
}

.intelligence-title {
    font-family: 'Orbitron', monospace, sans-serif !important;
    background: linear-gradient(135deg, #00c8ff 0%, #8a2be2 40%, #00e5ff 70%, #b388ff 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: hud-gradient 6s ease infinite !important;
    filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.4)) !important;
}

@keyframes hud-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lead.text-muted {
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 0.05em !important;
    color: rgba(0, 200, 255, 0.85) !important;
}

.btn-close.btn-close-white {
    color: #fff !important;
    opacity: 1 !important;
    filter: brightness(2) !important;
}

.alert {
    background: rgba(5, 10, 25, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 200, 255, 0.15) !important;
    border-radius: 12px !important;
}

.alert-info {
    border-color: rgba(0, 200, 255, 0.25) !important;
}

.alert-success {
    border-color: rgba(0, 255, 136, 0.25) !important;
}

.alert-danger {
    border-color: rgba(255, 50, 80, 0.25) !important;
}

.modal-content {
    background: rgba(8, 12, 28, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(0, 200, 255, 0.04) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 200, 255, 0.15) !important;
}

.modal-footer {
    border-top: 1px solid rgba(0, 200, 255, 0.15) !important;
}

.badge {
    backdrop-filter: blur(4px);
}

.badge.bg-warning {
    background: rgba(255, 215, 0, 0.2) !important;
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--neon-gold) !important;
}

.badge.bg-danger {
    background: rgba(255, 50, 80, 0.2) !important;
    border: 1px solid rgba(255, 50, 80, 0.4);
}

.badge.bg-info {
    background: rgba(0, 200, 255, 0.15) !important;
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.badge.bg-success {
    background: rgba(0, 255, 136, 0.15) !important;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.form-check-input {
    background-color: rgba(0, 20, 40, 0.8) !important;
    border: 2px solid rgba(0, 200, 255, 0.4) !important;
    box-shadow: 0 0 4px rgba(0, 200, 255, 0.15) !important;
}

.form-check-input:checked {
    background-color: rgba(0, 200, 255, 0.4) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.4) !important;
}

.form-check-label {
    font-family: 'Rajdhani', sans-serif;
    color: rgba(200, 210, 230, 0.9) !important;
}

.form-check-label small {
    color: rgba(180, 195, 220, 0.75) !important;
}

h5, h6, .card-header h5, .text-warning:not(.fas):not(.far):not(.fab):not([class*="fa-"]) {
    font-family: 'Orbitron', monospace, sans-serif !important;
    letter-spacing: 0.05em;
}

.fas, .far, .fa-solid, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.text-muted {
    color: rgba(200, 210, 230, 0.85) !important;
}

.text-info {
    color: var(--neon-cyan) !important;
}

.navbar, nav {
    background: rgba(5, 8, 20, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0, 200, 255, 0.1) !important;
}

.nav-link {
    color: rgba(200, 220, 240, 0.7) !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-cyan) !important;
}

.collapse .card.card-body {
    background: rgba(5, 10, 25, 0.6) !important;
    border: 1px solid rgba(0, 200, 255, 0.12) !important;
    border-radius: 14px !important;
}

.cyborg-hero-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
}

.cyborg-hero-container img {
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 30px rgba(0, 200, 255, 0.25)) drop-shadow(0 0 60px rgba(138, 43, 226, 0.15));
    animation: cyborg-pulse 4s ease-in-out infinite !important;
    width: 340px !important;
    height: auto !important;
    max-height: 440px !important;
}

@keyframes cyborg-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(0, 200, 255, 0.25)) drop-shadow(0 0 60px rgba(138, 43, 226, 0.15));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(0, 200, 255, 0.4)) drop-shadow(0 0 90px rgba(138, 43, 226, 0.25));
    }
}

footer, .footer {
    background: rgba(5, 8, 20, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(0, 200, 255, 0.1) !important;
}

footer a, .footer a {
    color: rgba(200, 220, 240, 0.5) !important;
    transition: color 0.3s ease;
}

footer a:hover, .footer a:hover {
    color: var(--neon-cyan) !important;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 200, 255, 0.4);
}

::selection {
    background: rgba(0, 200, 255, 0.3);
    color: #fff;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(0,200,255,0.4), 0 0 30px rgba(0,200,255,0.2); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px rgba(0,200,255,0.6), 0 0 50px rgba(0,200,255,0.3); }
}

@keyframes orbPulsePurple {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(138,43,226,0.4), 0 0 30px rgba(138,43,226,0.2); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px rgba(138,43,226,0.6), 0 0 50px rgba(138,43,226,0.3); }
}

.orb-hotspot {
    cursor: pointer;
    position: absolute;
}

.orb-glow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,200,255,0.5) 0%, rgba(0,200,255,0.15) 50%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orbPulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,200,255,0.3);
}

.orb-glow.orb-purple {
    background: radial-gradient(circle, rgba(138,43,226,0.5) 0%, rgba(138,43,226,0.15) 50%, transparent 70%);
    animation: orbPulsePurple 2.5s ease-in-out infinite;
    border: 1px solid rgba(138,43,226,0.3);
}

.orb-glow i {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    filter: drop-shadow(0 0 4px rgba(0,200,255,0.5));
}

.orb-glow.orb-purple i {
    filter: drop-shadow(0 0 4px rgba(138,43,226,0.5));
}

.orb-hotspot:hover .orb-glow {
    transform: scale(1.3) !important;
    box-shadow: 0 0 35px rgba(0,200,255,0.7), 0 0 60px rgba(0,200,255,0.4) !important;
    animation: none;
}

.orb-hotspot:hover .orb-glow.orb-purple {
    box-shadow: 0 0 35px rgba(138,43,226,0.7), 0 0 60px rgba(138,43,226,0.4) !important;
}

.orb-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,10,30,0.92);
    border: 1px solid rgba(0,200,255,0.5);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(0,200,255,0.2);
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .cyborg-hero-container {
        width: 320px !important;
        height: 320px !important;
    }
    .cyborg-hero-container img {
        width: 220px !important;
    }
    .orb-glow {
        width: 36px;
        height: 36px;
    }
    .orb-glow i {
        font-size: 13px;
    }
    .orb-tooltip {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 991.98px) {
    .card,
    .card-header,
    .form-control,
    textarea.form-control,
    #question,
    .form-select,
    .btn,
    .alert,
    .modal-content,
    .badge,
    .navbar,
    nav,
    footer,
    .footer {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .card {
        background: rgba(10, 15, 30, 0.92) !important;
    }

    .card-header {
        background: rgba(10, 20, 40, 0.95) !important;
    }

    .form-control, textarea.form-control, #question {
        background: rgba(0, 10, 30, 0.85) !important;
    }

    .form-select {
        background-color: rgba(0, 10, 30, 0.85) !important;
    }

    .modal-content {
        background: rgba(8, 12, 28, 0.97) !important;
    }

    .navbar, nav {
        background: rgba(5, 8, 20, 0.95) !important;
    }

    footer, .footer {
        background: rgba(5, 8, 20, 0.95) !important;
    }

    .alert {
        background: rgba(5, 10, 25, 0.9) !important;
    }

    .intelligence-title {
        animation: none !important;
        background-position: 0% 50% !important;
    }

    .cyborg-hero-container img {
        animation: none !important;
        filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.2)) !important;
    }

    .orb-glow {
        animation: none !important;
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.3) !important;
    }

    .orb-glow.orb-purple {
        animation: none !important;
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.3) !important;
    }

    .modal-content {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    }
}
