:root {
  --text-color: #1f2937;
  --text-secondary: #6b7280;
  --link-color: #2563eb;
  --hover-color: #1d4ed8;
  --background: #fafafa;
  --background-alt: #f5f5f5;
  --border-color: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--background-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* CONTAINER LAYOUT */
.container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 300px;
  background-color: var(--background);
  padding: 40px 30px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
}

.profile {
  text-align: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.profile h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.profile .email {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  word-break: break-word;
}

.profile .affiliation {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.company-logo {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.social-links a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.social-links a:hover {
  background-color: var(--background-alt);
  border-color: var(--link-color);
  color: var(--link-color);
}

.social-links a i {
  font-size: 16px;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  padding: 60px 80px;
  background-color: var(--background);
  overflow-y: auto;
}

/* ABOUT SECTION */
.about-section {
  margin-bottom: 60px;
  animation: fadeIn 0.6s ease-in;
}

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

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-section ul {
  list-style: none;
  margin: 20px 0;
  padding-left: 0;
}

.about-section ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.about-section ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--link-color);
  font-weight: bold;
  font-size: 20px;
}

.about-section strong {
  color: var(--text-color);
  font-weight: 600;
}

/* NEWS SECTION */
.news-section {
  margin-bottom: 60px;
}

.news-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--text-color);
  font-weight: 600;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: var(--background-alt);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-thumbnail {
  width: 120px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

.news-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-color);
  font-weight: 600;
}

.news-date {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 8px;
}

.news-content p:last-child {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* PROJECTS SECTION */
.projects-section {
  margin-bottom: 60px;
}

.projects-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--text-color);
  font-weight: 600;
}

/* PUBLICATIONS SECTION */
.publications-section {
  margin-bottom: 60px;
}

.publications-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--text-color);
  font-weight: 600;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background-color: var(--background);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--background-alt);
  border-color: var(--link-color);
  color: var(--link-color);
}

.filter-btn.active {
  background-color: var(--link-color);
  color: white;
  border-color: var(--link-color);
}

.publications-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.publication-card {
  display: flex;
  gap: 25px;
  padding: 25px;
  background-color: var(--background-alt);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  overflow: hidden;
}

.publication-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: var(--link-color);
}

.pub-image {
  width: 250px;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

.pub-content {
  flex: 1;
}

.pub-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-color);
  line-height: 1.4;
  font-weight: 600;
  transition: color 0.2s ease;
}

.publication-card:hover .pub-content h3 {
  color: var(--link-color);
}

.pub-authors {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.pub-authors strong {
  color: var(--text-color);
  font-weight: 600;
}

.pub-venue {
  font-size: 14px;
  color: var(--link-color);
  font-weight: 500;
  margin-bottom: 12px;
}

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

.pub-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background-color: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.pub-links a:hover {
  background-color: var(--link-color);
  color: white;
  border-color: var(--link-color);
}

/* Smooth Scrolling for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--background-alt);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 30px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .main-content {
    padding: 40px 30px;
  }

  .publication-card {
    flex-direction: column;
  }

  .pub-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 30px 20px;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .about-section p,
  .about-section ul li {
    font-size: 15px;
  }

  .news-section h2,
  .publications-section h2 {
    font-size: 28px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-thumbnail {
    width: 100%;
    height: 150px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-btn {
    font-size: 13px;
    padding: 7px 14px;
  }

  .pub-content h3 {
    font-size: 16px;
  }

  .pub-authors,
  .pub-venue {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 20px;
  }

  .main-content {
    padding: 20px 15px;
  }

  .social-links {
    gap: 8px;
  }

  .social-links a {
    font-size: 13px;
    padding: 5px 8px;
  }

  .news-section h2,
  .publications-section h2 {
    font-size: 24px;
  }

  .pub-links {
    flex-direction: column;
  }

  .pub-links a {
    justify-content: center;
  }
}

/* Utility Font Classes */
.font-inconsolata {
  font-family: "Inconsolata", monospace;
  font-size: 16px;
}

.font-roboto {
  font-family: "Roboto", sans-serif;
}

code,
pre {
  font-family: "Inconsolata", monospace;
}

/* FOOTER */
.footer {
  background: transparent;
  color: var(--text-color);
  padding: 60px 40px;
  margin-top: 0;
  text-align: center;
  width: 100%;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-copyright {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  background-color: var(--link-color);
  color: white;
  border-color: var(--link-color);
  transform: translateY(-3px);
}

.footer-credit {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.footer a {
  color: var(--link-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--hover-color);
}

.heart {
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(1.2);
  }
  20%,
  40% {
    transform: scale(1);
  }
}

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

  .footer-links {
    gap: 15px;
  }

  .footer-links a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .footer-copyright {
    font-size: 14px;
  }

  .footer-credit {
    font-size: 13px;
  }
}
