:root {
  --red: #d60000;
  --dark-blue: #0b2c5f;
  --blue: #0d5f78;
  --cyan: #75d7e7;
  --lime: #a9ef32;
  --yellow: #fff15a;
  --cream: #fcffe2;
  --text-dark: #111111;
  --page-width: 1120px;
}

/* === Base === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text-dark);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

/* === Header / Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 0 56px;
  background-color: var(--red);
  color: #ffffff;
}

.site-name {
  justify-self: start;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: calc(100% + 4mm);
  height: 2px;
  background-color: var(--dark-blue);
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-link:hover::after {
  opacity: 0.45;
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.desktop-socials {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-socials a {
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-socials a:hover {
  background-color: #ffffff;
  color: var(--red);
  transform: translateY(-2px);
}

/* === Mobile Menu === */
.mobile-menu-button {
  display: none;
  justify-self: end;
  width: 74px;
  height: 56px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-button span {
  display: block;
  width: 68px;
  height: 3px;
  margin: 10px 0;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0);
  pointer-events: none;
  opacity: 0;
  overflow-y: auto;
  transition: background-color 0.45s ease, opacity 0.45s ease;
}

.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.98);
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(34px, 7vh, 72px) clamp(30px, 7vw, 68px) 0;
}

.mobile-site-name {
  color: #111111;
  font-family: Arial, sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease 0.08s, transform 0.45s ease 0.08s;
}

.mobile-menu.open .mobile-site-name {
  opacity: 1;
  transform: translateY(0);
}

.mobile-close-button {
  position: relative;
  width: clamp(42px, 7vw, 56px);
  height: clamp(42px, 7vw, 56px);
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease 0.12s, transform 0.45s ease 0.12s;
}

.mobile-menu.open .mobile-close-button {
  opacity: 1;
  transform: translateY(0);
}

.mobile-close-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(36px, 6vw, 48px);
  height: 3px;
  background-color: #111111;
  transform-origin: center;
}

.mobile-close-button span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-close-button span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  margin-top: clamp(80px, 16vh, 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vh, 58px);
}

.mobile-nav a {
  color: #111111;
  font-family: Arial, sans-serif;
  font-size: clamp(38px, 9vw, 70px);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.mobile-menu.open .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-nav a:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-nav a:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-nav a:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-nav a:nth-child(4) { transition-delay: 0.30s; }

.mobile-socials {
  margin-top: clamp(70px, 14vh, 180px);
  margin-bottom: clamp(40px, 7vh, 80px);
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 32px);
}

.mobile-socials a {
  width: clamp(52px, 9vw, 72px);
  height: clamp(52px, 9vw, 72px);
  border: 3px solid #111111;
  border-radius: 12px;
  color: #111111;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(24px, 5vw, 34px);
  text-decoration: none;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu.open .mobile-socials a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-socials a:nth-child(1) { transition-delay: 0.36s; }
.mobile-menu.open .mobile-socials a:nth-child(2) { transition-delay: 0.42s; }
.mobile-menu.open .mobile-socials a:nth-child(3) { transition-delay: 0.48s; }

/* === Home Hero / Section A === */
.hero-section {
  position: relative;
  min-height: 480px;
  background: #ffffff;
  overflow: hidden;
  padding: 72px 8%;
}

.hero-inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(320px, 1fr);
  grid-template-areas:
    "photo title"
    "photo copy";
  align-items: center;
  gap: 24px 80px;
}

.hero-title {
  grid-area: title;
  margin: 0 0 55px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 35px;
  line-height: 1.12;
  font-weight: 700;
}

.hero-photo-wrap {
  grid-area: photo;
  align-self: end;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 2;
  transform: translateY(42px);
}

.hero-copy {
  grid-area: copy;
}

.profile-photo {
  width: min(390px, 100%);
  height: auto;
  display: block;
}

.hero-school-line {
  margin: 0 0 60px;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.15;
  font-weight: 500;
}

.hero-school-link {
  color: #111111;
  text-decoration: none;
}

.uw-logo {
  height: 32px;
  width: auto;
  margin-left: 8px;
  vertical-align: -7px;
}

.hero-focus1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
}
.hero-focus2 {
  max-width: 900px;
  margin: 0 0 36px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
}

