/* ===== 기본 스타일 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.6;
  color: #1a1a2e;
  overflow-x: hidden;
}

/* ===== 네비게이션 바 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: clamp(72px, 10vw, 88px);
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  z-index: 1000;
}

.navbar.navbar-scrolled {
  background: rgba(30, 58, 95, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.nav-links a:hover {
  color: rgba(255,255,255,0.8);
}

.btn-contact {
  background: #fff;
  color: #1e3a5f !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-contact:hover {
  background: rgba(255,255,255,0.9);
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: #fff;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
}

.lang-dropdown {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  cursor: pointer;
  outline: none;
  appearance: auto;
}

.lang-dropdown:hover,
.lang-dropdown:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-dropdown option {
  background: #1e3a5f;
  color: #fff;
}

/* ===== 햄버거 메뉴 (모바일) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1e3a5f;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  pointer-events: auto;
}

/* ===== 히어로 섹션 ===== */
.hero-wrapper {
  width: 100%;
  aspect-ratio: 1444 / 734;
  min-height: 400px;
  max-height: 734px;
}

.hero {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero h1 .highlight {
  color: rgba(255, 255, 255, 0.95);
}

.hero-desc {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  white-space: nowrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e3a5f;
  color: white;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  transition: background 0.2s;
}

.btn-cta:hover {
  background: #2d5a87;
}

/* ===== 인트로 섹션 ===== */
.intro-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
  background: #fff;
  overflow: hidden;
}

.intro-shape {
  position: absolute;
  width: 280px;
  height: 200px;
  background: linear-gradient(135deg, #e8eef5 0%, #d4dce8 100%);
  opacity: 0.6;
}

.intro-shape-tl {
  top: -60px;
  left: -80px;
  transform: skew(-15deg);
}

.intro-shape-br {
  bottom: -60px;
  right: -80px;
  transform: skew(-15deg);
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.intro-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: #4a4a5a;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-intro {
  display: inline-block;
  background: #1e3a5f;
  color: #fff;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-intro:hover {
  background: #2d5a87;
}

/* ===== 사업분야 섹션 ===== */
.business-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
  background: #f8fafc;
  overflow: hidden;
}

.business-section::after {
  content: 'KC Network';
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: rgba(0,0,0,0.03);
  pointer-events: none;
}

.business-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.business-subtitle {
  text-align: center;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: #4a4a5a;
  margin-bottom: 3rem;
}

.business-cards {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.business-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: box-shadow 0.2s;
}

.business-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.business-icon {
  width: 96px;
  height: 96px;
}

.business-icon svg,
.business-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.business-card span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a5f;
  text-align: center;
}

/* ===== 고민 섹션 ===== */
.concern-section {
  position: relative;
  min-height: clamp(450px, 80vh, 500px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.concern-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,42,58,0.85) 0%, rgba(45,74,106,0.8) 50%, rgba(30,58,95,0.85) 100%);
  z-index: 1;
}

.concern-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.concern-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.concern-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  flex-shrink: 0;
}

.concern-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  max-width: 480px;
}

.concern-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.concern-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e3a5f;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.concern-block span {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: #1a1a2e;
  line-height: 1.5;
}

/* ===== 오직 KC Network에서 섹션 ===== */
.feature-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
  background: #fff;
}

.feature-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 4rem;
}

.feature-blocks {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.feature-block-reverse {
  flex-direction: row-reverse;
}

.feature-graphic {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}

.feature-graphic svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 0.75rem;
}

.feature-text p {
  font-size: 1rem;
  color: #4a4a5a;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.feature-link {
  font-size: 0.95rem;
  color: #1e3a5f;
  font-weight: 600;
  text-decoration: none;
}

.feature-link:hover {
  text-decoration: underline;
}

/* ===== CTA 섹션 ===== */
.cta-section {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: #1e3a5f;
  overflow: hidden;
}

.cta-shape {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0.5;
}

.cta-shape-left {
  bottom: -50px;
  left: -50px;
  transform: rotate(-15deg);
}

.cta-shape-right {
  bottom: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  transform: rotate(25deg);
  border: none;
  background: linear-gradient(135deg, transparent 50%, rgba(123,163,201,0.1) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}

.cta-btn {
  flex-shrink: 0;
  padding: 1rem 2rem;
  background: #fff;
  color: #1e3a5f;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
}

/* ===== 푸터 ===== */
.footer {
  background: #f5f5f5;
  color: #555;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  height: clamp(56px, 8vw, 80px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-info {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: #666;
  line-height: 1.6;
  margin: 0;
  text-align: right;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 4vw, 2rem);
  border-top: 1px solid #e0e0e0;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: #999;
}

/* ===== 반응형 - 태블릿 (1200px 이하) ===== */
@media (max-width: 1200px) {
  .navbar {
    min-height: 80px;
    padding: 0 2rem;
  }
  
  .hero {
    padding: 5rem 2rem 2rem;
  }
  
  .hero-content {
    max-width: 500px;
  }
}

/* ===== 반응형 - 모바일 (768px 이하) ===== */
@media (max-width: 768px) {
  .navbar {
    min-height: 72px;
    padding: 0 1.25rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-overlay.active {
    display: block;
  }
  
  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    font-size: clamp(0.95rem, 2vw, 1rem);
    color: #1e3a5f;
  }
  
  .nav-links .btn-contact {
    margin-top: 0.5rem;
    text-align: center;
  }
  
  .lang-selector {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    color: #1e3a5f;
  }
  
  .nav-links .lang-dropdown {
    background: #fff;
    color: #1e3a5f;
    border-color: rgba(30, 58, 95, 0.3);
  }
  
  .nav-links .lang-dropdown option {
    background: #fff;
    color: #1e3a5f;
  }
  
  .hero-wrapper {
    min-height: 350px;
    max-height: none;
  }
  
  .hero {
    min-height: 350px;
    padding: 5rem 1.5rem 2rem;
  }
  
  .hero::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 50%);
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  
  .btn-cta {
    padding: 0.75rem 1.5rem;
  }
  
  .intro-section {
    padding: 4rem 1.5rem;
  }
  
  .intro-shape {
    width: 180px;
    height: 120px;
  }
  
  .business-section {
    padding: 4rem 1.5rem;
  }
  
  .business-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .business-card {
    max-width: 100%;
  }
  
  .concern-content {
    flex-direction: column;
    text-align: center;
  }
  
  .concern-title {
    text-align: center;
  }
  
  .feature-block {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-block-reverse {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .feature-graphic {
    width: 120px;
    height: 120px;
  }
  
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===== 데스크톱 오버레이 숨김 ===== */
@media (min-width: 769px) {
  .nav-overlay {
    display: none !important;
  }
}

/* ===== 반응형 - 소형 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
  .logo-img {
    height: 56px;
  }
  
  .hero-wrapper {
    min-height: 320px;
  }
  
  .hero {
    min-height: 320px;
    padding: 4.5rem 1.25rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.25rem;
  }
  
  .hero-desc {
    font-size: 0.85rem;
    white-space: normal;
  }
  
  .concern-section {
    min-height: 400px;
  }
  
  .concern-content {
    padding: 2rem 1rem;
  }
  
  .footer-content {
    padding: 2rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .footer-info {
    text-align: left;
  }
  
  .footer-bottom {
    padding: 1rem;
  }
}

/* ===== 페이지 공통 반응형 (about, contact, product) ===== */

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-map iframe {
    height: 300px !important;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  
  .product-card-name {
    font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  
  .contact-map iframe {
    height: 250px !important;
  }
}
