@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700&family=Playfair+Display:wght@600&display=swap');

:root {
  --bg-main: #f3f0f0;
  --text-dark: #1A1410;
  --accent: #976b4e;
  --accent-strong: #744a2e;
  --muted: #6D5A51;
  --card: #ffffff;
  --shadow: 0 18px 36px rgba(51, 34, 24, 0.12);
  --border-soft: #e8e1dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

header,
section {
  width: 100%;
}

/* ======  NAV BAR  ======== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6vw;
  background: rgba(248, 244, 241, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
  transform: translateY(-120%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  z-index: 10;
}

.nav.nav--visible {
  transform: translateY(0);
  opacity: 1;
}

.nav__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav__menu {
  display: flex;
  gap: 18px;
  font-weight: 600;
  color: var(--accent-strong);
}

.nav__menu a:hover {
  color: #4d2c1f;
}

/* =======  HERO  ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #fff, #f5f1ee);
  position: relative;
  padding: 0 6vw;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -22vw;
  top: 12vh;
  width: 600px;
  height: 600px;
  background: radial-gradient(260px 260px at 56% 46%, rgba(196, 154, 125, 0.08), transparent 70%),
    radial-gradient(240px 240px at 68% 64%, rgba(214, 182, 156, 0.1), transparent 70%);
  filter: blur(36px);
  opacity: 0.42;
}

.hero::after {
  content: '';
  position: absolute;
  right: -14vw;
  top: 32vh;
  width: 480px;
  height: 480px;
  background: radial-gradient(210px 230px at 36% 52%, rgba(186, 132, 98, 0.06), transparent 70%),
    radial-gradient(240px 240px at 64% 62%, rgba(170, 123, 92, 0.04), transparent 72%);
  filter: blur(24px);
  opacity: 0.38;
}

.hero__content {
  position: relative;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__label {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: 0.06em;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hero__cursor {
  display: inline-block;
  width: 1.4ch;
  color: var(--accent);
  font-weight: 700;
}

.hero__cursor.is-off {
  opacity: 0;
}

.hero__desc {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
}

.scroll-indicator::after {
  content: '';
  width: 38px;
  height: 2px;
  background: var(--accent-strong);
  display: inline-block;
  animation: scrollPulse 2s infinite;
  transform-origin: left center;
}

@keyframes scrollPulse {
  0% { transform: scaleX(0.4); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.4); opacity: 0.4; }
}

/* =======  SECTION  ======= */
.section {
  padding: 120px 6vw;
  background: #fff;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ======== ABOUT ========= */
.about {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 46px;
  align-items: start;
}

.about__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  align-items: center;
}

.about__photo {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__photo img {
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 24px;
  margin-top: 8px;
}

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf7f4;
  border: 1px solid var(--border-soft);
}

.meta strong {
  min-width: 80px;
  font-weight: 700;
}

.meta span {
  color: #3c4043;
}

.subsection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 23px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}

.card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #3c4043;
}

