@font-face {
  font-family: "NanumYeolsa";
  src: url("../fonts/나눔손글씨 대한민국 열사체.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NanumDdaAkDanDan";
  src: url("../fonts/나눔손글씨 따악단단.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NanumPen";
  src: url("../fonts/NanumPen.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquare";
  src: url("../fonts/NanumFontSetup_TTF_SQUARE/NanumSquareL.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquare";
  src: url("../fonts/NanumFontSetup_TTF_SQUARE/NanumSquareR.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquare";
  src: url("../fonts/NanumFontSetup_TTF_SQUARE/NanumSquareB.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquare";
  src: url("../fonts/NanumFontSetup_TTF_SQUARE/NanumSquareEB.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* 기본 설정 */
:root {
  --bg-color: #f9f9f5;
  --text-dark: #1a2e35;
  --primary-yellow: #f4b436;
  --btn-green: #2f6a62;
  --gray-text: #555;

  --font-base: "Poppins", "Noto Sans KR", sans-serif;
  --font-ko: "NanumSquare", "Noto Sans KR", sans-serif;
  --font-display: "Caveat", cursive;
  --main-font: var(--font-base);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--main-font);
}

html[data-i18n-pending="1"] body {
  visibility: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  overflow-x: hidden;
}

.site-footer {
  border-top: 1px solid rgba(47, 106, 98, 0.15);
  padding: 18px 50px 24px;
  color: var(--gray-text);
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: var(--btn-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy {
  padding: 18px 0 0;
  line-height: 1.75;
}

.policy h2 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.policy ul {
  list-style: disc;
  padding-left: 20px;
}

.policy ol {
  padding-left: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 네비게이션 바 */
header {
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  padding: 20px 50px 0;
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 50px 30px;
  width: 100%;
}

.logo {
  font-family: var(--font-base);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.logo span {
  color: var(--btn-green);
}

.logo-subtitle {
  /* font-family: "Dancing Script", cursive; */
  font-size: 1rem;
  line-height: 1rem;
  color: #555;
  display: block;
}

nav {
  justify-self: center;
}

nav ul {
  display: flex;
  gap: 40px;
}

nav ul li a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
}

nav ul li.active a {
  color: var(--btn-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

nav ul li.separator {
  color: #ccc;
  font-size: 17px; /* Match nav links */
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background-color: var(--text-dark);
  border: 2px solid var(--text-dark);
  border-radius: 8px;
  cursor: pointer;
  padding: 5px 15px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background-color: var(--btn-green);
  border-color: var(--btn-green);
  color: white;
}

.btn-cv {
  background-color: var(--btn-green);
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-cv:hover {
  opacity: 0.9;
}

/* Hero badge: Blogs Service (replaces numeric counter) */
.experience.blogs-service .icon {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f6a62;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  color: #aaa;
  padding: 0;
}

.lang-btn.active {
  color: var(--text-dark);
  font-weight: 700;
}

.lang-switch .divider {
  color: #ddd;
  font-size: 12px;
}

/* 페이지 공통 레이아웃 (서브페이지) */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 50px 80px;
}

.page-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 25px;
  border-bottom: 1px solid rgba(47, 106, 98, 0.15);
}

.page-title h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-dark);
}

.page-title p {
  max-width: 520px;
  font-size: 17px;
  color: var(--gray-text);
  text-align: right;
}

/* Index Page Styles */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 50px;
  height: calc(100vh - 100px);
  align-items: center;
  position: relative;
  overflow: visible;
}

.left-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 70%;
  position: relative;
}

.greeting h2 {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--text-dark);
}

.greeting h1 {
  font-size: 50px;
  font-weight: 700;
  color: var(--primary-yellow);
  line-height: 1.2;
}

.name-wrap {
  position: relative;
  display: inline-block;
}

.arrow-graphic {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: clamp(260px, 32vw, 520px);
  z-index: 1;
  pointer-events: none;
  display: block;
  height: auto;
  transform: translateX(0);
}

.experience {
  margin-top: auto;
}

.experience .number {
  font-size: 40px;
  font-weight: 700;
  color: var(--btn-green);
}

.experience .text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  margin-left: 10px;
}

.experience .text .click-badge {
  display: inline-block;
  margin-top: 5px;
  margin-left: 0;
}


.center-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.image-credit {
  margin-top: 10px;
  font-size: 14px;
  color: var(--gray-text);
  text-align: center;
}

.image-circle {
  width: 400px;
  height: 400px;
  background-color: #fff;
  border-radius: 50%;
  border: 4px solid #fdf4e0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right-content {
  display: flex;
  flex-direction: column;
  height: 70%;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
}

.top-quote {
  font-size: 17px;
  color: var(--text-dark);
  max-width: 280px;
}

.projects-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
  width: 280px;
  margin: 40px 0;
  position: relative;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
}

.stars {
  color: var(--primary-yellow);
}

.projects-avatars {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
}

.avatar-group img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
}
.avatar-group img:first-child {
  margin-left: 0;
}
.projects-title {
  font-size: 17px;
  font-weight: 600;
}

.projects-icon {
  font-weight: 700;
  color: var(--btn-green);
  font-size: 20px;
}

.projects-completed-text {
  font-size: 12px;
  color: var(--gray-text);
  margin-left: 10px;
}

.click-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--btn-green);
  border: 1px solid var(--btn-green);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

a:hover .click-badge {
  background-color: var(--btn-green);
  color: white;
}

.bottom-sign {
  margin-top: auto;
}

.bottom-sign span {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.bottom-sign strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--btn-green);
}

/* Service Badges */
.service-card .thumb,
.project-card .thumb {
  position: relative;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.badge.self {
  background-color: var(--btn-green);
}

.badge.other {
  background-color: var(--primary-yellow);
  color: var(--text-dark);
}

.badge.wip {
  background-color: #dc3545; /* Red for Work in Progress */
}

/* Contact Page Styles */
.contact-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
}

.panel {
  background: white;
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info h2 {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--text-dark);
}

.info p {
  margin-top: 10px;
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.7;
}

.info-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 17px;
  color: var(--text-dark);
}

