/* Import Pretendard Font */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --text-dark: #171717;
  --text-light: #737373;
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation - Desktop First */
.header {
  position: relative;
  z-index: 100;
  transition: background-color 0.2s ease, border-bottom-color 0.2s ease;
}

/* 헤더 스타일 1: 투명 헤더 (Hero 페이지용) */
.header-transparent {
  background-color: transparent;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.header-transparent:has(.nav-item:hover) {
  background-color: white;
  border-bottom-color: var(--border-color);
}

/* 헤더 스타일 2: 고정 헤더 (서브페이지용) */
.header-solid {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-solid:has(.nav-item:hover) {
  background-color: white;
  border-bottom-color: var(--border-color);
}

.nav {
  position: relative;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-content > * {
  flex-shrink: 0;
}

.nav-content .logo {
  flex: 0 0 auto;
}

.nav-content .nav-links {
  flex: 1;
  justify-content: center;
  display: flex;
}

.nav-content .header-contact-button {
  flex: 0 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* 투명 헤더의 로고 (흰색 텍스트) */
.header-transparent .logo {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-transparent .logo:hover {
  color: rgba(255, 255, 255, 0.9);
}

.header-transparent:has(.nav-item:hover) .logo {
  color: var(--primary-color);
  text-shadow: none;
}

.header-transparent:has(.nav-item:hover) .logo:hover {
  color: var(--primary-hover);
}

/* 고정 헤더의 로고 (어두운 텍스트) */
.header-solid .logo {
  color: var(--text-dark);
  text-shadow: none;
}

.header-solid .logo:hover {
  color: var(--primary-color);
}

.header-solid:has(.nav-item:hover) .logo {
  color: var(--primary-color);
  text-shadow: none;
}

.header-solid:has(.nav-item:hover) .logo:hover {
  color: var(--primary-hover);
}

/* Header Contact Button - Desktop */
.header-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.header-contact-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.header-transparent:has(.nav-item:hover) .header-contact-button {
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.header-solid .header-contact-button {
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
  position: relative;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  height: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0.25rem;
}

/* 투명 헤더의 네비게이션 링크 (흰색 텍스트) */
.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-transparent .nav-link:hover,
.header-transparent .nav-link:focus,
.header-transparent .nav-link.active {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

/* 고정 헤더의 네비게이션 링크 (어두운 텍스트) */
.header-solid .nav-link {
  color: var(--text-dark);
  text-shadow: none;
}

.header-solid .nav-link:hover,
.header-solid .nav-link:focus,
.header-solid .nav-link.active {
  color: var(--primary-color);
  text-shadow: none;
  font-weight: bold;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
}

/* 드롭다운 호버 시 스타일 변경 (투명 헤더) */
.header-transparent:has(.nav-item:hover) .nav-link {
  color: var(--text-dark);
  text-shadow: none;
}

.header-transparent:has(.nav-item:hover) .nav-link:hover,
.header-transparent:has(.nav-item:hover) .nav-link:focus,
.header-transparent:has(.nav-item:hover) .nav-link.active {
  color: var(--primary-color);
  font-weight: bold;
}

/* 네비게이션 아이템 호버 스타일 (투명 헤더) */
.header-transparent .nav-item:hover .nav-link,
.header-transparent .nav-item:focus-within .nav-link,
.header-transparent .nav-item .nav-link.active {
  color: var(--primary-color);
  text-shadow: none;
  font-weight: bold;
}

/* 네비게이션 아이템 호버 스타일 (고정 헤더) */
.header-solid .nav-item:hover .nav-link,
.header-solid .nav-item:focus-within .nav-link,
.header-solid .nav-item .nav-link.active {
  color: var(--primary-color);
  text-shadow: none;
  font-weight: bold;
}

.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1000;
}

.nav-item .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
}

/* 드롭다운 호버 시 활성 링크 스타일 (투명 헤더) */
.header-transparent:has(.nav-item:hover) .nav-item:hover .nav-link {
  color: var(--primary-color);
  font-weight: bold;
}

.header-transparent:has(.nav-item:hover) .nav-item:hover .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
}

.header-transparent:has(.nav-item:hover) .nav-link.active::after {
  width: 16px;
  height: 16px;
  background-color: transparent;
  border: 3px solid var(--primary-color);
}

.nav-dropdown {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: white;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 999;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown .container {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.nav-dropdown-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  padding-top: 0.5rem;
}

.nav-dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1rem;
}

.nav-dropdown-image {
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  border-radius: 0.5rem;
}

.nav-dropdown-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 0.25rem;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus {
  background-color: var(--bg-gray);
  color: var(--primary-color);
}

/* Menu Toggle - Hidden on Desktop */
.menu-toggle {
  display: none;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

/* 투명 헤더의 메뉴 토글 (흰색) */
.header-transparent .menu-toggle span {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-transparent:has(.nav-item:hover) .menu-toggle span {
  background-color: var(--text-dark);
  box-shadow: none;
}

/* 고정 헤더의 메뉴 토글 (어두운 색) */
.header-solid .menu-toggle span {
  background-color: var(--text-dark);
  box-shadow: none;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay - Hidden on Desktop */
.mobile-menu-overlay {
  display: none;
}

.mobile-menu {
  display: none;
}

/* Hero Section - Desktop */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/public/images/hero_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center;
  padding: 4rem 0;
  margin-top: -64px;
  padding-top: calc(64px + 4rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-brand {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg,
    #06b6d4 0%,
    #3b82f6 30%,
    #8b5cf6 70%,
    #ec4899 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 25px rgba(6, 182, 212, 0.6), 0 0 50px rgba(59, 130, 246, 0.4);
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
  animation: fadeInDown 0.8s ease-out;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-title-main {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease-out 0.2s both;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-full {
  width: 100%;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-dark);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-gray);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-description {
  color: var(--text-light);
}

/* Solutions Section - Integrated Layout */
.solutions {
  padding: 6rem 0;
  background-color: var(--bg-gray);
  position: relative;
  overflow: hidden;
}

/* Solutions Integrated - 애니메이션 레이아웃 */
.solutions-integrated {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.solution-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  max-width: 90%;
  background-color: var(--bg-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: none; /* GSAP이 제어 */
  will-change: transform, opacity;
  opacity: 0;
  visibility: hidden;
}

/* 호버 효과는 GSAP 애니메이션과 충돌하지 않도록 주의 */
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 10;
}

.solution-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.solution-card:hover .solution-image img {
  transform: scale(1.05);
}

.solution-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.solution-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex: 1;
}

.solution-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.solution-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.solution-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.solution-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.solution-link {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.solution-link:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

/* 종합 솔루션 카드 - 정중앙에 배치, 다른 카드와 동일한 크기 */
.integrated-solution-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 90%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  color: white;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.4),
    0 0 40px rgba(79, 70, 229, 0.3);
  z-index: 5;
  pointer-events: auto;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
}

.integrated-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.integrated-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.integrated-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.integrated-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.integrated-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.integrated-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.integrated-feature-item .feature-icon {
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

/* Page Content */
.page-content {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

/* CEO Message Page */
.ceo-message {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0;
}

.ceo-message-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.ceo-message-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.ceo-message-bg-image[src=""],
.ceo-message-bg-image:not([src]) {
  display: none;
}

.ceo-message-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.ceo-message-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.ceo-message-left {
  display: flex;
  flex-direction: column;
}

.ceo-message-right {
  display: flex;
  flex-direction: column;
}

/* 공통 제목 스타일 - 모든 split-layout 페이지에서 사용 */
.split-layout-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* 호환성 유지 (기존 페이지에서 사용 중인 경우) - split-layout-title과 동일한 스타일 */
.ceo-message-title,
.history-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* history-title은 추가로 margin-bottom 필요 (특수 케이스) */
.history-title {
  margin-bottom: 2rem;
  line-height: 1.3;
}

.ceo-message-text {
  font-size: 1.125rem;
  line-height: 2;
  color: #ffffff;
  margin-bottom: 3rem;
}

.ceo-message-text p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.ceo-message-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 3rem;
  text-align: right;
}

.ceo-signature-company {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.ceo-signature-row {
  display: flex;
  align-items: center;
}

.ceo-signature-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  font-family: "Brush Script MT", "Lucida Handwriting", cursive;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ceo-signature-image {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.page-title {
  font-size: 3.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   Split Layout - 공통 레이아웃 컴포넌트
   좌측 title, 우측 content 구조
   ============================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  min-height: 600px;
}

/* Split Layout 변형 옵션 */
.split-layout.reverse {
  grid-template-columns: 2fr 1fr;
}

.split-layout.equal {
  grid-template-columns: 1fr 1fr;
}

.split-layout.no-min-height {
  min-height: auto;
}

.split-layout-left {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
}

.split-layout-right {
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

/* Split Layout 내부 요소 스타일링 유틸리티 */
.split-layout-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.split-layout-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* History Page Styles */
.history-page {
  background-color: var(--bg-white);
}

.history-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* history-title은 split-layout-title과 동일하지만 추가 margin 필요 */
.history-title {
  margin-bottom: 2rem;
  line-height: 1.3;
}

.history-year {
  font-size: 6rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 3rem;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
}



.since-text {
  font-size: 0.875rem;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.15);
  opacity: 0.6;
}

.since-year {
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.15);
  opacity: 0.6;
  font-weight: 700;
}

/* Timeline Styles */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding-bottom: 2rem;
}

.timeline-year {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 100px;
  padding-top: 0.5rem;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.timeline-event {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  line-height: 1.8;
  padding: 0.5rem 0;
}

.event-month {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 50px;
}

.event-description {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
  padding-right: 1rem;
}

.content-section {
  margin-bottom: 3rem;
}

.content-heading {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.content-list {
  list-style: disc;
  padding-left: 2rem;
  color: var(--text-light);
}

.content-list li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--bg-gray);
  padding: 2.5rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Contact Form */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-description {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  display: block;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  display: block;
}

/* Footer */
.footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-text {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  list-style: none;
  color: #9ca3af;
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Fixed Buttons Container */
.fixed-buttons-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

/* Top Button */
.top-button {
  width: 65px;
  height: 65px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.top-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.top-button:active {
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN - Desktop First
   ============================================ */

/* 노트북 (1023px 이하) */
@media (max-width: 1023px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-brand {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.18em;
  }

  /* Nav Dropdown - Laptop */
  .nav-dropdown .container {
    grid-template-columns: 180px 1fr 250px;
    gap: 2rem;
  }

  .hero-title-main {
    font-size: 3rem;
    line-height: 1.3;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 3.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.375rem;
    line-height: 1.5;
  }

  .section-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .page-title {
    font-size: 3rem;
    line-height: 1.3;
  }

  /* Split Layout - Laptop */
  .split-layout {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }

  .split-layout-left {
    top: 80px;
  }

  .split-layout-title,
  .ceo-message-title,
  .history-title {
    font-size: 1.5rem;
  }

  .history-year {
    font-size: 6rem;
    margin-bottom: 2rem;
  }

  .history-timeline {
    gap: 2.5rem;
  }

  .timeline-item {
    gap: 2.5rem;
    padding-bottom: 1.5rem;
  }

  .timeline-year {
    font-size: 1.5rem;
    min-width: 90px;
  }

  .timeline-events {
    gap: 1.25rem;
  }

  .timeline-event {
    gap: 1.25rem;
  }

  .event-month {
    font-size: 1.0625rem;
    min-width: 45px;
  }

  .event-description {
    font-size: 1.0625rem;
  }

  /* CEO Message - Laptop */
  .ceo-message {
    padding: 5rem 0;
    min-height: calc(100vh - 64px);
  }

  .ceo-message-content {
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
  }

  .split-layout-title,
  .ceo-message-title,
  .history-title {
    font-size: 1.5rem;
  }

  .ceo-message-text {
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
  }

  .ceo-message-text p {
    margin-bottom: 1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Solutions - Laptop */
  .solutions {
    padding: 5rem 0;
  }

  .solutions-integrated {
    min-height: 700px;
  }

  .solution-card {
    width: 300px;
  }

  .solution-image {
    height: 240px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 모바일 (767px 이하) */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  /* Navigation - Mobile */
  .nav-content .nav-links {
    display: none;
  }

  .header-contact-button {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
  }

  /* Mobile Menu */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 64px);
    min-height: calc(100vh - 64px);
    background-color: white;
    padding: 0;
    gap: 0;
    border-top: 1px solid var(--border-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    will-change: transform;
  }

  .mobile-menu.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .mobile-nav-item:last-child {
    border-bottom: none;
  }

  .mobile-nav-toggle {
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-toggle:active {
    background-color: var(--bg-gray);
  }

  .mobile-nav-toggle.active {
    color: var(--primary-color);
    background-color: var(--bg-gray);
  }

  .mobile-nav-toggle::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--text-light);
    line-height: 1;
  }

  .mobile-nav-toggle.active::after {
    transform: rotate(45deg);
    color: var(--primary-color);
  }

  .mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-gray);
    padding-left: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .mobile-dropdown.active {
    max-height: 500px;
    padding-left: 1.25rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .mobile-dropdown-link {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease,
      padding-left 0.3s ease;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    border-left: 3px solid transparent;
  }

  .mobile-dropdown-link:active {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    padding-left: 1.75rem;
    border-left-color: var(--primary-color);
  }

  .mobile-contact-button {
    display: block;
    margin: 1rem;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  }

  .mobile-contact-button:hover,
  .mobile-contact-button:active {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  }

  /* Hero - Mobile */
  .hero {
    min-height: calc(100vh - 64px);
    padding: 2rem 0;
    padding-top: calc(64px + 2rem);
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-brand {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
  }

  .hero-title-main {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.3;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  /* Section Padding - Mobile */
  .features {
    padding: 3rem 0;
  }

  .page-content {
    padding: 3rem 0;
  }

  /* CEO Message - Mobile */
  .ceo-message {
    padding: 4rem 0;
    min-height: calc(100vh - 64px);
  }

  .ceo-message-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .split-layout-title,
  .ceo-message-title,
  .history-title {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .ceo-message-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }

  .ceo-message-text p {
    margin-bottom: 1rem;
  }

  .ceo-message-signature {
    margin-top: 1.5rem;
  }

  .ceo-signature-company {
    font-size: 0.9375rem;
  }


  .ceo-signature-name {
    font-size: 1.25rem;
  }

  .ceo-signature-image {
    height: 60px;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .content-heading {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .content-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .service-icon {
    font-size: 3rem;
  }

  /* Typography - Mobile */
  .section-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .page-title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  /* Split Layout - Mobile */
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
  }

  .split-layout.reverse,
  .split-layout.equal {
    grid-template-columns: 1fr;
  }



  .split-layout-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .history-subtitle {
    font-size: 0.8125rem;
  }


  .history-year {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .history-since {
    position: static;
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.35;
  }

  .since-text {
    font-size: 0.8125rem;
    opacity: 0.5;
  }

  .since-year {
    font-size: 1.25rem;
    opacity: 0.5;
  }

  .split-layout-left {
    position: static;
  }

  .history-timeline {
    gap: 2rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }

  .timeline-year {
    font-size: 1.25rem;
    min-width: auto;
  }

  .timeline-events {
    gap: 1rem;
  }

  .timeline-event {
    gap: 1rem;
    padding: 0.25rem 0;
  }

  .event-month {
    font-size: 1rem;
    min-width: 35px;
  }

  .event-description {
    font-size: 1rem;
    padding-right: 0;
  }

  /* Grid - Mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Solutions - Mobile */
  .solutions {
    padding: 4rem 0;
  }

  .solutions-integrated {
    min-height: 600px;
  }

  .solution-card {
    width: 280px;
    max-width: 90%;
  }

  .solution-image {
    height: 200px;
  }

  .solution-content {
    padding: 2rem;
  }

  .solution-title {
    font-size: 1.5rem;
  }

  .solution-description {
    font-size: 0.9375rem;
  }

  .solution-links {
    flex-direction: column;
  }

  .solution-link {
    text-align: center;
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Cards - Mobile */
  .feature-card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .feature-title,
  .service-title {
    font-size: 1.5rem;
  }

  /* Nav Dropdown - Mobile */
  .nav-dropdown .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Logo - Mobile */
  .logo {
    font-size: 1.25rem;
  }

  /* Footer - Mobile */
  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-title {
    font-size: 1.25rem;
  }

  /* Contact Form - Mobile */
  .contact-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Fixed Buttons - Mobile */
  .fixed-buttons-container {
    bottom: 1.5rem;
    right: 1.5rem;
    gap: 0.75rem;
  }

  .top-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
