/* Import Google Fonts */
@import url("/?originalUrl=https%3A%2F%2Ffonts.googleapis.com%2Fcss2%3Ffamily%3DNunito%3Awght%40300%3B400%3B500%3B600%3B700%26family%3DPlayfair%2BDisplay%3Awght%40400%3B500%3B600%3B700%26display%3Dswap");

/* CSS Variables for theming */
:root {
  --bg-color: #f8f5f2;
  --text-color: #2d2a27;
  --heading-color: #1a1816;
  --link-color: #8b6d4c;
  --link-hover-color: #6d563c;
  --container-bg: rgba(255, 252, 248, 0.95);
  --container-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --border-color: #e6e0d8;
  --image-bg: #ffffff;
  --badge-bg: #fdf6ed;
  --badge-color: #8b6d4c;
  --text-secondary: #5d5a55;
  --hover-bg: #f5f0e8;
  --hover-bg-dark: #e6e0d8;
  --transition-speed: 0.3s;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Nunito', sans-serif;
}

/* Dark mode variables */
[data-theme="dark"] {
  --bg-color: #1a1816;
  --text-color: #e6e0d8;
  --heading-color: #f8f5f2;
  --link-color: #c4a77d;
  --link-hover-color: #d4b78d;
  --container-bg: rgba(26, 24, 22, 0.95);
  --container-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  --border-color: #3d3a35;
  --image-bg: #2d2a27;
  --badge-bg: #3d3a35;
  --badge-color: #c4a77d;
  --text-secondary: #b8b5b0;
  --hover-bg: #2d2a27;
  --hover-bg-dark: #3d3a35;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  margin: 0;
  padding: 0;
  letter-spacing: 0.03em;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--container-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--container-shadow);
  transition: all var(--transition-speed);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 18px;
  color: var(--text-color);
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--container-bg);
  border-radius: 12px;
  box-shadow: var(--container-shadow);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

/* Typography */
body {
  font-size: 16px;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

/* Name styling */
name {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  display: block;
  margin-bottom: 10px;
  transition: color var(--transition-speed);
  position: relative;
}

name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  transition: background-color var(--transition-speed);
}

/* Interest items */
.interests {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--hover-bg);
  border-radius: 4px;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9em;
  letter-spacing: -0.01em;
}

.interest-item:hover {
  background: var(--hover-bg-dark);
}

.interest-item i {
  font-size: 1em;
  color: var(--text-secondary);
}

/* Heading styles */
heading {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 600;
  color: var(--heading-color);
  display: block;
  margin-top: 40px;
  margin-bottom: 20px;
  transition: color var(--transition-speed);
}

heading::before {
  display: none;
}

/* Paper title styles */
papertitle {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: 0.02em;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--link-hover-color);
}

/* Table styles */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  margin: 0;
}

td {
  padding: 15px 0;
  vertical-align: middle;
}

/* Add spacing between paper entries */
tr {
  margin-bottom: 30px;
  display: block;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

tr:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Increase spacing between image and text */
td:first-child {
  padding-right: 30px;
}

/* Fix for transparent PNG images */
.png-image {
  background-color: var(--container-bg);
  mix-blend-mode: normal;
  object-fit: contain;
}

/* Image and video styles */
.one {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--image-bg);
  transition: background-color var(--transition-speed);
  position: relative;
  margin-bottom: 10px;
}

.one:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.one img, .one video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
  background-color: var(--container-bg);
}

/* Fix for transparent PNG images */
.one img[src$=".png"] {
  background-color: var(--container-bg);
  mix-blend-mode: normal;
}

@media (prefers-color-scheme: dark) {
  .one img[src$=".png"] {
    background-color: var(--container-bg);
    mix-blend-mode: normal;
  }
}

.one:hover img,
.one:hover video {
  transform: scale(1.03);
}

/* Publication badge */
.publication-badge {
  display: inline-block;
  padding: 0 0px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 0px;
  font-family: var(--body-font);
  letter-spacing: 0.02em;
  font-style: italic;
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

.publication-badge.oral {
  font-weight: 600;
  color: var(--link-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  body {
    font-size: 15px;
  }

  name {
    font-size: 2em;
  }

  heading {
    font-size: 1.3em;
  }

  .interests {
    gap: 8px;
  }

  .interest-item {
    padding: 4px 10px;
    font-size: 0.85em;
  }

  td {
    display: block;
    width: 100% !important;
    padding: 10px 0;
    text-align: center;
  }

  .one {
    margin: 0 auto 20px;
    max-width: 250px;
  }

  /* Center text content on mobile */
  td:last-child {
    text-align: left;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .container {
    padding: 30px 15px;
  }

  body {
    font-size: 14px;
  }

  name {
    font-size: 1.8em;
  }

  .interests {
    justify-content: center;
  }

  .one {
    max-width: 220px;
  }
}

/* Animations */
.fade {
  transition: opacity 0.2s ease-in-out;
  -moz-transition: opacity 0.2s ease-in-out;
  -webkit-transition: opacity 0.2s ease-in-out;
}

/* Highlights */
span.highlight {
  background-color: var(--hover-bg);
  padding: 0 2px;
  border-radius: 2px;
}

/* Custom styling for publication entries */
tr {
  transition: background-color 0.2s ease;
  border-radius: 0;
  margin-bottom: 0;
}

tr:hover {
  background-color: transparent;
}

/* Style for the profile section */
tr:first-child {
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--border-color);
}

/* Style for the footer */
table:last-of-type {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

/* Style for the contact links */
p[style="text-align:center"] {
  margin-top: 1.5em;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Style for the equal contribution text */
small {
  color: var(--text-secondary);
  font-size: 0.85em;
  letter-spacing: -0.01em;
}

/* Style for the conference/journal names */
em {
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
}