/* Global Vars */
:root {
    --primary-color: #0F172A;
    /* Slate 900 */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #1E3A8A;
    /* Dark Blue 800 - Academic */
    --text-color: #334155;
    --light-text: #64748B;
    --background-color: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

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

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

/* Navbar */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    object-fit: cover;
    object-position: top;
    aspect-ratio: 1/1;
}

.sidebar-info {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.contact-group h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--light-text);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    word-break: break-all;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Main Content Area */
.main-content {
    background-color: var(--white);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.profile-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.institution {
    color: var(--accent-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3.5rem;
}

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

.section-heading {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.text-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}

.interests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.interests-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.interests-list li:hover {
    border-color: var(--accent-color);
    transform: translateX(2px);
}

.interests-list li i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Timeline Components (Education & Experience) */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    margin-left: 0.5rem;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    /* Adjust based on padding-left + border width */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--accent-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.timeline-institution {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

.publications-list p {
    color: var(--light-text);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--light-text);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 850px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .profile-img {
        max-width: 100%;
    }

    .sidebar-info {
        text-align: center;
    }

    .contact-link {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .name {
        font-size: 2rem;
    }

    .main-content {
        padding: 1.5rem;
    }
}