/* ============================================================
   index.css - 메인 페이지 전용 스타일 (화이트 기업형)
   ============================================================ */

/* ── 메인 히어로 슬라이더 ───────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 580;
  min-height: 300px;
  overflow: hidden;
  background: #001428;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }

/* 배경 */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 이미지 비율 유지, 잘림 없음 */
  object-position: center;
  z-index: 0;
  background: #001428;   /* 이미지 옆 여백 배경색 */
}
.hero-bg-gradient-1 { position:absolute;inset:0;background:linear-gradient(135deg,#001f4d 0%,#003d82 50%,#0072ce 100%);z-index:0; }
.hero-bg-gradient-2 { position:absolute;inset:0;background:linear-gradient(135deg,#00274d 0%,#004080 50%,#0063b8 100%);z-index:0; }
.hero-bg-gradient-3 { position:absolute;inset:0;background:linear-gradient(135deg,#002040 0%,#003366 50%,#005299 100%);z-index:0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,10,30,.1) 0%, rgba(0,10,30,.1) 100%);
  z-index: 1;
}

/* 콘텐츠 */
#hero {
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;text-align: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.hero-title {
  font-family: var(--font-en);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
  letter-spacing:-1px;
}
.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary {
  padding: 8px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--primary);
  transition: var(--tr);
}
.btn-hero-primary:hover { background: #fff; color: var(--primary); }
.btn-hero-outline {
  padding: 8px 28px;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: var(--tr);
}
.btn-hero-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* 슬라이더 컨트롤 */
.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: var(--tr);
  backdrop-filter: blur(4px);
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.3); }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: var(--tr);
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ── 통계 바 ────────────────────────────────────────────── */
.stat-bar {
  background: var(--primary);
  padding: 0;
}
.stat-bar-inner {
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  display: inline;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  text-align: center;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,.2);
  align-self: stretch;
  margin: 16px 0;
}
@media(max-width:600px) {
  .stat-bar-inner { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-divider { display: none; }
}

/* ── 솔루션 그리드 ──────────────────────────────────────── */
.bg-gray { background: var(--bg-gray); }

.sol-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width:900px) { .sol-grid-main { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px) { .sol-grid-main { grid-template-columns: 1fr; } }

.sol-main-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  transition: var(--tr);
  text-decoration: none;
  position: relative;
}
.sol-main-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sol-main-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  flex-shrink: 0;
}
.sol-main-card-body { flex: 1; min-width: 0; }
.sol-main-card-en { font-family: var(--font-mono); font-size: 10px; color: var(--text-light); letter-spacing: .5px; margin-bottom: 4px; }
.sol-main-card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.sol-main-card-desc { font-size: 12px; color: var(--text-sub); line-height: 1.5; }
.sol-main-card-arrow { color: var(--border); font-size: 13px; flex-shrink: 0; transition: color .2s, transform .2s; }
.sol-main-card:hover .sol-main-card-arrow { color: var(--primary); transform: translateX(3px); }

/* ── 회사 소개 ──────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media(max-width:900px) { .about-split { grid-template-columns: 1fr; gap: 40px; } }

.about-img-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 20px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.about-img-box::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -80px; right: -80px;
}
.about-img-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.about-img-inner i { font-size: 80px; color: rgba(255,255,255,.3); display: block; margin-bottom: 24px; }
.about-img-badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 14px 24px;
  display: inline-block;
}
.about-badge-num { font-family: var(--font-en); font-size: 36px; font-weight: 800; color: #fff; display: block; }
.about-badge-txt { font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: 1px; }

.about-title {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 18px;
}
.about-desc { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 24px; }
.about-points { display: flex; flex-direction: column; gap: 10px; }
.about-point { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-sub); }
.about-point i { color: var(--primary); font-size: 15px; flex-shrink: 0; }

/* ── 제품 하이라이트 (다크 배경) ────────────────────────── */
.prod-highlight-section { background: var(--bg-dark); }

.prod-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media(max-width:900px) { .prod-highlight-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px) { .prod-highlight-grid { grid-template-columns: 1fr; } }

.prod-hl-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-decoration: none;
  display: block;
  transition: var(--tr);
}
.prod-hl-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); transform: translateY(-4px); }
.prod-hl-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0,114,206,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #60aeff;
  margin-bottom: 18px;
}
.prod-hl-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.prod-hl-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 16px; }
.prod-hl-link { font-size: 12px; color: #60aeff; display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.prod-hl-card:hover .prod-hl-link { gap: 10px; }

/* ── 하단 2컬럼 ─────────────────────────────────────────── */
.bottom-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media(max-width:900px) { .bottom-two-col { grid-template-columns: 1fr; gap: 40px; } }

/* 실적 카테고리 목록 */
.perf-category-list { display: flex; flex-direction: column; gap: 12px; }
.perf-cat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: var(--tr);
  cursor: pointer;
}
.perf-cat-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.perf-cat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.perf-cat-info { flex: 1; }
.perf-cat-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.perf-cat-desc { font-size: 12px; color: var(--text-sub); }

/* 공지사항 목록 */
.notice-list { border-top: 2px solid var(--primary); }
.notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  transition: var(--tr);
  text-decoration: none;
}
.notice-item:hover { padding-left: 8px; }
.notice-item-title { font-size: 14px; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-item:hover .notice-item-title { color: var(--primary); }
.notice-item-date { font-size: 12px; color: var(--text-light); flex-shrink: 0; }

/* 연락처 박스 */
.contact-quick-box {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-quick-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── 반응형 ─────────────────────────────────────────────── */
@media(max-width:768px) {
.hero-slider {display:flex; max-height: 500px; min-height: 420px; }
.hero-slide{
display:flex;
align-items:center;
justify-content:center;
height:100%;
}
.hero-slider .container {display:flex;justify-content:center;align-items: center;width:100%;border:5px solid red;}
.hero-content { padding: 0 20px; }
.hero-btns{justify-content:center;align-items: center;gap:8px;}
.btn-hero-primary,
.btn-hero-outline{
display:inline-flex;
align-items:center;
justify-content:center;
height:34px;
line-height:34px;
padding:0 15px;
font-size:12.5px;
border-width:1px;
min-width:86px;
border-radius:6px;
}
.hero-prev, .hero-next {display:none;}

}

@media(max-width:700px) {
  .hero-slider {
    aspect-ratio: unset;       /* aspect-ratio 해제 */
    height: 480px;             /* 모바일 고정 높이 */
  }
  .hero-bg-img {
    object-fit: cover;         /* 이미지 꽉 채움 */
    object-position: center;
  }
}