/* colors */
:root {
  --bg-color: #282c34;            /* Black */
  --fg-color: #dcdfe4;            /* White */
  --link-color: #61afef;          /* Blue */
  --hover-color: #56b6c2;         /* Cyan */
  --accent-color: #e06c75;        /* Red */
  --venue-color: #98c379;         /* Green */
  --fg-muted-color: #828997;      /* Grey */
}

/* light mode override */
@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #fafafa;          /* White */
    --fg-color: #383a42;          /* Black */
    --link-color: #0184bc;        /* Blue */
    --hover-color: #0997b3;       /* Cyan */
    --accent-color: #e45649;      /* Red */
    --venue-color: #50a14f;       /* Green */
    --fg-muted-color: #5f626c;    /* Grey */
  }
}

/* global settings */
html {
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg-color);
  color: var(--fg-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.10rem;
  line-height: 1.6;
}

/* links & hover */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
  color: var(--hover-color);
}

/* layout (flexbox) */
.container {
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 60px;
}

/* left sidebar area */
.sidebar {
  position: sticky;
  top: 60px;
  height: fit-content;
  width: 245px;
  flex-shrink: 0;
}
.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fg-color);
}
.sidebar h1 {
  margin: 0px 0 -10px 0;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.social-links li {
  margin-bottom: 12px;
  color: var(--fg-muted-color);
}

.social-links i {
  width: 20px;
  margin-right: 8px;
}

.social-links :where(a) {
  color: var(--fg-muted-color);
}

/* right main-content area */
.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.top-nav {
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.top-nav a {
  color: var(--fg-color);
  margin-right: 30px;
  font-weight: 600;
  font-size: 1.2rem;
  padding-bottom: 5px;
  border-bottom: 3px solid transparent;
}
.top-nav a:hover {
  color: var(--hover-color);
  text-decoration: none;
}

.top-nav a.active {
  border-color: var(--accent-color);
}


/* section headings with separation lines */
h2 {
  color: var(--fg-color);
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 8px;
  margin-top: 40px;
}



/* education formatting */
.edu-school {
  margin-bottom: 1.5rem;
}

.edu-degree {
  margin-left: 1rem;
  display: flex;
  justify-content: space-between;
}

/* publications formatting */

#publications-view ol {
  padding-left: 20px;
  margin-left: 0;
}

#publications-view ol li::marker {
  color: var(--fg-muted-color);
  font-weight: bold;
}

#publications-view li.pub-item {
  padding-left: 0.25rem;
}

.pub-item {
  margin-bottom: 2rem;
  line-height: 1.4;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pub-authors {
  font-size: 0.95rem;
  color: var(--fg-muted-color);
}

.pub-venue {
  font-size: 0.95rem;
  color: var(--venue-color);
}

.pub-links i {
  font-size: 0.85rem;
  width: 15px;
  margin-right: 5px;
}

.pub-links a {
  margin-right: 0.8rem;
  display: inline-block;
  font-size: 0.85rem;
  color: var(--link-color);
}
.pub-links a:hover {
  text-decoration: underline;
  color: var(--hover-color);
}



/* anti-scraper email class */
.reverse-email {
  unicode-bidi: bidi-override;
  direction: rtl;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
  font-size: 0.8rem;
  color: var(--fg-muted-color);
}

/* mobile responsive adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 30px;
  }

  .sidebar {
    position: static;
    width: 100%;
    text-align: center;
  }

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

  .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .top-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .top-nav a {
    margin-right: 0;
  }
}
