@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap");
@import url("fontawesome-all.min.css");

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #2d2d2d;
    background-color: #fafaf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #4a6fa5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2d4a7a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    padding: 3rem 2rem;
    background-color: #fff;
    border-right: 1px solid #e8e8e4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 2.5rem;
}

.sidebar-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.sidebar-name a {
    color: inherit;
    text-decoration: none;
}

.sidebar-name a:hover {
    color: #4a6fa5;
}

.sidebar-tagline {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.5;
    font-weight: 400;
}

/* Navigation */

.sidebar-nav {
    margin-bottom: 2.5rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.01em;
    border-bottom: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #1a1a1a;
    padding-left: 0.25rem;
}

.sidebar-nav a.active {
    font-weight: 600;
}

/* Social Icons */

.sidebar-social {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #888;
    font-size: 1.1rem;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sidebar-social a:hover {
    color: #1a1a1a;
    background-color: #f0f0ec;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    margin-left: 300px;
    flex: 1;
    min-height: 100vh;
}

.page-content {
    max-width: 720px;
    padding: 4rem 3rem;
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.hero {
    padding-top: 2rem;
}

.hero-greeting {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a6fa5;
    border: 1px solid #d0d0cc;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hero-links a:hover {
    background-color: #4a6fa5;
    color: #fff;
    border-color: #4a6fa5;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.section-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.section-text p {
    margin-bottom: 1rem;
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid #e8e8e4;
}

.about-intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-intro p {
    margin-bottom: 1rem;
}

.experience-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e8e8e4;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-role {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.experience-company {
    color: #4a6fa5;
    font-size: 0.95rem;
}

.experience-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.2rem;
}

.experience-description {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.education-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e8e8e4;
}

.education-item:last-child {
    border-bottom: none;
}

.education-degree {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.education-school {
    color: #4a6fa5;
    font-size: 0.95rem;
}

.education-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.2rem;
}

/* Skills / Interests */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    color: #555;
    background-color: #f0f0ec;
    border-radius: 4px;
    font-weight: 400;
}

/* ==========================================================================
   Publications Page
   ========================================================================== */

.publication-year {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8e8e4;
}

.publication-year:first-child {
    margin-top: 0;
}

.publication-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0ec;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.publication-title a {
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.publication-title a:hover {
    color: #4a6fa5;
}

.publication-authors {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.publication-venue {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.publication-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.publication-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a6fa5;
    padding: 0.2rem 0.5rem;
    border: 1px solid #d0d0cc;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.publication-links a:hover {
    background-color: #4a6fa5;
    color: #fff;
    border-color: #4a6fa5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e8e8e4;
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   Mobile Navigation Toggle
   ========================================================================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e4;
    z-index: 200;
    padding: 0 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.mobile-header-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.mobile-header-name a {
    color: inherit;
    text-decoration: none;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 150;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .mobile-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }

    .page-content {
        padding: 2.5rem 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .page-content {
        padding: 2rem 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-links {
        flex-direction: column;
    }

    .hero-links a {
        text-align: center;
        justify-content: center;
    }
}
