/* =========================================
   HOZA WORKS — style.css
   ========================================= */

/* ── Reset & Root ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent:    #EFFF39;
  --white:     #ffffff;
  --black:     #111111;
  --mono:      'Geist Mono', monospace;
  --sans:      'Pretendard', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: var(--black);
  font-family: var(--sans);
  cursor: none;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: none; }

/* =========================================
   VIDEO BACKGROUND
   ========================================= */
#vbg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#vbg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
#cursor-main {
  position: fixed;
  width: 88px;
  height: 88px;
  background: url('assets/cursors/cursor-default.png') center / contain no-repeat;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.2s;
}

#cursor-main.is-clicking {
  background-image: url('assets/cursors/cursor-click.png');
}

#cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.c-trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
}

/* =========================================
   CURSOR PARTICLES (별·원·네모)
   ========================================= */
.c-particle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9996;
  background: var(--accent);
  transform-origin: center center;
  will-change: transform, opacity;
}

/* 원 */
.c-particle--circle {
  border-radius: 50%;
}

/* 별 — 5포인트 */
.c-particle--star {
  clip-path: polygon(
    50%  0%,
    61% 35%, 98% 35%,
    68% 57%, 79% 91%,
    50% 70%, 21% 91%,
    32% 57%,  2% 35%,
    39% 35%
  );
}

/* 네모 — 약간 둥근 모서리 */
.c-particle--square {
  border-radius: 2px;
}

/* =========================================
   GNB
   ========================================= */
#gnb {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  background: transparent;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

/* Nav Center */
.nav-center {
  display: flex;
  align-items: center;
  gap: 104px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 80px;
}

.nav-label {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--black);
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.nav-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 26px;
  width: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.nav-link:hover .nav-label,
.nav-link.is-active .nav-label { opacity: 0; }
.nav-link:hover .nav-img,
.nav-link.is-active .nav-img   { opacity: 1; }

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 44px;
}

.lang-btn {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.5);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}

.lang-btn .lang-kr,
.lang-btn .lang-en {
  transition: color 0.3s;
}

.lang-btn .lang-kr.active,
.lang-btn .lang-en.active {
  color: var(--accent);
}

.lang-sep { opacity: 0.3; }

/* About Button */
.about-btn {
  position: relative;
  display: block;
  height: 34px;
}

.ab-img {
  height: 34px;
  width: auto;
  display: block;
  transition: opacity 0.25s ease;
}

.ab2 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.about-btn:hover .ab1 { opacity: 0; }
.about-btn:hover .ab2 { opacity: 1; }

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Hero Person */
.hero-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30vw;
  max-width: 440px;
  max-height: calc(100vh - 140px);
  z-index: 5;
}

.h-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  object-position: top;
  /* transition은 GSAP이 처리 — CSS transition 제거 */
}

.h-bw    { position: relative; }
.h-color { position: absolute; top: 0; left: 0; width: 100%; }
/* hover 효과는 GSAP JS에서만 처리 — CSS hover rule 없음 */

/* Objects */
.obj {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  will-change: transform;
  cursor: none;
}

/* ── Object Tooltip ── */
.obj-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  max-width: 200px;
  pointer-events: none;
  opacity: 0;
  white-space: pre-line;
}

/* 히어로 30vw 기준 / 히어로 좌우 경계(~35%, ~65%) 바짝 붙여 배치 */
#obj-wine     { left: 21%;  top: 45%; width: 5vw;   }
#obj-twilight { left: 25%;  top: 64%; width: 7vw;   }
#obj-coffee   { left: 60%;  top: 64%; width: 6.5vw; }
#obj-bread    { left: 46%;  top: 72%; width: 8.5vw; }
#obj-laptop   { left: 65%;  top: 42%; width: 12vw;  }

/* Wave Marquee */
.mq-outer {
  position: absolute;
  top: 38%;
  left: 0;
  width: 100%;
  overflow: visible;
  z-index: 2;       /* 히어로(z5) 아래로 — 이미지 가리지 않음 */
  pointer-events: none;
}

.mq-track {
  display: flex;
  width: max-content;
  animation: mq-scroll 22s linear infinite;
}

