/* styles.css */

:root {
  --blue-bg: #0d111c;
  --deep-bg: #0b0f19;
  --txt-light: #ffffff;
  --txt-sub: #9aa0ae;
}

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

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  overflow-x: hidden;
  background: var(--deep-bg);
}

.inner {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 72px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  padding: 0.1rem;
}

.lang-btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: black;
  text-decoration: none;
  opacity: 0.3;
  transition: background 0.2s, color 0.2s;
}
.lang-btn + .lang-btn {
  margin-left: 0.2rem;
}

/* .lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
} */

.lang-btn.active {
  /* background: #fff; */
  color: #333;
  opacity: 1;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* ─ GNB ─ */
.gnb {
  position: relative;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 48px 0 72px;
  /* padding: 20px 40px; */
  background-color: white;
}
.logo {
  margin: 0;
}
.logo img {
  height: 34px;
}
.nav-desktop {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.nav-desktop ul {
  display: flex;
  gap: 80px;
  list-style: none;
  justify-content: flex-end;
}
.nav-desktop a {
  color: black;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.cta {
  display: inline-block;
  padding: 10px 28px;
  font-size: 18px;
  line-height: 1;
  color: black;
  background: transparent;
  border: 2px solid black;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.cta:hover {
  background: #fff;
  color: #0d111c;
}

/* “문의하기” 제목을 클릭표시 */
.ask-title {
  color: #6b7dff;
  font-size: 36px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
}

.ask-title::after {
  content: "\203A"; /* › */
  font-size: 1.1em;
}

.mobile-only {
  display: none;
}

.mobile-only .mobile-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-only .mobile-actions .cta {
  /* 버튼 너비 꽉 채우기 등 필요시 조정 */
  width: 100%;
  border: 2px solid #fff;
  color: white;
}

.mobile-only .mobile-actions .cta:hover {
  /* 버튼 너비 꽉 채우기 등 필요시 조정 */
  color: black;
}

.mobile-only .mobile-switcher {
  display: flex;
  justify-content: center;
  padding: 0.2rem;
  color: white;
}
.mobile-only .mobile-switcher .lang-btn {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0;
  font-weight: 600;
}
.mobile-only .mobile-switcher .lang-btn + .lang-btn {
  margin-left: 0.2rem;
}
.mobile-only .mobile-switcher .lang-btn.active {
  color: #333;
}

/* 햄버거 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 26px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: black;
  border-radius: 2px;
  transition: 0.5s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 모바일 슬라이드 메뉴 */
#gnb-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 60%;
  background: rgba(13, 17, 28, 0.96);
  padding: 120px 48px;
  display: flex;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 99;
}
#gnb-menu.open {
  transform: translateX(0);
}
#gnb-menu ul {
  flex-direction: column;
  gap: 40px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}
#gnb-menu a {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

#gnb-menu .lang-btn {
  color: white;
}

#gnb-menu a:hover {
  text-decoration: underline;
}

/* 오버레이 */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  z-index: 98;
}
#menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Small screens (tablets, phones) */
/* @media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 0;
  }

  nav ul.showing {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }
} */

#patents {
  padding: 50px 20px;
  text-align: center;
  background-color: #fff;
}

.patent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.modal-content.IR {
  margin: auto;
  display: black;
  width: 80%;
  max-width: 700px;
}

@media (min-width: 1024px) {
  .patent-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.patent-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.patent-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.patent-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer; /* 클릭 가능한 이미지로 스타일링 */
}

.patent-item h3 {
  margin-top: 0;
}

/* 모달 스타일링 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.contact-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  color: #343a40;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.contact-section h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #1e1e2f;
}
.contact-section p {
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}
.contact-section a {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.contact-section a:hover {
  background-color: #0056b3;
}
/* =============== SECTION 공통 =============== */
.dark {
  background: var(--blue-bg);
}
.title {
  font-size: 36px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 36px;
}
.desc {
  font-size: 19px;
  color: var(--txt-sub);
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* =============== INQUIRY =============== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.open {
  display: flex;
}
.modal-content {
  position: relative;
  background: #fff;
  color: #000;
  padding: 32px;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}
.modal-content h3 {
  margin-bottom: 8px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
#inquiry-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #333;
}
#inquiry-form input,
#inquiry-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #6b7dff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}
.submit-btn:hover {
  opacity: 0.9;
}

#inquiry .inner {
  padding-left: 72px;
  padding-right: 72px;
  padding-top: 50px;
}
.ask-title {
  color: #6b7dff;
  font-size: 36px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
}
.ask-title::after {
  content: "\203A"; /* › */
  font-size: 1.1em;
}

/* ─── Footer 레이아웃 ─── */
.footer-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 28px;
  justify-content: space-between;
}
/* .footer .inner {
        max-width: 1700px;
        margin: 0 auto;
        padding: 0 72px;
      } */
.corp-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 28px;
  font-size: 14px;
  color: var(--txt-sub);
  max-width: 65%; /* 로고 공간 확보 */
}
.corp-info a {
  color: var(--txt-sub);
  text-decoration: none;
  cursor: default;
}
.footer-logo img {
  height: 36px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #4b4f5a;
  margin: 0 72px 16px; /* 좌우 72px 기준선과 동일 */
}
footer .copyright {
  font-size: 13px;
  color: #8b90a0;
  max-width: 1700px;
  margin: auto;
  padding: 6px 72px;
}

/* Fade-up 애니메이션 */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* media query */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

@media (max-width: 980px) {
  .inner,
  footer .inner {
    padding: 0 24px;
  }
  #inquiry .inner {
    padding: 24px 24px 0 24px;
  }

  .gnb {
    padding: 20px 20px;
    gap: 0;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  .logo img {
    height: 32px;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    text-align: left;
  }
  .hero-copy h2 {
    font-size: 32px;
  }
  .hero-copy p {
    font-size: 16px;
  }
  #video .videobox {
    margin-bottom: -80px;
  }

  .video-frame {
    max-width: 100%;
    flex: 1 1 100%;
  }
  #video .videobox {
    gap: 24px;
  }

  #partners {
    padding-top: 120px;
  }

  .title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .desc {
    font-size: 17px;
    margin-bottom: 30px;
  }
  .ask-title {
    font-size: 30px;
  }
  .footer-logo {
    display: none;
  }
  .footer-divider {
    display: none;
  }
  footer .copyright {
    padding-left: 24px; /* 왼쪽 기준선(24px) */
    text-align: left;
    padding-top: 10px;
  }

  .corp-info {
    max-width: fit-content;
  }
}

@media (min-width: 769px) and (max-width: 1000px) {
  /* 1)  헤더 좌우 여백 축소 */
  .gnb {
    /* padding: 24px 32px 0; */
    gap: 20px;
  }

  /* 2) 메뉴 항목 간격 축소 */
  .nav-desktop ul {
    gap: 48px;
  } /* 80→48 */

  /* 3) CTA 버튼 폭·글자 크기 살짝 줄이기 */
  .cta {
    padding: 8px 20px;
    font-size: 14px;
  }

  /* 4) 로고 약간 작게 */
  .logo img {
    height: 30px;
  } /* 34→30 */
}
