/* ==========================================================================
   Cassie Liang Portfolio - Styling System
   Obsidian, Cyan & Emerald Glassmorphism Theme
   ========================================================================== */

:root {
    --bg-main: #090D16;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-modal: #0F172A;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(16, 185, 129, 0.3);

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --accent-emerald: #10B981;
    --accent-cyan: #06B6D4;
    --accent-indigo: #6366F1;
    --accent-pink: #EC4899;
    --accent-warning: #F59E0B;

    --gradient-hero: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #6366F1 100%);
    --gradient-card: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.15);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

strong {
    color: #FFF;
    font-weight: 600;
}

code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--accent-cyan);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(9, 13, 22, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-accent {
    color: var(--accent-emerald);
}

.brand-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--accent-emerald);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-assistant {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    color: #090D16;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-assistant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-details {
    width: 100%;
    margin-top: 16px;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-details:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-emerald);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 140px 0 80px;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.25;
}

.hero-glow-1 {
    top: 10%;
    left: -5%;
    background: var(--accent-emerald);
}

.hero-glow-2 {
    bottom: 10%;
    right: 5%;
    background: var(--accent-indigo);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--accent-emerald);
    font-weight: 500;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
}

.status-dot.pulsing {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title .en-name {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 6px;
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Metrics Strip */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

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

.metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.metric-unit {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.metric-lbl {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-chip.highlight {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

/* Terminal Component */
.terminal-window {
    background: #0B0F19;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.1);
}

.terminal-header {
    background: #111726;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

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

.terminal-tabs {
    display: flex;
    gap: 6px;
}

.tab-pill {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-pill.active, .tab-pill:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    min-height: 280px;
    max-height: 340px;
    overflow-y: auto;
    color: #A7F3D0;
}

.term-line {
    margin-bottom: 6px;
    word-break: break-word;
}

.term-prompt { color: var(--accent-cyan); }
.term-kw { color: var(--accent-pink); }
.term-val { color: var(--accent-warning); }
.term-info { color: var(--text-muted); }
.term-success { color: var(--accent-emerald); font-weight: 600; }

/* Sections Common */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header.center {
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-emerald);
    margin-bottom: 8px;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 650px;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.philosophy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.philosophy-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project Cards */
.project-filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.project-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vance-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
}

.banner-tag {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

.banner-badge {
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.project-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-name {
    font-size: 1.5rem;
}

.project-sub-tag {
    font-size: 0.85rem;
    color: var(--accent-emerald);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 8px;
}

.link-badge {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.tech-stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tech-stack-pills.compact .pill {
    font-size: 0.72rem;
    padding: 2px 8px;
}

.pill {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.project-highlights {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);

}

.project-highlights li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-size: 1rem;
}

/* Other Projects Sub-Grid */
.other-projects-block {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.sub-block-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-warning);
}

.mini-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.mini-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.mini-card.highlight-border {
    border-color: rgba(245, 158, 11, 0.3);
}

.award-tag {
    font-size: 0.72rem;
    color: var(--accent-warning);
    font-weight: 600;
    margin-bottom: 6px;
}

.mini-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.mini-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Architecture Interactive Canvas */
.arch-selector-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.arch-tab-btn {
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.arch-tab-btn.active, .arch-tab-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.arch-diagram-canvas {
    background: #0B0F19;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-diagram-wrapper {
    width: 100%;
}

.arch-node {
    cursor: pointer;
    transition: var(--transition);
}

.arch-node:hover rect {
    stroke: var(--accent-emerald);
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

/* Skills Matrix */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-header i {
    font-size: 1.4rem;
    color: var(--accent-emerald);
}

.skill-header h3 {
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.skill-badge.major {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-weight: 600;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 32px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-emerald) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--accent-emerald);
}

.timeline-date {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent-emerald);
    margin-bottom: 6px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timeline-header h3 {
    font-size: 1.25rem;
}

.timeline-role {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timeline-bullets {
    list-style: none;
    margin-top: 12px;
}

.timeline-bullets li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.timeline-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: rgba(9, 13, 22, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-contact {
    display: flex;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

/* Modals & Drawer */
.assistant-modal, .project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.assistant-modal.active, .project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.assistant-container {
    position: relative;
    z-index: 10;
    width: 600px;
    max-width: 90vw;
    height: 680px;
    max-height: 85vh;
    background: #0F172A;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.assistant-header {
    background: #1E293B;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.assistant-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    color: #090D16;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.assistant-header h3 {
    font-size: 1.05rem;
}

.assistant-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-close-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.assistant-chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 88%;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chat-message.user .msg-avatar {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo);
}

.msg-content {
    background: #1E293B;
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-message.user .msg-content {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.chip-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    transition: var(--transition);
}

.chip-btn:hover {
    background: rgba(16, 185, 129, 0.2);
}

.assistant-input-area {
    padding: 16px;
    background: #1E293B;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.assistant-input-area input {
    flex-grow: 1;
    background: #0F172A;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.assistant-input-area input:focus {
    border-color: var(--accent-emerald);
}

.btn-send {
    background: var(--accent-emerald);
    color: #090D16;
    border-radius: var(--radius-md);
    padding: 0 18px;
}

/* Project Modal Content */
.project-modal-container {
    position: relative;
    z-index: 10;
    width: 800px;
    max-width: 92vw;
    max-height: 88vh;
    background: #0F172A;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow-y: auto;
}

.project-modal-container .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Print Styles */
@media print {
    .navbar, .assistant-modal, .project-modal, .hero-terminal-block, .btn, .project-filter-buttons, .arch-selector-tabs {
        display: none !important;
    }
    
    body {
        background: #FFF !important;
        color: #000 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .section {
        padding: 20px 0 !important;
    }

    .project-card, .philosophy-card, .skill-category-card, .timeline-content {
        background: #FFF !important;
        border: 1px solid #DDD !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    h1, h2, h3, h4, strong {
        color: #000 !important;
    }

    .hero-title .title-sub {
        -webkit-text-fill-color: #000 !important;
    }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .mini-projects-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .mini-projects-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.2rem; }
}
