@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* Basic Reset & Design Variables */
:root {
    --primary-color: #0366d6;
    --primary-hover: #0256c4;
    --success-color: #28a745;
    --success-hover: #218838;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
}

/* Centered Container for content */
.top-nav .nav-container,
.main-wrapper,
.full-width-section {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sticky Glassmorphic Header Navigation Styles */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.nav-logo {
    font-weight: 700;
    font-size: 1.25em;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    cursor: default;
}

.top-nav nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.top-nav nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 550;
    font-size: 0.95em;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.top-nav nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(3, 102, 214, 0.05);
}

.top-nav nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(3, 102, 214, 0.08);
    font-weight: 700;
}


/* Layout - Two Columns using Grid */
.main-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.full-width-section {
    margin-top: 32px;
    margin-bottom: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Sidebar Specific Styles */
.sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
    display: block;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sidebar img:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
}

.sidebar h3 {
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    font-size: 0.9em;
}

.sidebar ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.sidebar ul li .icon {
    margin-right: 10px;
    width: 20px;
    display: inline-block;
    text-align: center;
    font-size: 1.1em;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* About Section & News Styles */
.content h2,
.full-width-section h2 {
    font-size: 1.45em;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    color: var(--text-primary);
}

.content h2:first-of-type {
    margin-top: 0;
}

.content p,
.full-width-section p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.975em;
}

.content a,
.full-width-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 550;
    transition: var(--transition);
}

.content a:hover,
.full-width-section a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* News Feed Container */
.news-container {
    max-height: 250px;
    overflow-y: auto;
    background-color: var(--bg-secondary);
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.news-container ul {
    list-style: none;
    margin-left: 0 !important;
}

.news-container li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.925em;
    color: var(--text-secondary);
}

.news-container li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Custom Scrollbar for news and general scrollable regions */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Publications List */
.publications-list {
    list-style: none;
    padding-left: 0;
}

.publication-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pub-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
}

.pub-authors {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 6px;
}

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

.pub-venue {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85em;
    font-weight: 700;
}

/* Interactive Timeline (Experience Section) */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

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

.timeline-marker {
    position: absolute;
    top: 6px;
    left: -30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    transition: var(--transition);
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background: var(--primary-color);
    transform: scale(1.1);
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: var(--transition);
}

.timeline-content:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.timeline-title {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-company {
    color: var(--primary-color);
}

.timeline-time {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-desc {
    margin-top: 8px;
    font-size: 0.925em;
    color: var(--text-secondary);
}

.timeline-desc ul {
    list-style: disc;
    margin-left: 20px !important;
    margin-top: 6px;
}

.timeline-desc li {
    margin-bottom: 4px;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 24px;
    font-size: 0.9em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    width: 100%;
}

/* Email Unscramble styling */
#emailUnscrambleLink {
    cursor: pointer;
}

#emailUnscrambleLink span.contact-icon-emoji {
    margin-right: 6px;
}

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

    .sidebar {
        position: static;
        width: 100%;
        text-align: center;
    }

    .sidebar img {
        margin: 0 auto 20px auto;
        max-width: 140px;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .sidebar ul li {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .top-nav .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .top-nav nav ul {
        gap: 12px;
    }

    .content,
    .full-width-section {
        padding: 20px;
    }

    .timeline-title {
        flex-direction: column;
        gap: 2px;
    }

    .timeline-time {
        margin-top: 2px;
    }
}