@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Reset & Defaults ─────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: white;
    padding: 8rem 2rem 10rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    transition: background 0.05s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

.hero-content h1 {
    font-size: 4.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: relative;
    padding-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #c0c0c0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    transition: all 0.2s;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ─── Common Section Styles ───────────────────────────────────────────────── */
section {
    padding: 3rem max(2rem, calc((100% - 900px) / 2));
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer {
    background-color: #333;
    border-top: none;
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.footer-links {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-subtle-links {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    opacity: 0.62;
}

.footer-subtle-links a {
    color: #fff;
    text-decoration: none;
}

.footer-subtle-links a:hover {
    opacity: 0.95;
}

/* ─── Expertise Section ────────────────────────────────────────────────────── */
.expertise {
    background: linear-gradient(135deg, #fafafa 0%, #f0f7fc 25%, #f9f4fa 75%, #f0faf7 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 2rem;
}

.expertise-item {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    transition: all 0.2s;
}



.expertise-item .btn {
    margin-top: auto;
}

.expertise-item .btn.primary {
    background: linear-gradient(135deg, #f4f4f4 0%, #ececec 100%);
    color: #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.expertise-item .btn.primary:hover {
    background: linear-gradient(135deg, #eeeeee 0%, #e5e5e5 100%);
    color: #444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.expertise-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.expertise-item p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* ─── Publications Section ─────────────────────────────────────────────────── */
#pub-list {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

#pub-list li {
    margin-bottom: 1rem;
    line-height: 1.4;
    padding-left: 0;
    text-indent: 0;
}


#pub-list-more {
    margin-left: 0;
    padding-left: 0;
    list-style-position: inside;
    margin-top: 1rem;
    display: none;
}

#pub-list-more li {
    margin-bottom: 1rem;
    line-height: 1.4;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

#toggle-more-pubs {
    display: none;
    margin: 1rem 0 0 auto;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    color: #555;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

#toggle-more-pubs:hover {
    color: #111;
}

.publication-covers {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.25rem;
}

.publication-covers img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 4px;
}

/* ─── Collaborations Section ───────────────────────────────────────────────── */
.collaborations {
    background-color: #fff;
}

.collaborations > p {
    max-width: 760px;
    color: #555;
    font-size: 1rem;
}

.institutions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem 1.2rem;
    margin-top: 1.25rem;
    padding-left: 0;
    list-style: none;
}

.institutions-list li {
    padding: 0;
    font-size: 0.95rem;
    color: #555;
}

.institutions-list li::before {
    content: '•';
    color: #999;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 0.25em;
}

.join-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.55rem 0.95rem;
    background: #fff;
    color: #333;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.join-cta:hover {
    background: #f7f7f7;
    border-color: #c8c8c8;
}

/* ─── Team Section ─────────────────────────────────────────────────────────── */
.team {
    background: linear-gradient(135deg, #fafafa 0%, #f0f7fc 25%, #f9f4fa 75%, #f0faf7 100%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 3rem max(2rem, calc((100% - 900px) / 2));
}

.team > h2,
.team > p {
    grid-column: 1 / -1;
}

#team-members {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.team-member {
    display: flex;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    padding: 1.5rem;
    border-radius: 8px;
    align-items: center;
    transition: all 0.2s;
}


.team-member-lead {
    grid-column: 1 / -1;
}

.member-photo-wrap {
    position: relative;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.member-photo {
    width: 85px;
    object-fit: cover;
    border-radius: 5%;
    display: block;
}

.member-pubs {
    display: none;
}

.member-bio h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.member-bio p {
    margin: 0;
    white-space: pre-line;
}

.member-scholar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none;
}

.member-scholar-row {
    margin-bottom: 0.35rem;
}

.member-scholar-overlay {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    line-height: 0;
}

.member-scholar img {
    width: 15px;
    height: 15px;
    opacity: 0.95;
    filter: none;
    transition: opacity 0.2s, transform 0.2s;
}

.member-scholar:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

.publications {
    background-color: #fff;
}

/* ─── Logos Row ───────────────────────────────────────────────────────────── */
.logos {
    background-color: #fff;
    padding-top: 1rem;
}

.logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.logos-row img {
    max-height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: opacity 0.2s, filter 0.2s;
}

.logos-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logos-row img.logo-static {
    filter: grayscale(100%);
    opacity: 1;
}

.logos-row img.logo-static:hover {
    filter: grayscale(100%);
    opacity: 1;
}

.logos-row img.logo-standalone {
    flex: 0 0 100%;
    max-height: 64px;
    max-width: 240px;
}

.logos-row .logo-break {
    flex-basis: 100%;
    height: 0;
}

@media (max-width: 900px) {
    .team {
        grid-template-columns: 1fr;
    }

    #team-members {
        grid-template-columns: 1fr;
    }

    .institutions-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .publication-covers {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .institutions-list {
        justify-items: center;
    }

    .institutions-list li {
        text-align: center;
    }

    .institutions-list li::before {
        display: none;
    }
}

/* ─── Simulator Panels ─────────────────────────────────────────────────────── */
.simulator-panel {
    background-color: #fff;
    margin: 2rem auto 1rem;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.simulator-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.close-btn:hover {
    color: #333;
    background-color: #e0e0e0;
}

.simulator-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    vertical-align: bottom;
}

/* ─── Legacy Styles (lammps/news) ────────────────────────────────────────── */
body.legacy-page {
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin: 0;
    line-height: normal;
    color: inherit;
    background-color: #FFFFFF;
}

body.legacy-page badge {
    vertical-align: middle;
    display: inline-block;
    padding-bottom: 5px;
}

body.legacy-page paper {
    vertical-align: middle;
    display: inline-block;
    margin-top: 0px;
    width: 80%;
    padding-bottom: 20px;
}

body.legacy-page photo {
    vertical-align: middle;
    display: inline-block;
    width: 210px;
    padding-top: 5px;
    padding-bottom: 5px;
}

body.legacy-page bio {
    vertical-align: middle;
    display: inline-block;
    padding-bottom: 5px;
    padding-top: 5px;
    width: 70%;
}

body.legacy-page high {
    font-size: 14px;
    font-weight: 350;
    color: #00008B;
    display: inline;
}

body.legacy-page h1 {
    font-size: 24px;
    font-weight: 300;
    color: #00008B;
    display: inline;
}

body.legacy-page h2 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

body.legacy-page b {
    font-size: 14px;
    font-weight: 500;
}

body.legacy-page ita {
    font-style: italic;
}

body.legacy-page a {
    color: black;
    text-decoration: none;
}

body.legacy-page ol,
body.legacy-page ul {
    padding-left: 2rem;
}

body.legacy-page .center-div {
    margin: auto;
    margin-bottom: 20px;
    width: 75%;
    background-color: rgba(150, 150, 190, 0.3);
    padding: 15px;
    padding-bottom: 5px;
}

body.legacy-page .center2-div {
    margin: auto;
    margin-bottom: 20px;
    width: 75%;
    background-color: rgba(150, 190, 170, 0.3);
    padding: 15px;
    padding-bottom: 5px;
}

body.legacy-page .center3-div {
    margin: auto;
    margin-bottom: 20px;
    width: 75%;
    background-color: rgba(190, 150, 150, 0.3);
    padding: 15px;
    padding-bottom: 5px;
}

body.legacy-page .center3a-div {
    margin: auto;
    margin-bottom: 20px;
    width: 65%;
    background-color: rgba(190, 150, 150, 0.3);
    padding: 15px;
    padding-bottom: 5px;
}

body.legacy-page .center4-div {
    margin: auto;
    margin-bottom: 10px;
    width: 70%;
    background-color: rgb(255, 255, 255);
    padding: 0px;
    padding-bottom: 5px;
}

body.legacy-page .body-div {
    width: 100%;
    background-color: #FFFFFF;
    background-size: contain;
    position: absolute;
    top: 0;
    bottom: 0px;
}
