/* Color variables - Stanford Theme */
:root {
    --primary-red: #8C1515;
    --light-red: #B83A4B;
    --dark-red: #820000;
    --stanford-light: #F4F4F4;
    --text-primary: #2E2D29;
    --text-secondary: #5E5E5E;
    --white: #ffffff;
    --border-color: #D5D5D5;
    --shadow-red: rgba(140, 21, 21, 0.1);
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--white);
}

/* Navigation */
nav {
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-red);
    margin-bottom: 40px;
    background-color: var(--white);
}

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

.nav-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-red);
    transition: color 0.2s ease;
}

.nav-name:hover {
    color: var(--dark-red);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--white);
    background-color: var(--primary-red);
    transform: translateY(-1px);
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 3em;
    max-width: 1200px;
    margin: 3em auto;
    padding: 2.5em;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-red);
    border-left: 4px solid var(--primary-red);
}

.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 16px var(--shadow-red);
    border: 2px solid var(--stanford-light);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0;
    font-size: 2.5em;
    color: var(--text-primary);
    font-weight: 600;
}

.profile-info h2 {
    margin: 0.3em 0 1em 0;
    font-size: 1.5em;
    color: var(--primary-red);
    font-weight: 500;
}

.institution {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 1.5em;
    font-weight: 500;
}

.contact-info {
    margin-top: 1.5em;
}

.contact-info p {
    margin: 0.5em 0;
    color: var(--text-secondary);
}

/* About section */
.about-section {
    max-width: 1200px;
    margin: 3em auto;
    padding: 2.5em;
    background: linear-gradient(135deg, var(--stanford-light) 0%, #FAFAFA 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-red);
    border-top: 3px solid var(--primary-red);
}

.about-section h2 {
    color: var(--primary-red);
    margin-bottom: 1em;
    font-weight: 600;
    font-size: 1.8em;
}

.about-section p {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 1.1em;
}

/* Publications */
.publications {
    margin-top: 3em;
}

.publications h2 {
    color: var(--primary-red);
    margin-bottom: 1.5em;
    font-weight: 600;
    font-size: 1.8em;
}

.paper {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2em;
    margin-top: 2em;
    box-shadow: 0 2px 6px var(--shadow-red);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.paper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow-red);
    border-left-color: var(--primary-red);
    border-color: var(--light-red);
}

.paper h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.3em;
}

.paper .authors {
    margin-bottom: 1em;
    color: var(--text-secondary);
    font-weight: 500;
}

.paper .abstract {
    margin-top: 1em;
    color: var(--text-primary);
    line-height: 1.6;
}

.paper p[style*="italic"] {
    font-style: italic;
    margin: 0.1em 0;
    color: var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    border-top: 2px solid var(--primary-red);
    margin-top: 50px;
    background: linear-gradient(135deg, var(--stanford-light) 0%, #FAFAFA 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2em;
        padding: 2em;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-info h1 {
        font-size: 2em;
    }

    .profile-info h2 {
        font-size: 1.3em;
    }
}

/* Links */
a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--dark-red);
}

/* Paper links */
.paper-links a {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: var(--stanford-light);
    border: 1px solid var(--primary-red);
    border-radius: 4px;
    margin-right: 0.8em;
    margin-bottom: 0.5em;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--primary-red);
}

.paper-links a:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow-red);
}

.social-links {
    display: flex;
    gap: 1.5em;
    margin-top: 1em;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: var(--stanford-light);
    transform: translateY(-2px);
}

.social-icon img {
    width: 22px;
    height: 20px;
    transition: all 0.2s ease;
    filter: opacity(0.8);
}

/* Special case for LinkedIn logo which is typically wider */
.social-icon img[alt="LinkedIn"] {
    width: 22px;
    height: 20px;
}

.social-icon:hover img {
    filter: opacity(1);
    transform: scale(1.1);
}