/* ═══════════════════════════════════════════
   GEEKBRAIN NEURAL CORE — Shared Stylesheet
   Cyber-Steampunk / Mass Effect Fusion
   ═══════════════════════════════════════════ */

/* --- Root Variables --- */
:root {
    --bg-deep: #080a0e;
    --bg-panel: #0b0e14;
    --bg-card: #0f1320;
    --bg-card-hover: #141a2e;
    --border: #1a2040;
    --border-active: #2a3a6a;

    --neural-cyan: #00f0ff;
    --neural-cyan-dim: rgba(0, 240, 255, 0.15);
    --neural-cyan-glow: rgba(0, 240, 255, 0.4);
    --copper: #d4733a;
    --copper-bright: #e88a4a;
    --copper-dim: rgba(212, 115, 58, 0.2);
    --copper-glow: rgba(212, 115, 58, 0.5);
    --copper-dark: #8a4a2a;

    --text-primary: #e8eef0;
    --text-secondary: #8899aa;
    --text-muted: #4a5a6a;
    --text-cyan: #7ae8ff;

    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-display: 'Orbitron', sans-serif;

    --radius: 6px;
    --radius-lg: 12px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Neural grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Radial glow top-right */
body::after {
    content: '';
    position: fixed;
    top: -300px;
    right: -300px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.page {
    padding-top: 104px;
    padding-bottom: 60px;
    flex: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7em;
    color: var(--neural-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-active), transparent);
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.8em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-sub {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
}

/* --- Keyframes --- */
@keyframes pulse-ring {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes scan {
    0% { transform: translateX(-100%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}
@keyframes pulse-node {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--neural-cyan-glow); }
    50% { opacity: 0.3; box-shadow: none; }
}
@keyframes neural-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.8); opacity: 1; }
}
@keyframes travel {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* --- Header (Mass Effect style) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.98) 0%, rgba(8, 10, 14, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, var(--neural-cyan-glow) 20%, transparent 40%,
        var(--copper-glow) 60%, transparent 80%, var(--neural-cyan-glow) 100%);
    opacity: 0.6;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon-circle {
    width: 36px; height: 36px;
    border: 2px solid var(--neural-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-ring 3s ease-in-out infinite;
}
.logo-icon-circle::before {
    content: '';
    width: 12px; height: 12px;
    background: var(--copper-bright);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--copper-glow);
}
.logo-icon-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--copper-dim);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite 1s;
}
.logo-img.header-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.logo-img.header-logo:hover {
}
.logo-img {
    max-width: 100%;
    height: auto;
    display: block;
}
.logo-img.hero {
    width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.15));
    transition: filter 0.4s ease;
    object-fit: contain;
}
.logo-img.hero:hover {
    filter: drop-shadow(0 0 60px rgba(0, 240, 255, 0.3));
}
.hero-logo {
    text-align: center;
    max-width: 100%;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--neural-cyan) 0%, var(--text-primary) 50%, var(--copper-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--text-muted);
    letter-spacing: 3px;
    -webkit-text-fill-color: var(--text-muted);
}
.nav {
    display: flex;
    gap: 4px;
}
.nav a {
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav a.active {
    color: var(--neural-cyan);
    background: var(--neural-cyan-dim);
}

/* --- Hero --- */
.hero {
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
}
.hero-bg {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--neural-cyan-dim), transparent);
    height: 1px; width: 100%;
}
.circuit-line:nth-child(1) { top: 20%; animation: scan 8s linear infinite; }
.circuit-line:nth-child(2) { top: 40%; animation: scan 12s linear infinite 2s; }
.circuit-line:nth-child(3) { top: 60%; animation: scan 10s linear infinite 4s; }
.circuit-line:nth-child(4) { top: 80%; animation: scan 14s linear infinite 1s; }

