/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1772d0;
  --accent-color: #f09228;
  --co-author-color: #7414ce;
  --text-main: #1a1a1a;
  --text-muted: #555;
  --bg-body: #ffffff;
  --bg-paper: #fcfcfc;
  --border-subtle: #eee;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* Header Section */
.header {
  margin-bottom: 80px;
}

.profile {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.profile-content {
  flex: 3;
}

.profile-image {
  flex: 1;
  max-width: 240px;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  object-fit: cover;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.4s ease;
}

.profile-image img:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Typography */
.name {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: #000;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.bio p, .bio ul {
  margin-bottom: 24px;
  font-weight: 400;
  color: var(--text-muted);
}

.bio ul {
  list-style-type: none;
  padding-left: 0;
}

.bio li {
  margin-bottom: 16px;
  padding-left: 24px;
  position: relative;
}

.bio li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.bio strong {
  color: var(--text-main);
}

/* Sections */
.section, .research, .header {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.research {
  animation-delay: 0.2s;
}

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

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

a:hover::after {
  width: 100%;
}

.contact-links a::after {
  display: none; /* No underline for contact links buttons */
}

.co-author {
  color: var(--co-author-color);
  font-weight: 500;
}

/* Industrial Experience */
.section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.experience-item {
  margin-bottom: 32px;
  padding: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.experience-item strong {
  color: var(--text-main);
}

/* Contact Links */
.contact-links {
  margin-top: 64px;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-links a {
  margin-right: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  background: #fcfcfc;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-links a:hover {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Research Section */
.research {
  margin-top: 100px;
}

.research h2 {
  margin-bottom: 48px;
  text-align: left;
}

.paper {
  display: flex;
  gap: 48px;
  margin-bottom: 64px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 16px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.paper:hover {
  background: #fafafa;
  transform: translateY(-4px);
}

.paper-image {
  flex: 0 0 260px;
}

.paper-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  border: 1px solid var(--border-subtle);
}

.paper:hover .paper-image img {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.paper-content {
  flex: 1;
}

.paper-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.paper-authors {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.paper-venue {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--primary-color);
}

.paper-links a {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  background-color: #f5f5f7;
  border-radius: 6px;
  color: var(--text-main);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paper-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 40px 24px;
  }
  
  .profile {
    flex-direction: column-reverse;
    text-align: left;
    gap: 40px;
  }
  
  .profile-image {
    max-width: 180px;
    margin-top: 0;
  }
  
  .name {
    font-size: 32px;
    text-align: left;
  }
  
  .paper {
    flex-direction: column;
    gap: 24px;
  }
  
  .paper-image {
    flex: none;
    max-width: 100%;
  }
  
  .contact-links a {
    display: inline-block;
    margin-bottom: 12px;
  }
}
