/* Brion - Quantum AI & Technologies Lab
   Website Styles */

/* ==================== */
/* CSS Variables & Reset */
/* ==================== */

:root {
    /* Colors */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success: #10b981;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

    /* Spacing */
    --section-padding: 6rem 0;
    --container-max-width: 1200px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== */
/* Typography */
/* ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--secondary-color);
}

/* ==================== */
/* Layout */
/* ==================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    min-height: 100vh;
}

section {
    padding: var(--section-padding);
}

/* ==================== */
/* Navigation */
/* ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.quantum-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 3rem;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ==================== */
/* Buttons */
/* ==================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ==================== */
/* Section Headers */
/* ==================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* ==================== */
/* Cards & Grids */
/* ==================== */

.about-grid,
.tech-preview-grid,
.capability-grid,
.values-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card,
.tech-preview-card,
.capability-card,
.value-card,
.project-card,
.tech-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.about-card:hover,
.tech-preview-card:hover,
.capability-card:hover,
.value-card:hover,
.project-card:hover,
.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.tech-icon,
.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ==================== */
/* Technology Section */
/* ==================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-features {
    list-style: none;
    margin-top: 1.5rem;
}

.tech-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.tech-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ==================== */
/* Projects Section */
/* ==================== */

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-stars {
    color: var(--secondary-color);
    font-weight: 600;
    white-space: nowrap;
}

.project-description {
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-light);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 600;
}

/* ==================== */
/* Team Section */
/* ==================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.member-role {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== */
/* Contact Section */
/* ==================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--primary-light);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-light);
    word-break: break-word;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ==================== */
/* Stats Section */
/* ==================== */

.stats-section {
    background: var(--bg-dark);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== */
/* CTA Section */
/* ==================== */

.cta-section {
    background: var(--bg-dark);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== */
/* Page Hero (for sub-pages) */
/* ==================== */

.page-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* ==================== */
/* About Page */
/* ==================== */

.about-content-section {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 3rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ==================== */
/* Error Pages */
/* ==================== */

.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ==================== */
/* Flash Messages */
/* ==================== */

.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: var(--success);
    color: white;
}

.flash-error {
    background: var(--error);
    color: white;
}

.flash-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-license {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* ==================== */
/* Utilities */
/* ==================== */

.text-center {
    text-align: center;
}

.quick-about,
.featured-tech,
.open-source-section,
.team-values,
.tech-details {
    background: var(--bg-dark);
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

.contact-info-text {
    padding: 1.5rem 0;
}

.contact-info-text h3 {
    margin-bottom: 1rem;
}

.os-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: start;
        padding: 2rem;
        gap: 1.5rem;
        transition: left var(--transition-normal);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .contact-layout,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .tech-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .flash-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    .hero-cta,
    .cta-buttons,
    .error-actions {
        flex-direction: column;
    }
}

/* ============================= */
/* Quantum AI Assistant Widget   */
/* ============================= */

.quantum-ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    font-family: var(--font-display), var(--font-primary), sans-serif;
}

.quantum-chat-toggle {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 3px solid rgba(79, 70, 229, 0.3);
}

.quantum-chat-toggle:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.6);
}

.quantum-chat-toggle svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
}

.quantum-chat-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 12px;
    width: 28px;
    height: 28px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--bg-darker);
    animation: quantumPulse 2s infinite;
}

@keyframes quantumPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.quantum-chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 600px;
    max-width: calc(100vw - 40px);
    height: 650px;
    max-height: calc(100vh - 120px);
    background: var(--bg-dark);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 70, 229, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.quantum-chat-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.quantum-chat-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantum-chat-logo {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-display), sans-serif;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantum-chat-logo .logo-icon {
    font-size: 1.3rem;
}

.quantum-chat-header-text h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.quantum-chat-header-text small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.quantum-chat-close {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantum-chat-close svg {
    width: 20px;
    height: 20px;
}

.quantum-chat-close:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: scale(1.05);
}

