body {
  margin: 0;
  padding: 0 0 48px 0;
  background: #f6f6f6;
  color: #232323;
  font-family: 'Montserrat', 'Roboto Mono', monospace;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  z-index: 100;
  padding: 0 2rem;
  box-sizing: border-box;
  border-bottom: 1.5px solid #f0f0f0;
}
.portfolio-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-right: auto;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.portfolio-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  margin-left: 0.15em;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
}
.navbar {
  margin-left: auto;
  display: flex;
  gap: 2.2rem;
}
.navbar a {
  color: #444;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.navbar a.active,
.navbar a:hover {
  color: #1565c0;
  background: rgba(0, 0, 0, 0.04);
}

.about-resume.resume-paper {
  max-width: 820px;
  margin: 120px auto 0;
  padding: 2.5rem 2.2rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(80, 120, 180, 0.08);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  border: 1px solid #222;
  position: relative;
}

.resume-box,
.resume-box.profile-box,
.goal-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(80, 120, 180, 0.06);
  border: 2px solid transparent;
  padding: 1.3rem 1.5rem 1.1rem 1.5rem;
  margin-bottom: 1.2rem;
  transition: border 0.25s, box-shadow 0.25s;
}
.resume-box:hover,
.resume-box.profile-box:hover,
.goal-box:hover {
  border: 2px solid #2986f7;
  box-shadow: 0 4px 24px rgba(80, 120, 180, 0.13);
}

.resume-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.2rem;
  align-items: flex-start;
  margin-bottom: 0.2rem;
  position: relative;
}
.resume-photo img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(80, 120, 180, 0.13);
  background: #f8f8f8;
  border: 1.5px solid #e0e0e0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.resume-photo img:hover {
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.18);
  transform: scale(1.04);
}
.resume-main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 140px;
  position: relative;
}
.resume-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resume-names {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  flex-wrap: wrap;
}
.resume-name-ko {
  font-size: 1.7rem;
  font-weight: 700;
  color: #232323;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', sans-serif;
}
.resume-name-en,
.resume-name-han {
  font-size: 1.05rem;
  font-weight: 400;
  color: #666;
  margin-left: 0.5em;
  font-family: 'Montserrat', sans-serif;
}
.resume-personal {
  list-style: none;
  padding: 0;
  margin: 0.2em 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em 2.5em;
  font-size: 1.01rem;
  color: #232323;
  font-family: 'Montserrat', sans-serif;
}
.resume-personal li strong {
  font-weight: 600;
  color: #232323;
}
.resume-personal li {
  margin: 0;
}
.resume-table {
  margin: 0.5em 0 0.2em 0;
}
.resume-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.01rem;
  background: #fafdff;
  border-radius: 8px;
  overflow: hidden;
}
.resume-table th,
.resume-table td {
  padding: 0.5em 1em;
  border: 1px solid #e0e0e0;
  text-align: left;
  font-weight: 500;
  color: #232323;
  background: #fff;
}
.resume-table th {
  background: #fafdff;
  color: #232323;
  width: 80px;
  font-weight: 600;
}
.resume-table td {
  background: #fff;
  color: #232323;
  font-weight: 400;
}

.resume-sns {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.2rem;
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
}
.sns-btn.no-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  transition: transform 0.18s;
}
.sns-btn.no-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
  margin: 0;
  padding: 0;
  transition: filter 0.18s, transform 0.18s;
}
.sns-btn.no-bg:hover img,
.sns-btn.no-bg:focus-visible img {
  filter: brightness(1.1) drop-shadow(0 2px 8px #1565c055);
  transform: scale(1.12);
}

.resume-section h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.13rem;
  color: #232323;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  padding-left: 0.5em;
  background: linear-gradient(90deg, #fafdff 70%, transparent);
  font-family: 'Montserrat', sans-serif;
}
.resume-section ul,
.resume-section ul.skills {
  margin: 0 0 0.5em 1.2em;
  padding: 0;
  font-size: 1.01rem;
  color: #232323;
  font-family: 'Montserrat', sans-serif;
}
.resume-section ul.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em 1.5em;
  margin-left: 0;
  list-style: none;
}
.resume-section ul.skills li {
  background: #e3f0ff;
  color: #232323;
  border-radius: 12px;
  padding: 0.3em 1em;
  font-size: 1.01rem;
  font-weight: 500;
  margin-bottom: 0.3em;
  display: inline-block;
}
.resume-section.goal p {
  margin: 0.7em 0 0 0;
  font-size: 1.08rem;
  color: #232323;
  font-family: 'Montserrat', sans-serif;
}
.resume-section.goal em {
  color: #232323;
  font-style: normal;
  font-weight: 700;
  margin-left: 0.5em;
  background: none;
  cursor: pointer;
  transition: opacity 0.18s;
}
.resume-section.goal em:hover {
  opacity: 0.7;
}

