body {
  @import url("https://fonts.googleapis.com/css2?family=Computer+Modern+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");
  font-family: "Computer Modern Serif", serif;
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: #ffffff;
  background-color: #38373a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
@media (max-width: 430px) {
  body {
    width: 100%;
    font-size: 1.3rem;
    padding: 0;
  }
}

main {
  padding-top: 1rem;
  flex: 1;
}

a {
  color: #D2691E;
  text-decoration: none;
}

a:hover {
  color: #CD853F;
}

ul {
  padding-left: 0;
  list-style: none;
}
ul li {
  margin-bottom: 0.75rem;
}

/* Compact, indented book list without vertical gaps */
.book-list {
  list-style: disc;
  margin: 0 0 0 1.25rem;
  padding: 0;
}
.book-list li {
  margin: 0;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  background-color: #38373a;
  z-index: 100;
  transition: background-color 0.3s ease;
  /* margin: 2rem -100vw 2rem -100vw;
  padding: 0 100vw; */
  width: 100%;          /* full width */
  margin: 0;            /* no negative margins */
  padding: 0;           /* padding only inside container */
  box-sizing: border-box;
}
.site-header.scrolled {
  background-color: #2a292c;
}
@media (max-width: 430px) {
  .site-header {
    background-color: #2a292c;
    width: 100%;
    margin: 0;
    padding: 0;

  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.navbar .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  color: #ffffff;
}
.navbar .nav-emoji {
  width: 28px;
  height: 28px;
  border-radius: 0%;
}
.navbar .social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
.navbar .social-icons a {
  display: inline-block;
  width: 22px;
  height: 22px;
  padding: 0px 0px 0.5rem 0px;
  transition: all 0.3s ease;
}
.navbar .social-icons a.icon-orcid {
  width: 23px;
  height: 23px;
}
.navbar .social-icons a:hover {
  transform: translateY(-2px);
}
.navbar .social-icons a img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: brightness(0) invert(100%) saturate(100%) opacity(1);
  transition: filter 0.3s ease;
}
.navbar .social-icons a:hover img {
  filter: invert(59%) sepia(46%) saturate(1050%) hue-rotate(339deg) brightness(102%) contrast(101%);
}

@media (max-width: 430px) {
  .navbar {
    width: 100%;
    flex-direction: column;        /* stack brand and icons vertically */
    align-items: center;           /* center both rows */
    gap: 0.6rem;                   /* space between rows */
    padding: 0 0;             /* slightly smaller padding on mobile */
  }

  .navbar .nav-brand {
    font-size: 2.2rem;
    justify-content: flex-start;       /* center brand content */
    width: 100%;                   /* full width for alignment */
  }

  .navbar .social-icons {
    width: 100%;                   /* full width for alignment */
    justify-content: flex-start;       /* center icons row */
  }

  .navbar .nav-emoji {
    width: 25px;
    height: 25px;
  }

  .navbar .social-icons a {
    width: 25px;
    height: 25px;
  }
}


.hero-section {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  padding: 4vh 100vw 2rem 100vw;
  margin: 0 -100vw 2rem -100vw;
  background-color: #2a292c;
  align-items: center;
  gap: 2rem;
  /* width: 100%;          /* full width */
  /* margin: 0;            no negative margins */
  /* padding: 0;           padding only inside container */
  /* box-sizing: border-box; */
}

.hero-section .hero-media {
  flex: 1 1 33.3333%;
  display: flex;
  justify-content: flex-end;
}
.hero-section .hero-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
}
.hero-section .bio {
  flex: 2 1 66.6667%;
  max-width: none;
  font-size: 2rem;
  line-height: 1.4;
  text-align: left;
  color: #ffffff;
}

@media (max-width: 430px) {
  .hero-section {
    width:100%;
    flex-direction: column; /* stack items vertically */
    align-items: flex-start; /* optional: align text to left */
    padding: 0;
    margin: 0;
    gap: 1.5rem; /* space between text and image */
  }

  .hero-section .bio {
    order: 1; /* text first */
    /* width: 100%; */
    font-size: 1.3rem;
  }

  .hero-section .hero-media {
    order: 2; /* image comes after text */
    /* width: 100%; */
    display: flex;
    justify-content: center; /* center the image */
  }

  .hero-section .hero-media img {
    max-height: none; /* allow full height */
    /* width: 100%; */
    object-fit: contain;
  }
}