.mq-svg {
  width: 100vw;
  height: 220px;
  flex-shrink: 0;
  overflow: visible;
}

.mq-txt {
  font-family: var(--mono);
  font-size: 18px;
  fill: var(--black);
  letter-spacing: 0.04em;
}

@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
#about {
  position: relative;
  z-index: 2;
  padding: 130px 60px 140px;
  min-height: 100vh;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  max-width: 1380px;
  margin: 0 auto;
  align-items: start;
}

/* Heading */
.about-heading {
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.38;
  margin-bottom: 52px;
  color: var(--black);
}

/* Body Text */
.about-body p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  color: rgba(0,0,0,0.82);
  margin-bottom: 22px;
}

.about-body em {
  font-style: italic;
  color: rgba(0,0,0,0.6);
}

.sub-label {
  font-family: var(--mono) !important;
  font-size: 16px !important;
  letter-spacing: 0.06em !important;
  color: var(--accent) !important;
  margin-top: 38px !important;
  margin-bottom: 14px !important;
  font-weight: 600 !important;
}

.skill-list {
  margin: 16px 0 26px;
}

.skill-list li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 2.1;
  color: rgba(0,0,0,0.82);
}

/* =========================================
   CONTACT PANEL
   ========================================= */
.contact-panel {
  position: sticky;
  top: 90px;
}

.contact-box {
  background: var(--accent);
  padding: 42px 40px 48px;
  color: var(--black);
}

.c-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 36px;
  color: var(--black);
}

.f-group {
  margin-bottom: 22px;
}

.f-group label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.55);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.f-group input,
.f-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.75);
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--black);
  resize: none;
  transition: background 0.25s;
}

.f-group input::placeholder,
.f-group textarea::placeholder {
  color: rgba(0,0,0,0.32);
}

.f-group input:focus,
.f-group textarea:focus {
  background: rgba(255,255,255,1);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: background 0.25s, letter-spacing 0.3s;
}

.submit-btn:hover {
  background: #2a2a2a;
  letter-spacing: 0.3em;
}

/* =========================================
   GSAP HIDDEN (entry state)
   ========================================= */
.logo-img,
.nav-link,
.nav-right > *,
#heroWrap,
.obj,
.mq-outer {
  visibility: visible; /* GSAP controls opacity/transform */
}

/* =========================================
   HAMBURGER BUTTON (데스크탑에서 숨김)
   ========================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 17px;
  background: none;
  border: none;
  cursor: none;
  z-index: 600;
  position: relative;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--black);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.25s ease;
}

/* X 상태 */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--white);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--white);
}

/* =========================================
   MOBILE MENU OVERLAY
   ========================================= */
#mobileMenu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 34px) 34px);  /* 햄버거 위치에서 펼쳐짐 */
  transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

#mobileMenu.is-open {
  clip-path: circle(150% at calc(100% - 34px) 34px);
  pointer-events: all;
}

.mob-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  width: 100%;
}

.mob-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mob-nav li {
  overflow: hidden;
}

.mob-link {
  font-family: var(--mono);
  font-size: clamp(32px, 10vw, 56px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  display: block;
  padding: 10px 0;
  text-decoration: none;
  position: relative;
  transform: translateY(100%);
  transition: color 0.3s ease;
}

.mob-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.mob-link:hover { color: var(--accent); }
.mob-link:hover::after { width: 100%; }

.mob-about-link {
  font-size: clamp(28px, 8vw, 46px);
  color: var(--accent);
}

.mob-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mob-lang-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  cursor: none;
  transition: color 0.3s, border-color 0.3s;
}

.mob-lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================
   RESPONSIVE — 768px
   ========================================= */
@media (max-width: 768px) {
  #gnb {
    padding: 16px 22px;
  }

  /* 데스크탑 nav 숨김 */
  .nav-center { display: none; }
  .nav-right  { display: none; }

  /* 햄버거 표시 */
  .hamburger { display: flex; }

  .hero-wrap {
    width: 82vw;
  }

  .obj {
    display: none;
  }

  .mq-txt {
    font-size: 13px;
  }

  #about {
    padding: 90px 24px 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-panel {
    position: static;
  }

  .about-heading {
    font-size: clamp(22px, 6vw, 32px);
  }
}
