/* Custom styles for single page portfolio */

:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-accent: #e9ecef;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-accent: #495057;
  --border-color: #dee2e6;
  --link-color: #007bff;
  --link-hover: #0056b3;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
}

/* Dark theme colors */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-accent: #404040;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --text-accent: #ced4da;
  --border-color: #404040;
  --link-color: #66b3ff;
  --link-hover: #4da6ff;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(26, 26, 26, 0.95);
  --card-bg: #2d2d2d;
}

/* Theme transition */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Body styles */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Toggle buttons container */
.toggle-buttons {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1001;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Theme toggle button */
.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-color);
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* Language toggle button */
.lang-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px var(--shadow-color);
  min-width: 60px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* Navigation styles */
.custom-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--link-color);
  border-bottom-color: var(--link-color);
}

.nav-secondary {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-secondary a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-secondary a:hover {
  background: var(--bg-accent);
  color: var(--text-primary);
}

/* Main content */
.main-content {
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Section styles */
.section {
  padding: 60px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section:first-child {
  min-height: calc(100vh - 80px);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}


.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 100px 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--link-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-accent);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Publication card */
.publication-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.publication-card:hover {
  box-shadow: 0 8px 24px var(--shadow-color);
  transform: translateY(-3px);
}

.publication-image {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.publication-content {
  flex: 1;
}

.publication-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.publication-authors {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.publication-venue {
  color: var(--link-color);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.publication-description {
  color: var(--text-accent);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
}

.publication-link {
  padding: 6px 12px;
  background: var(--link-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

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

.publication-link.secondary {
  background: transparent;
  color: var(--link-color);
  border: 1px solid var(--link-color);
}

.publication-link.secondary:hover {
  background: var(--link-color);
  color: white;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 80px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--link-color);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.timeline-date {
  position: absolute;
  left: -60px;
  top: 0;
  background: var(--bg-accent);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

/* Education description styles */
.university-description {
  color: var(--text-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.school-description {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* Gaokao score styles */
.gaokao-score {
  color: var(--link-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.skill-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--link-color);
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-level {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skill-description {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.8;
  font-style: italic;
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.contact-icon {
  font-size: 2rem;
  color: var(--link-color);
  margin-bottom: 1rem;
}

.contact-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-value {
  color: var(--text-secondary);
}

.contact-value a {
  color: var(--link-color);
  text-decoration: none;
}

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

/* Friends section */
.friends-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
  margin-top: 4rem;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.friend-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.friend-card:hover {
  transform: translateY(-3px);
}

.friend-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.friend-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .toggle-buttons {
    top: 15px;
    right: 15px;
    gap: 8px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .lang-toggle {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    min-width: 50px;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .nav-menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-content {
    padding-top: 120px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .publication-card {
    flex-direction: column;
    text-align: center;
  }
  
  .publication-image {
    width: 100%;
    max-width: 300px;
    height: 180px;
    margin: 0 auto;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-date {
    left: -45px;
    font-size: 0.75rem;
  }
}

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

/* Hide original masthead when using custom nav */
.custom-layout .masthead {
  display: none;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Section Animations */
.hero {
  animation: fadeInScale 0.8s ease-out;
}

.hero-photo {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-contact {
  animation: fadeInUp 1s ease-out 1s both;
}

/* Remove page-load animations for sections (only keep Hero animations)
   All other animations are scroll-triggered */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero Photo Styles */
.hero-photo {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 48px var(--shadow-color);
}

/* Hero Contact Info */
.hero-contact {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-contact p {
  margin: 0.5rem 0;
}

.hero-contact a {
  color: var(--link-color);
  text-decoration: none;
}

.hero-contact a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Research Experience Styles */
.research-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.research-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.research-period {
  background: linear-gradient(135deg, var(--link-color), #28a745);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.research-content {
  color: var(--text-primary);
}

.research-supervisor {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.research-details h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.8rem 0;
  font-weight: 600;
}

.research-details ul {
  margin: 0.8rem 0 1.5rem 1.5rem;
  padding: 0;
}

.research-details li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.research-details p {
  margin: 0.8rem 0 1.5rem 0;
  line-height: 1.6;
  color: var(--text-primary);
}

.research-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.status-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.under-review {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
}

.status-badge.published {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.status-badge.in-progress {
  background: linear-gradient(135deg, #007bff, #6610f2);
  color: white;
}

/* Mobile Responsive for Research Section */
@media (max-width: 768px) {
  .profile-photo {
    width: 150px;
    height: 150px;
  }
  
  .hero-contact {
    font-size: 0.9rem;
  }
  
  .research-item {
    padding: 1.5rem;
  }
  
  .research-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .research-title {
    font-size: 1.1rem;
    min-width: unset;
  }
  
  .research-period {
    align-self: flex-start;
  }
  
  .research-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 统一动画效果 - 与Hero保持一致 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 统一初始隐藏状态 */
/* 初始隐藏所有可动画元素 (除了Hero) */
.section:not(.hero),
.card,
.timeline-item,
.skill-item,
.section-subtitle,
.contact-item {
  opacity: 0;
  transform: translateY(30px);
}

/* 统一动画效果 - 与Hero保持一致 */
.section:not(.hero).animate-in,
.card.animate-in,
.timeline-item.animate-in,
.skill-item.animate-in,
.section-subtitle.animate-in,
.contact-item.animate-in {
  animation: fadeInUp 1s ease-out forwards;
}

/* 统一延迟效果 - 按出现顺序递增延迟 */
/* 卡片网格元素 */
.card.animate-in:nth-child(1) { animation-delay: 0.1s; }
.card.animate-in:nth-child(2) { animation-delay: 0.2s; }
.card.animate-in:nth-child(3) { animation-delay: 0.3s; }
.card.animate-in:nth-child(4) { animation-delay: 0.4s; }
.card.animate-in:nth-child(5) { animation-delay: 0.5s; }

/* 技能网格元素 */
.skill-item.animate-in:nth-child(1) { animation-delay: 0.1s; }
.skill-item.animate-in:nth-child(2) { animation-delay: 0.2s; }
.skill-item.animate-in:nth-child(3) { animation-delay: 0.3s; }
.skill-item.animate-in:nth-child(4) { animation-delay: 0.4s; }
.skill-item.animate-in:nth-child(5) { animation-delay: 0.5s; }
.skill-item.animate-in:nth-child(6) { animation-delay: 0.6s; }

/* 联系方式网格元素 */
.contact-item.animate-in:nth-child(1) { animation-delay: 0.1s; }
.contact-item.animate-in:nth-child(2) { animation-delay: 0.2s; }
.contact-item.animate-in:nth-child(3) { animation-delay: 0.3s; }
.contact-item.animate-in:nth-child(4) { animation-delay: 0.4s; }

/* 时间线元素 */
.timeline-item.animate-in:nth-child(1) { animation-delay: 0.1s; }
.timeline-item.animate-in:nth-child(2) { animation-delay: 0.2s; }
.timeline-item.animate-in:nth-child(3) { animation-delay: 0.3s; }
.timeline-item.animate-in:nth-child(4) { animation-delay: 0.4s; }
.timeline-item.animate-in:nth-child(5) { animation-delay: 0.5s; }
.timeline-item.animate-in:nth-child(6) { animation-delay: 0.6s; }
.timeline-item.animate-in:nth-child(7) { animation-delay: 0.7s; }
.timeline-item.animate-in:nth-child(8) { animation-delay: 0.8s; }
.timeline-item.animate-in:nth-child(9) { animation-delay: 0.9s; }
.timeline-item.animate-in:nth-child(10) { animation-delay: 1.0s; }

/* 小标题 */
.section-subtitle.animate-in { animation-delay: 0.15s; }

/* 减速动画设置 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero section buttons */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hero-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.hero-button span {
  transition: transform 0.2s ease;
}

.hero-button:hover span:first-child {
  transform: scale(1.1);
}

/* Specific button gradients */
.hero-button[href*="cv.pdf"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hero-button[href*="cv.pdf"]:hover {
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.hero-button[href="#contact"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.hero-button[href="#contact"]:hover {
  box-shadow: 0 6px 25px rgba(245, 87, 108, 0.6);
}

/* Dark theme adjustments for buttons */
[data-theme="dark"] .hero-button {
  color: white;
}

[data-theme="dark"] .hero-button:hover {
  color: white;
}

/* CV Download button in navigation */
.cv-download-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.cv-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5) !important;
  color: white !important;
}

[data-theme="dark"] .cv-download-btn {
  color: white !important;
}

[data-theme="dark"] .cv-download-btn:hover {
  color: white !important;
}

/* Talk & Presentations enhanced formatting */
.talk-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.talk-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(245, 247, 250, 0.6);
  border-radius: 8px;
  border-left: 3px solid #52c41a;
}

.talk-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.meta-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 70px;
  flex-shrink: 0;
  opacity: 0.9;
}

.meta-label::after {
  content: ':';
  margin-left: 2px;
}

.meta-value {
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
}

.talk-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

/* Responsive adjustments for talks */
@media (max-width: 768px) {
  .talk-meta {
    padding: 0.75rem;
  }
  
  .meta-label {
    min-width: 60px;
    font-size: 0.9rem;
  }
  
  .meta-value {
    font-size: 0.9rem;
  }
  
  .talk-title {
    font-size: 1.15rem;
  }
}

/* Dark theme for talk meta */
[data-theme="dark"] .talk-meta {
  background: rgba(45, 45, 45, 0.5);
  border-left-color: #73d13d;
}

/* Talk Actions */
.talk-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.talk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-color: #f59e0b;
}

.talk-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #d97706;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

/* Award organizer */
.award-organizer {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Music Outputs */
.music-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 968px) {
  .music-grid {
    grid-template-columns: 1fr;
  }
}

.music-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
}

.music-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.music-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.music-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.music-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.music-download {
  font-size: 0.85rem;
  color: #667eea;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 2px solid #667eea;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.music-download:hover {
  background: #667eea;
  color: white;
}

[data-theme="dark"] .music-download {
  color: #a5b4fc;
  border-color: #a5b4fc;
}

[data-theme="dark"] .music-download:hover {
  background: #a5b4fc;
  color: #1a1a1a;
}

.music-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.music-player {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  outline: none;
}

/* Publications */
.publication-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
}

.publication-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .publication-card {
  border-color: rgba(255, 255, 255, 0.1);
}

.publication-card.animate-in:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.publication-image {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .publication-image {
  background: #2a2a2a;
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: white;
}

[data-theme="dark"] .publication-image img {
  background: #1a1a1a;
}

.publication-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  letter-spacing: 0.5px;
}

.publication-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.publication-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .publication-meta {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pub-venue {
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 500;
}

.pub-role {
  color: #667eea;
  font-weight: 600;
}

[data-theme="dark"] .pub-role {
  color: #a5b4fc;
}

.publication-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pub-btn.pdf {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: #ef4444;
}

.pub-btn.pdf:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #dc2626;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.pub-btn.demo {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #10b981;
}

.pub-btn.demo:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

@media (max-width: 968px) {
  .publication-card {
    flex-direction: column;
  }
  
  .publication-image {
    width: 100%;
    height: 280px;
  }
  
  .publication-title {
    font-size: 1.2rem;
  }
}