/* Custom Styles for Jinyi Han's Homepage */

/* Smooth transition for all elements */
* {
  transition: all 0.3s ease;
}

/* Enhanced section headers with gradient */
.page__content h2 {
  background: linear-gradient(135deg, #4a6fa5 0%, #8b6f47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  margin-top: 2em;
}

/* Add hover effect to publication cards */
.page__content .page__content div[style*="background: #fafafa"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced link styles */
.page__content a {
  text-decoration: none;
  position: relative;
}

.page__content a:hover {
  color: #667eea !important;
}

/* Add subtle animation to icons */
.page__content i {
  display: inline-block;
}

.page__content h2 i,
.page__content h3 i,
.page__content h4 i {
  margin-right: 10px;
}

/* CV button hover effect */
.page__content a[style*="background: linear-gradient"]:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* News section enhancements */
.page__content ul li:hover {
  transform: translateX(5px);
}

/* Project cards hover effect */
.page__content div[style*="background: linear-gradient"]:not(a):hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Award cards hover effect */
.page__content div[style*="display: flex"]:not(.author__urls-wrapper):hover {
  transform: translateX(10px);
}

/* Publication tag hover */
.page__content span[style*="background"]:hover {
  filter: brightness(1.1);
}

/* Publication number badge pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.page__content span[style*="display: inline-block; background: linear-gradient"]:hover {
  animation: pulse 0.5s ease-in-out;
}

/* Smooth scroll for the page */
html {
  scroll-behavior: smooth;
}

/* Add subtle background pattern */
body {
  background-image: radial-gradient(circle at 1px 1px, #f0f0f0 1px, transparent 0);
  background-size: 40px 40px;
}

/* Improve readability on mobile */
@media (max-width: 768px) {
  .page__content div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 10px;
  }

  .page__content div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* Add fade-in animation to sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
