/* ==========================================================================
   Quest & Crossfire — Cyber-Obsidian AI Engineering Theme Styles
   Author: Asheesh Ranjan Srivastava
   ========================================================================== */

:root {
    --qnc-bg-dark: #0A111B;
    --qnc-bg-surface: #0E1822;
    --qnc-bg-card: #12212A;
    --qnc-bg-card-hover: #162835;
    --qnc-border: #1E2E3E;
    --qnc-border-focus: #5BF9FB;
    --qnc-cyan: #5BF9FB;
    --qnc-cyan-glow: rgba(91, 249, 251, 0.25);
    --qnc-mint: #B1F8EF;
    --qnc-text-main: #F8FAFC;
    --qnc-text-muted: #94A3B8;
    --qnc-text-dim: #64748B;
    --qnc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --qnc-font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
}

body.qnc-cyber-theme {
    background-color: var(--qnc-bg-dark) !important;
    color: var(--qnc-text-main) !important;
    font-family: var(--qnc-font-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Base resets & typography */
.qnc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.qnc-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 17, 27, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--qnc-border);
    padding: 16px 0;
}
.qnc-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qnc-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.qnc-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.qnc-brand-title {
    font-family: var(--qnc-font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--qnc-text-main);
    letter-spacing: 0.5px;
}
.qnc-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.qnc-nav-links a {
    color: var(--qnc-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.qnc-nav-links a:hover {
    color: var(--qnc-cyan);
}

/* Badges */
.qnc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-family: var(--qnc-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(91, 249, 251, 0.08);
    border: 1px solid rgba(91, 249, 251, 0.25);
    color: var(--qnc-cyan);
}
.qnc-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--qnc-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--qnc-cyan);
    animation: qnc-pulse-anim 2s infinite;
}

@keyframes qnc-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Hero Section */
.qnc-hero {
    padding: 85px 0 65px 0;
    position: relative;
}
.qnc-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}
.qnc-hero-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    margin: 20px 0 16px 0;
    color: var(--qnc-text-main);
    letter-spacing: -0.5px;
}
.qnc-hero-title span {
    color: var(--qnc-cyan);
    text-shadow: 0 0 25px rgba(91, 249, 251, 0.4);
}
.qnc-hero-lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--qnc-mint);
    font-weight: 500;
    margin-bottom: 20px;
}
.qnc-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--qnc-text-muted);
    margin-bottom: 34px;
    max-width: 620px;
}
.qnc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* Buttons */
.qnc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: var(--qnc-font-sans);
}
.qnc-btn-primary {
    background: var(--qnc-cyan);
    color: var(--qnc-bg-dark);
    border: 1px solid var(--qnc-cyan);
    box-shadow: 0 0 20px rgba(91, 249, 251, 0.3);
}
.qnc-btn-primary:hover {
    background: #4ae8ea;
    box-shadow: 0 0 30px rgba(91, 249, 251, 0.55);
    transform: translateY(-2px);
}
.qnc-btn-secondary {
    background: rgba(18, 33, 42, 0.7);
    color: var(--qnc-text-main);
    border: 1px solid var(--qnc-border);
}
.qnc-btn-secondary:hover {
    background: var(--qnc-bg-card-hover);
    border-color: var(--qnc-cyan);
    color: var(--qnc-cyan);
    transform: translateY(-2px);
}

/* Hero Terminal Card */
.qnc-terminal-card {
    background: var(--qnc-bg-surface);
    border: 1px solid var(--qnc-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(91, 249, 251, 0.05);
}
.qnc-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--qnc-border);
}
.qnc-terminal-dots {
    display: flex;
    gap: 6px;
}
.qnc-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.qnc-dot-red { background: #ff5f56; }
.qnc-dot-yellow { background: #ffbd2e; }
.qnc-dot-green { background: #27c93f; }
.qnc-terminal-tag {
    font-family: var(--qnc-font-mono);
    font-size: 11px;
    color: var(--qnc-cyan);
}
.qnc-terminal-body {
    font-family: var(--qnc-font-mono);
    font-size: 13px;
    line-height: 1.8;
}
.qnc-cmd { color: var(--qnc-mint); }
.qnc-comment { color: var(--qnc-text-dim); }
.qnc-val { color: var(--qnc-cyan); }

/* Section Headers */
.qnc-section {
    padding: 80px 0;
    border-top: 1px solid var(--qnc-border);
}
.qnc-section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 52px auto;
}
.qnc-section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--qnc-text-main);
    margin: 12px 0;
}
.qnc-section-subtitle {
    font-size: 16px;
    color: var(--qnc-text-muted);
    line-height: 1.6;
}

