/* 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;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 8px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 300px;
  height: 300px;
  position: relative;
}

.two {
  width: 300px;
  height: 300px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* CSS Variables */
:root {
  --bg-color: #fafafa;
  --text-color: #333;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-hover: #f0f0f0;
  --border-color: #e0e0e0;
  --link-color: #0066cc;
  --highlight-bg: #ffffd0;
  --table-bg: #ffffff;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --nav-bg: rgba(26, 26, 26, 0.95);
  --nav-hover: #404040;
  --border-color: #404040;
  --link-color: #66b3ff;
  --highlight-bg: #2d2d2d;
  --table-bg: #2d2d2d;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

p {
  margin-bottom: 6px;
}

p:last-child {
  margin-bottom: 0;
}

/* News Section Styles */
.news-container {
  max-width: 800px;
  max-height: 200px;
  margin: 0 auto 20px auto;
  padding: 12px 16px;
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  overflow-x: hidden;
}

.news-item {
  padding: 6px 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-weight: 700;
  color: var(--link-color);
  display: inline-block;
  min-width: 90px;
  flex-shrink: 0;
  font-size: 14px;
}

/* Custom scrollbar for news */
.news-container::-webkit-scrollbar {
  width: 6px;
}

.news-container::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb:hover {
  background: var(--link-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .additional-logos-container {
    flex-direction: column;
    gap: 25px;
  }
  
  .additional-item {
    max-width: 300px;
  }
  
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .about-text {
    text-align: left;
  }
  
  .news-container {
    margin: 0 10px 20px 10px;
    padding: 12px;
    max-height: 280px;
  }
  
  .news-item {
    font-size: 14px;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
  }
  
  .news-date {
    font-size: 14px;
  }
}
/* Navigation Bar Styles */
.nav-container {
  position: sticky;
  top: 0;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 15px 0;
  margin-bottom: 25px;
}

.navbar {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: var(--nav-hover);
}

.nav-link.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-left: 15px;
  opacity: 0.8;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background-color: var(--nav-hover);
  border-color: var(--text-color);
  opacity: 1;
  transform: scale(1.05);
}

/* Timeline Styles */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
}

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  margin-right: 16px;
  margin-top: 8px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: var(--link-color);
  border-radius: 50%;
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 3px var(--link-color);
  z-index: 2;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 16px;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--link-color), transparent);
  opacity: 0.4;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-year {
  position: absolute;
  left: 25px;
  top: -5px;
  background-color: var(--link-color);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
  flex: 1;
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--link-color), #66b3ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: var(--link-color);
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 16px;
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: white;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.timeline-title h3 {
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
}

.timeline-subtitle {
  margin: 0 0 8px 0;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 14px;
  font-style: italic;
}

.timeline-role {
  margin: 0 0 4px 0;
  color: var(--link-color);
  font-weight: 500;
  font-size: 14px;
}

.timeline-duration {
  margin: 0;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
}

.timeline-body {
  color: var(--text-color);
  line-height: 1.6;
}

/* Compact Experience Styles */
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.experience-time {
  color: var(--text-color);
  opacity: 0.7;
  font-weight: 400;
  font-size: 14px;
  font-style: italic;
}

.experience-subtitle {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
  font-style: italic;
  margin: 4px 0 8px 0;
}

.experience-toggle {
  margin: 8px 0;
}

.experience-toggle a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.experience-toggle a:hover {
  background-color: var(--link-color);
  color: white;
}

.experience-details {
  margin-top: 12px;
  padding: 12px;
  background-color: var(--bg-color);
  border-radius: 8px;
  border-left: 3px solid var(--link-color);
  font-size: 14px;
  line-height: 1.5;
}

/* Card Styles */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 0;
}

.experience-card {
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--link-color), #66b3ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--link-color);
}

