/* ============================================================
   ChristianMCE — Personal Academic Site
   Palette: UVA School of Data Science official brand colors
   Source: UVA-SDS-BrandGuide-2026-06-1-0.pdf
   ============================================================ */

/* ── Official UVA / SDS Color Tokens ────────────────────── */
:root {
    /* SDS Primary */
    --sds-navy:       #24323E;   /* SDS Navy — primary brand blue      */
    --sds-deep-navy:  #10181F;   /* SDS Deep Navy — depth / footers    */
    --sds-gray:       #EFF2F8;   /* SDS Gray — light backgrounds       */
    --sds-yellow:     #FDDA24;   /* SDS Yellow — accent emphasis       */

    /* UVA Institutional */
    --uva-blue:       #232D4B;   /* UVA Blue — logos / headings        */
    --uva-orange:     #E57200;   /* UVA Orange — links / CTA           */

    /* UVA Secondary */
    --uva-teal:       #25CAD3;   /* Teal — secondary accent            */
    --uva-cyan:       #009FDF;   /* Cyan                               */

    /* UVA Web-only */
    --light-gray:     #F1F1EF;   /* Light Gray — backgrounds           */
    --medium-gray:    #DADADA;   /* Medium Gray — borders              */
    --text-gray:      #666666;   /* Text Gray — body copy              */
    --link-blue:      #495E9D;   /* Link Blue — secondary links        */

    /* Derived / Functional aliases */
    --bg-page:        var(--sds-gray);
    --bg-card:        #FFFFFF;
    --border:         #D8DCE5;
    --code-bg:        #1A2332;
    --white:          #FFFFFF;

    /* Shadows & Radius */
    --card-shadow:    0 2px 12px rgba(36,50,62,.06);
    --radius:         6px;
    --max-w:          1060px;
    --transition:     .3s cubic-bezier(.25,.46,.45,.94);

    /* Type scale */
    --fs-hero:        clamp(1.9rem, 3.6vw, 2.75rem);
    --fs-h2:          clamp(1.35rem, 2.2vw, 1.65rem);
    --fs-h3:          1.15rem;
    --fs-body:        1rem;
    --fs-small:       .875rem;
    --fs-xs:          .78rem;
}

/* ── Reset ──────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:72px; }
body {
    font-family:'Source Sans 3','Source Sans Pro', system-ui, sans-serif;
    color:var(--text-gray);
    background:var(--bg-page);
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
}
img { max-width:100%; display:block; }
a { color:var(--uva-orange); text-decoration:none; transition:color var(--transition); }
a:hover { color:#BF5F00; text-decoration:underline; }
.wrap { max-width:var(--max-w); margin:0 auto; padding:0 28px; }

/* ═══════════════════════════════════════════════════════════
   HEADER — SDS Navy bar
   ═══════════════════════════════════════════════════════ */
.site-header {
    position:fixed; top:0; left:0; width:100%; z-index:1000;
    background-color:#002760;
    transition:background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    background:var(--sds-deep-navy);
    box-shadow:0 2px 16px rgba(0,0,0,.3);
}
.nav-inner {
    display:flex; align-items:center; justify-content:space-between;
    height:56px;
}
.nav-brand {
    display:flex; align-items:center; gap:10px;
    color:var(--white); font-weight:700; font-size:1.05rem;
    text-decoration:none;
}
.nav-brand:hover { color:var(--white); text-decoration:none; }
.brand-icon {
    width:32px; height:32px;
    background:var(--uva-orange); border-radius:6px;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:13px; color:var(--white);
}
.nav-right { display:flex; align-items:center; gap:20px; }
.nav-email { color:rgba(255,255,255,.55); font-size:var(--fs-small); }
.nav-email:hover { color:var(--white); text-decoration:none; }
.nav-social { display:flex; gap:10px; }
.nav-social a { color:rgba(255,255,255,.45); transition:color var(--transition); }
.nav-social a:hover { color:var(--white); text-decoration:none; }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span { display:block; width:20px; height:2px; background:var(--white); margin:4px 0; transition:var(--transition); }

/* ═══════════════════════════════════════════════════════════
   HERO — SDS Deep Navy background
   ═══════════════════════════════════════════════════════ */
