/* Modern Light Theme Design System */
:root {
  /* Light Theme Palette */
  --bg-color: #f8f9fa;
  /* Very light gray/off-white */
  --card-bg: #ffffff;
  --text-primary: #1a202c;
  /* Dark gray for high contrast */
  --text-secondary: #4a5568;
  /* Softer gray */
  --accent-color: #2563eb;
  /* Vibrant Blue */
  --accent-hover: #1d4ed8;
  --border-color: #e2e8f0;
  --glass-border: rgba(255, 255, 255, 0.6);
  /* Subtle highlight */

  /* Shadows for depth in light mode */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Lato', sans-serif;
  /* Clean, readable body font */
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  /* Subtle artistic background pattern */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03), transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.03), transparent 20%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

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

/* Artistic underline effect for links in text */
p a:not(.social-btn)::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-hover);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

p a:not(.social-btn):hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Header / Profile Section */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  margin-bottom: 80px;
  align-items: center;
  animation: fadeIn 1s ease-out;
}

.profile-info h1 {
  font-family: 'Bonheur Royale', serif;
  /* Artistic heading font */
  font-size: 5.0rem;
  font-weight: 700;
  font-style: italic;
  color: #111;
  margin-bottom: 0.0rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.highlight {
  color: #c2410c;
  /* Burnt orange for emphasis */
  background: #fff7ed;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 400;
  border: 1px solid #ffedd5;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  /* Pill shape */
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  background: white;
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.profile-image-container {
  position: relative;
}

.profile-image-container::before {
  content: '';
  position: absolute;
  top: 15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--border-color);
  border-radius: 24px;
  z-index: -1;
  transition: var(--transition);
}

.profile-image-container:hover::before {
  top: 10px;
  right: -10px;
  border-color: var(--accent-color);
}

.profile-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: block;
}

/* Section Styling */
section {
  margin-bottom: 80px;
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
}

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

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

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

.section-title {
  font-family: 'Story Script', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border-color);
}

/* News List */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  align-items: baseline;
}

.news-date {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  min-width: 80px;
}

/* Cards (Publications & Experience) */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid transparent;
  /* Cleaner look without borders by default */
  border-radius: 16px;
  padding: 0;
  /* Let content define padding */
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  transition: var(--transition);
  overflow: hidden;
  /* For image containment */
}

.card:hover {
  transform: translateY(-2px);
  /* No border change, just shadow lift */
}

.card-image-wrapper {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 160px;
  /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  /* Add subtle border since bg is white */
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensure logos/diagrams fit nicely */
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

/* Highlighted Publication Card */
.card.highlighted {
  background-color: #fffbeb;
  /* Warm light yellow */
  border: 1px solid #fcd34d;
  /* Golden border */
  position: relative;
}


.card.highlighted:hover {
  background-color: #fff7ed;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.15), 0 4px 6px -2px rgba(251, 191, 36, 0.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-title a {
  color: #111;
}

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

.card-authors {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.card-venue {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #111;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card-links {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.card-links a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

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

/* Experience Specifics */
.experience-card {
  grid-template-columns: 100px 1fr;
  align-items: center;
  padding: 24px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.experience-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.experience-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 0;
}

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

.exp-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #111;
}

.exp-role {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
}

.exp-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: 'Lato', sans-serif;
}

/* Footer */
footer {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

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

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .profile-info h1 {
    font-size: 2.5rem;
  }

  .social-links {
    justify-content: center;
  }

  .profile-image-container {
    max-width: 240px;
    margin: 0 auto;
  }

  .card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }

  .card-image-wrapper {
    height: 200px;
  }

  .experience-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 16px;
  }

  .exp-header {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}