/* ========================================
   U2DIA Portfolio - Modern Monotone Design
   Fine Art & Oriental Painting
   ======================================== */

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --gray-dark: #1a1a1a;
  --gray: #2a2a2a;
  --gray-medium: #666666;
  --gray-light: #999999;
  --white: #ffffff;
  --off-white: #f5f5f5;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --font-korean: 'Noto Serif KR', serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  cursor: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor.active {
  width: 16px;
  height: 16px;
}

.cursor-follower.active {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .cursor, .cursor-follower {
    display: none;
  }
  body {
    cursor: auto;
  }
  a, button {
    cursor: pointer;
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--black);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.nav-links {
  display: flex;
  gap: 50px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width var(--transition-medium);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--black);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
}

.hero-logo-wrap {
  margin-bottom: 50px;
  perspective: 1000px;
}

.hero-logo {
  width: 821px;
  max-width: 76.5vw;
  height: auto;
}

.hero-text {
  margin-bottom: 60px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-medium);
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--black);
}

.title-line {
  display: block;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-medium);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gray-medium), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Metaverse Banner */
.metaverse-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 0;
}

.banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 25px 40px;
  color: var(--white);
  transition: all var(--transition-medium);
}

.banner-link:hover {
  background: rgba(255, 255, 255, 0.05);
  gap: 25px;
}

.banner-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.banner-arrow {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.banner-link:hover .banner-arrow {
  transform: translate(5px, -5px);
}

/* Reveal Text Animation */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: revealText 1s ease forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.2s; }
.reveal-text:nth-child(2) { animation-delay: 0.4s; }
.reveal-text:nth-child(3) { animation-delay: 0.6s; }
.reveal-text:nth-child(4) { animation-delay: 0.8s; }

@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Common */
section {
  padding: 150px 0;
}

.section-header {
  margin-bottom: 80px;
}

.section-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gray-medium);
  letter-spacing: 0.1em;
  display: none;
  margin-bottom: 15px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Fade Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Section */
.about {
  background: var(--dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 100px;
  align-items: start;
}

.about-image {
  position: sticky;
  top: 150px;
}

.image-frame {
  aspect-ratio: 3/4;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}

.image-frame::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-medium);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.about-text {
  padding-top: 20px;
}

.about-intro {
  margin-bottom: 40px;
}

.korean-text {
  font-family: var(--font-korean);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.8;
}

.about-desc {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 2;
  color: var(--gray-light);
  margin-bottom: 60px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 40px;
  border-top: 1px solid var(--gray);
}

.detail-item {
  display: flex;
  gap: 40px;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-medium);
  width: 100px;
  flex-shrink: 0;
}

.detail-value {
  font-size: 1rem;
  font-weight: 300;
  color: var(--off-white);
}

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-image {
    position: relative;
    top: 0;
    max-width: 400px;
  }
}

/* Works Section */
.works {
  background: var(--black);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.work-item {
  position: relative;
  overflow: hidden;
}

.work-item-large {
  grid-column: span 2;
}

.work-image {
  aspect-ratio: 4/5;
  background: var(--gray-dark);
  position: relative;
  overflow: hidden;
}

.work-item-large .work-image {
  aspect-ratio: 16/10;
}

.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-medium);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: transform var(--transition-slow);
}

.work-item:hover .work-placeholder {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-category {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 10px;
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 5px;
}

.work-year {
  font-size: 0.85rem;
  color: var(--gray-light);
}

@media (max-width: 968px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .work-item-large {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-item-large {
    grid-column: span 1;
  }

  .work-item-large .work-image {
    aspect-ratio: 4/5;
  }
}

/* Exhibition Section */
.exhibition {
  background: var(--dark);
}

.exhibition-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
}

.exhibition-intro {
  position: sticky;
  top: 150px;
}

.exhibition-quote {
  font-family: var(--font-korean);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 2;
  color: var(--off-white);
  margin-bottom: 20px;
}

.exhibition-quote-author {
  font-size: 0.9rem;
  color: var(--gray-medium);
  letter-spacing: 0.05em;
}

.exhibition-list {
  display: flex;
  flex-direction: column;
}

.exhibition-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray);
  align-items: center;
  transition: background var(--transition-fast);
}

.exhibition-item:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 20px;
  margin-left: -20px;
  padding-right: 20px;
  margin-right: -20px;
}

.exhibition-year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gray-medium);
}

.exhibition-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.exhibition-desc {
  font-size: 0.95rem;
  color: var(--gray-light);
  font-weight: 300;
}

.exhibition-status {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 8px 16px;
  border: 1px solid var(--gray);
}

.exhibition-status.upcoming {
  color: var(--white);
  border-color: var(--white);
}

@media (max-width: 968px) {
  .exhibition-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .exhibition-intro {
    position: relative;
    top: 0;
  }

  .exhibition-item {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .exhibition-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }
}

/* Contact Section */
.contact {
  background: var(--black);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 50px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 50px;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-channels {
  margin-bottom: 50px;
}

.kakao-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.channel-label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-medium);
}

.qr-code {
  width: 120px;
  height: 120px;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--white);
}

.social-link svg {
  transition: transform var(--transition-fast);
}

.social-link:hover svg {
  transform: translate(3px, -3px);
}

/* Footer */
.footer {
  padding: 80px 0;
  background: var(--dark);
  border-top: 1px solid var(--gray);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 300;
  margin-bottom: 30px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--gray-medium);
  letter-spacing: 0.05em;
}

/* Smooth Scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Loading Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: fadeIn 0.5s ease;
}
