* {
    box-sizing: border-box;
}

:root {
    --bg: #f4efe6;
    --paper: #fffdf9;
    --ink: #1b1a17;
    --muted: #575047;
    --accent: #0f766e;
    --accent-soft: #d8efe9;
    --line: #d9d0c4;
    --shadow: 0 20px 40px rgba(31, 28, 22, 0.14);
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 6%, rgba(252, 214, 150, 0.6) 0, transparent 32%),
        radial-gradient(circle at 88% 10%, rgba(177, 233, 220, 0.8) 0, transparent 28%),
        linear-gradient(160deg, #f7f1e8 0%, #f4efe6 48%, #ebdfd2 100%);
    margin: 0;
    padding: 28px 0;
}

.container {
    max-width: 940px;
    margin: 0 auto;
    background: rgba(255, 253, 249, 0.94);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.profile {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 38px 42px 32px;
    background:
        linear-gradient(120deg, rgba(15, 118, 110, 0.08), rgba(243, 204, 139, 0.2)),
        var(--paper);
    border-bottom: 1px solid rgba(31, 28, 22, 0.06);
}

.avatar {
    width: 152px;
    height: 152px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 22px rgba(40, 33, 25, 0.15);
}

.profile-info {
    flex: 1;
}

.tagline {
    margin: 0 0 6px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.profile-info h1 {
    margin: 0;
    font-family: "Literata", Georgia, serif;
    font-size: clamp(2rem, 2.6vw, 2.7rem);
    color: #141310;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.06rem;
    color: #3d3933;
    margin: 8px 0 4px;
    font-weight: 500;
}

.affiliation {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 0.94rem;
}

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

.links a {
    color: #084d47;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 8px 12px;
    border: 1px solid #cce2dc;
    border-radius: 999px;
    background: linear-gradient(180deg, #f2fbf9, #e9f5f3);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.15);
    border-color: #a9d7d0;
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
}

section {
    padding: 24px 42px 4px;
}

h2 {
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    font-family: "Literata", Georgia, serif;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 14px;
    color: #1f1c16;
}

.news-list, .edu-list {
    padding-left: 22px;
    font-size: 0.96rem;
    color: #2f2a23;
}

.news-list li, .edu-list li {
    margin-bottom: 10px;
}

.date {
    font-weight: 700;
    color: #2b544f;
}

.pub-list {
    display: grid;
    gap: 14px;
}

.pub-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid #e8dece;
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(140deg, rgba(255,255,255,0.94), rgba(248,242,234,0.96));
    box-shadow: 0 8px 18px rgba(31, 28, 22, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pub-item-no-media {
    display: block;
}

.pub-item:hover,
.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 28, 22, 0.08);
    border-color: #d8cdb9;
}

.pub-item h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: #201e1a;
}

.pub-img {
    width: 190px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd0bf;
    flex-shrink: 0;
    background: #efe5d7;
    display: block;
}

.placeholder-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e7d7c3, #dfeee9);
    color: #234d48;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.pub-content {
    flex: 1;
    min-width: 0;
}

.card-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e9dfd2;
    background: linear-gradient(140deg, rgba(245, 241, 234, 0.65), rgba(252, 250, 245, 0.98));
    box-shadow: 0 4px 12px rgba(31, 28, 22, 0.03);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #ddd0bf;
    flex-shrink: 0;
    background: #efe5d7;
    display: block;
}

/* clickable media cursor */
.pub-img, .card-img {
    cursor: zoom-in;
}

/* Modal / lightbox for enlarged video */
.video-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11,11,10,0.6);
    z-index: 1200;
}
.video-modal-inner {
    width: min(1100px, 92%);
    background: rgba(0,0,0,0.92);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.video-modal video {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}
.video-modal .close-btn {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 22px;
    position: absolute;
    right: 18px;
    top: 18px;
    cursor: pointer;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h3 {
    margin: 0 0 4px;
    font-size: 1.04rem;
    color: #201e1a;
}

.authors {
    margin: 0;
    font-size: 0.9rem;
    color: #4a4339;
}

.venue, .tech-stack {
    margin: 4px 0;
    font-size: 0.88rem;
    color: #5f574d;
}

.desc {
    font-size: 0.91rem;
    margin: 7px 0;
    color: #2f2a23;
}

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

.item-links a {
    color: #0b5953;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 0;
    position: relative;
}

.item-links a:hover {
    text-decoration: none;
}

.item-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1.5px;
    background: rgba(11, 89, 83, 0.42);
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 160ms ease;
}

.item-links a:hover::after {
    transform: scaleX(1);
}

/* Abstract collapsible */


footer {
    margin-top: 22px;
    padding: 24px 42px 30px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.85rem;
    color: #675f55;
}

@media (max-width: 650px) {
    body {
        padding: 14px 0;
    }

    .container {
        border-radius: 16px;
    }

    .profile {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
    }

    section {
        padding: 18px 18px 2px;
    }

    .links {
        justify-content: center;
    }

    .card-item {
        flex-direction: column;
        padding: 12px;
        align-items: stretch;
    }

    .pub-item {
        padding: 12px;
    }

    .pub-item {
        flex-direction: column;
        gap: 12px;
    }

    .pub-img {
        width: 100%;
        height: auto;
        max-height: 220px;
    }

    .card-img {
        width: 100%;
        height: auto;
        max-height: 220px;
    }

    .card-content,
    .pub-content {
        width: 100%;
    }

    footer {
        padding: 18px 18px 24px;
    }
}