@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  /* Option B: Modern Minimalist Color Palette */
  --bg-color: #f9f9f9;        /* 오프화이트 배경 */
  --bg-alt: #ffffff;          /* 순백색 컴포넌트 배경 */
  --text-main: #111111;       /* 매우 진한 먹색 (제목용) */
  --text-muted: #555555;      /* 회색 (본문용) */
  --accent: #000000;          /* 검정 포인트 */
  --primary: #0c77f2;         /* 링크나 중요 CTA용 미세한 블루 허용 */
  --border-color: #e0e0e0;    /* 얇고 섬세한 경계선 */

  --font-en: 'Be Vietnam Pro', sans-serif;
  --font-kr: 'Noto Sans KR', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

/* =========================================================================
   1. Base & Reset
   ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-kr);
  background-color: var(--bg-color);
  color: var(--text-muted);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all; /* 한글 단어 줄바꿈 방지 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-kr);
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* =========================================================================
   2. Layout & Containers
   ========================================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* 유틸리티 클래스 */
.py-20 { padding-top: 100px; padding-bottom: 100px; }
.py-16 { padding-top: 80px; padding-bottom: 80px; }
.py-12 { padding-top: 60px; padding-bottom: 60px; }
.mb-16 { margin-bottom: 80px; }
.mb-12 { margin-bottom: 60px; }
.mb-8  { margin-bottom: 40px; }
.mb-6  { margin-bottom: 30px; }
.mb-4  { margin-bottom: 20px; }
.mb-2  { margin-bottom: 10px; }
.mt-12 { margin-top: 60px; }
.p-10  { padding: 50px; }
.p-8   { padding: 40px; }
.p-6   { padding: 30px; }

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-align: center;
  color: var(--text-main);
  text-transform: uppercase;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-line {
  width: 60px;
  height: 4px;
  background: var(--text-main);
  margin: 0 auto 30px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-main { color: var(--text-main) !important; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

.font-bold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.text-4xl { font-size: 2.5rem; }
.text-3xl { font-size: 2rem; }
.text-2xl { font-size: 1.5rem; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }

.bg-white { background-color: #ffffff; }
.bg-dark { background-color: var(--text-main); color: var(--bg-alt); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--bg-alt); }
.bg-dark .text-muted { color: #aaaaaa; }
.bg-dark .section-line { background: #ffffff; }

.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 20px; }

.max-w-3xl { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 900px; margin-left: auto; margin-right: auto; }

/* =========================================================================
   3. Modules (Buttons, Cards, Forms)
   ========================================================================= */

/* Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text-main);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 600;
  padding: 16px 36px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--text-main);
  transition: var(--transition);
}
.btn-primary:hover {
  background: #fff;
  color: var(--text-main);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-en);
  font-weight: 600;
  padding: 16px 36px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--text-main);
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--text-main);
  color: #fff;
}

/* Light Button for Dark backgrounds */
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--text-main);
  font-family: var(--font-en);
  font-weight: 600;
  padding: 16px 36px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 1px solid #fff;
  transition: var(--transition);
}
.btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* Minimal Card */
.minimal-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 40px;
  transition: var(--transition);
  height: 100%;
}
.minimal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.04);
  border-color: var(--text-main);
}
.minimal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-kr);
  font-size: 1rem;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--text-main);
  box-shadow: inset 2px 0 0 0 var(--text-main);
}
textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* =========================================================================
   4. Header & Footer
   ========================================================================= */

/* Header */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
#main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
}
#main-header.scrolled .logo img { filter: none; }
#main-header.scrolled .nav-links a { color: var(--text-main); }
#main-header.scrolled .mobile-toggle span { background: var(--text-main); }

/* 홈페이지 투명 헤더일 때 네비게이션 색상 흰색으로 유지 */
.main-page #main-header:not(.scrolled) .nav-links a {
  color: #ffffff;
}
.main-page #main-header:not(.scrolled) .mobile-toggle span {
  background: #ffffff;
}

/* 서브페이지 헤더 기본 상태 */
body:not(.main-page) #main-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
}
body:not(.main-page) #main-header .logo img { filter: none; }
body:not(.main-page) #main-header .nav-links a { color: var(--text-main); }
body:not(.main-page) .mobile-toggle span { background: var(--text-main); }

.logo img {
  height: 30px;
  transition: var(--transition);
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  color: var(--text-main);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.header-cta .btn-primary {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--text-main); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--text-main); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  padding: 100px 5%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 999;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu a {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .nav-links, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
}

/* Footer */
footer {
  background: var(--text-main);
  color: #888888;
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 24px;
  filter: none;
}
.footer-desc {
  line-height: 1.8;
  max-width: 300px;
}
.footer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #888888;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid stretch;
  font-family: var(--font-en);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* =========================================================================
   5. Animations
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* =========================================================================
   6. Page Components (Hero, Sections)
   ========================================================================= */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.page-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 0;
}
.sub-nav a {
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  background: var(--bg-alt);
  transition: var(--transition);
}
.sub-nav a:hover, .sub-nav a.active {
  color: #fff;
  background: var(--text-main);
  border-color: var(--text-main);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6); /* 비디오 위에 살짝 어두운 톤업 */
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.hero-title {
  font-size: 4rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px; /* 글자 잘림 방지를 위해 너비 상향 */
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-alt);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual img {
  width: 100%;
  filter: grayscale(100%);
  transition: var(--transition);
}
.about-visual:hover img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Timeline (Minimal) */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  border-left: 2px solid var(--border-color);
  padding-left: 40px;
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -48px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--bg-color);
  border: 2px solid var(--text-main);
  border-radius: 50%;
  transition: var(--transition);
}
.timeline-item.active .timeline-dot {
  background: var(--text-main);
}
.timeline-year {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
  display: block;
  margin-bottom: 8px;
}
.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.timeline-desc {
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  padding: 40px 30px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--text-main);
  color: #fff;
}
.feature-card:hover h3, .feature-card:hover p, .feature-card:hover .feature-icon svg {
  color: #fff;
}
.feature-icon {
  margin-bottom: 24px;
}
.feature-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-main);
  transition: var(--transition);
}
.feature-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 0.95rem;
}


/* =========================================================================
   7. Contact Section Grid
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}
.info-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text-main);
  transition: var(--transition);
}
.bg-dark .info-icon svg {
  color: #ffffff;
}
.bg-dark .info-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.info-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info h2 { font-size: 2.2rem; }
}