.info-item i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 180, 54, 0.18);
  color: var(--btn-green);
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(26, 46, 53, 0.15);
  outline: none;
  font-size: 17px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.hint {
  margin-top: 10px;
  font-size: 14px;
  color: var(--gray-text);
}

/* Projects Page Styles */
.projects-section {
  margin-bottom: 5rem;
}

.projects-section + .projects-section {
  margin-top: 34px;
  margin-bottom: 5rem;
}

.projects-section-title {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.thumb {
  height: 170px;
  background: rgba(244, 180, 54, 0.18);
}

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

.project-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-body h3 {
  font-size: 22px;
  font-weight: 700;
}

.project-body p {
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.6;
}

.meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: var(--gray-text);
}

.tag {
  color: var(--btn-green);
  font-weight: 600;
}

/* Service Page Styles */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* .thumb is shared with projects */

.service-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.service-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 180, 54, 0.18);
  color: var(--btn-green);
  font-size: 18px;
}

.service-card h3 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
}

.service-card p {
  margin-top: 8px;
  font-size: 17px;
  color: var(--gray-text);
  line-height: 1.6;
}

.service-card a {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--btn-green);
}

.cta {
  margin-top: 28px;
  background: white;
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta strong {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text-dark);
}

.cta span {
  display: block;
  margin-top: 6px;
  color: var(--gray-text);
  font-size: 17px;
}

/* Media Queries */
@media (max-width: 1160px) {
  .hero {
    padding: 20px 30px;
    grid-template-columns: 1fr 1.05fr 1fr;
  }

  .greeting h2 {
    font-size: 24px;
  }

  .greeting h1 {
    font-size: 44px;
  }

  .image-circle {
    width: 340px;
    height: 340px;
  }

  .projects-card {
    width: 240px;
    padding: 16px;
    margin: 26px 0;
    right: 10px;
  }

  .top-quote {
    max-width: 250px;
  }

  .experience .number {
    font-size: 34px;
  }

  .social-icons a {
    margin-right: 14px;
  }
}

@media (min-width: 901px) and (max-width: 1160px) {
  .greeting h2 {
    font-size: 22px;
  }

  .greeting h1 {
    font-size: 40px;
  }

  .experience .number {
    font-size: 32px;
  }

  .top-quote {
    font-size: 16px;
    max-width: 250px;
  }

  .projects-card {
    margin: 18px 0;
  }

  .bottom-sign span {
    font-size: 28px;
  }

  .bottom-sign strong {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  .header-main > a {
    position: relative;
    z-index: 1001;
  }

  header {
    padding: 20px;
  }

  .header-top {
    padding: 10px 20px 0;
  }

  .header-main {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    padding: 10px 20px 20px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
    position: relative;
    z-index: 1001;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 160px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    width: 100%;
  }

  nav.is-open ul {
    display: flex; /* Kept for specificity if needed, but flex is already set above */
  }

  /* Index Page Mobile */
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    text-align: center;
    gap: 50px;
    padding-bottom: 5rem;
  }

  .left-content,
  .right-content {
    height: auto;
    align-items: center;
    text-align: center;
  }

  .arrow-graphic {
    display: none;
  }
  .projects-card {
    right: 0;
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
  .image-circle {
    width: 300px;
    height: 300px;
  }

  .greeting h1 {
    margin-bottom: 30px;
  }

  /* Subpages Mobile */
  .page {
    padding: 20px 60px;
  }

  .page-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-title p {
    text-align: left;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn-cv {
    width: 100%;
    text-align: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 901px) {
  .experience.blogs-service .icon {
    font-size: 60px;
  }

  .experience .text {
    font-size: 21px;
  }
}


@media (max-width: 500px) {
  .page {
    padding: 20px 20px;
  }
}