/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --text-color: #1f2937;
  --background-color: #ffffff;
  --secondary-color: #6b7280;
  --accent-color: #f59e0b;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --gradient-start: #4f46e5;
  --gradient-end: #f59e0b;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

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

a:hover::after {
  width: 100%;
}

h2 {
  margin: 1.5rem 0;
  font-weight: 600;
  font-size: 24px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.papertitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.papertitle:hover {
  transform: translateX(5px);
  color: var(--primary-hover);
}

.name {
  padding-top: 2rem;
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.one {
  width: 180px;
  height: 180px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
}

.one:hover {
  transform: scale(1.05);
  border-color: rgba(79, 70, 229, 0.3);
}

.one img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two {
  width: 180px;
  height: 180px;
  position: absolute;
  transition: opacity var(--transition-speed) ease-in-out;
  border-radius: 50%;
}

.fade {
  transition: opacity var(--transition-speed) ease-in-out;
}

span.highlight {
  background-color: rgba(245, 158, 11, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Add container class for better content alignment */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Add responsive design */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .name {
    font-size: 28px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  .one, .two {
    width: 140px;
    height: 140px;
  }
}

/* Card styles */
.card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1), 0 4px 6px -2px rgba(79, 70, 229, 0.05);
}

/* Teaching section styles */
.teaching-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.teaching-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.teaching-item:hover {
  background-color: #f1f5f9;
  transform: translateX(5px);
}

.teaching-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  background-color: #f8fafc;
}

.teaching-details {
  flex: 1;
}

.teaching-details p {
  margin: 0.5rem 0;
  color: var(--text-color);
}

/* Responsive design for teaching section */
@media (max-width: 768px) {
  .teaching-item {
    flex-direction: column;
    text-align: center;
  }
  
  .teaching-item img {
    width: 100px;
    height: 100px;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Papers list styles */
.papers-list {
  margin-top: 2rem;
}

.paper-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: #f8fafc;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.paper-image {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f8fafc;
}

.paper-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 1rem;
}

.paper-details {
  flex: 1;
}

.paper-details p {
  margin: 0.5rem 0;
  color: var(--text-color);
}

.paper-details a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.paper-details a:hover {
  color: var(--primary-hover);
}

/* Responsive design for papers list */
@media (max-width: 768px) {
  .paper-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .paper-image {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
  
  .paper-image img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Papers grid styles */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.paper-card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.paper-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1), 0 4px 6px -2px rgba(79, 70, 229, 0.05);
}

.paper-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
}

.paper-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 1rem;
}

.paper-card:hover .paper-image img {
  transform: scale(1.05);
}

.paper-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.paper-meta {
  margin: 0.5rem 0;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.paper-links {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.paper-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

.paper-content p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
}

/* Responsive design for papers grid */
@media (max-width: 768px) {
  .papers-grid {
    grid-template-columns: 1fr;
  }
  
  .paper-image {
    height: 180px;
  }
}