.experience-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.card-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: white;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.card-title h3 {
  margin: 0 0 6px 0;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.card-subtitle {
  margin: 0 0 6px 0;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 14px;
  font-style: italic;
}

.card-role {
  margin: 0 0 3px 0;
  color: var(--link-color);
  font-weight: 500;
  font-size: 14px;
}

.card-duration {
  margin: 0;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
}

.card-body {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 14px;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slide.active {
  display: block;
}

.slide:nth-child(4) {
  object-fit: contain;
  transform: scale(0.8);
}

.slideshow-dots {
  text-align: center;
  margin-top: 8px;
}

.dot {
  height: 6px;
  width: 6px;
  margin: 0 3px;
  background-color: #ddd;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0.6;
}

.dot.active, .dot:hover {
  background-color: #999;
  opacity: 1;
}

/* Profile Picture Styles with Gradient Border */
.profile-picture-wrapper {
  position: relative;
  width: 100%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  border-radius: 50%;
  animation: gradient-rotate 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-rotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.profile-picture-wrapper img {
  display: block;
  border: 3px solid var(--bg-color);
}

.profile-picture-wrapper:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* About Section Layout */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
}

.about-text {
  flex: 1;
  min-width: 0;
}

/* Profile picture now uses inline styles like original */

/* Responsive Design */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Timeline Experience Styles - With Gradients & Animation */
.timeline-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
}

.timeline-item-exp {
  position: relative;
  padding-left: 45px;
  margin-bottom: 40px;
}

.timeline-dot-exp {
  position: absolute;
  left: 0;
  top: 30px;
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border-radius: 50%;
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 2px #3b82f6;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item-exp:hover .timeline-dot-exp {
  background: #06b6d4;
  box-shadow: 0 0 0 2px #3b82f6;
  transform: scale(1.15);
}

.timeline-line-exp {
  position: absolute;
  left: 5px;
  top: 48px;
  width: 2px;
  height: calc(100% + 15px);
  background: linear-gradient(to bottom, #3b82f6 0%, #93c5fd 100%);
  opacity: 0.6;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.timeline-item-exp:hover .timeline-line-exp {
  opacity: 0.8;
}

.timeline-item-exp:last-child .timeline-line-exp {
  display: none;
}

.timeline-content-exp {
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.timeline-content-exp:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left-color: #3b82f6;
}

/* Clean Experience Styles - Balanced */
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 15px;
}

.experience-header strong {
  font-size: 16px;
  line-height: 1.4;
}

.experience-header strong a {
  transition: color 0.2s ease;
}

.experience-header strong a:hover {
  color: var(--gradient-mid);
}

.experience-time {
  color: var(--text-color);
  opacity: 0.6;
  font-weight: 400;
  font-size: 13px;
  white-space: nowrap;
  font-style: italic;
}

.experience-subtitle {
  color: var(--text-color);
  opacity: 0.7;
  font-weight: 400;
  font-size: 14px;
  font-style: italic;
  margin: 2px 0 12px 0;
}

.timeline-content-exp em {
  font-size: 15px;
  color: var(--text-color);
  font-weight: 500;
  display: block;
  margin: 4px 0 8px 0;
}

.timeline-content-exp > div > div > p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 12px 0 14px 0 !important;
}

/* Cleaner Tech Stack Tags */
.timeline-content-exp span[style*="background-color"] {
  background-color: var(--highlight-bg) !important;
  color: var(--text-color) !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  margin-right: 6px !important;
  margin-bottom: 6px !important;
  display: inline-block !important;
  transition: all 0.2s ease !important;
  border: 1px solid var(--border-color) !important;
  opacity: 0.95 !important;
}

.timeline-content-exp span[style*="background-color"]:hover {
  opacity: 1 !important;
  border-color: #3b82f6 !important;
}

.experience-toggle {
  margin: 12px 0 8px 0;
}

.experience-toggle a {
  color: #3b82f6;
  background-color: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  transition: all 0.2s ease;
  display: inline-block;
  border: 1.5px solid #3b82f6;
  border-radius: 6px;
}

.experience-toggle a:hover {
  background-color: #3b82f6;
  color: white;
}

.experience-details {
  margin-top: 12px;
  padding: 14px;
  background-color: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gradient-mid);
  font-size: 14px;
  line-height: 1.7;
}

.experience-details strong {
  color: var(--text-color);
  font-size: 14px;
  display: inline-block;
  margin-bottom: 6px;
}

.experience-details ul {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  padding-left: 20px !important;
  line-height: 1.8 !important;
}

.experience-details li {
  margin-bottom: 8px;
}

.experience-details li strong {
  color: var(--text-color);
  font-size: 14px;
  margin-bottom: 0;
}

/* Affiliation logo strip */
.affiliation-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 0 4px 0;
}

.affiliation-label {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.5;
  font-style: italic;
  margin-right: 4px;
}

.affiliation-logos a {
  display: inline-block;
}

.affiliation-logos img {
  height: 28px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.affiliation-logos img:hover {
  opacity: 1;
}

/* Global reset for images */
img {
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
}