body {
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

header {
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #007acc;
}

main {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

section {
  margin-bottom: 40px;
}

footer {
  text-align: center;
  padding: 20px 0;
  background-color: #f5f5f5;
  margin-top: 50px;
}

.footer-icons a {
  margin: 0 10px;
  font-size: 1.5em;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-icons a:hover {
  color: #007acc; /* change color on hover */
}

/* Profile photo */
.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

.profile-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%; /* makes it circular */
  border: 3px solid #007acc;
}

.profile-info {
  flex: 1;
}

/* Two columns, for education and interests columns */
.two-columns {
  display: flex;
  gap: 40px;
}

.column {
  flex: 1;
}

.column h3 {
  margin-bottom: 10px;
  border-bottom: 2px solid #007acc;
  padding-bottom: 5px;
}

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

.column li {
  margin-bottom: 8px;
}

/* Mobile responsive: stack layout */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
  }

  .two-columns {
    flex-direction: column;
  }

  .profile-photo img {
    width: 140px;
    height: 140px;
  }
}

.education-list {
  list-style: none;
  padding-left: 0;
}

.education-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.education-list i {
  color: #007acc;
  margin-right: 10px;
  font-size: 1.2em;
  margin-top: 3px; /* aligns icon vertically */
}

.degree {
  font-weight: bold;
  color: #333;
}

.institution {
  font-size: 0.9em;
  color: #777; /* grey */
}

/* Blog page */
.blog-list {
  list-style-type: none;
  padding-left: 0;
}

.blog-list li {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.blog-list h3 {
  font-size: 1.3em;
  color: #007acc;
  margin-bottom: 5px;
}

.blog-list p {
  font-size: 1em;
  color: #555;
  margin-bottom: 8px;
}

.blog-list a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
}

.blog-list a:hover {
  text-decoration: underline;
}

/* Code and projects, Github pinned projects style */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.project-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  width: 300px;
  box-shadow: 0 1px 3px rgba(27,31,35,0.12);
}

.project-card h3 {
  margin: 0 0 10px 0;
}

.project-card h3 a {
  text-decoration: none;
  color: #0366d6;
}

.project-card p {
  color: #586069;
  font-size: 14px;
  margin-bottom: 10px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #586069;
}

.language {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}

/* Research */
.research-roles .role {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(27,31,35,0.12);
}

.research-roles .role h3 {
  margin-top: 0;
  color: #0366d6;
}

.research-output h2, .research-output h3 {
  color: #24292f;
}

.research-output ul {
  list-style-type: disc;
  padding-left: 20px;
}

.research-output li {
  margin-bottom: 8px;
}

.research-output a {
  color: #0366d6;
  text-decoration: none;
}

.research-output a:hover {
  text-decoration: underline;
}
