/* === Fonts === */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { margin: 0; padding: 0; }

/* === Base === */
body {
  font: 400 18px/1.6 "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #000;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

img { max-width: 100%; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; letter-spacing: -0.5px; }

a { color: #c5050c; text-decoration: none; }
a:visited { color: #c5050c; }
a:hover { color: #c5050c; text-decoration: underline; }

ul, ol { margin-left: 30px; }
li > ul, li > ol { margin-bottom: 0; }
p { margin-bottom: 14px; }
h1, h2, h3, h4, h5, h6, ul, ol, dl, figure { margin-bottom: 12px; }

/* === Wrapper === */
.wrapper {
  max-width: calc(860px - (30px * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}
.wrapper::after { content: ""; display: table; clear: both; }

@media screen and (max-width: 860px) {
  .wrapper { padding-right: 15px; padding-left: 15px; }
}

/* === Site Header === */
.site-header {
  border-top: 1.2px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  min-height: 56px;
  position: relative;
}

.site-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -0.3px;
  margin-bottom: 0;
  float: left;
  color: #000;
}
.site-title:visited { color: #000; }
.site-title:hover { color: #c5050c; text-decoration: none; }

.site-nav { float: right; line-height: 56px; }
.site-nav .nav-trigger { display: none; }
.site-nav .menu-icon { display: none; }

.site-nav .page-link {
  color: #000;
  line-height: 1.5;
  font-size: 16px;
}
.site-nav .page-link:not(:last-child) { margin-right: 22px; }
.site-nav .page-link:hover { color: #c5050c; text-decoration: none; }
.site-nav .page-link.active {
  color: #c5050c;
  border-bottom: 1.5px solid #c5050c;
  padding-bottom: 2px;
}

@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute; top: 9px; right: 15px;
    background-color: #fff; border: 1px solid #e8e8e8;
    border-radius: 5px; text-align: right;
  }
  .site-nav label[for="nav-trigger"] {
    display: block; float: right; width: 36px; height: 36px; z-index: 2; cursor: pointer;
  }
  .site-nav .menu-icon {
    display: block; float: right; width: 36px; height: 26px;
    line-height: 0; padding-top: 10px; text-align: center;
  }
  .site-nav .menu-icon > svg { fill: #424242; }
  .site-nav input ~ .trigger { clear: both; display: none; }
  .site-nav input:checked ~ .trigger { display: block; padding-bottom: 5px; }
  .site-nav .page-link { display: block; padding: 5px 10px; margin-left: 20px; margin-right: 0 !important; }
}

/* === Page Content === */
.page-content { padding: 30px 0; flex: 1; }

.post-title {
  font-size: 36px;
  letter-spacing: -1px;
  line-height: 1;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 20px 0;
  color: #fff;
  background-color: #363636;
}
.footer-col-wrapper::after { content: ""; display: table; clear: both; }
.footer-col-wrapper { font-size: 15px; margin-left: -15px; }
.footer-col { float: left; margin-bottom: 15px; padding-left: 15px; }
.footer-col-1, .footer-col-2 { width: calc(50% - (30px / 2)); text-align: center; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:visited { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

@media screen and (max-width: 600px) {
  .footer-col { float: none; width: calc(100% - (30px / 2)); }
}

/* === Home: Intro layout === */
.intro-wrapper {
  position: relative;
  margin-top: 10px;
}
.intro-text section { margin-bottom: 1.8rem; }
.intro-text h2 { font-size: 24px; margin-bottom: 0.5rem; }
.profile-pic {
  position: absolute;
  left: -260px;
  top: 0;
  width: 220px;
  height: 270px;
  object-fit: cover;
  border-radius: 4px;
}

@media screen and (max-width: 1100px) {
  .profile-pic { display: none; }
}

/* === Experience Cards === */
.experience-cards { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.experience-cards .card {
  display: block;
  background-color: #fff5f5;
  border: 1px solid #e8c8c8;
  border-radius: 6px;
  padding: 16px 18px;
  width: 200px;
  text-decoration: none;
  color: #333;
  transition: transform 0.18s, box-shadow 0.18s;
}
.experience-cards .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  text-decoration: none;
}
.experience-cards .card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #c5050c;
  letter-spacing: 0;
}
.experience-cards .card p { font-size: 12px; margin: 0; color: #555; line-height: 1.4; }

/* === Presentation Boxes === */
.box {
  padding: 1.3rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.6rem;
  border-left: 4px solid #e8e8e8;
}
.box h3 { font-size: 16px; margin-bottom: 6px; margin-top: 0; }
.box p { margin: 0; font-size: 15px; line-height: 1.6; }

.uw { background: #fff5f5; border-left-color: #c5050c; }
.uw h3 { color: #c5050c; }

.ut-austin { background: #fff8f5; border-left-color: #bf5700; }
.ut-austin h3 { color: #bf5700; }

/* === CV === */
.download-btn {
  display: inline-block;
  border: 1px solid #c5050c;
  color: #c5050c;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 1.2rem;
  transition: all 0.2s ease;
}
.download-btn:hover { background: #c5050c; color: #fff; text-decoration: none; }

.pdf-container {
  width: 100%;
  max-width: 900px;
  height: 88vh;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}
.pdf-container iframe { width: 100%; height: 100%; border: none; }

/* === Hobbies === */
.images { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.8rem 0 1.8rem; }
.images img { max-width: 200px; border-radius: 4px; }

article { margin-bottom: 2rem; }
article h3 { font-size: 20px; color: #c5050c; margin-bottom: 0.4rem; }

/* === Four-Year Plan === */
.year-section { border-radius: 8px; padding: 1.4em; margin-bottom: 2em; }
.ap-section { background: #fff5f5; }
.uw-section { background: #fff5f5; }
.year-section > h3 { font-size: 20px; color: #c5050c; margin-bottom: 1em; }

.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }

.semester-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }

.semester h4 {
  border-bottom: 1.5px solid #ddd;
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0;
}

.course { margin-bottom: 0.7em; font-size: 13px; }
.course-header { display: flex; justify-content: space-between; font-weight: 600; }
.course-name { font-style: italic; margin-left: 0.4em; color: #444; }

.color-red { color: #c5050c; }
.color-blue { color: #0275d8; }
.color-green { color: #3d8b3d; }
.color-orange { color: #bf5700; }
.color-purple { color: #7b3fa0; }
.color-brown { color: #7a4a1e; }
.color-yellow { color: #a07800; }

/* === REU Table === */
.reu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.reu-table thead { background-color: #9b0000; color: #fff; }
.reu-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  padding: 0.8em 1em;
  border-bottom: 2px solid #c5050c;
  text-align: center;
}
.reu-table td {
  padding: 0.65em 1em;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
}
.reu-table tbody tr:nth-child(even) { background-color: #fafafa; }
.reu-table tbody tr:hover { background-color: #fff5f5; }

.status-accepted { color: #2e7d32; font-weight: 600; }
.status-denied { color: #c5050c; font-weight: 600; }
.status-stopped { color: #bf5700; font-weight: 600; }
.status-pending { color: #666; font-weight: 600; }
.status-rejected { color: #2e7d32; font-weight: 600; }

/* === REU Sections === */
.year-section p, .year-section ul { font-size: 16px; }
.year-section h3 { font-size: 20px; color: #c5050c; margin-bottom: 0.6em; }
.year-section ul { margin-bottom: 1em; }
.year-section li { margin-bottom: 0.5em; }

/* === Gantt Timeline === */
.timeline-title { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 2rem; }
.year-markers {
  display: flex;
  justify-content: space-between;
  padding: 0 0 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #ddd;
  margin-bottom: 0.6rem;
}
.timeline-bar { display: none; }
.timeline-items { position: relative; height: 280px; }

.timeline-item {
  position: absolute;
  height: 46px;
  border-radius: 5px;
  padding: 0.3em 0.6em;
  font-size: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.timeline-item h3 { font-size: 12px; font-weight: 600; margin: 0; letter-spacing: 0; color: #222; }
.timeline-item p { font-size: 11px; margin: 0; color: #555; }

.timeline-item:nth-child(1) { top: 0; }
.timeline-item:nth-child(2) { top: 56px; }
.timeline-item:nth-child(3) { top: 112px; }
.timeline-item:nth-child(4) { top: 168px; }
.timeline-item:nth-child(5) { top: 168px; }
.timeline-item:nth-child(6) { top: 112px; }

@media (max-width: 700px) {
  .semester-grid { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-cards .card { width: 100%; }
}
