body {
  margin: 0;
  padding: 0 0 48px 0;
  background: #f6f6f6;
  color: #333;
  font-family: 'Montserrat', 'Roboto Mono', monospace;
}
.header,
.footer-bar {
  position: fixed;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 100;
  box-sizing: border-box;
}
.header {
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 1.5px solid #f0f0f0;
}
.portfolio-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-right: auto;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.portfolio-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  margin-left: 0.15em;
  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;
}
.navbar a:hover {
  color: #1565c0;
  background: rgba(0, 0, 0, 0.04);
}
.profile-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.2rem;
  max-width: 1000px;
  margin: 120px auto 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 24px;
  border: 2px solid transparent;
  box-shadow: 0 4px 24px rgba(80, 120, 180, 0.08);
  transition: border 0.25s;
}
.profile-section:hover {
  border-color: #2986f7;
}
.profile-img-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.profile-img-wrap {
  width: 320px;
  height: 320px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(80, 120, 180, 0.13);
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
  cursor: pointer;
}
.profile-img-extra {
  min-height: 28px;
  font-size: 1.08rem;
  color: #1565c0;
  background: #fafdff;
  border-radius: 10px;
  padding: 0.4em 1em;
  box-shadow: 0 1px 6px rgba(80, 120, 180, 0.06);
  margin: 0.2em 0;
  text-align: center;
  letter-spacing: 0.01em;
  transition: transform 0.2s;
  cursor: pointer;
}
.profile-img-extra:hover {
  transform: scale(1.07);
}
.profile-intro {
  flex: 1;
  min-width: 0;
  max-width: 540px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  text-align: left;
}
.profile-title {
  font-size: 2.4rem;
  color: #222;
  margin: 0 0 2.2rem 0;
  font-weight: 700;
  padding-top: 0.2em;
}
.intro-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.letter-font {
  font-family: 'Nanum Pen Script', cursive !important;
  font-size: 2.1rem;
  line-height: 2.1;
  color: #333;
}
.profile-intro .highlight {
  color: #1565c0;
}
.intro-paragraphs div {
  font-size: 1.6rem;
  color: #444;
  margin: 0;
  line-height: 1.7;
}
.footer-bar {
  bottom: 0;
  height: 48px;
  border-top: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2rem;
}
.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.image-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.image-popup.active {
  display: flex;
}
.popup-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 0 20px #000;
}

@media (max-width: 1100px) {
  .profile-section {
    flex-direction: column;
    gap: 2rem;
    max-width: 98vw;
    padding: 1.5rem 0.5rem;
  }
  .profile-img-wrap {
    width: 180px;
    height: 180px;
    border-radius: 18px;
  }
}
@media (max-width: 600px) {
  .header {
    height: 48px;
    padding: 0 0.4rem;
  }
  .portfolio-title {
    font-size: 0.9rem;
  }
  .navbar {
    gap: 0.5rem;
  }
  .navbar a {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
  }
  .profile-section {
    gap: 1.2rem;
    padding: 0.7rem 0.2rem;
    border-radius: 7px;
  }
  .profile-img-wrap {
    width: 110px;
    height: 110px;
    border-radius: 10px;
  }
  .profile-title {
    font-size: 1.2rem;
  }
  .intro-paragraphs,
  .letter-font {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }
  .footer-bar {
    height: 38px;
    padding-left: 0.5rem;
  }
  .footer-title {
    font-size: 1rem;
  }
}
