/* Shared Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #080d18;
    color: #b0bcc8;
    margin: 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Canvas background */
#eeg-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    background-color: rgba(8, 14, 28, 0.92);
    border: 1px solid rgba(45, 100, 140, 0.28);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.55);
    text-align: center;
    max-width: 700px;
    width: 90%;
    margin: 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(45, 150, 210, 0.70);
    box-shadow: 0 0 18px rgba(45, 150, 210, 0.20);
}

h1 { color: #dce8f4; margin-bottom: 5px; }
h2 { color: #5a7890; font-weight: 400; font-size: 1.1em; margin-top: 0; margin-bottom: 30px; }

p { line-height: 1.6; }

/* Research blurb */
.research-blurb {
    font-size: 0.95em;
    color: #8aa0b4;
    line-height: 1.7;
    margin-bottom: 28px;
    text-align: left;
}

.research-blurb a {
    color: #4ab8d8;
    text-decoration: none;
}

.research-blurb a:hover { text-decoration: underline; }

/* Inline contact link */
.contact-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85em;
    color: #4a6880;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.contact-link:hover { color: #7aaac8; }

/* Buttons/Links */
.links a, .back-btn {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #0e6fa8;
    padding: 10px 20px;
    margin: 8px;
    border-radius: 5px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.95em;
}

.links a:hover, .back-btn:hover {
    background-color: #1285c4;
    box-shadow: 0 0 12px rgba(18, 133, 196, 0.40);
}

.links a.scholar         { background-color: #2d60c8; }
.links a.scholar:hover   { background-color: #3b72e0; box-shadow: 0 0 12px rgba(59, 114, 224, 0.40); }
.links a.pub-link        { background-color: #1a4a40; }
.links a.pub-link:hover  { background-color: #226050; box-shadow: 0 0 12px rgba(34, 96, 80, 0.50); }
.links a.projects-link   { background-color: #1a3a58; }
.links a.projects-link:hover { background-color: #204870; box-shadow: 0 0 12px rgba(32, 72, 112, 0.50); }

/* Project Page Specifics */
.projects-list { text-align: left; margin-top: 30px; }

.project-card {
    border-left: 3px solid rgba(45, 180, 130, 0.60);
    background: rgba(10, 18, 34, 0.80);
    padding: 15px 18px;
    margin-bottom: 18px;
    border-radius: 0 6px 6px 0;
}

.project-card h4 { margin: 0 0 8px 0; color: #3ecfa0; font-size: 1em; }
.project-card p  { margin: 5px 0; font-size: 0.93em; line-height: 1.5; color: #90a8b8; }

/* Paper links */
.paper-links { margin-top: 10px; }

.paper-link {
    font-size: 0.84em;
    color: #4ab8d8;
    text-decoration: none;
    margin-right: 14px;
    font-weight: 500;
}

.paper-link:hover { text-decoration: underline; color: #6ad0ee; }

.paper-link::before {
    content: "🔗 ";
    font-size: 0.88em;
}

/* Publication cards */
.pub-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pub-year {
    font-size: 0.78em;
    font-weight: 600;
    color: #3ecfa0;
    letter-spacing: 0.05em;
}

.pub-citations {
    font-size: 0.78em;
    color: #4a6880;
}

.pub-authors {
    font-size: 0.88em;
    color: #7a9ab0;
    margin: 4px 0;
}

.pub-authors strong { color: #b0cce0; }

.pub-venue {
    font-size: 0.84em;
    color: #506878;
    font-style: italic;
    margin: 4px 0 0;
}

/* Footer note */
.footer-note {
    margin-top: 30px;
    font-size: 0.78em;
    color: #2e4458;
}

/* ── Page intro & section headings ─────────────────────────────── */
.page-intro {
    font-size: 0.93em;
    color: #8aa0b4;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 6px;
}

.page-intro a { color: #4ab8d8; text-decoration: none; }
.page-intro a:hover { text-decoration: underline; }

.section-title {
    text-align: left;
    color: #7aaac8;
    font-size: 0.82em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 38px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(45, 100, 140, 0.28);
}

.section-lead {
    text-align: left;
    font-size: 0.91em;
    color: #8aa0b4;
    margin: 0 0 14px;
}

.section-note {
    text-align: left;
    font-size: 0.85em;
    color: #62809a;
    margin: 12px 0 0;
}

.section-note a, .paper-link-plain {
    color: #4ab8d8;
    text-decoration: none;
}

.section-note a:hover, .paper-link-plain:hover { text-decoration: underline; }

/* Publication type tag */
.pub-tag {
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a6880;
    border: 1px solid rgba(45, 100, 140, 0.40);
    border-radius: 3px;
    padding: 1px 7px;
}

/* ── Student guide: research areas ─────────────────────────────── */
.area-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.91em;
    line-height: 1.6;
    color: #90a8b8;
}

.area-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3ecfa0;
}

.area-list strong { color: #b0cce0; font-weight: 600; }

/* ── Student guide: numbered steps ─────────────────────────────── */
.steps-list {
    text-align: left;
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
}

.steps-list .step-card {
    counter-increment: step;
    position: relative;
    padding-left: 46px;
    margin-bottom: 20px;
}

.steps-list .step-card::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(10, 18, 34, 0.90);
    border: 1px solid rgba(45, 180, 130, 0.55);
    color: #3ecfa0;
    font-size: 0.82em;
    font-weight: 600;
}

.steps-list .step-card h4 {
    margin: 4px 0 6px;
    color: #3ecfa0;
    font-size: 1em;
}

.steps-list .step-card p {
    margin: 0;
    font-size: 0.91em;
    line-height: 1.6;
    color: #90a8b8;
}

/* ── Checklist ─────────────────────────────────────────────────── */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.91em;
    line-height: 1.55;
    color: #90a8b8;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3ecfa0;
    font-size: 0.9em;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .container { padding: 26px 20px; width: 94%; margin: 10px; }
    .links a, .back-btn { display: block; margin: 8px 0; }
    .pub-meta { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* section-note keeps its own styling inside a card */
.project-card p.section-note {
    color: #62809a;
    margin: 14px 0 0;
    font-size: 0.85em;
}
