body {
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

html {
    scroll-behavior: smooth; /* enables smooth scrolling */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #5F8575;
    padding: 12px 40px; 
    display: flex;
    align-items: left;
    justify-content: flex-start; /* ensure items align horizontally */
    gap: 20px;
    font-size: 20px;
    z-index: 1000;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    padding: 2px 5px;
    border-radius: 5px;
}


h1 {
    color: #5F8575;
    font-family: Papyrus, sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 0px;
    text-align: left;
}

h2 {
    color: #5F8575;
    font-family: Papyrus, sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 0px;
    text-align: left;
}


#pronounce {
    color:  #93C572;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    margin: 0;
    font-style: italic;
    text-align: left;
}

.about-container {
    margin-top: 60px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#profile-pic {
    width: 250px;
    height: 250px;
    background-color: #5F8575;
    border-radius: 50%;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#profile-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#bio {
    max-width: 580px;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    text-align: left;
}

#bio h2 {
    color: #5F8575;
    font-family: Papyrus, sans-serif;
    margin-bottom: 10px;
}

#profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.icon-links {
    margin-top: 15px; /* space below oval-group */
    display: flex;
    gap: 20px;
    justify-content: center;
}

.icon-links a {
    color: #5F8575;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-links a:hover {
    color: #93C572;
    transform: scale(1.2);
}

.keyword {
    color: #93C572;
    text-decoration: none;
    font-weight: bold;
}

.keyword:hover {
    color: #5F8575;
}

.uni {
    color: #b22222d1;
    font-weight: bold; 
}

.projects-container {
    margin-top: 20px;
    margin-left: calc(20%); 
    max-width: 1000px; /* keep content tidy */
    font-family: 'Courier New', Courier, monospace;
    color: #333;
}

.projects-list {
    list-style-type: none;
    padding-left: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: #333;
}

.projects-list li {
    margin-bottom: 20px; /* more gap between rows */
    font-family: 'Courier New', Courier, monospace;
    color: #333;
}

.project-status {
    font-size: 14px; /* smaller than title */
    font-style: italic;
    color: #666;     /* lighter than title */
}

.fa-code {
    color: #5F8575;
    font-size: 0.8em;
    flex-shrink: 0;
}

.fa-bookmark {
    color: #5F8575;
    font-size: 0.8em;
    flex-shrink: 0;
}

.git {
    color: #5F8575;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.git:hover {
    color: #93C572;
}

.project-group {
    padding: 18px;
}

.project-group h3 {
    color: #93C572;
    font-weight: bold;
}

.projects-list {
    padding-left:12px;
}

.other-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 0;
  margin: 30px auto;
  flex-wrap: wrap; /* allows wrap on small screens */
}

.other-list li {
  text-align: center;
  max-width: 200px;
}

.other-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.other-desc {
  margin-top: 10px;
  font-size: 0.9em;
  color: #333;
}

.other-desc strong {
  color: #5F8575;
}


@media(max-width: 800px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        align-items: center; /* new */
    }

    #bio {
        text-align: center;
    }

    .projects-container {
        align-items: center;   /* center items */
        text-align: center;    /* center text */
        width: 100%;           /* ensure full responsive width */
    }

    .projects-list {
        width: 100%;           /* avoid left offset */
    }
}

#theme-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 20%;
}

.fa-terminal {
    color:chartreuse;
    background-color: #000;
    font-size: 1.6em;
}

body.green-mode {
    background-color: #000;
}

body.green-mode,
body.green-mode * {
  color: chartreuse !important;
  border-color: chartreuse !important;
}

body.green-mode strong,
body.green-mode h1,
body.green-mode h2,
body.green-mode h3 {
  color: chartreuse !important;
}

body.green-mode .keyword, 
body.green-mode .uni,
body.green-mode .git {
    color: #5F8575 !important;
}
body.green-mode i,
body.green-mode .fa {
  color: chartreuse !important;
}

body.green-mode .navbar{
    background-color: black !important;
    color: chartreuse !important;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
}

body.green-mode #theme-toggle {
    background-color: transparent;
    border: none;
    color: chartreuse;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
  }

  .doi {
    color: #5F8575;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
}

.paperTitle {
    color: black;
}