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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    background-color: #fafafa;
    line-height: 1.6;
}

/* Layout helpers */

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

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #f2f4f8;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 650;
    margin-bottom: 2rem;
    text-align: left;
}

/* Header / nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffffcc;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e4ea;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
}

.logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background-color: #1b4b9b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.main-nav a {
    margin-left: 1.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: #333;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -0.3rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1b4b9b;
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */

.hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.1rem, 2.6vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #4b4f5c;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 0.98rem;
    color: #343843;
    margin-bottom: 1.8rem;
}

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

.hero-photo {
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 999px;
    border: 2px dashed #c1c7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7f8a;
    font-size: 0.9rem;
    background: radial-gradient(circle at 30% 20%, #f7fbff, #e9edf5);
}


.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 1.5rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button.primary {
    background-color: #1b4b9b;
    color: #ffffff;
    border-color: #1b4b9b;
}

.button.primary:hover {
    background-color: #163b7a;
    border-color: #163b7a;
}

.button.secondary {
    background-color: #ffffff;
    color: #1b4b9b;
    border-color: #c1c7d0;
}

.button.secondary:hover {
    background-color: #f4f6fa;
}

/* Cards & grids */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.card {
    background-color: #ffffff;
    border-radius: 0.8rem;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid #e4e7ee;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.94rem;
    color: #414654;
}

.card ul {
    list-style: disc;
    padding-left: 1.1rem;
    font-size: 0.94rem;
    color: #414654;
}

.card ul li + li {
    margin-top: 0.25rem;
}

/* Projects */

.featured-projects .project-card {
    border-top: 3px solid #1b4b9b;
}

.project-meta {
    font-size: 0.85rem;
    color: #5b6372;
    margin-bottom: 0.6rem;
}

.project-list {
    margin-top: 2rem;
}

.project-list h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.project-list ul {
    list-style: disc;
    padding-left: 1.3rem;
    font-size: 0.94rem;
    color: #3a3f4b;
}

.project-list li + li {
    margin-top: 0.3rem;
}

/* Publications */

.pub-list {
    list-style: decimal;
    padding-left: 1.3rem;
    font-size: 0.94rem;
    color: #3a3f4b;
    margin-top: 1rem;
}

.pub-list li + li {
    margin-top: 0.5rem;
}

.pub-authors {
    font-weight: 500;
}

.pub-title {
    font-weight: 600;
}

.pub-venue {
    color: #555b68;
}

/* Contact */

.contact-text {
    max-width: 620px;
    font-size: 0.95rem;
    color: #3a3f4b;
    margin-bottom: 1.4rem;
}

.contact-text a {
    color: #1b4b9b;
    text-decoration: none;
}

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

.contact-actions {
    justify-content: flex-start;
}

/* Footer */

.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid #dde1ea;
    background-color: #ffffff;
    margin-top: 2rem;
}

.site-footer p {
    font-size: 0.85rem;
    color: #606675;
    text-align: center;
}

/* Responsive */

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .main-nav {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .main-nav a {
        margin-left: 1rem;
        margin-bottom: 0.2rem;
        font-size: 0.9rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-photo {
        order: -1;
        margin-bottom: 1rem;
    }

    .hero {
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        justify-content: space-between;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .main-nav a {
        margin-left: 0.7rem;
        font-size: 0.86rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}