.link {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dotted #ffffff;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.link:hover {
  color: #ff8b2b;
  text-decoration: none;
  border-bottom: 1px dotted #ff8b2b;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-stagger.visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible .reveal-item:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal-stagger.visible .reveal-item:nth-child(2) {
  transition-delay: 0.2s;
}
.reveal-stagger.visible .reveal-item:nth-child(3) {
  transition-delay: 0.3s;
}
.reveal-stagger.visible .reveal-item:nth-child(4) {
  transition-delay: 0.4s;
}
.reveal-stagger.visible .reveal-item:nth-child(5) {
  transition-delay: 0.5s;
}
.reveal-stagger.visible .reveal-item:nth-child(6) {
  transition-delay: 0.6s;
}
.reveal-stagger.visible .reveal-item:nth-child(7) {
  transition-delay: 0.7s;
}
.reveal-stagger.visible .reveal-item:nth-child(8) {
  transition-delay: 0.8s;
}
.reveal-stagger.visible .reveal-item:nth-child(9) {
  transition-delay: 0.9s;
}
.reveal-stagger.visible .reveal-item:nth-child(10) {
  transition-delay: 1s;
}
.reveal-stagger.visible .reveal-item:nth-child(n+11) {
  transition-delay: 1.1s;
}

/* PROJECTS SECTIONS */
.projects1,
.projects2 {
  display: grid; /* both must be grid containers */
  align-items: start;
  column-gap: 2rem;
  scroll-margin-top: 6rem;
}

/* Specific grid columns */
.projects1 {
  grid-template-columns: 2fr 3fr; /* image left, text right */
  margin-bottom: 5rem;
}

.projects2 {
  grid-template-columns: 3fr 2fr; /* text left, image right */
  background-color: #2a292c;
  margin-left: -100vw;
  margin-right: -100vw;
  padding: 2rem 100vw;
  margin-bottom: 0rem;
}

/* Section header (image) styling */
.projects1 .section-header,
.projects2 .section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
}

/* Image styling */
.projects1 .section-header .section-image,
.projects2 .section-header .section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Header text styling */
.projects1 .section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  text-align: left;
}

/* Section content */
.projects1 .section-content,
.projects2 .section-content,
.contact-section .section-content {
  font-size: 1.3rem;
}

.projects1 .section-content > *:first-child,
.projects2 .section-content > *:first-child {
  margin-top: 0.25rem;
}

@media (max-width: 430px) {
  /* Stack projects sections */
  .projects1,
  .projects2 {
    width: 100%;
    padding: 0;
    margin:0;
    grid-template-columns: 1fr; /* single column */
    row-gap: 1.5rem; /* space between text and image */
  }

  .projects2 {
    background-color: #2a292c;
  }

  /* Reverse the order for projects2 if image should be below text */
  .projects1 .section-header,
  .projects2 .section-header {
    order: 2; /* image comes after the content */
  }
  
  .projects1 .section-content,
  .projects2 .section-content {
    order: 1; /* text comes first */
  }

  .projects1 .section-header,
  .projects2 .section-header {
    height: auto; /* let image scale naturally */
  }

  .projects1 .section-header .section-image,
  .projects2 .section-header .section-image {
    width: 100%;
    max-height: none;
    object-fit: contain; /* optional: prevent cropping */
  }

  .projects1 .section-content,
  .projects2 .section-content {
    font-size: 1.2rem;
  }
}

.contact-section {
  background-color: #2a292c;
  margin-left: -100vw;
  margin-right: -100vw;
  padding: 1rem 100vw;   /* vertical + horizontal padding */
  box-sizing: border-box; /* important to prevent horizontal scroll */
}

/* Mobile adjustment: reduce spacing if needed */
@media (max-width: 440px) {
  .contact-section {
    padding: 1.5rem 1rem;
    margin: 0;
  }
}


.site-footer {
  background-color: #2a292c;
  margin: 2rem -100vw 0 -100vw;
  padding: 0 100vw 0 100vw;
}
.site-footer .footer-content {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 1rem 0rem;
}
.site-footer .footer-content .copyright {
  font-size: 1rem;
  color: #ffffff;
}
.site-footer .footer-content .site-credit {
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.8;
}


/* Mobile (max-width: 430px) */
@media (max-width: 430px) {
  .site-header,
  .hero-section,
  .projects1,
  .projects2,
  .site-footer {
    width: 100%;              /* full width of container */
    margin: 0;
    padding: 2rem 1rem;       /* small horizontal padding */
    box-sizing: border-box;
  }

  .site-header {
    position: sticky;
  }

  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .projects1,
  .projects2 {
    grid-template-columns: 1fr;  /* single-column stack */
    row-gap: 1.5rem;
  }

  .projects2 {
    /* background-color: transparent; optional for mobile */
    padding: 1rem;
  }
}


