@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Open+Sans:wght@400;600;700&display=swap");

:root {
    --primary-color: #0b1f3a;
    --secondary-color: #eaf2ff;
    --accent-color: #006d77;
    --accent-strong: #004f57;
    --text-color: #111827;
    --background-color: #ffffff;
    --subtle-accent: #94a3b8;
    --card-background: #ffffff;
    --light-text-color: #ffffff;
    --link-color: #0b57b7;
    --link-hover-color: #083f7c;
    --focus-color: #ffbf47;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background-color);
    color: var(--text-color);
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
    line-height: 1.7;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

header h1 {
    margin: 0;
    color: var(--light-text-color);
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
}

header h1 a {
    color: var(--light-text-color);
    text-decoration: none;
}

header h1 a:hover {
    color: #dbeafe;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 14px;
}

nav a {
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

nav a:hover {
    background: #ffffff;
    color: var(--primary-color);
}

.hero {
    padding: 4.6rem 0 3rem;
    color: var(--light-text-color);
    background: #123a66;
    border-bottom: 4px solid #006d77;
}

.page-home .hero {
    text-align: left;
}

.hero-content {
    max-width: 760px;
}

.hero h2 {
    margin: 0 0 0.8rem;
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 1.2;
}

.hero p {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.cta-button,
.notify-button {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    background: var(--accent-color);
    color: var(--light-text-color);
}

.cta-button:hover,
.notify-button:hover {
    background: var(--accent-strong);
    color: var(--light-text-color);
}

.about-me,
.research-interests,
.skills-expertise,
.contact-content,
.cv-section {
    padding: 2.8rem 0;
}

.about-me {
    background: var(--secondary-color);
}

.page-home .interests {
    padding-bottom: 4rem;
}

.about-me-content {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.about-me-image {
    flex: 1;
    text-align: center;
}

.about-me-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 4px solid #bfdbfe;
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.14);
}

.about-me-text {
    flex: 2;
}

.about-me h2,
.research-interests h2,
.skills-expertise h2,
.cv-section h2 {
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
    font-size: 1.72rem;
    font-weight: 400;
}

.interests-grid,
.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.interest-item,
.skill-card,
.project-card,
.contact-section,
.coming-soon {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid #bfd0e6;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    padding: 1.2rem;
}

.interest-item i,
.contact-method i,
.social-links a:hover {
    color: var(--accent-color);
}

.interest-item h3,
.skill-card h3,
.project-card h3,
.research-interests h3,
.contact-section h3,
.skill-category,
.timeline-item h3 {
    margin: 0 0 0.55rem;
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 400;
}

.skills-list,
.interests-list,
.key-skills,
.project-tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skills-list li,
.interests-list li,
.project-tag,
.skill-tag {
    font-size: 0.82rem;
    background: #eef8f9;
    border: 1px solid #9ed0d5;
    color: #08363b;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-method a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-method a:hover {
    color: var(--accent-strong);
}

.personal-note {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    color: #1e293b;
}

.cv-section {
    border-bottom: 0;
    scroll-margin-top: 135px;
}

.page-cv main > .container > .cv-section:nth-of-type(odd) {
    border-bottom: 1px solid var(--subtle-accent);
}

.page-cv main > .container > #research-experience.cv-section,
.page-cv main > .container > #awards.cv-section {
    border-bottom: 0;
}

.page-cv main > .container > .cv-section:last-of-type {
    border-bottom: 0;
}

.cv-quick-nav {
    position: sticky;
    top: 70px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #bfd0e6;
    backdrop-filter: blur(6px);
}

.cv-quick-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0;
}

.cv-quick-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.6rem;
    overflow: visible;
    white-space: nowrap;
    flex: 1;
}

.cv-nav-group {
    position: relative;
    padding-bottom: 0.25rem;
}

.cv-nav-group > a::after {
    content: " \25BE";
    font-size: 0.72em;
}

.cv-quick-nav a {
    display: inline-block;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #f2f8ff;
    border: 1px solid #bfd0e6;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

.cv-quick-nav a:hover {
    color: #072c30;
    border-color: #5f9fa7;
    background: #dff4f6;
}

.cv-sub-links {
    display: none;
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #bfd0e6;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    z-index: 20;
}

.cv-nav-group:hover .cv-sub-links,
.cv-nav-group.is-open .cv-sub-links,
.cv-nav-group:focus-within .cv-sub-links {
    display: block;
}

.cv-sub-links li + li {
    margin-top: 0.25rem;
}

.cv-sub-links a {
    display: block;
    background: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    white-space: nowrap;
}

.cv-quick-nav a.is-active,
.cv-quick-nav a[aria-current="location"] {
    color: #072c30;
    border-color: #5f9fa7;
    background: #dff4f6;
    box-shadow: inset 0 0 0 1px rgba(95, 159, 167, 0.2);
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #5b8fc9;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: -1.85rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid #ccfbf1;
}

.timeline-item p {
    margin: 0 0 0.4rem;
}

.timeline-item ul,
.skill-card ul,
.contact-reasons ul,
.research-interests ul {
    margin: 0;
    padding-left: 1.1rem;
}

.interest-item ul {
    margin: 0;
    padding-left: 1.1rem;
}

.research-interests {
    background: #f4f9ff;
    border-radius: 12px;
    border: 1px solid #dce8f7;
    padding: 1.2rem;
}

.research-interests ul {
    columns: 2;
}

.publications-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.publications-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.publications-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.blog-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 20px 3rem;
}

.blog-section {
    margin-bottom: 1.5rem;
}

.blog-section h2 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
    font-weight: 400;
}

.blog-intro {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #bfd0e6;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    padding: 1.3rem;
    margin-bottom: 1rem;
}

.blog-item h3 {
    margin: 0 0 0.5rem;
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 400;
}

.blog-meta {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.blog-item .cta-button {
    margin-top: 0.6rem;
    display: inline-block;
}

.blog-empty-state {
    margin-top: 0.9rem;
    color: #475569;
}

footer {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 1.6rem 0;
    border-top: 4px solid #006d77;
}

a {
    color: var(--link-color);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration-thickness: 2px;
}

nav a,
.cta-button,
.notify-button,
.cv-quick-nav a,
.social-links a {
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    border-radius: 4px;
}

nav a:focus-visible,
.cta-button:focus-visible,
.notify-button:focus-visible,
.cv-quick-nav a:focus-visible,
.social-links a:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.social-links {
    margin-top: 0.8rem;
}

.social-links a {
    color: var(--light-text-color);
    margin: 0 0.42rem;
    font-size: 1.3rem;
}

.social-links a:hover {
    color: #bff7ff;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 3.8rem 0 2.3rem;
        text-align: left;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-actions {
        gap: 0.6rem;
    }

    .about-me-content,
    .contact-grid,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item::before {
        left: -1.36rem;
    }

    .research-interests ul {
        columns: 1;
    }

    .cv-quick-nav {
        top: 104px;
    }

    .cv-quick-nav-inner {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .cv-quick-links {
        flex-basis: 100%;
        overflow-x: auto;
    }

    .cv-sub-links {
        display: none;
        position: absolute;
        min-width: 210px;
        border: 1px solid #bfd0e6;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
        background: #ffffff;
        padding: 0.45rem;
    }

    .cv-nav-group:hover .cv-sub-links,
    .cv-nav-group:focus-within .cv-sub-links,
    .cv-nav-group.is-open .cv-sub-links {
        display: block;
    }

    .cv-section {
        scroll-margin-top: 170px;
    }
}
