:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-alt: #f3f4f6;
    --border-color: #e5e7eb;
    --max-width: 1050px;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

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

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.profile-img {
    max-width: 100%; /* Ensure it doesn't overflow if container is small */
}

.profile-img img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.role {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-info {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-md);
}

.pub-thumb img {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    object-fit: cover;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
}

.pub-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.pub-content h3 a {
    color: var(--text-color);
}

.pub-content h3 a:hover {
    color: var(--primary-color);
}

.authors {
    color: var(--text-light);
    margin-bottom: 0.15rem;
}

.venue {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.venue strong {
    color: #d97706; /* Highlight awards */
}

.links {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.links a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.links a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--bg-alt);
    margin-top: var(--spacing-lg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item {
        grid-template-columns: 1fr;
    }
    
    .pub-thumb {
        max-width: 300px;
    }
}
