@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --sidebar-bg: #f8fafc;
    --primary-text: #1a1a1b;
    --secondary-text: #5e6166;
    --accent-color: #8da9d6;
    /* Pastel Blue */
    --border-color: #e5e7eb;
    --sidebar-width: 320px;
    --container-max-width: 800px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--bg-color);
    display: flex;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 3rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img {
    width: 200px;
    height: auto;
    max-height: 280px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.sidebar .role {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    text-align: left;
    width: 100%;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.contact-list li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list i {
    color: var(--primary-text);
    margin-top: 0.3rem;
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

.contact-list span {
    flex: 1;
}

.sidebar-nav {
    margin-top: auto;
    width: 100%;
    padding-top: 2rem;
}

.sidebar-nav ul {
    list-style: none;
    text-align: left;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.cv-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.2s;
    width: 100%;
}

.cv-button:hover {
    background-color: #7a98c9;
    transform: translateY(-2px);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--secondary-text);
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Main Content Styling */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 4rem 5rem;
    max-width: calc(var(--container-max-width) + var(--sidebar-width));
}

section {
    margin-bottom: 4rem;
}

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

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.entry-content {
    flex: 1;
}

.entry-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.entry-subtitle {
    color: var(--secondary-text);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.entry-details {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.date-badge {
    background: #f1f5f9;
    color: var(--secondary-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    height: fit-content;
    white-space: nowrap;
    margin-left: 1rem;
}

.publication-item {
    margin-bottom: 2.5rem;
}

.pub-title {
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-size: 1.05rem;
}

.pub-authors {
    color: var(--secondary-text);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.pub-venue {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
    }

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

    .sidebar-nav {
        display: none;
    }
}