body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #fff;
  color: #222;
  transition: background 0.5s ease, color 0.5s ease;
}


.nav {
  background: #fff;
  padding: 1em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  align-items: center;
  position: sticky;
  top: 0;

}

.nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}
.nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.nav .active {
  font-weight: bold;
  color: #000;
}

.container {
  max-width: 960px;
  margin: 2em auto;
  padding: 0 1em;
}

h1 {
  font-size: 2.5em;
  font-weight: 100;
}

h1 strong {
  font-weight: 600;
}

h2 {
  font-size: 1.8em;
  margin-top: 2em;
}

footer {
  text-align: center;
  padding: 2em;
  font-size: 0.9em;
  color: #777;
}

.dark {
  background: #121212;
  color: #eee;
}

.dark .nav {
  background: #1e1e1e;
}

.dark a {
  color: #90caf9;
}

.project {
  margin-bottom: 2em;
}

.project h3 {
  margin-bottom: 0.3em;
  color: #222;
}
.dark .project h3 {
  color: #eee;
}

.project a {
  text-decoration: none;
  margin-right: 10px;
  color: #0366d6;
}

.dark .project a {
  color: #90caf9;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}

.contact-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-list img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  filter: grayscale(100%);
}

.contact-list a {
  text-decoration: none;
  color: #0366d6;
}

.dark .contact-list a {
  color: #90caf9;
}

.icon-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-top: 2em;
}

.icon-links li img {
  width: 32px;
  height: 32px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.icon-links li img:hover {
  filter: none;
}

.svg-icon {
  width: 32px;
  height: 32px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  fill: currentColor;
}

.svg-icon:hover {
  filter: none;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.theme-toggle img {
  width: 18px;
  height: 18px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.theme-toggle img:hover {
  filter: none;
}

.intro-heading {
  margin-bottom: 0em;
}

.intro-heading h1 {
  font-size: 3em;
  font-weight: 100;
  margin-bottom: 0em;
}

.intro-heading h1 strong {
  font-weight: 600;
}

.intro-content {
  display: flex;
  align-items: flex-start;
  gap: 0em;
}

.intro-left {
  flex: 1 1 65%;
  text-align: left;
}

.intro-right {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-right img {
  width: 350px;
  height: 350px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.email-contact {
  margin-top: 0.6em;
  display: flex;
  align-items: center;
  font-size: 0.95em;
  color: #444;
}
.dark .email-contact {
  color: #eee;
}

.email-contact img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  filter: grayscale(100%);
}
.dark .email-contact img {
  filter: brightness(0) invert(1);
}

.dark .icon-links img:not(.svg-icon),
.dark .email-contact img {
  filter: brightness(0) invert(1);
}

/* Mobile */
@media (max-width: 768px) {
  .intro-content {
    flex-direction: column;
    align-items: center;
  }

  .intro-left {
    flex: 1 1 100%;
    text-align: left;
  }

  .intro-right {
    flex: 1 1 100%;
    text-align: left;
  }

  .intro-right {
    order: -1;
    /* Move image section above the text */
  }

  .intro-left {
    order: 1;
  }
}


.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f5f5f5;
  border-top: 0px solid #ccc;
  text-align: center;
  padding: 0em 0;
  font-size: 0.5em;
  color: #555;
  z-index: 999;
}

.dark .sticky-footer {
  background: #1e1e1e;
  border-top: 0px solid #444;
  color: #ccc;
}
#honors {
  margin-top: 3em;
}

.honor-entry {
  display: flex;
  gap: 1em;
  margin-bottom: 0em;
  align-items: flex-start;
}

.honor-date {
  min-width: 110px;
  font-weight: 600;
  color: #222;
}

.honor-text {
  flex: 1;
  color: #333;
}

.dark .honor-date {
  color: #ddd;
}

.dark .honor-text {
  color: #ccc;
}


@media (max-width: 768px) {
  .honor-entry {
    flex-direction: row;
    align-items: flex-start;
  }

  .honor-date {
    min-width: 100px;
    text-align: left;
  }

  .honor-text {
    text-align: left;
  }
}