.list li {
  margin-bottom: 6px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.skill-pill {
  display: flex;
  align-items: center;
  flex-direction: column !important;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #f8f1ec);
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.skill-pill img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.skill-pill span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ====== PROJECTS ========= */
.section--muted {
  background: #faf7f4;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  min-height: 360px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-soft);
  isolation: isolate;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(166, 106, 67, 0.12), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.gallery-thumb {
  width: 100%;
  height: 340px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 28px rgba(0, 0, 0, 0.08);
}

.gallery-thumb::before {
  content: '';
  position: absolute;
  inset: -18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(166, 106, 67, 0.12), transparent 46%),
    radial-gradient(circle at 72% 60%, rgba(220, 185, 160, 0.22), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.gallery-card h3 {
  margin: 16px 0 6px;
  font-size: 1.2rem;
}

.gallery-card p {
  margin: 0;
  color: #4a4a4a;
}

/* ========= FOOTER ========= */
.footer {
  background: #362e2b;
  color: #f8f1ea;
  padding: 60px 6vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.footer__brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer__desc {
  margin: 10px 0 0;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #f8f1ea;
}

.footer__list li {
  margin-bottom: 8px;
}

.footer__title {
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============ PROJECT PAGE HERO ========== */
.page-hero {
  padding: 60px 6vw 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  column-gap: 40px;
  background: radial-gradient(circle at 10% 20%, rgba(166, 106, 67, 0.12), transparent 40%), var(--bg-main);
  margin-top: 12px;
}

.page-desc {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero-left {
  display: flex;
  flex-direction: column;
}

.page-hero-right {
  max-width: 500px;
  text-align: right;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 18px;

  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 10px;
}

.page-title {
  font-size: clamp(35px, 7vw, 45px);
  margin: 0;
}

.page {
  padding: 50px 6vw 80px;
}

/* ============= PROJECT SLIDER ============ */
.slider {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);

  overflow: hidden !important;
  transition: height 0.35s ease, width 0.25s ease;
}

.slides {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slide-visual {
  width: 100%;
  margin: 0 auto;
  background: #fefefe;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
              0 12px 28px rgba(0, 0, 0, 0.08);
  overflow: visible;
  max-height: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.mock-image {
  width: 100%;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 560px;
  margin: 0 auto;
}

.mock-image.tall {
  min-height: 960px;
}

.mock-image.real {
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: none;
  min-height: auto;
  height: auto;
  object-fit: contain;
}

.slide-info {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  border-radius: 14px;
  max-width: 680px;
  margin: 30px auto 20px;
}

.slide-info h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.slide-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}


/* ============ SLIDER CONTROLS ============ */
.slider__control {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.project-links {
  display: flex;
  gap: 30px;
  margin-top: 35px;
  align-items: center;
  justify-content: center;
}

.project-link-btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 10px;
  background: #faf7f4;
  border: 1px solid var(--border-soft);
  color: var(--muted);
  font-weight: 550;
  transition: all .25s ease;
  font-size: 16px;
}

.project-link-btn:hover {
  background: var(--muted);
  color: #fff;
  border-color: var(--accent-strong);
  transform: translateY(-3px);
}

.project-meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.meta-pill {
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf7f4;
  border: 1px solid var(--border-soft);
  color: #3c4043;
}

.error {
  padding: 80px 6vw;
  text-align: center;
  color: var(--muted);
}


/* ==== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1024px) {

  .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: 1fr;
  }

  .gallery-thumb {
    height: 224px;
  }
}

@media (max-width: 768px) {

  .hero {
    padding: 0 20px;
  }

  .scroll-indicator {
    left: 20px;
  }

  .nav {
    padding: 12px 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section {
    padding: 90px 20px;
  }

  .hero__title {
    font-size: clamp(38px, 9vw, 64px);
  }

  .gallery-thumb {
    height: 128px;
  }

  .gallery-card {
    min-height: 320px;
  }
}

@media (max-width: 640px) {

  .hero {
    min-height: 88vh;
    align-items: flex-start;
    padding-top: 90px;
  }

  .hero__content {
    align-items: flex-start;
    gap: 18px;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .scroll-indicator {
    bottom: 28px;
    letter-spacing: 0.16em;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .gallery-thumb {
    height: 108px;
  }

  .nav__menu {
    gap: 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {

  .section {
    padding: 80px 16px;
  }

  .about {
    gap: 22px;
  }

  .gallery-card {
    padding: 16px;
    min-height: 300px;
  }

  .gallery-thumb {
    height: 96px;
  }
}


/* ============= ABOUT — NEW LAYOUT STRUCTURE ============== */
.about--new {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 26px;
  align-items: stretch;
}

.about__left,
.about__right {
  height: 100%;
  align-self: stretch;
}

.about__left {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--border-soft);
}

.about__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills-card {
  width: 100%;
  flex: 1;
}

.about-bottom-info {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.basic-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}

.info-box {
  background: #faf7f4;
  border: 1px solid var(--border-soft);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.info-box strong {
  min-width: 80px;
  font-weight: 700;
}

.info-box span {
  display: inline-block;
  text-align: left;
}

.about-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mock-image.real:not(.tall) {
  width: 100%;
  height: auto;
  max-height: none;

  object-fit: cover;
  aspect-ratio: 16.9 / 6; 

  border-radius: 12px;
}

.slider {
    max-width: min(90vw, 1200px);
}

.mock-image.real:not(.tall) {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* =============================== */
/* MOBILE (≤640px) */
/* =============================== */

@media (max-width: 640px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-size: 14px;
  }

  .page,
  .section,
  .section-inner,
  .about--new,
  .about-bottom-info,
  .basic-info-grid,
  .gallery-card,
  .slider,
  .skills-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  h1,
  h2,
  h3,
  h4 {
    font-size: 0.85em !important;
  }

  .section__title {
    font-size: 20px !important;
  }

  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
  }

  #hero .hero__subtitle,
  #hero .hero__desc,
  #hero .hero__meta,
  #hero .hero__eyebrow {
    font-size: 0.75em; 
  }

  #about.section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .about--new {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .basic-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .about-bottom-info h4,
  .skills-card h4 {
    font-size: 1.25em !important;
  }

  .about-bottom-info li {
    font-size: 0.75em !important;
    line-height: 1.4;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px;
  }

  .skill-pill {
    padding: 5px;
    min-width: 0 !important;
  }

  .skill-pill img {
    width: 24px;
    height: auto;
  }

  .skill-pill span {
    font-size: 0.5em !important;
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gallery-card {
    padding: 16px;
    display: block;
  }

  .gallery-thumb {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 14px;
  }

  .gallery-card h3 {
    font-size: 1.10em !important;
  }

  .gallery-card p {
    font-size: 0.75em !important;
  }

  .page-hero {
    padding: 36px 20px 18px 20px;
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    font-size: 0.5em !important;
  }

  .page-title {
    font-size: 1.25em !important;
  }

  .page-hero-right {
    text-align: left !important;
    font-size: 0.75em !important;
    padding-right: 10px;
    line-height: 1.5;
  }

  .slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  #slides {
    display: flex;
    transition: transform 0.4s ease;
    gap: 0;
  }

  #slides img,
  #slides .mock-image,
  .mock-image,
  .mock-image.real {
    width: 100% !important;
    height: auto !important;
    flex-shrink: 0;
    display: block;
  }

  .slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

  .slider__control {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(90, 72, 56, 0.35);
    color: #fff !important;
    border-radius: 50%;
    font-size: 24px !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
  }

  .slider__control.prev {
    left: 8px !important;
    right: auto !important;
  }

  .slider__control.next {
    right: 8px !important;
    left: auto !important;
  }

  .slider__control.is-disabled,
  .slider__control.disabled {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .project-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: nowrap;
  }

  .project-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    min-width: 110px;
    max-width: 33%;
    font-size: 12px !important;
    white-space: nowrap !important;
    border-radius: 10px;
    text-align: center;
  }

  .footer__desc {
    font-size: 0.75em !important;
  }
}