.quantum-chat-welcome {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    padding: 32px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.quantum-welcome-avatar {
    width: 64px;
    height: 64px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.quantum-welcome-avatar svg {
    width: 32px;
    height: 32px;
}

.quantum-welcome-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.quantum-welcome-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.quantum-conversation-starters {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(79, 70, 229, 0.03);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.quantum-starter-card {
    background: rgba(79, 70, 229, 0.05);
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quantum-starter-card:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.quantum-starter-icon {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.quantum-chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: var(--bg-darker);
    min-height: 200px;
}

.quantum-message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.quantum-message.user-message {
    flex-direction: row-reverse;
}

.quantum-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quantum-message-avatar svg {
    width: 20px;
    height: 20px;
}

.quantum-message.assistant-message .quantum-message-avatar {
    background: var(--gradient-secondary);
    color: white;
}

.quantum-message.user-message .quantum-message-avatar {
    background: rgba(79, 70, 229, 0.2);
    color: var(--primary-color);
}

.quantum-message-content {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.quantum-message.assistant-message .quantum-message-content {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-bottom-left-radius: 6px;
}

.quantum-message.user-message .quantum-message-content {
    background: var(--gradient-secondary);
    color: white;
    border-bottom-right-radius: 6px;
}

.quantum-message-content h2,
.quantum-message-content h3,
.quantum-message-content h4 {
    color: var(--text-primary);
    margin: 12px 0 8px 0;
}

.quantum-message-content ul {
    margin: 8px 0;
    padding-left: 24px;
}

.quantum-message-content li {
    margin: 4px 0;
}

.quantum-message-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.quantum-chat-input-area {
    background: var(--bg-dark);
    border-top: 1px solid rgba(79, 70, 229, 0.2);
    padding: 20px 24px;
}

.quantum-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(79, 70, 229, 0.05);
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 24px;
    padding: 6px;
    transition: all 0.3s ease;
}

.quantum-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 8px 24px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.quantum-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 1rem;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-primary), sans-serif;
}

.quantum-chat-input::placeholder {
    color: var(--text-muted);
}

.quantum-chat-send {
    background: var(--gradient-secondary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quantum-chat-send svg {
    width: 20px;
    height: 20px;
}

.quantum-chat-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.quantum-chat-send:disabled {
    background: rgba(148, 163, 184, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quantum-typing-indicator {
    position: absolute;
    bottom: 100px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(79, 70, 229, 0.1);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.quantum-typing-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quantum-typing-avatar svg {
    width: 16px;
    height: 16px;
}

.quantum-typing-bubble {
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
}

.quantum-typing-dots {
    display: flex;
    gap: 4px;
}

.quantum-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: quantumTypingAnimation 1.4s infinite ease-in-out;
}

.quantum-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.quantum-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes quantumTypingAnimation {
    0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.2); }
}

.quantum-message-suggestions {
    margin: 16px 0;
    padding-left: 48px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.quantum-suggestions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quantum-suggestion-pill {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary), sans-serif;
}

.quantum-suggestion-pill:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

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

@keyframes quantumFadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

/* Quantum Assistant - Mobile Responsive */
@media (max-width: 768px) {
    .quantum-chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        right: -10px;
        bottom: 90px;
        border-radius: 20px;
    }

    .quantum-conversation-starters {
        grid-template-columns: 1fr;
    }

    .quantum-ai-assistant {
        bottom: 20px;
        right: 20px;
    }

    .quantum-chat-toggle {
        width: 60px;
        height: 60px;
    }

    .quantum-chat-toggle svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .quantum-chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: 0;
        bottom: 80px;
        border-radius: 16px;
    }

    .quantum-welcome-title {
        font-size: 1rem;
    }

    .quantum-starter-card {
        font-size: 0.8rem;
        padding: 12px;
        min-height: 50px;
    }
}