.hero {
    padding:100px 0 48px;
    background:var(--sds-deep-navy);
}
.hero-grid {
    display:grid;
    grid-template-columns:220px 1fr;
    gap:40px;
    align-items:start;
}
.hero-photo {
    width:210px; height:210px;
    border-radius:8px;
    object-fit:cover;
    border:3px solid rgba(255,255,255,.08);
    box-shadow:0 8px 32px rgba(0,0,0,.4);
}
.hero-body { padding-top:4px; }
.hero-role {
    display:inline-block;
    color:rgba(255,255,255,.45);
    font-size:var(--fs-xs);
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:.6px;
    margin-bottom:8px;
}
.hero-name {
    font-family:'Playfair Display',serif;
    font-size:var(--fs-hero);
    color:var(--white);
    line-height:1.15;
    margin-bottom:4px;
}
.hero-title {
    color:rgba(255,255,255,.5);
    font-size:1.05rem;
    font-weight:400;
    margin-bottom:24px;
}
.typed-cursor { animation:blink 1s step-end infinite; color:var(--uva-orange); }
@keyframes blink { 50%{opacity:0} }

/* Hero detail groups */
.hero-details {
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:20px;
    margin-bottom:20px;
}
.hero-detail-group h3 {
    font-size:var(--fs-xs);
    text-transform:uppercase;
    letter-spacing:.5px;
    color:rgba(255,255,255,.35);
    margin-bottom:4px;
    font-weight:600;
}
.hero-detail-group p {
    font-size:var(--fs-small);
    color:rgba(255,255,255,.7);
    line-height:1.5;
}
.hero-detail-group a { color:var(--uva-teal); }
.hero-detail-group a:hover { color:var(--white); }

/* Hero badge links */
.hero-badges { display:flex; gap:8px; flex-wrap:wrap; }
.hero-badges a {
    display:inline-block;
    padding:5px 14px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:4px;
    color:rgba(255,255,255,.6);
    font-size:var(--fs-xs);
    font-weight:500;
    transition:all var(--transition);
    text-decoration:none;
}
.hero-badges a:hover {
    background:rgba(255,255,255,.06);
    color:var(--white);
    border-color:rgba(255,255,255,.25);
}

/* ═══════════════════════════════════════════════════════════
   TABS — UVA-style content switching
   ═══════════════════════════════════════════════════════ */
.tabs-wrapper {
    background:var(--bg-card);
    border-radius:12px 12px 0 0;
    margin-top:-20px;
    position:relative;
    z-index:1;
    min-height:60vh;
    box-shadow:0 -4px 24px rgba(0,0,0,.06);
}

/* Tab bar */
.tab-bar {
    display:flex;
    gap:0;
    border-bottom:1px solid var(--border);
    position:relative;
    padding-top:8px;
}
.tab-btn {
    background:none; border:none; cursor:pointer;
    padding:16px 28px;
    font-family:inherit;
    font-size:var(--fs-body);
    font-weight:500;
    color:var(--text-gray);
    position:relative;
    transition:color var(--transition);
}
.tab-btn:hover { color:var(--uva-blue); }
.tab-btn.active { color:var(--uva-blue); font-weight:600; }
.tab-btn.active::after {
    content:'';
    position:absolute;
    bottom:-1px; left:28px; right:28px;
    height:3px;
    background:var(--sds-yellow);      /* SDS Yellow accent indicator */
    border-radius:3px 3px 0 0;
}

