/* ========================================
   JESSUP CHOI - Artist Portfolio
   컬러풀 + 갤러리 느낌
======================================== */

:root {
  --yellow: #FFD93D;
  --pink: #FF6B6B;
  --green: #6BCB77;
  --blue: #4D96FF;
  --purple: #845EC2;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray: #f5f5f5;
  --gray-dark: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

/* ========================================
   Navigation
======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--pink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  background: var(--gray);
  border: none;
  border-radius: 20px;
  padding: 0.25rem;
  cursor: pointer;
  font-family: inherit;
}

.lang-toggle span {
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
  color: var(--gray-dark);
}

.lang-toggle span.active {
  background: var(--black);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--black);
  padding: 0.75rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ========================================
   Hero Section
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content, .hero-badge {
  position: relative;
  z-index: 1;
}

.hero-title, .hero-subtitle {
  color: #fff;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.color-yellow { color: var(--yellow); }
.color-pink { color: var(--pink); }
.color-green { color: var(--green); }
.color-blue { color: var(--blue); }
.color-purple { color: var(--purple); }

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  background: var(--black);
  color: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  text-align: left;
  max-width: 280px;
}

.badge-now {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-badge p {
  font-size: 1.1rem;
}

.badge-date {
  color: var(--yellow);
  font-weight: 600;
  font-size: 1rem;
}

.badge-location {
  color: var(--gray-dark);
  font-size: 0.9rem !important;
}

@media (max-width: 768px) {
  .hero-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 2rem;
    max-width: 100%;
    text-align: center;
  }
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--pink);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Sections
======================================== */
.section {
  padding: 6rem 3rem;
}

.section-alt {
  background: var(--gray);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }
}

/* ========================================
   Works Section
======================================== */
.works-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--black);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--black);
  color: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.work-item {
  cursor: pointer;
  transition: transform 0.3s;
}

.work-item:hover {
  transform: translateY(-5px);
}

.work-image {
  aspect-ratio: 4/5;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.work-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: none;
}

.work-item p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  display: none;
}

@media (max-width: 1200px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ========================================
   About Section
======================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.about-image {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
}

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

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text .en {
  font-weight: 300;
  color: var(--gray-dark);
}

.about-statement {
  margin-bottom: 2rem;
}

.about-statement p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-cv h4 {
  font-size: 1rem;
  color: var(--gray-dark);
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-cv ul {
  list-style: none;
}

.about-cv li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

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

/* ========================================
   Exhibitions Section
======================================== */
.exhibitions-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.tab-btn {
  background: transparent;
  border: 2px solid var(--black);
  padding: 0.75rem 2rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn:first-child {
  border-radius: 50px 0 0 50px;
}

.tab-btn:last-child {
  border-radius: 0 50px 50px 0;
}

.tab-btn.active {
  background: var(--black);
  color: var(--white);
}

.tab-content {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tab-content.active {
  display: block;
}

.exhibition-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: left;
}

.exhibition-card.featured {
  border: 3px solid var(--yellow);
}

.exhibition-image {
  aspect-ratio: 1;
  border-radius: 12px;
}

.exhibition-badge {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exhibition-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.exhibition-date {
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exhibition-location {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.empty-state {
  color: var(--gray-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .exhibition-card {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Shop Section
======================================== */
.shop-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-tab {
  background: transparent;
  border: 2px solid var(--black);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
}

.shop-tab.active {
  background: var(--black);
  color: var(--white);
}

.shop-panel {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
}

.shop-panel.active {
  display: block;
}

.shop-intro {
  text-align: center;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.originals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.original-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}

.original-image {
  aspect-ratio: 4/5;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.original-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.original-item p {
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.goods-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}

.goods-image {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.goods-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.goods-price {
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ========================================
   Contact Section
======================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--pink);
}

.contact-form {
  background: var(--gray);
  padding: 2rem;
  border-radius: 16px;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Footer
======================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ========================================
   이미지 스타일 추가
======================================== */
.work-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.original-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.exhibition-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

/* ========================================
   애니메이션 효과
======================================== */

/* 스크롤 Fade In */
.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* 작품 Hover 효과 */
.work-item:hover .work-image {
  transform: scale(1.05);
}

.work-item {
  overflow: hidden;
  border-radius: 12px;
}

.work-item:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.original-item:hover .original-image {
  transform: scale(1.05);
}

.exhibition-card:hover .exhibition-image {
  transform: scale(1.05);
}

.exhibition-card {
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.exhibition-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}

/* 버튼 반짝 효과 */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transform: translateX(-100%) rotate(45deg);
  transition: none;
}

.btn:hover::after {
  animation: btnShine 0.6s ease forwards;
}

@keyframes btnShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Hero 애니메이션 */
.hero-title {
  animation: slideUp 1s ease forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: slideUp 1s ease 0.3s forwards;
}

.hero-cta {
  opacity: 0;
  animation: slideUp 1s ease 0.5s forwards;
}

.hero-badge {
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 섹션 타이틀 효과 */
.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  transition: width 0.5s ease;
}

.section-title.visible::after {
  width: 60px;
}

/* 굿즈 아이템 Hover */
.goods-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goods-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.goods-image {
  transition: transform 0.3s ease;
}

.goods-item:hover .goods-image {
  transform: scale(1.2);
}

/* 네비게이션 링크 밑줄 효과 */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width 0.3s ease;
}

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

/* Contact 아이템 Hover */
.contact-item {
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

/* 필터/탭 버튼 효과 */
.filter-btn, .tab-btn, .shop-tab {
  transition: all 0.3s ease, transform 0.2s ease;
}

.filter-btn:hover, .tab-btn:hover, .shop-tab:hover {
  transform: translateY(-2px);
}

/* ========================================
   Work Modal
======================================== */
.work-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.work-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.work-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.work-modal-content .modal-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 600px;
  height: 70vh;
}

.work-modal-content .modal-details {
  color: #fff;
  margin-top: 20px;
}

.work-modal-content .modal-details h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.work-modal-content .modal-details p {
  color: #aaa;
}

.work-modal .modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}