@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --saffron: #ff9933;
    --saffron-dark: #e07b12;
    --saffron-soft: #fff4e8;
    --saffron-glow: rgba(255, 153, 51, 0.25);
    --ink: #1c1917;
    --ink-muted: #57534e;
    --ink-light: #78716c;
    --paper: #ffffff;
    --canvas: #faf8f5;
    --line: #e7e5e4;
    --shadow-soft: 0 24px 60px rgba(28, 25, 23, 0.08);
    --shadow-nav: 0 4px 24px rgba(28, 25, 23, 0.06);
    --radius: 14px;
    --nav-h: 58px;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    margin: 0;
    padding-top: var(--nav-h);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 153, 51, 0.12), transparent 55%),
        radial-gradient(circle at 100% 50%, rgba(255, 200, 140, 0.08), transparent 40%),
        var(--canvas);
    color: var(--ink);
    line-height: 1.72;
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--saffron);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 2000;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

/* —— Navigation —— */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--shadow-nav);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    max-width: 980px;
}

.nav-links a {
    padding: 8px 11px;
    text-decoration: none;
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, transform 0.15s;
}

.nav-links a:hover {
    color: var(--saffron-dark);
    background: var(--saffron-soft);
    text-decoration: none;
}

/* —— Page shell —— */
.page-wrap {
    max-width: 900px;
    margin: 28px auto 0;
    padding: 0 28px 56px;
    background: var(--paper);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    border-bottom: none;
}

/* —— Hero —— */
.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
    padding: 48px 12px 40px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, var(--saffron-soft) 0%, rgba(255, 244, 232, 0.35) 45%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--saffron-glow), transparent 70%);
    pointer-events: none;
}

.header-text {
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.header-eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--saffron-dark);
}

.site-header h1 {
    font-family: var(--serif);
    margin: 0 0 10px;
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0 0 22px;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.name-row h1 {
    margin: 0;
}

.header-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 16px;
}

.header-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.header-links a:hover {
    color: var(--saffron-dark);
    border-color: var(--saffron);
    background: #fff;
}

.header-links .fa-linkedin {
    color: #0A66C2;
}

.header-links .fa-linkedin:hover {
    color: #0A66C2;
}

.profile-frame {
    position: relative;
    z-index: 1;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--saffron), #ffc285, var(--saffron-dark));
    box-shadow: 0 16px 40px var(--saffron-glow);
}

.profile-img {
    display: block;
    width: 188px;
    height: 188px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--paper);
}

/* —— Sections (continuous flow) —— */
section {
    padding: 36px 8px;
    border-bottom: 1px solid var(--line);
}

section:last-of-type {
    border-bottom: none;
}

section p,
section ul,
section ol {
    text-align: left;
    color: var(--ink-muted);
}

section h2 {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 22px;
    padding: 0 0 0 16px;
    border-left: 4px solid var(--saffron);
    border-bottom: none;
    text-align: left;
    letter-spacing: -0.01em;
}

section h3 {
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
    text-align: left;
}

section > p:first-of-type,
#about > p:first-of-type {
    font-size: 1.05rem;
}

#about h3 {
    margin-top: 24px;
}

ul li,
ol li {
    margin-bottom: 14px;
}

ul li strong,
ol li strong {
    color: var(--ink);
}

a {
    color: var(--saffron-dark);
    text-decoration: underline;
    text-decoration-color: rgba(224, 123, 18, 0.35);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
    color: var(--saffron);
    text-decoration-color: var(--saffron);
}

.sub-list {
    margin-top: 10px;
    padding-left: 1.1rem;
    list-style: disc;
}

.sub-list li {
    margin-bottom: 8px;
    font-size: 0.97rem;
    color: var(--ink-light);
}

.sub-list li::marker {
    color: var(--saffron);
}

/* Core expertise */
.expertise-list {
    margin-top: 8px;
    padding-left: 1.25rem;
}

.expertise-list li {
    margin-bottom: 16px;
    line-height: 1.65;
    color: var(--ink-muted);
}

.expertise-list li::marker {
    color: var(--saffron);
}

.expertise-list li strong {
    color: var(--ink);
}

/* Skills as tags */
#skills ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#skills li {
    margin: 0;
    padding: 14px 18px;
    background: linear-gradient(90deg, var(--saffron-soft), transparent);
    border-radius: 10px;
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-left: 4px solid var(--saffron);
}

/* Publications */
.publications {
    padding-left: 1.25rem;
}

.publications li {
    padding: 16px 0 16px 8px;
    margin-bottom: 0;
    border-bottom: 1px dashed var(--line);
    transition: background 0.2s;
    border-radius: 0 8px 8px 0;
}

.publications li:last-child {
    border-bottom: none;
}

.publications li:hover {
    background: rgba(255, 244, 232, 0.45);
}

.publications li::marker {
    color: var(--saffron-dark);
    font-weight: 700;
}

.best-paper-award {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(185, 28, 28, 0.15);
}

/* Contact */
.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 16px 0 20px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.contact-social a:hover {
    color: var(--saffron-dark);
}

.contact-social i {
    color: var(--saffron);
}

#contact > p i {
    color: var(--saffron);
    width: 22px;
}

/* Footer */
.main-footer {
    max-width: 900px;
    margin: 0 auto 32px;
    padding: 28px 24px 36px;
    text-align: center;
    background: var(--ink);
    color: #a8a29e;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #292524;
    border-top: 3px solid var(--saffron);
}

.main-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .navbar {
        position: static;
        height: auto;
        padding: 10px 8px;
    }

    .page-wrap {
        margin-top: 0;
        border-radius: 0;
        padding: 0 18px 40px;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }

    .site-header {
        padding: 32px 8px 28px;
        gap: 28px;
    }

    .nav-links a {
        padding: 7px 9px;
        font-size: 0.8rem;
    }

    section {
        padding: 28px 4px;
    }

    .main-footer {
        border-radius: 0;
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