/* Project Cards Grid */
.qnc-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}
.qnc-project-card {
    background: var(--qnc-bg-card);
    border: 1px solid var(--qnc-border);
    border-radius: 14px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.qnc-project-card:hover {
    border-color: rgba(91, 249, 251, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(91, 249, 251, 0.1);
}
.qnc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.qnc-card-status {
    font-family: var(--qnc-font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(91, 249, 251, 0.1);
    color: var(--qnc-cyan);
    border: 1px solid rgba(91, 249, 251, 0.2);
}
.qnc-card-status-plan {
    background: rgba(177, 248, 239, 0.08);
    color: var(--qnc-mint);
    border: 1px solid rgba(177, 248, 239, 0.25);
}
.qnc-project-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--qnc-text-main);
}
.qnc-project-summary {
    font-size: 15px;
    color: var(--qnc-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.qnc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.qnc-feature-item {
    font-size: 13.5px;
    color: var(--qnc-text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.qnc-feature-item span.bullet {
    color: var(--qnc-cyan);
    font-weight: bold;
}
.qnc-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.qnc-tag {
    font-family: var(--qnc-font-mono);
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--qnc-border);
    color: var(--qnc-text-muted);
}
.qnc-card-footer {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--qnc-border);
    padding-top: 18px;
}

/* Writing & Media Dispatches Section */
.qnc-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.qnc-media-card {
    background: var(--qnc-bg-card);
    border: 1px solid var(--qnc-border);
    border-radius: 12px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}
.qnc-media-card:hover {
    border-color: var(--qnc-cyan);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.qnc-media-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.qnc-platform-badge {
    font-family: var(--qnc-font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.qnc-badge-xda {
    background: rgba(245, 124, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(245, 124, 0, 0.35);
}
.qnc-badge-yt {
    background: rgba(255, 0, 0, 0.12);
    color: #ff5252;
    border: 1px solid rgba(255, 0, 0, 0.3);
}
.qnc-badge-obsidian {
    background: rgba(142, 68, 173, 0.15);
    color: #bb86fc;
    border: 1px solid rgba(142, 68, 173, 0.35);
}
.qnc-media-date {
    font-family: var(--qnc-font-mono);
    font-size: 12px;
    color: var(--qnc-text-dim);
}
.qnc-media-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--qnc-text-main);
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.qnc-media-desc {
    font-size: 14px;
    color: var(--qnc-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}
.qnc-media-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--qnc-font-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--qnc-cyan);
    text-decoration: none;
    transition: gap 0.2s;
}
.qnc-media-link:hover {
    gap: 10px;
}

/* System Matrix Grid */
.qnc-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.qnc-matrix-item {
    background: var(--qnc-bg-card);
    border: 1px solid var(--qnc-border);
    border-radius: 10px;
    padding: 24px;
}
.qnc-matrix-icon {
    font-size: 24px;
    color: var(--qnc-cyan);
    margin-bottom: 12px;
}
.qnc-matrix-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--qnc-text-main);
    margin-bottom: 8px;
}
.qnc-matrix-desc {
    font-size: 13.5px;
    color: var(--qnc-text-muted);
    line-height: 1.5;
}

/* Philosophy Section */
.qnc-philosophy-card {
    background: linear-gradient(135deg, rgba(14, 24, 34, 0.8) 0%, rgba(10, 17, 27, 0.95) 100%);
    border: 1px solid var(--qnc-border);
    border-left: 4px solid var(--qnc-cyan);
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
}
.qnc-philosophy-quote {
    font-size: 22px;
    font-weight: 600;
    color: var(--qnc-mint);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Contact / Hire Box */
.qnc-hire-box {
    background: var(--qnc-bg-surface);
    border: 1px solid rgba(91, 249, 251, 0.3);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 0 50px rgba(91, 249, 251, 0.08);
}
.qnc-hire-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--qnc-text-main);
}
.qnc-hire-desc {
    font-size: 16px;
    color: var(--qnc-text-muted);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* Footer */
.qnc-footer {
    padding: 48px 0;
    border-top: 1px solid var(--qnc-border);
    text-align: center;
    font-size: 13.5px;
    color: var(--qnc-text-dim);
}
.qnc-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}
.qnc-footer-links a {
    color: var(--qnc-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.qnc-footer-links a:hover {
    color: var(--qnc-cyan);
}

/* ==========================================================================
   Voice Agent Modal & Widget Styles
   ========================================================================== */

#qnc-voice-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(14, 24, 34, 0.95);
    border: 1px solid var(--qnc-cyan);
    border-radius: 9999px;
    color: var(--qnc-cyan);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(91, 249, 251, 0.3);
    cursor: pointer;
    font-family: var(--qnc-font-sans);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}
#qnc-voice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(91, 249, 251, 0.6);
}
.qnc-mic-icon {
    width: 20px;
    height: 20px;
}
.qnc-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--qnc-cyan);
    box-shadow: 0 0 10px var(--qnc-cyan);
    animation: qnc-pulse-anim 1.5s infinite;
}

