/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fdfdfd;
    --color-text: #2c2c2c;
    --color-muted: #666;
    --color-accent: #2a5a8a;
    --color-accent-light: #e8f0f8;
    --color-border: #ddd;
    --font-body: "Georgia", "Times New Roman", serif;
    --font-heading: "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 17px;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

a:hover {
    text-decoration: underline;
}

/* ===== Header ===== */
header {
    background: var(--color-accent);
    color: #fff;
    padding: 3rem 0 2rem;
    text-align: center;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

header .tagline {
    font-size: 1.1rem;
    margin-top: 0.3rem;
    opacity: 0.85;
}

.header-contact {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.header-contact a {
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.header-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

header nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

header nav a {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.2s;
}

header nav a:hover {
    opacity: 1;
    text-decoration: none;
}

/* ===== Sections ===== */
main {
    padding: 2rem 0 4rem;
}

section {
    margin-top: 3rem;
}

section:first-child {
    margin-top: 2rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.3rem;
    margin-bottom: 1.2rem;
    color: var(--color-accent);
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

#about p + p {
    margin-top: 1rem;
}

/* ===== Entries (Experience / Education) ===== */
.entry {
    margin-bottom: 1.8rem;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.entry-header .date {
    font-size: 0.9rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.entry ul {
    margin-top: 0.4rem;
    padding-left: 1.4rem;
}

.entry li {
    margin-bottom: 0.3rem;
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    font-size: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.2rem 0;
}

.skill-category li::before {
    content: "·";
    margin-right: 0.5rem;
    color: var(--color-accent);
    font-weight: bold;
}

/* ===== Publications ===== */
.scholar-stats {
    margin-bottom: 1rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.publications-list {
    padding-left: 1.4rem;
}

.publications-list li {
    margin-bottom: 0.8rem;
}

/* ===== Contact ===== */
.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 0.3rem 0;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

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

    body {
        font-size: 16px;
    }
}
