:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --bg-color: #ffffff;
    --bg-secondary: #f3f4f6;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #60a5fa;
        --primary-dark: #3b82f6;
        --text-color: #f3f4f6;
        --text-light: #d1d5db;
        --bg-color: #111827;
        --bg-secondary: #1f2937;
        --border-color: #374151;
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
}

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

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

.logo:hover {
    text-decoration: none;
    color: var(--primary-color);
}

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

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

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

/* Main Content Styles */
main {
    padding: 80px 0 40px;
}

section {
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
    scroll-margin-top: 80px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.profile-pic {
    width: clamp(150px, 25vw, 300px);
    height: clamp(150px, 25vw, 300px);
    flex-shrink: 0;
    border-radius: 10%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* Timeline/List Items (Education & Experience) */
.timeline-item {
    margin-bottom: 25px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.timeline-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.timeline-subtitle {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
}

.timeline-item ul {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeline-item ul li {
    margin-bottom: 5px;
}

/* Publications */
.pub-item {
    margin-bottom: 25px;
}

.pub-item p {
    margin-bottom: 5px;
}

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

.pub-authors {
    color: var(--text-light);
    font-size: 0.95rem;
}

.pub-venue {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-color);
}

.pub-links a {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.85rem;
    padding: 3px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-light);
}

.pub-links a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .timeline-header {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        /* In a real app, you'd add a hamburger menu */
    }
}