.holo-gear {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px; height: 400px;
    opacity: 0.04;
    animation: rotate-slow 30s linear infinite;
    color: var(--copper);
}
@keyframes rotate-slow {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.neural-node {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.neural-node:nth-child(5) {
    top: 30%; left: 15%;
    width: 4px; height: 4px;
    background: var(--neural-cyan);
    box-shadow: 0 0 20px var(--neural-cyan-glow);
    animation: pulse-node 4s ease-in-out infinite;
}
.neural-node:nth-child(6) {
    top: 60%; left: 25%;
    width: 6px; height: 6px;
    background: var(--copper-bright);
    box-shadow: 0 0 30px var(--copper-glow);
    animation: pulse-node 5s ease-in-out infinite 1s;
}
.neural-node:nth-child(7) {
    top: 45%; left: 8%;
    width: 3px; height: 3px;
    background: var(--neural-cyan);
    box-shadow: 0 0 15px var(--neural-cyan-glow);
    animation: pulse-node 3s ease-in-out infinite 2s;
}
.neural-node:nth-child(8) {
    top: 20%; left: 30%;
    width: 4px; height: 4px;
    background: var(--copper-bright);
    box-shadow: 0 0 25px var(--copper-glow);
    animation: pulse-node 6s ease-in-out infinite 0.5s;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75em;
    color: var(--text-cyan);
    padding: 6px 16px;
    border: 1px solid var(--border-active);
    border-radius: 20px;
    margin-bottom: 24px;
    background: var(--neural-cyan-dim);
    backdrop-filter: blur(4px);
}
.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--neural-cyan);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 4em;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neural-cyan) 0%, var(--text-primary) 40%, var(--copper-bright) 70%, var(--neural-cyan) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease-in-out infinite;
}
.hero p {
    font-size: 1.15em;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82em;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-primary {
    background: linear-gradient(135deg, var(--neural-cyan) 0%, #0099aa 100%);
    color: var(--bg-deep);
    border: none;
    box-shadow: 0 0 20px var(--neural-cyan-glow);
}
.btn-primary:hover {
    box-shadow: 0 0 40px var(--neural-cyan-glow), 0 4px 20px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.btn-copper {
    background: transparent;
    color: var(--copper-bright);
    border: 1px solid var(--copper);
    box-shadow: 0 0 15px var(--copper-dim);
}
.btn-copper:hover {
    background: var(--copper-dim);
    box-shadow: 0 0 25px var(--copper-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-active);
}
.btn-outline:hover {
    border-color: var(--neural-cyan);
    color: var(--neural-cyan);
    box-shadow: 0 0 20px var(--neural-cyan-dim);
}

/* --- Page Header (non-hero pages) --- */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 3em;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--neural-cyan), var(--copper-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.page-header p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* --- Cards (Mass Effect UI panels) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}
.card::before, .card::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border-color: var(--border-active);
    border-style: solid;
    transition: all 0.4s ease;
    opacity: 0.5;
}
.card::before { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.card::after { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px var(--neural-cyan-dim);
}
.card:hover::before, .card:hover::after {
    border-color: var(--neural-cyan);
    opacity: 1;
}
.card-accent {
    position: absolute;
    top: 0;
    left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neural-cyan), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}
.card:hover .card-accent { opacity: 1; left: 10%; right: 10%; }
.card-icon {
    width: 24px; height: 24px;
    border: 1.5px solid var(--border-active);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.2em;
    transition: all 0.4s ease;
}
.card:hover .card-icon {
    border-color: var(--neural-cyan);
    box-shadow: 0 0 20px var(--neural-cyan-dim);
}
.card h3 {
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.card p {
    color: var(--text-secondary);
    font-size: 0.92em;
    line-height: 1.7;
}
.card-tag {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.7em;
    color: var(--text-cyan);
    padding: 3px 10px;
    border: 1px solid var(--border-active);
    border-radius: 3px;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neural-cyan), var(--copper));
    opacity: 0.3;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.5em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neural-cyan), var(--copper-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Neural Visualization (réseau animé — voir static/js/neural-viz.js) --- */
.neural-viz {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}
.neural-viz::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neural-cyan), transparent);
    opacity: 0.5;
}
.neural-viz canvas { display: block; width: 100%; height: 320px; }
.neural-note {
    font-family: var(--font-mono);
    font-size: 0.68em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: -14px;
}
@media (max-width: 700px) {
    .neural-viz canvas { height: 220px; }
}

