/* ==========================================================================
   Qube8 Quantum Computing Division — Light & Dark Quantum Aesthetic
   Core Focus: Quantum Error Correction (QEC) | Quantum ML | Quantum AI
   Inherits & complements: static/css/style.css
   ========================================================================== */

:root {
    /* Quantum Accents */
    --quantum-cyan: #00bcd4;
    --quantum-cyan-glow: rgba(0, 188, 212, 0.25);
    --quantum-purple: #9333ea;
    --quantum-purple-glow: rgba(147, 51, 234, 0.25);
    --quantum-blue: #1e70eb;
    
    /* Light Mode Palette (Default) */
    --bg-qube-page: #ffffff;
    --bg-qube-surface: #f0f9ff;
    --bg-qube-card: #ffffff;
    --bg-qube-card-hover: #f8fafc;
    --qube-border: #e0f2fe;
    --qube-border-accent: rgba(0, 188, 212, 0.4);
    
    --qube-text: #1e293b;
    --qube-text-heading: #07111e;
    --qube-text-muted: #64748b;
    --qube-text-dim: #94a3b8;
    
    /* Standardized aliases for cross-component stability */
    --bg-page: var(--bg-qube-page);
    --bg-surface: var(--bg-qube-surface);
    --bg-surface-alt: var(--bg-qube-card-hover);
    --bg-card: var(--bg-qube-card);
    --border: var(--qube-border);
    --border-color: var(--qube-border);
    --text: var(--qube-text);
    --text-heading: var(--qube-text-heading);
    --text-muted: var(--qube-text-muted);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --font-heading: 'Space Grotesk', 'Poppins', sans-serif;
    
    --radius: 12px;
    --radius-lg: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== DARK MODE OVERRIDES ==================== */
[data-theme="dark"] {
    --quantum-cyan: #00f0ff;
    --quantum-cyan-glow: rgba(0, 240, 255, 0.35);
    --quantum-purple: #b026ff;
    --quantum-purple-glow: rgba(176, 38, 255, 0.35);
    
    --bg-qube-page: #040711;
    --bg-qube-surface: #080d20;
    --bg-qube-card: #0d1533;
    --bg-qube-card-hover: #121d45;
    --qube-border: rgba(255, 255, 255, 0.08);
    --qube-border-accent: rgba(0, 240, 255, 0.3);
    
    --qube-text: #cbd5e1;
    --qube-text-heading: #f8fafc;
    --qube-text-muted: #94a3b8;
    --qube-text-dim: #64748b;
}

body {
    background-color: var(--bg-qube-page);
    color: var(--qube-text);
    font-family: var(--font-sans);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--qube-text-heading);
    letter-spacing: -0.02em;
}

/* Brand number 8 in #1e70eb */
.brand-num,
.navbar-brand .brand-num {
    color: #1e70eb !important;
}

/* Required form asterisks */
.brand-req,
.required-star,
.req-star,
.text-danger {
    color: #1e70eb !important;
    font-weight: 700;
}

/* ==================== HERO SECTION ==================== */
.qube-hero {
    position: relative;
    padding: 130px 0 90px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 25%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 20% 75%, rgba(176, 38, 255, 0.1) 0%, transparent 50%),
                var(--bg-qube-page);
    border-bottom: 1px solid var(--qube-border);
}

.qube-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.gradient-text-qube {
    background: linear-gradient(135deg, #00f0ff 0%, #1e70eb 50%, #b026ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qube-hero p {
    color: var(--qube-text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2.25rem;
}

/* Interactive 3D Bloch Sphere Simulator Card */
.quantum-visual-card,
.bloch-card {
    background: var(--bg-qube-card);
    border: 1px solid var(--qube-border-accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

[data-theme="dark"] .quantum-visual-card,
[data-theme="dark"] .bloch-card {
    background: #060b1a;
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), 0 0 35px rgba(0, 240, 255, 0.12);
}

.bloch-header {
    background: var(--bg-qube-surface);
    padding: 12px 20px;
    border-bottom: 1px solid var(--qube-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bloch-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--qube-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bloch-body {
    padding: 24px;
    text-align: center;
    background: transparent;
}

#quantumCanvas,
#blochCanvas {
    max-width: 100%;
    height: 280px;
    display: block;
    margin: 0 auto;
}

.qubit-state-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.3);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-top: 15px;
    transition: var(--transition);
}

[data-theme="dark"] .qubit-state-tag {
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.35);
}

/* ==================== QUANTUM PILLAR CARDS ==================== */
.quantum-card {
    background: var(--bg-qube-card);
    border: 1px solid var(--qube-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.quantum-card:hover {
    background: var(--bg-qube-card-hover);
    border-color: var(--qube-border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 240, 255, 0.12);
}

[data-theme="dark"] .quantum-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.18);
}

.quantum-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: rgba(0, 240, 255, 0.12);
    color: #00bcd4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.25);
}

[data-theme="dark"] .quantum-icon {
    color: #00f0ff;
}

.quantum-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.quantum-card p {
    color: var(--qube-text-muted);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.quantum-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quantum-features li {
    font-size: 0.88rem;
    color: var(--qube-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantum-features li i {
    color: #00bcd4;
    font-size: 0.75rem;
}

[data-theme="dark"] .quantum-features li i {
    color: #00f0ff;
}

/* ==================== FOOTER ==================== */
.qube-footer,
.footer {
    background: #020409;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 65px 0 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.qube-footer a,
.footer a {
    color: rgba(255, 255, 255, 0.82) !important;
}

.qube-footer a:hover,
.footer a:hover {
    color: #ffffff !important;
}

/* Division highlights in footer */
.qube-footer a[href*="e8labs"],
.footer a[href*="e8labs"] {
    color: #34d399 !important;
    font-weight: 600;
}
.qube-footer a[href*="qube8"],
.footer a[href*="qube8"] {
    color: #38bdf8 !important;
    font-weight: 600;
}
.qube-footer a[href*="e8learnings"],
.footer a[href*="e8learnings"] {
    color: #fbbf24 !important;
    font-weight: 600;
}

.qube-footer .brand-num,
.footer .brand-num,
.footer-brand .brand-num {
    color: #38bdf8 !important;
}

/* ==================== CONTACT SIDEBAR & NOTICE CARDS ==================== */
.contact-sidebar-card,
.contact-info-card {
    background: var(--bg-qube-card);
    border: 1px solid var(--qube-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.75rem;
    height: auto !important;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

[data-theme="dark"] .contact-sidebar-card,
[data-theme="dark"] .contact-info-card {
    background: #060b1a;
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-notice-card {
    background: rgba(0, 188, 212, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.25);
    border-left: 5px solid #00bcd4;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.75rem;
    height: auto !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

[data-theme="dark"] .contact-notice-card {
    background: #051324;
    border-color: rgba(0, 240, 255, 0.25);
    border-left-color: #00f0ff;
}

.contact-notice-card .notice-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--qube-text-heading);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
}

.contact-notice-card .notice-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--qube-text);
    margin-bottom: 0.85rem;
}