#qnc-voice-modal.qnc-hidden {
    display: none;
}
#qnc-voice-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qnc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 16, 0.85);
    backdrop-filter: blur(10px);
}
.qnc-modal-card {
    position: relative;
    width: 90%;
    max-width: 540px;
    background: var(--qnc-bg-surface);
    border: 1px solid var(--qnc-border-focus);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(91, 249, 251, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}
.qnc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--qnc-border);
}
.qnc-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qnc-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--qnc-cyan);
    box-shadow: 0 0 10px var(--qnc-cyan);
}
.qnc-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--qnc-text-main);
}
.qnc-modal-subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--qnc-text-muted);
}
#qnc-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--qnc-text-dim);
    cursor: pointer;
    line-height: 1;
}
#qnc-modal-close:hover {
    color: var(--qnc-cyan);
}

.qnc-chat-stream {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 240px;
    max-height: 340px;
}
.qnc-msg {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.qnc-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--qnc-font-mono);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.qnc-msg-agent .qnc-msg-avatar {
    background: rgba(91, 249, 251, 0.15);
    color: var(--qnc-cyan);
    border: 1px solid var(--qnc-cyan);
}
.qnc-msg-user .qnc-msg-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: var(--qnc-text-main);
}
.qnc-msg-content {
    background: var(--qnc-bg-card);
    border: 1px solid var(--qnc-border);
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--qnc-text-main);
}
.qnc-msg-user .qnc-msg-content {
    background: rgba(91, 249, 251, 0.08);
    border-color: rgba(91, 249, 251, 0.3);
}

.qnc-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}
.qnc-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--qnc-border);
    color: var(--qnc-text-muted);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}
.qnc-chip:hover {
    background: rgba(91, 249, 251, 0.1);
    border-color: var(--qnc-cyan);
    color: var(--qnc-cyan);
}

.qnc-input-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--qnc-border);
}
.qnc-mic-record {
    background: rgba(91, 249, 251, 0.1);
    border: 1px solid var(--qnc-border);
    color: var(--qnc-cyan);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.qnc-mic-record svg {
    width: 20px;
    height: 20px;
}
.qnc-mic-record.qnc-active-recording {
    background: #ff5f56;
    border-color: #ff5f56;
    color: #fff;
    animation: qnc-pulse-anim 1s infinite;
}
#qnc-text-input {
    flex: 1;
    background: var(--qnc-bg-card);
    border: 1px solid var(--qnc-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--qnc-text-main);
    font-size: 14px;
    outline: none;
}
#qnc-text-input:focus {
    border-color: var(--qnc-cyan);
}
#qnc-send-btn {
    background: var(--qnc-cyan);
    border: none;
    color: var(--qnc-bg-dark);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#qnc-send-btn svg {
    width: 18px;
    height: 18px;
}

#qnc-listening-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--qnc-cyan);
    margin-top: 8px;
    font-family: var(--qnc-font-mono);
}
#qnc-listening-indicator.qnc-hidden {
    display: none;
}
.qnc-wave {
    width: 4px;
    height: 12px;
    background: var(--qnc-cyan);
    border-radius: 2px;
    animation: qnc-wave-anim 1s infinite ease-in-out;
}
.qnc-wave:nth-child(2) { animation-delay: 0.2s; }
.qnc-wave:nth-child(3) { animation-delay: 0.4s; }

@keyframes qnc-wave-anim {
    0%, 100% { height: 6px; }
    50% { height: 18px; }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .qnc-hero-grid { grid-template-columns: 1fr; }
    .qnc-hero-title { font-size: 38px; }
    .qnc-nav-links { display: none; }
}
