:root {
    --bg-color: #ffffff;
    --text-main: #2D2926;
    --text-muted: #555555;
    --accent: #5D1725; /* MSU Maroon */
    --accent-light: #f4ecee;
    --secondary: #0056b3;
    --font-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --font-sans: 'Outfit', sans-serif;
    --border: #e1e1e1;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    z-index: 100;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus {
    top: 0;
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 4rem 0;
    font-family: var(--font-sans);
    font-weight: 500;
}

.nav a {
    padding: 0.5rem 1.2rem;
    color: var(--text-muted);
    border-radius: 20px;
}

.nav a:hover {
    background: var(--accent-light);
    color: var(--accent);
    text-decoration: none;
}

.nav a.active {
    background: var(--accent);
    color: white;
}

/* Header / Profile */
.header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
    background: linear-gradient(to bottom, #fcfcfc, #ffffff);
    border-bottom: 1px solid var(--border);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 20px !important;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

h1 {
    font-family: var(--font-sans);
    font-size: 2.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: var(--text-main);
}

.title {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-info {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info a i {
    margin-right: 0.4rem;
}

/* Sections */
.section-title, h2 {
    font-size: 1.8rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-sans);
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 600;
}

.bio p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Publications */
.pub-list {
    list-style-type: none;
    padding: 0;
}

.pub-list li {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.pub-list li:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.pub-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.pub-actions a, .pub-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
}

.pub-actions button:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
}

.theme-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.theme-label i {
    color: var(--accent);
    opacity: 0.7;
}

.bibtex-block {
    display: none;
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem;
    margin-top: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
}

/* Footer */
footer {
    background: #fcfcfc;
    margin-top: 8rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Student Mentoring */
.group-list {
    list-style: none;
    padding: 0;
}

.group-list li {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.student-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.student-details {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.student-thesis {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    display: inline-block;
}

.status-badge.graduated {
    background-color: var(--accent-light);
    color: var(--accent);
}

.status-badge.award {
    background-color: #ffd70033;
    color: #856404;
    border: 1px solid #ffeeba;
}

.student-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: white !important;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

.cv-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    text-decoration: none;
}
