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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Roboto', sans-serif;
  color: #111;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #7c2a8a;
}

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

ul {
  list-style: none;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 22px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 48px;
  flex: 1;
}

.nav-main > li {
  position: relative;
}

.nav-main > li > a {
  padding: 8px 20px;
  display: block;
  font-weight: 500;
  font-size: 15px;
  color: #333;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-main > li > a:hover {
  color: #7c2a8a;
  background: rgba(124, 42, 138, 0.08);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 620px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-main > li:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.dropdown a:hover {
  background: #f7f3fa;
}

.product-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3e8f7 0%, #e0d0e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info strong {
  display: block;
  font-size: 14px;
  color: #000;
  margin-bottom: 2px;
}

.product-info span {
  font-size: 12px;
  color: #777;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.lang-switch a {
  color: #999;
  padding: 4px 8px;
}

.lang-switch .active {
  color: #111;
  font-weight: 600;
  border-right: 1px solid #ddd;
  padding-right: 12px;
  margin-right: 2px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #1a1a1a;
  color: #fff;
  padding: 80px 30px 30px;
  transition: right 0.4s ease;
  z-index: 1001;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: #fff;
  display: block;
  padding: 14px 0;
  font-size: 17px;
  border-bottom: 1px solid #333;
}

.mobile-menu .sub {
  padding-left: 20px;
  font-size: 15px;
  color: #bbb;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

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

/* ========== SECTIONS ========== */
.section {
  padding: 100px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-lg {
  padding: 140px 24px;
}

.hero {
  padding-top: 140px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: #7c2a8a;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

h1, .h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: #111;
  margin-bottom: 20px;
}

h2, .h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  margin-bottom: 16px;
}

h3, .h3 {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

p, .p {
  font-size: 16px;
  color: #555;
  word-break: keep-all;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #7c2a8a 0%, #330066 100%);
  color: #fff !important;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 28px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 42, 138, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 42, 138, 0.4);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid #fff;
  box-shadow: none;
}

.btn-outline:hover {
  background: #fff;
  color: #111 !important;
}

/* Hero media */
.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Real image illustrations */
.media-box {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f6f6f8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-box.contain img {
  object-fit: contain;
  padding: 30px;
}

/* ========== PRODUCTS ========== */
.products-section {
  background: #f6f3f8;
  padding: 140px 24px;
}

.products-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(124, 42, 138, 0.15);
  border-color: rgba(124, 42, 138, 0.1);
}

.product-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ede0f2 0%, #dcc8e6 100%);
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.product-card small {
  font-size: 13px;
  color: #777;
  min-height: 34px;
  display: block;
}

/* ========== BANNER SECTIONS (Construction / Infrastructure / Tunnel) ========== */
.banner-section {
  padding: 100px 24px;
}

.banner {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 460px;
  color: #111;
  background-color: #f3f3f3;
  background-size: contain;
  background-repeat: no-repeat;
}

.banner-1 {
  background-image: url('../img/bg-ct-01.png');
  background-position: right bottom;
}

.banner-2 {
  background-image: url('../img/bg-ct-02.png');
  background-position: left bottom;
}

.banner-3 {
  background-image: url('../img/bg-ct-03.png');
  background-position: right bottom;
}

.banner h2 {
  max-width: 500px;
}

.order-reverse .banner > div:first-child {
  order: 2;
}

/* ========== CTA ========== */
.cta-section {
  background: #1a1a1a;
  color: #fff;
  padding: 100px 24px;
}

.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section h3 {
  color: #fff;
  font-size: 28px;
}

.cta-section p {
  color: #bbb;
}

/* ========== FOOTER ========== */
.footer {
  background: #000;
  color: #ccc;
  padding: 60px 24px 30px;
  font-size: 13px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-brand strong {
  color: #fff;
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
}

.footer-brand div {
  color: #888;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #fff;
}

.footer-links a:hover {
  color: #aaa;
}

.copyright {
  max-width: 1400px;
  margin: 50px auto 0;
  color: #666;
  border-top: 1px solid #222;
  padding-top: 24px;
}

/* ========== ABOUT PAGE ========== */
.about-visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #f6f6f8;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 4px solid #f3f3f3;
}

.timeline-item strong {
  display: block;
  font-size: 18px;
  color: #7c2a8a;
  margin-bottom: 12px;
}

.timeline-item span {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.history-image {
  aspect-ratio: 21 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin: 40px 0;
  background: #f3f3f3;
}

.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== TMS / GEO3D PAGES ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 4px solid #f3f3f3;
}

.feature-item strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 14px;
  color: #666;
}

/* ========== PRODUCT PAGE ========== */
.product-hero {
  padding: 140px 24px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.spec-table th, .spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.spec-table th {
  background: #f6f3f8;
  font-weight: 600;
  width: 35%;
  color: #333;
}

.product-big-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f3e8f7 0%, #dcc8e6 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.product-big-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .section, .section-lg, .products-section, .banner-section, .cta-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .banner {
    padding: 60px 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline, .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-main {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .lang-switch {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .section, .section-lg {
    padding: 70px 20px;
  }

  .products-section, .banner-section, .cta-section {
    padding: 70px 20px;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
  }

  .grid-2, .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .banner {
    grid-template-columns: 1fr;
    padding: 50px 30px;
    min-height: auto;
    text-align: center;
  }

  .order-reverse .banner > div:first-child {
    order: unset;
  }

  .banner-visual svg {
    width: 50%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    align-items: flex-start;
  }

  h1, .h1 {
    font-size: 30px;
  }

  h2, .h2 {
    font-size: 24px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .timeline, .feature-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 17px;
  }

  h1, .h1 {
    font-size: 26px;
  }

  h2, .h2 {
    font-size: 22px;
  }
}
/* Infrastructure banner text position fix */
.banner-2 {
  position: relative;
  overflow: hidden;
}

.banner-2 > div {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38%;
  max-width: 560px;
  padding: 0;
}

.banner-2::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background: #f5f5f5;
  z-index: 2;
  pointer-events: none;
}

.banner-2 .eyebrow,
.banner-2 h2,
.banner-2 p {
  position: relative;
  z-index: 4;
}
@media (max-width: 768px) {
  .banner-2 > div {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 36px 24px;
  }

  .banner-2::after {
    width: 100%;
    background: rgba(245, 245, 245, 0.88);
  }
}