/* Global Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #6c757d;
  --text-color: #2c3e50;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  --accent-color: #34495e;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Typography */
.my-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
}

.lead {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-color);
  text-align: left;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* About Section */
.about-section {
  padding: 5rem 0 3rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.profile-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
}

.profile-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-image-container {
  text-align: center;
  margin: 2rem 0;
}

/* Contact Links */
.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.2);
  white-space: nowrap;
}

.contact-link:hover {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.contact-link i {
  font-size: 0.7rem;
}

/* Publications Section */
.publications-section {
  padding: 4rem 0;
  background: white;
}

.publication-link {
  display: block;
  transition: transform 0.3s ease;
}

.publication-link:hover {
  transform: scale(1.02);
}

.publication-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.publication-image:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: scale(1.03);
}

.paper-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.paper-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
  padding: 0.2rem 0.4rem;
  margin: -0.2rem -0.4rem;
  border-radius: 4px;
}

.paper-title a:hover {
  color: var(--accent-color);
  text-decoration: none;
  transform: translateX(3px);
  transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
  text-shadow: 0 1px 2px rgba(44, 62, 80, 0.1);
  background-color: rgba(44, 62, 80, 0.05);
}

.paper-authors {
  color: var(--secondary-color);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.paper-venue {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: italic;
}

.paper-links {
  margin-bottom: 1rem;
}

.paper-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.paper-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.paper-abstract {
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Publication separation */
.publication-item {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.publication-item:nth-child(1) { animation-delay: 0.1s; }
.publication-item:nth-child(2) { animation-delay: 0.2s; }
.publication-item:nth-child(3) { animation-delay: 0.3s; }
.publication-item:nth-child(4) { animation-delay: 0.4s; }
.publication-item:nth-child(5) { animation-delay: 0.5s; }

.publication-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Footer */
.footer {
  background: var(--light-gray);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--secondary-color);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .my-name {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .profile-image {
    max-width: 200px;
    margin: 2rem auto 0 auto;
  }
  
  .contact-links {
    gap: 0.3rem;
  }
  
  .contact-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 12px;
  }
  
  .contact-link i {
    font-size: 0.65rem;
  }
  
  .publication-image {
    height: 150px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .my-name {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .paper-title {
    font-size: 1.1rem;
  }
  
  .profile-image {
    max-width: 180px;
    margin: 1.5rem auto 0 auto;
  }
  
  .contact-links {
    gap: 0.25rem;
  }
  
  .contact-link {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 10px;
  }
  
  .contact-link i {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
  }
  
  .contact-link {
    flex: 0 0 calc(50% - 0.15rem);
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* Focus styles for accessibility */
.contact-link:focus,
.paper-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .contact-links {
    display: none;
  }
  
  .publication-image {
    max-width: 200px;
  }
}