.career-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5em 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.career-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafdff;
  border-radius: 8px;
  padding: 0.7em 1.2em;
  font-size: 1.01rem;
  border-left: none;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px rgba(80, 120, 180, 0.06);
  color: #232323;
}
.career-list li:hover {
  background: #e3f0ff;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.1);
}
.career-title {
  font-weight: 600;
  color: #232323;
  letter-spacing: 0.01em;
}
.career-period {
  font-size: 0.98em;
  color: #555;
  font-weight: 400;
  margin-left: 1.5em;
  white-space: nowrap;
}

.project-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0.5rem 0;
}
.project-slider {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 370px;
  max-width: 700px;
  margin: 0 1rem;
  position: relative;
}
.slider-btn {
  width: 48px;
  height: 48px;
  font-size: 2rem;
  background: #f0f6ff;
  border: none;
  border-radius: 50%;
  color: #1565c0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.slider-btn:hover:not(:disabled) {
  background: #e3f0ff;
  color: #0d47a1;
}
.slider-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
  min-width: 0;
  min-height: 260px;
  align-items: stretch;
}
.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(80, 120, 180, 0.06);
  padding: 2.5rem 2.5rem;
  font-size: 1.18rem;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.45s cubic-bezier(0.7, 1.6, 0.5, 1);
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  visibility: visible;
  position: relative;
  animation: slideFadeIn 0.22s;
}
@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.slide-img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(80, 120, 180, 0.08);
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.22s;
}
.slide-img.anim-out {
  opacity: 0;
  transition: opacity 0.22s;
}
.slide-img.anim-in {
  opacity: 1;
  transition: opacity 0.22s;
}
.slide-desc {
  flex: 1;
  gap: 1.2em;
  font-size: 1.18rem;
  line-height: 1.7;
  color: #232323;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  word-break: keep-all;
  min-width: 0;
}
.slide-title {
  font-weight: 700;
  color: #232323;
  font-size: 1.35rem;
  margin-bottom: 0.5em;
}
.slider-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.7em;
  min-height: 48px;
}
.slider-main-btn {
  display: inline-block;
  padding: 0.7em 2.2em;
  font-size: 1.13rem;
  font-family: 'Montserrat', 'Roboto Mono', monospace;
  font-weight: 600;
  color: #1565c0;
  background: #fff;
  border: 2px solid #1565c0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(80, 120, 180, 0.07);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
  outline: none;
  margin: 0 auto;
  letter-spacing: 0.01em;
}
.slider-main-btn:hover,
.slider-main-btn:focus-visible {
  background: #fafdff;
  color: #0d47a1;
  border-color: #0d47a1;
  transform: scale(1.07);
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbe2ff;
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
}
.slider-dot.active {
  background: #1565c0;
  transform: scale(1.2);
}

.footer-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-sizing: border-box;
  padding-left: 2rem;
}
.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.footer-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  margin-left: 0.15em;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
}

.scroll-top-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.scroll-top-btn img {
  width: 32px;
  height: 32px;
  display: block;
  margin: auto;
  pointer-events: none;
}
.scroll-top-btn:hover {
  background: #e6f0ff;
  box-shadow: 0 6px 24px rgba(0, 123, 255, 0.18);
}

