/* Professional AI/ML Leader Portfolio */
:root {
    --bg-page: #f8fafc;
    --bg-content: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent: #2563eb;
    --accent-dark: #1e3a5f;
    --accent-light: #dbeafe;
    --border: #e2e8f0;
    --glow: rgba(59, 130, 246, 0.12);
    --card-bg: #f8fafc;
    --metric-color: #1d4ed8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

.page-wrapper {
    padding: 24px 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-content);
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--border), 0 0 40px var(--glow);
    display: grid;
    grid-template-columns: 190px 1fr;
}

/* Sidebar */
.sidebar {
    padding: 24px 16px;
    border-right: 1px solid var(--border);
    background: #fafbfc;
    position: sticky;
    top: 0;
    align-self: start;
}

.profile {
    text-align: center;
    margin-bottom: 20px;
}

.avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.tagline-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.nav-links a {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 5px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: var(--glow);
    color: var(--accent);
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-links a {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.social-links a:hover {
    background: var(--glow);
    color: var(--accent);
    text-decoration: none;
}

/* Main Content */
.main-content {
    padding: 28px 32px;
}

.section {
    margin-bottom: 28px;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #eef2ff, #f0f9ff);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

/* Bio / Summary */
.bio {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Impact Cards Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.impact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 12px 12px;
    text-align: center;
    transition: box-shadow 0.2s;
    position: relative;
}

.impact-card:hover {
    box-shadow: 0 2px 12px var(--glow);
}

.impact-source {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
}

.impact-metric {
    font-size: 26px;
    font-weight: 700;
    color: var(--metric-color);
    line-height: 1;
    margin-bottom: 4px;
}

.impact-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.impact-card p {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.expertise-item {
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
}

.expertise-item strong {
    display: block;
    font-size: 12.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.expertise-item span {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Professional Experience */
.experience-entry {
    padding: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
    font-size: 14px;
}

.exp-tenure {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.exp-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
}

.exp-section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 14px 0 6px 0;
    padding: 4px 10px;
    background: var(--accent-light);
    border-radius: 4px;
    display: inline-block;
}

.experience-entry ul {
    margin: 6px 0 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.experience-entry li {
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Project Cards Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.project-card {
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.project-card:hover {
    box-shadow: 0 2px 12px var(--glow);
}

.project-card strong {
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
}

.project-card p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 6px;
}

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

.project-links a {
    font-size: 10.5px;
    color: var(--accent);
    font-weight: 500;
}

.more-projects {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Research Cards Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.research-card {
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.research-card:hover {
    box-shadow: 0 2px 12px var(--glow);
}

.research-venue {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 6px;
}

.research-card strong {
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
}

.research-card p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

.research-card em {
    color: var(--text-muted);
    font-size: 11px;
}

/* Inline metric badge */
.inline-metric {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--metric-color);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.metric-inline {
    font-weight: 700;
    color: var(--metric-color);
}

/* Engineering bullet list */
.eng-list {
    margin: 6px 0 10px 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.eng-list li {
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 5px;
}

/* Publications */
.pub-list {
    list-style: none;
    padding: 0;
}

.pub-list li {
    font-size: 12.5px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list em {
    color: var(--text-muted);
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.two-col h2 {
    margin-top: 0;
}

.two-col p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.subsection-heading {
    margin-top: 16px !important;
}

/* Certifications */
.cert-line {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.9;
}

/* Footer */
.footer {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 800px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        position: static;
    }

    .profile {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .avatar {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin: 0;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .exp-header {
        flex-direction: column;
    }
}