/* --- About page --- */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}
.profile-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neural-cyan), transparent);
}
.profile-avatar {
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 2px solid var(--border-active);
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.profile-avatar-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neural-cyan-dim), var(--copper-dim));
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65em;
    color: var(--text-muted);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 8px;
}
.profile-status-dot {
    width: 5px; height: 5px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
.about-content h2 {
    font-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.about-content h2 .highlight {
    background: linear-gradient(135deg, var(--neural-cyan), var(--copper-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05em;
    line-height: 1.8;
}
.about-content strong { color: var(--text-cyan); font-weight: 600; }

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 32px 0;
}
.skill-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: default;
}
.skill-item:hover {
    border-color: var(--border-active);
    color: var(--text-cyan);
    box-shadow: 0 0 20px var(--neural-cyan-dim);
    transform: translateY(-2px);
}
.skill-item .skill-icon { display: block; font-size: 1.6em; margin-bottom: 8px; }

/* --- Projects page --- */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.project-card .card-header h3 {
    font-size: 0.95em;
    margin-bottom: 0;
    word-break: break-word;
}
.project-card .project-desc {
    flex-grow: 1;
    color: var(--text-secondary);
    font-size: 0.88em;
    line-height: 1.7;
    margin-bottom: 16px;
}
.project-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.project-stat {
    font-family: var(--font-mono);
    font-size: 0.7em;
    color: var(--text-muted);
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.project-stat.public { color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); }
.project-stat.private { color: var(--copper); border-color: var(--copper-dim); }
.project-card::after {
    content: '⬡';
    position: absolute;
    bottom: 8px; right: 12px;
    font-size: 2.5em;
    opacity: 0.03;
    pointer-events: none;
}

/* --- Contact page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin: 40px 0;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95em;
    transition: all 0.3s ease;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--neural-cyan);
    box-shadow: 0 0 0 3px var(--neural-cyan-dim);
    background: var(--bg-card-hover);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}
.contact-info::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1em;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.92em;
}
.contact-info-item .ci-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--border-active);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info a {
    color: var(--text-cyan);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-info a:hover { color: var(--copper-bright); }

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    text-align: center;
    position: relative;
    margin-top: auto;
}
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neural-cyan-dim), var(--copper-dim), transparent);
}
.footer p {
    font-family: var(--font-mono);
    font-size: 0.75em;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 2;
}
.footer a {
    color: var(--neural-cyan);
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover { color: var(--copper-bright); }
.footer-symbols { color: var(--copper); font-size: 0.5em; letter-spacing: 8px; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--border-active), var(--copper-dark));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* --- Agent Chat Widget --- */
.agent-chat-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.agent-chat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.agent-chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.agent-chat-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-dark);
    border-radius: 50%;
    border: 1px solid var(--border-active);
}

.agent-chat-avatar-icon {
    font-size: 1.3em;
}

.agent-chat-avatar-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 6px rgba(46,204,113,0.6);
}

.agent-chat-info {
    flex: 1;
}

.agent-chat-name {
    font-family: var(--font-display);
    font-size: 0.9em;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.agent-chat-status {
    font-family: var(--font-mono);
    font-size: 0.65em;
    color: var(--text-muted);
    margin-top: 2px;
}

.agent-chat-messages {
    padding: 20px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-message {
    display: flex;
}

.agent-message-user {
    justify-content: flex-end;
}

.agent-message-assistant {
    justify-content: flex-start;
}

.agent-message-system {
    justify-content: center;
}

.agent-message-system .agent-message-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.82em;
    color: var(--text-secondary);
}

.agent-message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85em;
    line-height: 1.6;
    color: var(--text-primary);
}

.agent-message-user .agent-message-content {
    background: var(--cyan-dark);
    border: 1px solid var(--border-active);
    border-bottom-right-radius: 3px;
}

.agent-message-assistant .agent-message-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom-left-radius: 3px;
}

.agent-chat-input-area {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.agent-chat-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.agent-chat-input {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.85em;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: border 0.3s;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
}

.agent-chat-input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 1px var(--border-active-muted);
}

.agent-chat-send {
    padding: 10px 18px;
    min-width: 52px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.agent-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Typing animation */
.agent-typing-dots span {
    animation: agentBlink 1.4s infinite both;
}
.agent-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.agent-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes agentBlink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Scrollbar for chat */
.agent-chat-messages::-webkit-scrollbar {
    width: 5px;
}
.agent-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.agent-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .agent-message-content { max-width: 90%; font-size: 0.8em; }
    .agent-chat-messages { max-height: 320px; padding: 14px; }
}