:root {
    --bg-color: #0f172a;
    /* dark slate */
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    /* blue */
    --accent-hover: #60a5fa;
    --border-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styling */
.sidebar {
    width: 35%;
    min-width: 380px;
    padding: 4rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.profile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-img-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    padding: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

.profile-img-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--surface-color);
    /* Fallback */
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

.resume-wrapper {
    margin-top: 1rem;
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-resume:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Main Content Styling */
.content {
    width: 65%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 3px;
}

/* About Section */
#about-section {
    margin-bottom: 4rem;
}

.markdown-content {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* Publications Simple List */
.simple-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pub-item:last-child {
    border-bottom: none;
}

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

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

.pub-authors strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pub-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.pub-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.2rem;
}

.pub-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pub-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

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

    .profile {
        align-items: center;
        max-width: 600px;
    }

    .content {
        width: 100%;
        padding: 3rem 2rem;
    }
}