.hero-divider,
.hero-bottom-mask {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.hero-divider {
  bottom: -8px;
  height: 92px;
  z-index: 7;
}

.hero-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-divider polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.hero-bottom-mask {
  bottom: -2px;
  height: 46px;
  z-index: 6;
  background: #ffffff;
}

/* === About / Section B === */
.about-section {
  padding: 50px 8% 90px;
  background: #ffffff;
}

.about-card-new {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  text-align: center;
}

.about-card-new h2 {
  margin: 0 0 18px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 600;
}

.about-lead,
.skills-subtitle {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.4;
  font-weight: 400;
  font-family: Georgia, serif;
}

.about-lead {
  margin: 0 auto 62px;
}

.interest-row {
  width: min(760px, 100%);
  margin: 0 auto 150px;
  display: grid;
  grid-template-columns: auto 36px 1fr;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  text-align: left;
}

.interest-label,
.interest-list li {
  font-size: clamp(22px, 2.6vw, 30px);
}

.interest-label {
  font-weight: 500;
}

.interest-brace {
  color: var(--blue);
  font-size: clamp(64px, 7vw, 100px);
  line-height: 0.9;
  font-weight: 300;
  opacity: 0;
}

.interest-list {
  list-style: disc;
  margin: 0;
  padding-left: 25px;
}

.interest-list li {
  margin: 2px 0;
  line-height: 1.5;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
}

.interest-list li::before {
  content: none;
}

.about-animate-block.in-view .interest-brace {
  animation: fadeInPPT 0.9s ease 0.15s forwards;
}

.about-animate-block.in-view .interest-list li:nth-child(1) { animation: bulletIn 0.45s ease 0.95s forwards; }
.about-animate-block.in-view .interest-list li:nth-child(2) { animation: bulletIn 0.45s ease 1.35s forwards; }
.about-animate-block.in-view .interest-list li:nth-child(3) { animation: bulletIn 0.45s ease 1.75s forwards; }

@keyframes fadeInPPT {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bulletIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Skills Part === */
.skills-part {
  margin-top: 18px;
  text-align: center;
}

.skills-part h3 {
  margin: 40px 0 25px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 600;
}

.skills-subtitle {
  margin: 0 0 54px;
}

.skills-diagram {
  position: relative;
  width: min(760px, 100%);
  min-height: 410px;
  margin: 0 auto;
}

.skill-box,
.skill-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.skill-box {
  width: 260px;
  height: 150px;
  border: 11px solid var(--cyan);
  border-radius: 28px;
}

.skill-circle {
  width: 210px;
  height: 210px;
  border: 10px solid var(--lime);
  border-radius: 50%;
}

.skill-core {
  width: 250px;
  height: 250px;
  left: 50%;
  top: 114px;
  z-index: 3;
  transform: translateX(-50%);
  border-color: var(--yellow);
}

.skill-data { left: 52px; top: 0; }
.skill-web { right: 52px; top: 0; }
.skill-workflow { left: 70px; top: 148px; z-index: 2; }
.skill-ai { right: 70px; top: 148px; z-index: 2; }

.skill-box h4,
.skill-circle h4 {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
}

.skill-box p,
.skill-circle p {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

/* === Shared Pages: Experience, Project, Resume === */
.work-page,
.project-page,
.resume-page {
  background: #ffffff;
}

.page-heading {
  text-align: center;
  padding: 66px 8% 42px;
}

.page-heading h1 {
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}

.page-heading p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 18px;
}

.experience-list,
.project-list {
  width: min(1060px, calc(100% - 46px));
  margin: 0 auto 70px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.experience-item{
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 34px;
  align-items: start;
}

.project-item {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 34px;
  align-items: start;
}

.experience-logo{
  width: 190px;
  height: 116px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image {
  width: 320px;
  height: 200px;
  margin-top: 8px;
  padding: 0;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.experience-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.experience-content h2,
.project-content h2 {
  margin: 0 0 7px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.18;
  font-weight: 700;
}

.experience-content p:not(.org-info):not(.date),
.project-content p:not(.org-info):not(.date) {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

.experience-content .org-info,
.project-content .org-info {
  margin: 0 0 2px;
  font-family: Georgia, serif;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--blue);
}

.experience-content .date,
.project-content .date {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.3;
}

.experience-content a,
.project-content h2 a,
.dot-list a {
  color: var(--dark-blue);
  text-decoration: none;
}

.org-info a {
  color: var(--blue);
  text-decoration: none;
}

.experience-content a:hover,
.project-content h2 a:hover,
.org-info a:hover,
.dot-list a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li::before {
  content: none;
}

.arrow-list,
.dot-list {
  margin: 6px 0 0;
  padding: 0;
}

.arrow-list li,
.dot-list li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 25px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.45;
}

.arrow-list li::before,
.dot-list li::before {
  position: absolute;
  left: 0;
  line-height: 1;
}

.arrow-list li::before {
  content: "➤";
  top: 0;
  color: var(--dark-blue);
  font-size: 15px;
  font-weight: 700;
}

.dot-list li::before {
  content: "•";
  top: -1px;
  left: 5px;
  color: #111111;
  font-size: 22px;
}

/* === Resume PDF === */
.resume-page {
  padding: 70px 8%;
  text-align: center;
}

.resume-frame {
  max-width: 900px;
  margin: 0 auto;
}

.resume-image-link img,
.resume-preview img {
  width: 100%;
  height: auto;
  border: 1px solid #dddddd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.resume-note a {
  color: var(--dark-blue);
  font-weight: 700;
}

/* === Hobby Carousel === */
.hobby-section {
  width: min(1100px, calc(100% - 80px));
  margin: 60px auto 40px;
  padding: 52px 46px;
  background-color: #ffffff;
}

.hobby-section h2 {
  margin: 0 0 38px;
  font-size: clamp(26px, 3vw, 32px);
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
  font-weight: 700;
}

.carousel-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.hobby-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 3);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.hobby-carousel::-webkit-scrollbar {
  display: none;
}

.hobby-card {
  scroll-snap-align: start;
  min-height: 430px;
  border: 2px solid var(--blue);
  border-radius: 28px;
  background-color: #ffffff;
  overflow: hidden;
  padding: 12px 12px 18px;
}

.hobby-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 20px;
  background-color: var(--blue);
  display: block;
}

.hobby-card h3 {
  margin: 16px 0 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.hobby-card p {
  font-family: Georgia, serif;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.hobby-card a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.hobby-card a:hover {
  text-decoration: underline;
}

.carousel-btn {
  position: absolute;
  z-index: 5;
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
}

.carousel-btn.prev { left: -46px; }
.carousel-btn.next { right: -46px; }

/* === Footer === */
.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  padding: 20px 0 10px;
  background-color: var(--cream);
  color: #000000;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 15px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0));
}

.site-footer p {
  margin: 8px 0;
}

/* === Responsive === */
@media (max-width: 980px) {
  .site-header { padding: 0 28px; }
  .desktop-nav { gap: 18px; }
  .hero-inner { gap: 42px; }

  .skills-diagram {
    transform: scale(0.92);
    transform-origin: top center;
    min-height: 380px;
  }

  .experience-item {
    grid-template-columns: 170px 1fr;
    gap: 24px;
  }

  .experience-logo {
    width: 155px;
  }

  .project-item {
    grid-template-columns: 300px 1fr;
    gap: 24px;
  }

  .project-image {
    width: 280px;
    height: 175px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 0 24px;
  }

  .site-name { font-size: 20px; }
  .desktop-nav,
  .desktop-socials { display: none; }
  .mobile-menu-button { display: block; }

  .hero-section {
    min-height: auto;
    padding: 42px 8% 74px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "photo"
      "copy";
    gap: 18px;
    text-align: center;
  }

  .hero-title {
    font-size: 32px;
    margin: 0 0 6px;
  }

  .hero-photo-wrap {
    min-height: 280px;
    transform: translateY(8px);
  }

  .profile-photo { width: 250px; }
  .hero-school-line { font-size: 22px; margin: 0 0 28px; }
  .hero-focus1, .hero-focus2 { font-size: 20px; margin: 0; }
  .hero-divider { height: 64px; bottom: -4px; }
  .hero-bottom-mask { bottom: -2px; height: 34px; }

  .about-section { padding-top: 44px; }

  .interest-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .interest-brace { display: none; }

  .interest-list {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .skills-diagram {
    transform: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .skill-box,
  .skill-circle,
  .skill-core {
    position: static;
    transform: none;
    width: min(290px, 100%);
    height: auto;
    min-height: 140px;
    border-radius: 28px;
  }

  .experience-list,
  .project-list {
    width: min(100% - 32px, 580px);
    gap: 40px;
  }

  .experience-item,
  .project-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .experience-logo,
  .project-image {
    width: 100%;
    height: 150px;
    margin-top: 0;
  }

  .project-image {
    height: auto;
    aspect-ratio: auto;
  }

  .project-image img {
    height: auto;
    object-fit: contain;
  }

  .hobby-section {
    width: calc(100% - 30px);
    padding: 36px 28px;
  }

  .hobby-carousel { grid-auto-columns: 100%; }

  .hobby-card img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .carousel-btn.prev { left: -28px; }
  .carousel-btn.next { right: -28px; }
}

@media (max-width: 430px) {
  .mobile-nav { margin-top: 120px; gap: 38px; }
  .mobile-nav a { font-size: 44px; }
  .hero-school-line { font-size: 19px; }
  .hero-focus1,.hero-focus2 { font-size: 22px; }
  .about-card-new h2 { font-size: 30px; }
  .about-lead { margin-bottom: 42px; }
  .interest-label,
  .interest-list li { font-size: 22px; }
  .page-heading { padding-top: 48px; }
}
