html,
body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

:root {
  --main-color: #008080;
  --main-color-light: #e0f7fa;
  --secondary-color: #603f84;
  --secondary-color-light: #f3e5f5; /* #f9d6ff; */
  --third-color: #af7800;
  /* --third-color-light: #f7c860; */
  --third-color-light: #fff3d8;
  --text-dark: #333;
  --text-light: #555;
}

.container {
  display: flex;
  height: 100%;
  margin: 0 auto;
  color: var(--text-dark);
  max-width: 1400px;
}

.sidebar {
  position: fixed;
  z-index: 1;
  width: 300px;
  height: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px;
}

.profile-pic {
  width: 180px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.title {
  font-weight: bold;
  color: var(--main-color);
  margin: -10px 0 15px 0;
  font-size: 1.2rem;
}

.profile {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-style: italic;
  text-align: center;
}

.fa {
  color: var(--main-color);
  margin-right: 5px;
}

.contact-info {
  list-style: none;
  padding: 0;
  width: 100%;
  text-align: left;
  margin-left: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  /* margin-bottom: 5px; */
  gap: 10px;
}

.separator {
  width: 100%;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

.contact-item a {
  color: var(--text-dark);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--main-color);
}

.content {
  flex: 1;
  padding: 30px;
  margin-left: 310px;
  width: calc(100% - 310px);
}

.navbar {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid #f0f0f0;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-btn {
  background: none;
  border: none;
  margin-bottom: -2px;
  padding: 5px 10px 15px 10px;
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-dark);
}

.nav-btn:hover {
  color: var(--main-color);
  font-size: 18px;
}

.nav-btn.active {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
}

a {
  color: var(--main-color);
  text-decoration: none;
}

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

.section {
  margin-top: 30px;
}

.section p {
  line-height: 1.6;
}

.resume-item {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.resume-item .date {
  margin: 0;
  min-width: 170px;
  font-weight: bold;
  color: #777;
  font-size: 0.9rem;
  margin-top: 4px;
}

.resume-item .details h3 {
  margin: 0;
  font-weight: bold;
  color: black;
}

.resume-item .details .institution {
  font-style: italic;
  color: #777;
  margin-top: 5px;
  margin-bottom: 5px;
}

ul {
  line-height: 1.6;
}

li {
  padding: 3px;
}

.skills-and-tools {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
  max-width: 800px;
}

/* Skills as part of resume items */

.resume-item .skills-and-tools {
  gap: 10px;
  margin-left: 25px;
}

.resume-item .skills-and-tools span {
  background: white;
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.8rem;
}

.resume-item .skills-and-tools span.concept {
  color: var(--main-color);
  border: 1px solid var(--main-color);
}

.resume-item .skills-and-tools span.tool {
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.resume-item .skills-and-tools span.soft {
  color: var(--third-color);
  border: 1px solid var(--third-color);
}

/* Skill grid */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-card {
  background: #fcfcfc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eee;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.skill-card h3 {
  margin-top: 10px;
  margin-bottom: 30px;
}

#language-list p {
  line-height: 1;
}

/* Skills in the Skills section */

.skill-card .skills-and-tools span {
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  margin-top: 20px;
}

.tool-grid div span {
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  background: var(--secondary-color-light);
  color: var(--secondary-color);
}

.skill-card .skills-and-tools span.concept {
  background: var(--main-color-light);
  color: var(--main-color);
  /* color: #333; */
}

.skill-card .skills-and-tools span.tool {
  background: var(--secondary-color-light);
  color: var(--secondary-color);
  /* color: #333; */
}

.skill-card .skills-and-tools span.soft {
  background: var(--third-color-light);
  color: var(--third-color);
  /* color: #333; */
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Project card */

.project-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  transition: transform 0.2s;
}

.project-description {
  color: var(--text-light);
}

.project-image {
  width: 100%;
}

.project-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
  color: var(--main-color);
}

.project-card .skills-and-tools {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-card .skills-and-tools span {
  background: white;
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.8rem;
}

.project-card .skills-and-tools span.concept {
  color: var(--main-color);
  border: 1px solid var(--main-color);
}

.project-card .skills-and-tools span.tool {
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.project-card .skills-and-tools span.soft {
  color: var(--third-color);
  border: 1px solid var(--third-color);
}

.publication-item {
  margin-bottom: 30px;
}

.publication-item .title {
  font-weight: bold;
  color: var(--main-color);
  margin: 0px;
}

.publication-item .author-list {
  color: var(--text-light);
  margin: 2px;
}

.publication-item .publication-venue {
  color: #777;
  font-style: italic;
  margin: 0px;
}

.interest {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;

  /* background: #fcfcfc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eee; */
}

.interest h3 {
  margin-top: 0;
  color: black;
}

.tool-grid div {
  border-right: 1px solid #eee;
}

.tool-grid div:last-child {
  border-right: none;
}

.tool-grid div h3 {
  color: var(--text-dark);
}

#fun-facts {
  background: var(--main-color-light);
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  border-left: 4px solid var(--main-color);
}

#fun-facts h3 {
  margin-top: 0;
  color: var(--main-color);
}

#fun-facts ul {
  list-style: none;
  padding: 10px 10px 0px 10px;
}

#fun-facts li:not(:last-child) {
  margin-bottom: 7px;
}

/** responsive layout **/
@media (max-width: 1024px) {
  .resume-item {
    flex-direction: column;
    gap: 5px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .sidebar {
    height: auto;
    position: relative;
    width: 100%;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  .contact-info {
    display: flex;
    justify-content: space-around;
  }
  .content {
    margin-left: 0;
    width: 100%;
    padding: 30px;
    overflow: visible;
  }
  .resume-item {
    flex-direction: column;
    gap: 5px;
  }
  .tabs-nav {
    gap: 10px;
    justify-content: center;
  }
}

@media (max-width: 512px) {
  .skill-grid {
    grid-template-columns: auto;
  }
}

.abstract {
  color: var(--text-light);
  font-style: italic;
  margin-top: 5px;
  cursor: pointer;
}

.abstract-content {
  margin-top: 10px;
  color: var(--text-dark);
  background-color: #f6f6f6;
  padding: 20px;
  border-radius: 10px;
}
