:root {
  --bg-color: #0f1117;
  --surface-color: #171a23;
  --card-bg: rgba(26, 30, 44, 0.7);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #38bdf8;
  --border-color: rgba(255, 255, 255, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

body {
  /* 외부 웹폰트 의존 없이 시스템 기본 고품질 폰트 스택 사용 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 40%);
  min-height: 100vh;
}

/* SVG Icons */
.svg-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero */
.hero {
  padding: 5rem 8% 3rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 780px;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

/* Gallery Section */
.gallery-section {
  padding: 2rem 8% 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.title-wrap h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.title-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.view-controls {
  display: flex;
  align-items: center;
  background: var(--surface-color);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 0.4rem;
}

.control-btn, .view-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.control-btn:hover, .view-btn:hover {
  color: #fff;
}

.control-btn.active, .view-btn.active {
  background: var(--primary);
  color: #fff;
}

.divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  margin: 0 0.2rem;
}

/* Slider Component */
.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slider-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  user-select: none;
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0d13;
  cursor: pointer;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.slide-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 1.2rem;
  background: linear-gradient(to top, rgba(10, 12, 18, 0.92) 0%, rgba(10, 12, 18, 0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.slide-caption-bar h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.slide-caption-bar p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(23, 26, 35, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.nav-btn .svg-icon {
  width: 24px;
  height: 24px;
}

.nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.prev-btn {
  left: 1.5rem;
}

.next-btn {
  right: 1.5rem;
}

/* Slide Counter Badge */
.slide-counter {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(15, 17, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  z-index: 10;
}

/* Zoom Button */
.zoom-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 17, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.zoom-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

/* Indicators (Dots) */
.indicators {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.dot.active {
  background: var(--accent);
  width: 32px;
}

/* Thumbnail Strip */
.thumbnail-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.thumb-item {
  flex: 0 0 140px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition);
  background: #000;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: var(--transition);
}

.thumb-item:hover img {
  opacity: 0.9;
  transform: scale(1.05);
}

.thumb-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.thumb-item.active img {
  opacity: 1;
}

/* Grid View Container */
.grid-wrapper {
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.grid-card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.grid-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.grid-img-wrap {
  width: 100%;
  height: 220px;
  background: #000;
  overflow: hidden;
}

.grid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-card:hover .grid-img-wrap img {
  transform: scale(1.07);
}

.grid-card-info {
  padding: 1.2rem;
}

.grid-card-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.grid-card-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* About Section */
.about-section {
  padding: 4rem 8%;
  background: rgba(23, 26, 35, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 2rem;
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-item {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9999px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 8%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close .svg-icon {
  width: 26px;
  height: 26px;
}

.lightbox-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .slider-main {
    aspect-ratio: 4 / 3;
  }
  .nav-btn {
    width: 42px;
    height: 42px;
  }
  .nav-btn .svg-icon {
    width: 20px;
    height: 20px;
  }
  .prev-btn {
    left: 0.8rem;
  }
  .next-btn {
    right: 0.8rem;
  }
  .thumb-item {
    flex: 0 0 100px;
    height: 65px;
  }
}
