:root {
  --primary-color: #4a4a4a;
  --secondary-color: #2d3748;
  --accent-color: #3182ce;
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #fff;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
}

header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 40px;
  background: var(--white);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition);
}

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



/* Sidebar */
aside {
  position: sticky;
  top: 40px;
  height: fit-content;
}

.profile-card {
  text-align: left;
}

.profile-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  object-fit: cover;
  margin-bottom: 20px;
}

.name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.title {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 20px;
}

.contact-info {
  text-align: left;
  font-size: 0.85rem;
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #444;
}

.contact-item i {
  margin-right: 12px;
  width: 14px;
  color: #555;
  font-size: 0.9rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

/* Main Content */
main {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

section:last-child {
  border-bottom: none;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 15px;
  display: block;
}

.section-content p {
  color: #555;
  font-size: 0.95rem;
  text-align: justify;
  margin-bottom: 10px;
}

.section-content {
  margin-top: 10px;
}

.section-content ul {
  margin-left: 40px;
  margin-top: 10px;
  margin-bottom: 20px;
  list-style-type: disc;
}

.section-content li {
  margin-bottom: 10px;
  padding-left: 5px;
  color: #555;
  font-size: 0.95rem;
}

.section-content li::marker,
.cv-desc li::marker {
  color: #555;
}

.cv-item {
  margin-bottom: 25px;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.cv-title {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.cv-date {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.cv-org {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.cv-desc {
  font-size: 0.95rem;
  color: #555;
}

.cv-desc ul {
  margin-left: 40px;
  margin-top: 5px;
}

.cv-desc li {
  margin-bottom: 5px;
}

/* Publication style */
.publication {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.pub-thumb {
  width: 220px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.pub-thumb:hover {
  transform: scale(1.02);
}

.pub-details {
  flex: 1;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 6px;
  line-height: 1.3;
  display: block;
}

.pub-authors {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

.pub-venue {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
  display: block;
}

.pub-links {
  display: flex;
  gap: 15px;
}

.pub-link {
  font-size: 0.75rem;
  color: var(--accent-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.pub-link:hover {
  text-decoration: underline;
}

.pub-link i {
  font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main section {
  animation: fadeIn 0.6s ease forwards;
}

main section:nth-child(1) {
  animation-delay: 0.1s;
}

main section:nth-child(2) {
  animation-delay: 0.2s;
}

main section:nth-child(3) {
  animation-delay: 0.3s;
}

main section:nth-child(4) {
  animation-delay: 0.4s;
}

main section:nth-child(5) {
  animation-delay: 0.5s;
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
  background: var(--white);
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    display: block;
    padding: 15px 20px;
  }
  
  .header-content {
    padding: 0 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  aside {
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    margin: 0 -20px 20px -20px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -6px rgba(0,0,0,0.1);
  }

  .profile-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 0 15px;
    align-items: center;
  }

  .profile-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 0;
    grid-row: 1 / 3;
    grid-column: 1;
    object-fit: cover;
  }

  .name {
    font-size: 1.2rem;
    margin-bottom: 2px;
    grid-row: 1;
    grid-column: 2;
    align-self: end;
  }

  .title {
    font-size: 0.85rem;
    margin-bottom: 0;
    grid-row: 2;
    grid-column: 2;
    align-self: start;
  }

  .contact-info {
    grid-column: 1 / 3;
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin-top: 15px;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .contact-info::-webkit-scrollbar {
    display: none;
  }

  .contact-item {
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 0.9rem;
  }

  .publication {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .pub-thumb {
    width: 100%;
    max-width: 300px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 0 20px;
  }
}