@import url("/?originalUrl=https%3A%2F%2Ffonts.googleapis.com%2Fcss2%3Ffamily%3DInter%3Awght%40300%3B400%3B500%3B600%3B700%26family%3DJetBrains%2BMono%3Awght%40400%3B500%26display%3Dswap");

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --radius-md: 8px;
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
}

[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --bg-primary: #111827;
  --bg-tertiary: #374151;
  --border-light: #374151;
  --border-medium: #4b5563;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus,
a:hover {
  color: var(--primary-dark);
}


td, th, tr, p {
  font-family: inherit;
  font-size: inherit;
}

strong {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
}

h2 {
  font-family: inherit;
  font-size: 32px;
  font-weight: 600;
  display: block;
  margin-bottom: 24px;
  color: var(--text-primary);
}

h3 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  display: inline;
  line-height: 1.4;
}

h1 {
  font-family: inherit;
  font-size: 48px;
  font-weight: 700;
  display: block;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
}


.profile-section {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  padding: 48px 0;
}


.profile-text {
  flex: 1;
  min-width: 400px;
}

.profile-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-image {
  flex: 0 0 auto;
  width: 240px;
  max-width: 100%;
}

.profile-image-mobile {
  display: none;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}


.papers-section {
  margin-bottom: 80px;
}

.paper-item {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}


.paper-image {
  flex: 0 0 auto;
  width: 340px;
  max-width: 100%;
}

.paper-content {
  flex: 1;
  min-width: 400px;
}

/* Year styling - keep inline */
.paper-content em {
  font-style: normal;
}

/* Summary text styling - only for em tags that contain a lot of text */
.paper-content em[style*="opacity: 0.625"] {
  font-size: 15px;
  color: var(--text-primary);
  opacity: 0.8;
  line-height: 1.6;
  display: block;
  margin-top: 16px;
  font-style: normal;
}

.paper-content br + a {
  display: inline-block;
  margin-top: 8px;
}

.paper-content a + a::before {
  content: ' • ';
  color: var(--text-muted);
  margin: 0 4px;
}

.paper-content br {
  line-height: 1.4;
}

/* Add spacing after authors line */
.paper-content > br:nth-of-type(2) {
  margin-bottom: 10px;
}

/* Reduce spacing before links */
.paper-content > br:nth-of-type(3) {
  margin-bottom: -2px;
}

.projects-section {
  margin-bottom: 80px;
}

.project-item {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}


.project-images {
  flex: 0 0 auto;
  width: 280px;
  max-width: 100%;
  text-align: center;
}

.project-content {
  flex: 1;
  min-width: 400px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #666;
}

.one {
  width: auto;
  max-width: 340px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0 auto;
  background: var(--bg-tertiary);
  display: inline-block;
}


.two {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity var(--transition-normal) ease-in-out;
  display: block;
}

.one img,
.one video {
  max-width: 340px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}


.project-images img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 8px;
  display: inline-block;
}

.project-images.side-by-side {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 210px;
}

.project-images.side-by-side img {
  flex: 0 0 auto;
  margin: 0;
  max-height: 210px;
  width: auto;
}

.project-item:has(.side-by-side) .project-images {
  width: auto;
  min-width: auto;
}

/* Legacy table styles for compatibility */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

td {
  vertical-align: top;
  padding: 0;
}


.dark-mode-toggle {
  position: fixed;
  top: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-size: 18px;
}

.dark-mode-toggle:hover {
  border-color: var(--border-medium);
}


/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .paper-image[onmouseout][onmouseover] {
    pointer-events: none;
  }

  .paper-image[onmouseout][onmouseover] .one {
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 32px 24px;
  }
  
  
  .dark-mode-toggle {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 32px;
  }
  
  .profile-image {
    display: none;
  }
  
  .profile-image-mobile {
    display: block;
    width: 240px;
    max-width: 100%;
    margin: 24px auto;
  }
  
  .profile-image-mobile img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
  }
  
  
  .paper-item,
  .project-item {
    flex-direction: column;
    text-align: center;
    padding: 24px 0;
    gap: 20px;
  }
  
  .profile-image,
  .paper-image,
  .project-images {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .profile-text,
  .paper-content,
  .project-content {
    min-width: auto;
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 17px;
  }
}

/* Blog-specific styles */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-posts {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-header h2 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 700;
}

.blog-post-header h2 a {
  color: #1772d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-header h2 a:hover {
  color: #f09228;
}

.blog-post-header h2 a::after {
  content: " →";
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.blog-post-header h2 a:hover::after {
  opacity: 1;
}

.blog-date {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 13px;
  font-style: italic;
}

.blog-excerpt {
  color: #555;
  line-height: 1.6;
}

.blog-excerpt p {
  margin: 0;
}

/* Individual blog post styles */
.blog-post-container {
  max-width: 700px;
  margin: 0 auto;
}

.blog-post-container .blog-post-header {
  text-align: left;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blog-post-container .blog-post-header h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.blog-post-content {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.blog-post-content h2 {
  margin: 30px 0 15px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.blog-post-content h3 {
  margin: 25px 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.blog-post-content p {
  margin: 0 0 20px 0;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 20px 0;
  padding-left: 30px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid #1772d0;
  background-color: #f8f9fa;
  font-style: italic;
}

.blog-post-content code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
}

@media (max-width: 768px) {
  .blog-post-container .blog-post-header h1 {
    font-size: 24px;
  }
  
  .blog-post-content {
    font-size: 14px;
  }
  
  .blog-post-content h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
  }
  
  
  .paper-item,
  .project-item {
    padding: 20px 0;
  }
  
  .one {
    max-width: 280px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .dark-mode-toggle {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}