/* CSS Variables for easy color theme changes */
:root {
    --sidebar-bg: #111827;
    --sidebar-text: #f9fafb;
    --main-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent-color: #3b82f6;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* --- Left Sidebar Layout --- */
.sidebar {
    width: 320px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    /* Keeps sidebar in place while right side scrolls */
    height: 100vh;
    overflow-y: auto;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #374151;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.sidebar h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.sidebar .tagline {
    color: #9ca3af;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
}

.nav-links {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-links a {
    display: block;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.75rem 1rem;
    background-color: #1f2937;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- Right Main Content Layout --- */
.main-content {
    flex: 1;
    margin-left: 320px;
    /* Offset for the fixed sidebar */
    padding: 4rem 5rem;
    max-width: 1000px;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Experience/Research Item Styling */
.content-item {
    margin-bottom: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.date-location {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

ul.tech-stack {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

ul.tech-stack li {
    background-color: #f3f4f6;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem;
    }

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