/*!
* Start Bootstrap - Resume v7.0.6 (https://startbootstrap.com/theme/resume)
* Copyright 2013-2026 Start Bootstrap
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-resume/blob/master/LICENSE)
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: #1a1f1d;
  background-color: #f2f0eb;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

::-moz-selection {
  background-color: rgba(4, 120, 87, 0.1);
  color: #1a1f1d;
}

::selection {
  background-color: rgba(4, 120, 87, 0.1);
  color: #1a1f1d;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(10, 54, 40, 0.14);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 54, 40, 0.14) transparent;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #fbf9f4;
  padding: 4rem 2.5rem;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(10, 54, 40, 0.07);
  z-index: 100;
}
.sidebar .profile-container .profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 2.5rem;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar .profile-container .profile-img:hover {
  filter: grayscale(0%) contrast(1);
}
.sidebar .profile-container .name {
  font-family: "Playfair Display", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #1a1f1d;
}
.sidebar .profile-container .tagline {
  font-size: 0.85rem;
  color: #4f5c57;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.sidebar .nav {
  margin-top: 4rem;
}
.sidebar .nav ul {
  list-style: none;
}
.sidebar .nav ul li {
  margin-bottom: 1.2rem;
}
.sidebar .nav ul li a {
  text-decoration: none;
  color: #4f5c57;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Inter", system-ui, sans-serif;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  position: relative;
  border-bottom: none;
  padding-left: 1rem;
}
.sidebar .nav ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 2px;
  background-color: rgba(10, 54, 40, 0.07);
  border-radius: 1px;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar .nav ul li a:hover {
  color: #047857;
}
.sidebar .nav ul li a:hover::before {
  background-color: #047857;
}
.sidebar .nav ul li a.active {
  color: #047857;
  font-weight: 600;
}
.sidebar .nav ul li a.active::before {
  background-color: #047857;
  width: 3px;
}

.content {
  padding: 5rem 6rem;
  max-width: 1100px;
}

.section {
  margin-bottom: 8rem;
}
.section .section-title {
  font-family: "Playfair Display", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 2.2rem;
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1f1d;
}
.section .section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 40px;
  height: 1px;
  background: #88908b;
}
.section .section-body p.lead {
  font-size: 1.4rem;
  font-weight: 300;
  color: #1a1f1d;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.section .section-body .contact-info {
  font-size: 0.95rem;
  color: #4f5c57;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(10, 54, 40, 0.07);
}
.section .section-body .contact-info a {
  color: #047857;
  font-weight: 600;
}
.section .section-body .bio {
  font-size: 1.1rem;
  color: #4f5c57;
}

h3 {
  font-family: "Playfair Display", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #4f5c57;
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style-position: outside;
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}
ul li {
  margin-bottom: 0.5rem;
  color: #4f5c57;
}

a {
  color: #047857;
  text-decoration: none;
  position: relative;
  border-bottom: none;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #047857;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover {
  color: #065f46;
}
a:hover::after {
  transform: scaleX(1);
}

.timeline-item {
  margin-bottom: 5rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(10, 54, 40, 0.14);
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 9px;
  height: 9px;
  background: #f2f0eb;
  border: 2px solid #047857;
  border-radius: 50%;
}
.timeline-item .timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.timeline-item .timeline-header .role {
  font-size: 1.6rem;
}
.timeline-item .timeline-header .date {
  font-size: 0.85rem;
  color: #88908b;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
}
.timeline-item .summary {
  font-size: 1.1rem;
  font-style: italic;
  color: #4f5c57;
  margin-bottom: 2rem;
  font-family: "Playfair Display", "Noto Serif SC", "Songti SC", "STSong", serif;
}

.project-group {
  margin-bottom: 4rem;
}
.project-group .group-title {
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(10, 54, 40, 0.07);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-group .project-desc {
  color: #4f5c57;
  margin-bottom: 1rem;
}
.project-group .project-list li {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.project-group .project-links {
  font-size: 0.95rem;
  color: #4f5c57;
}

.skill-list {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.skill-list li {
  background: #fbf9f4;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 54, 40, 0.07);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 54, 40, 0.14);
  box-shadow: 0 8px 28px -10px rgba(8, 26, 19, 0.12), 0 0 1px rgba(8, 26, 19, 0.08);
}
.skill-list li .skill-icon {
  display: block;
  font-size: 1.5rem;
  color: #047857;
  margin-bottom: 1rem;
}
.skill-list li .skill-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4f5c57;
}

.education-item,
.honor-item {
  background: #fbf9f4;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 54, 40, 0.07);
  margin-bottom: 2rem;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.education-item:hover,
.honor-item:hover {
  border-color: rgba(10, 54, 40, 0.14);
  box-shadow: 0 8px 28px -10px rgba(8, 26, 19, 0.12), 0 0 1px rgba(8, 26, 19, 0.08);
}
.education-item h3,
.honor-item h3 {
  font-size: 1.4rem;
}
.education-item p,
.honor-item p {
  color: #4f5c57;
  margin-bottom: 0.5rem;
}
.education-item .date,
.education-item .honor-tag,
.honor-item .date,
.honor-item .honor-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 3rem 2rem;
    border-right: none;
    border-bottom: 1px solid rgba(10, 54, 40, 0.07);
    align-items: center;
    text-align: center;
  }
  .sidebar .profile-container .name {
    font-size: 2rem;
  }
  .sidebar .nav {
    margin-top: 2.5rem;
  }
  .sidebar .nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }
  .sidebar .nav ul li {
    margin-bottom: 0;
  }
  .sidebar .nav ul li a {
    padding-left: 0;
    font-size: 0.9rem;
  }
  .sidebar .nav ul li a::before {
    display: none;
  }
  .sidebar .nav ul li a.active {
    border-bottom: 2px solid #047857;
    padding-bottom: 2px;
  }
  .content {
    padding: 3rem 1.5rem;
  }
  .section {
    margin-bottom: 6rem;
  }
  .section .section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
  .timeline-item {
    margin-bottom: 4rem;
  }
  .timeline-item .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .timeline-item .timeline-header .date {
    align-self: flex-start;
  }
  .skill-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .content {
    padding: 2.5rem 1.25rem;
  }
  .section .section-body p.lead {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1.4rem;
  }
}
@media print {
  @page {
    margin: 1cm;
    size: A4;
  }
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    padding: 0 0 2rem 0;
    border: none;
    text-align: left;
    display: block;
    background: transparent;
  }
  .sidebar .profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
  }
  .sidebar .profile-container .profile-img {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
    filter: grayscale(100%);
  }
  .sidebar .profile-container div {
    text-align: left;
  }
  .sidebar .profile-container .name {
    font-size: 2.5rem;
    color: black;
    margin-bottom: 0.2rem;
  }
  .sidebar .profile-container .tagline {
    color: #444;
    font-size: 1rem;
  }
  .sidebar .nav {
    display: none;
  }
  .content {
    padding: 0;
    max-width: 100%;
  }
  .section {
    margin-bottom: 3rem;
    -moz-column-break-inside: avoid;
         break-inside: avoid;
  }
  .section .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: black;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
  }
  .section .section-title::after {
    display: none;
  }
  .timeline-item,
  .project-group,
  .education-item,
  .honor-item,
  .skill-list li {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
  }
  .timeline-item {
    padding-left: 0;
    border-left: none;
  }
  .timeline-item::before {
    display: none;
  }
  .timeline-item .timeline-header {
    margin-bottom: 0.5rem;
  }
  .timeline-item .timeline-header .role {
    font-size: 1.3rem;
    font-weight: bold;
    color: black;
  }
  .timeline-item .timeline-header .date {
    background: transparent;
    color: #444;
    padding: 0;
    font-weight: normal;
  }
  .timeline-item .summary {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.5rem;
  }
  .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .skill-list li {
    width: 48%;
    background: transparent;
    border: 1px solid #eee;
    padding: 1rem;
  }
  .skill-list li .skill-icon {
    color: black;
  }
  a {
    text-decoration: none;
    color: black;
    border-bottom: none;
  }
  a[href^=http]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  .scroll-down-indicator,
  .back-to-top {
    display: none !important;
  }
}