.photo-popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
}
.photo-popup.active {
  display: flex;
}
.popup-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.popup-img {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 0 32px #000a;
  background: #fff;
  animation: popupScale 0.22s cubic-bezier(0.4, 1.6, 0.6, 1);
}
@keyframes popupScale {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .about-resume.resume-paper {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .resume-photo img {
    width: 90px;
    height: 110px;
    border-radius: 8px;
  }
  .resume-sns {
    right: 12px;
    bottom: 10px;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .header {
    height: 48px;
    padding: 0 0.4rem;
  }
  .portfolio-title {
    font-size: 0.9rem;
    margin-right: auto;
  }
  .navbar {
    gap: 0.5rem;
  }
  .navbar a {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
  }
  .about-resume.resume-paper {
    padding: 0.7rem 0.2rem;
    border-radius: 7px;
  }
  .resume-photo img {
    width: 60px;
    height: 75px;
    border-radius: 6px;
  }
  .resume-name-ko {
    font-size: 1.1rem;
  }
  .resume-name-en,
  .resume-name-han {
    font-size: 0.7rem;
  }
  .resume-sns {
    right: 8px;
    bottom: 6px;
    gap: 8px;
  }
  .footer-bar {
    height: 38px;
    padding-left: 0.5rem;
  }
  .footer-title {
    font-size: 1rem;
  }
  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
  .scroll-top-btn img {
    width: 20px;
    height: 20px;
  }
  .project-slider {
    min-height: 180px;
    max-width: 98vw;
  }
  .slide {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem 0.7rem;
  }
  .slide-img {
    width: 120px;
    height: 120px;
  }
  .slide-desc {
    font-size: 1rem;
  }
  .slide-title {
    font-size: 1.08rem;
  }
  .slider-main-btn {
    font-size: 0.98rem;
    padding: 0.5em 1.2em;
    border-radius: 10px;
  }
  .skills-img-list {
    gap: 16px 12px;
    max-width: 100vw;
    justify-content: flex-start;
  }
  .skills-img-list img {
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 8px;
  }
}

.school-link {
  color: #1565c0;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.18s;
}
.school-link:hover {
  color: #0d47a1;
  text-decoration: underline;
}
.skills-img-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 32px;
  align-items: center;
  margin-top: 0.7em;
  justify-content: flex-start;
  max-width: 600px;
}
.skills-img-list img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 12px;
  background: #f6faff;
  box-shadow: 0 1px 6px rgba(21, 101, 192, 0.07);
  padding: 8px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.skills-img-list img:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 18px #1565c044;
}
.skills-img-list.center-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 28px 32px;
  justify-items: center;
  align-items: center;
  max-width: 480px;
  margin: 0.7em auto 0 auto;
}
.interest-area {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  margin-top: 0.7em;
}
.interest-badge {
  display: inline-flex;
  align-items: center;
  background: #e3f0ff;
  color: #1565c0;
  border-radius: 16px;
  padding: 0.4em 1.1em 0.4em 0.7em;
  font-weight: 600;
  font-size: 1.07em;
  gap: 0.5em;
  box-shadow: 0 1px 6px #1565c012;
  margin-bottom: 0.1em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.interest-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 0.3em;
}
.interest-badge:hover {
  background: #1565c0;
  color: #fff;
}
.interest-badge:hover img {
  filter: brightness(0) invert(1);
}
.interest-sub {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #555;
  font-size: 0.98em;
  margin-left: 0.2em;
  opacity: 0.85;
}
.interest-sub img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
}
.solve-img-list,
.solve-img-list.center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow: visible !important;
  height: auto !important;
  min-height: unset !important;
}
.solve-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  background: #f6f6f6;
  box-shadow: 0 2px 10px rgba(80, 120, 180, 0.1);
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}
.solve-img:hover {
  box-shadow: 0 6px 24px #1565c044;
  transform: scale(1.06);
}
.solve-link-btn {
  font-size: 0.98em;
  color: #1565c0;
  background: none;
  border: none;
  text-decoration: underline;
  margin-left: 1.1em;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.18s;
}
.solve-link-btn:hover {
  color: #0d47a1;
  text-decoration: underline;
}
