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

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* CSS Variables for theming */
:root {
    --primary-color: #4F46E5;
    --background-color: #fff2e6;
    --card-background-color: #fff2e6;
    --text-color: #111827;
    --subtext-color: #6B7280;
    --border-color: #000;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
}

[data-theme="dark"] {
    --background-color: #111827;
    --card-background-color: #1F2937;
    --text-color: #E5E7EB;
    --subtext-color: #9CA3AF;
    --border-color: #374151;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

/* Main container */
.container {
    max-width: 75rem; /* max-w-7xl is 80rem, but let's give it a bit more space */
    margin: 0 auto;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 3rem 2rem;
        width: 90%;
    }
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .layout-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
    }
}

/* Aside / Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
}

@media (min-width: 1024px) {
    .sidebar {
        grid-column: span 1 / span 1;
        position: sticky;
        top: 3rem;
    }
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    width: 14rem;
    height: 14rem;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.profile-title {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-top: 0.25rem;
}

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

.social-links a {
    color: var(--subtext-color);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-top: 2.5rem;
    width: 100%;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

@media (max-width: 1023px) {
    .sidebar-nav {
        display: none;
    }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .main-content {
        grid-column: span 3 / span 3;
    }
}

.main-content section {
    scroll-margin-top: 0.5rem;
}

.social-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-links ul li img {
    width: 2rem;
    height: 2rem;
}
/* Card styles */
.card {
    background-color: var(--card-background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    /* position: sticky; */
    top: 0;
    background: var(--card-background-color);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card li {
    margin-bottom: 1rem;
    list-style: disc;
    line-height: 1.5rem;
}

.card strong {
    color: var(--text-color);
    font-weight: 500;
}

.card p { line-height: 1.75;}

.card ol, .card ul {
    padding-left: 1.25rem;
    margin-top: 1rem;
}

.card-title .material-icons {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.card a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: dotted 1px #424242;
    transition: text-decoration 0.2s;
    font-weight: 300;
}

/* Typography for 'About' section */
.prose {
    color: var(--text-color);
    max-width: none;
    font-size: 1rem;
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.25em;
}

/* Publications list */
.publications-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publications-list li {
    display: flex;
    gap: 0.75rem;
    color: var(--subtext-color);
}

.publications-list li::before {
    content: "▪";
    color: var(--primary-color);
    margin-top: 0.125rem; /* Adjust vertical alignment */
}

.publications-list li span {
    font-weight: 500;
    color: var(--text-color);
}

/* Updates timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.timeline-item {
    margin-bottom: 2rem;
}

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

.timeline-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-color);
    border-radius: 9999px;
    margin-top: 0.375rem;
    left: -0.5rem;
    border: 2px solid var(--card-background-color);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--subtext-color);
}

.timeline-content {
    color: var(--text-color);
}

/* Master Thesis section */
.thesis-intro {
    margin-bottom: 1.5rem;
    color: var(--subtext-color);
}

.thesis-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thesis-list li {
    display: flex;
    gap: 0.75rem;
    color: var(--subtext-color);
}

.thesis-list li::before {
    content: "→";
    color: var(--primary-color);
}

.thesis-list li span {
    font-weight: 600;
    color: var(--text-color);
}

.thesis-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.thesis-list a:hover {
    text-decoration: underline;
}