/* Tab panels */
.tab-panel {
    display:none;
    padding:40px 0 60px;
    animation:fadeInPanel .35s ease;
}
.tab-panel.active { display:block; }
@keyframes fadeInPanel {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Panel typography */
.panel-heading {
    font-family:'Playfair Display',serif;
    font-size:var(--fs-h2);
    color:var(--uva-blue);
    margin-bottom:20px;
}
.panel-subheading {
    font-size:var(--fs-h3);
    font-weight:700;
    color:var(--uva-blue);
    margin-bottom:16px;
    padding-bottom:10px;
    border-bottom:2px solid var(--border);
}
.panel-description {
    color:var(--text-gray);
    margin-bottom:32px;
    font-size:var(--fs-body);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE TAB
   ═══════════════════════════════════════════════════════ */
.profile-section { margin-bottom:40px; }
.profile-text { max-width:99%; line-height:1.85; color:var(--text-gray); }
.profile-text p + p { margin-top:14px; }

/* Education list */
.edu-list { list-style:none; }
.edu-item {
    display:flex; gap:16px; align-items:start;
    padding:16px 0;
    border-bottom:1px solid var(--border);
}
.edu-item:last-child { border-bottom:none; }
.edu-marker {
    flex-shrink:0; margin-top:5px;
    width:10px; height:10px;
    border-radius:50%;
    background:var(--uva-orange);
}
.edu-item strong { display:block; color:var(--uva-blue); font-size:var(--fs-body); }
.edu-item span { color:var(--text-gray); font-size:var(--fs-small); }

/* Cert list */
.cert-list { list-style:none; }
.cert-list li {
    padding:14px 0;
    border-bottom:1px solid var(--border);
}
.cert-list li:last-child { border-bottom:none; }
.cert-list strong { display:block; color:var(--uva-blue); font-size:var(--fs-small); }
.cert-list span  { color:var(--text-gray); font-size:var(--fs-xs); }

/* Contact grid */
.contact-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}
.contact-block h4 {
    font-size:var(--fs-xs);
    text-transform:uppercase;
    letter-spacing:.5px;
    color:var(--text-gray);
    margin-bottom:4px;
}
.contact-block p { font-size:var(--fs-small); line-height:1.6; }

/* ═══════════════════════════════════════════════════════════
   RESEARCH TAB
   ═══════════════════════════════════════════════════════ */
.research-areas {
    display:grid;    
    gap:20px;
    margin-bottom:16px;
}
.research-card {
    background:var(--sds-gray);
    border-radius:var(--radius);
    padding:24px;
    position:relative;
    overflow:hidden;
    transition:transform var(--transition), box-shadow var(--transition);
}
.research-card:hover {
    transform:translateY(-3px);
    box-shadow:0 6px 20px rgba(36,50,62,.1);
}
.research-card-accent {
    position:absolute; top:0; left:0;
    width:4px; height:100%;
    background:var(--uva-orange);
}
.research-card h4 {
    font-size:var(--fs-body);
    color:var(--uva-blue);
    margin-bottom:8px;
    padding-left:12px;
}
.research-card p {
    font-size:var(--fs-small);
    color:var(--text-gray);
    line-height:1.6;
    padding-left:12px;
}
.research-tag {
    display:inline-block;
    margin-top:12px; margin-left:12px;
    font-size:var(--fs-xs);
    color:var(--uva-orange);
    font-weight:600;
}

/* Publications */
.publications-list { list-style:none; }
.publications-list li {
    padding:14px 0;
    border-bottom:1px solid var(--border);
}
.publications-list li:last-child { border-bottom:none; }
.publications-list strong { display:block; color:var(--uva-blue); font-size:var(--fs-small); }
.publications-list span { color:var(--text-gray); font-size:var(--fs-xs); }

/* Domain chips */
.research-domains { margin-top:40px; }
.domains-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.domain-chip {
    padding:6px 16px;
    background:var(--sds-gray);
    border:1px solid var(--border);
    border-radius:20px;
    font-size:var(--fs-xs);
    font-weight:500;
    color:var(--text-gray);
    transition:all var(--transition);
}
.domain-chip:hover {
    border-color:var(--uva-orange);
    color:var(--uva-orange);
}

/* ═══════════════════════════════════════════════════════════
   OPEN EDUCATIONAL RESOURCES — UVA-style horizontal rows
   ═══════════════════════════════════════════════════════ */
.oer-list { }

.oer-row {
    display:grid;
    grid-template-columns:240px 1fr;
    gap:32px;
    padding:36px 0;
    border-bottom:1px solid var(--border);
    align-items:start;
}
.oer-row:first-child { padding-top:4px; }
.oer-row:last-child  { border-bottom:none; }

.oer-row-img {
    width:260px;    
    border-radius:var(--radius);
    overflow:hidden;
    flex-shrink:0;
}
.oer-row-img img {
    width:100%;
    height:auto;
    display:block;
    transition:transform .5s ease;
}
.oer-row:hover .oer-row-img img {
    transform:scale(1.04);
}

.oer-row-body {
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.oer-row-date {
    font-size:var(--fs-xs);
    text-transform:uppercase;
    letter-spacing:.6px;
    color:var(--text-gray);
    margin-bottom:8px;
    font-weight:600;
}
.oer-row-body h3 {
    font-family:'Playfair Display',serif;
    font-size:1.2rem;
    color:var(--uva-blue);
    line-height:1.35;
    margin-bottom:10px;
    font-weight:700;
}
.oer-row-body p {
    font-size:var(--fs-small);
    color:var(--text-gray);
    line-height:1.7;
    margin-bottom:14px;
}

/* Tag pills */
.oer-row-tags {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.oer-row-tags span {
    font-size:var(--fs-xs);
    color:var(--text-gray);
}
.oer-row-tags span + span::before {
    content:' / ';
    color:var(--medium-gray);
}

/* ── OER Responsive ──── */
@media (max-width:700px) {
    .oer-row {
        grid-template-columns:1fr;
    }
    .oer-row-img {
        width:100%;
        height:200px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — SDS Deep Navy
   ═══════════════════════════════════════════════════════ */
.site-footer {
    background:var(--sds-deep-navy);
    color:rgba(255,255,255,.4);
    padding:44px 0 28px;
}
.footer-inner {
    display:flex; justify-content:space-between; align-items:start;
    flex-wrap:wrap; gap:28px;
}
.footer-brand { max-width:340px; }
.footer-brand h3 { color:var(--white); font-size:1rem; margin-bottom:6px; }
.footer-brand p  { font-size:var(--fs-small); line-height:1.55; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:6px; }
.footer-links a  { color:rgba(255,255,255,.4); font-size:var(--fs-small); }
.footer-links a:hover { color:var(--uva-orange); text-decoration:none; }
.footer-bottom {
    margin-top:32px; padding-top:20px;
    border-top:1px solid rgba(255,255,255,.06);
    text-align:center; font-size:var(--fs-xs);
}

/* ── Skeleton loader ────────────────────────────────────── */
.skeleton {
    background:linear-gradient(90deg, var(--border) 25%, var(--sds-gray) 50%, var(--border) 75%);
    background-size:200% 100%;
    animation:shimmer 1.4s infinite;
    border-radius:var(--radius);
}
@keyframes shimmer { to { background-position:-200% 0; } }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width:840px) {
    .hero-grid { grid-template-columns:1fr; justify-items:center; text-align:center; }
    .hero-details { grid-template-columns:1fr; text-align:left; }
    .hero-badges { justify-content:center; }
    .contact-grid { grid-template-columns:1fr; }
    .research-areas { grid-template-columns:1fr; }
}
@media (max-width:640px) {
    .nav-right { display:none; }
    .nav-right.open {
        display:flex; flex-direction:column;
        position:absolute; top:56px; left:0; right:0;
        background:var(--sds-deep-navy);
        padding:16px 28px; gap:12px;
    }
    .nav-toggle { display:block; }
    .tab-btn { padding:14px 18px; font-size:var(--fs-small); }
    .hero { padding:80px 0 36px; }
    .hero-photo { width:160px; height:160px; }
    .footer-inner { flex-direction:column; }
}

/* ═══════════════════════════════════════════════════════════
   ACCORDION — Tokio School-style collapsible modules
   ═══════════════════════════════════════════════════════ */
.accordion {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.accordion-item {
    background:var(--sds-gray);
    border-radius:14px;
    overflow:hidden;
    transition:box-shadow var(--transition);
}
.accordion-item:hover {
    box-shadow:0 4px 16px rgba(36,50,62,.08);
}

/* Header button */
.accordion-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:24px 28px;
    background:none;
    border:none;
    cursor:pointer;
    font-family:inherit;
    text-align:left;
    transition:background var(--transition);
}
.accordion-header:hover {
    background:rgba(35,45,75,.03);
}

.accordion-label {
    display:flex;
    flex-direction:column;
    gap:4px;
}
.accordion-eyebrow {
    font-size:var(--fs-xs);
    font-weight:600;
    color:var(--uva-orange);
    letter-spacing:.8px;
    text-transform:uppercase;
}
.accordion-title {
    font-size:1.15rem;
    font-weight:700;
    color:var(--uva-blue);
    line-height:1.3;
}

/* Toggle icon — circle with + / × */
.accordion-icon {
    flex-shrink:0;
    width:36px;
    height:36px;
    border-radius:50%;
    border:2px solid var(--uva-blue);
    position:relative;
    transition:transform .35s ease, background .25s ease;
    margin-left:16px;
}
/* Horizontal bar */
.accordion-icon::before,
.accordion-icon::after {
    content:'';
    position:absolute;
    background:var(--uva-blue);
    border-radius:1px;
    transition:transform .35s ease, opacity .25s ease;
}
.accordion-icon::before {
    width:14px; height:2px;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
}
/* Vertical bar (forms the +) */
.accordion-icon::after {
    width:2px; height:14px;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
}

/* OPEN state */
.accordion-item.open .accordion-icon {
    background:var(--uva-blue);
}
.accordion-item.open .accordion-icon::before {
    background:var(--white);
}
.accordion-item.open .accordion-icon::after {
    background:var(--white);
    transform:translate(-50%,-50%) rotate(90deg);
    opacity:0;
}

/* Body / Content area */
.accordion-body {
    max-height:0;
    overflow:hidden;
    transition:max-height .4s cubic-bezier(.25,.46,.45,.94),
               padding .4s cubic-bezier(.25,.46,.45,.94);
    padding:0 28px;
}
.accordion-item.open .accordion-body {
    max-height:600px;
    padding:0 28px 24px;
}

/* Topic / Item list inside */
.accordion-list {
    list-style:none;
    margin:0;
    padding:0;
}
.accordion-list li {
    display:flex;
    align-items:baseline;
    gap:24px;
    padding:14px 0;
    border-bottom:1px solid rgba(35,45,75,.08);
    font-size:var(--fs-small);
    color:var(--text-gray);
    line-height:1.5;
}
.accordion-list li:last-child {
    border-bottom:none;
}
.accordion-item-num {
    flex-shrink:0;
    min-width:56px;
    font-size:var(--fs-xs);
    font-weight:700;
    color:var(--uva-blue);
    letter-spacing:.3px;
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS TAB — Horizontal cards (image left, info right)
   Inspired by the "Selected Work" portfolio pattern
   ═══════════════════════════════════════════════════════ */

/* Header with line accent */
.projects-header {
    margin-bottom:32px;
}
.heading-line {
    display:inline-block;
    width:40px;
    height:3px;
    background:var(--uva-orange);
    vertical-align:middle;
    margin-left:12px;
    border-radius:2px;
}

/* Grid: 2 columns on desktop */
.projects-grid {
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
}

/* Individual project card */
.project-card {
    display:grid;
    grid-template-columns:200px 1fr;
    background:var(--sds-gray);
    border-radius:14px;
    overflow:hidden;
    transition:transform var(--transition), box-shadow var(--transition);
    position:relative;
}
.project-card:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 28px rgba(36,50,62,.1);
}

/* Image area */
.project-card-img {
    width:200px;
    height:100%;
    min-height:180px;
    overflow:hidden;
    position:relative;
}
.project-card-img img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}
.project-card:hover .project-card-img img {
    transform:scale(1.06);
}

/* Body area */
.project-card-body {
    padding:22px 24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
}
.project-card-body h3 {
    font-family:'Playfair Display',serif;
    font-size:1.1rem;
    color:var(--uva-blue);
    margin-bottom:8px;
    line-height:1.3;
}
.project-card-body p {
    font-size:var(--fs-small);
    color:var(--text-gray);
    line-height:1.6;
    margin-bottom:14px;
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* Tags */
.project-tags {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:4px;
}
.project-tags span {
    display:inline-block;
    padding:3px 10px;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:14px;
    font-size:var(--fs-xs);
    font-weight:500;
    color:var(--text-gray);
    transition:all var(--transition);
}
.project-card:hover .project-tags span {
    border-color:rgba(229,114,0,.3);
    color:var(--uva-blue);
}

/* Arrow button */
.project-arrow {
    position:absolute;
    bottom:20px;
    right:20px;
    width:36px;
    height:36px;
    border-radius:50%;
    border:1.5px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--uva-blue);
    transition:all var(--transition);
    text-decoration:none;
}
.project-arrow:hover {
    background:var(--uva-blue);
    border-color:var(--uva-blue);
    color:var(--white);
    text-decoration:none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width:1000px) {
    .projects-grid {
        grid-template-columns:1fr;
    }
}
@media (max-width:640px) {
    .project-card {
        grid-template-columns:1fr;
    }
    .project-card-img {
        width:100%;
        height:180px;
    }
}
.visit-counter {
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:10px;
    font-size:var(--fs-xs);
    color:rgba(255,255,255,.35);
    letter-spacing:.3px;
}
.visit-counter svg {
    opacity:.5;
}