/* @import "./development.css"; */
/* @import "./product.css"; */
/* @import "./support.css"; */
@import "./layout.css";
/* @import "./about-us.css"; */
:root {
  --header-height: 5rem;
}

@media (max-width: 768px) {
  :root {
  }
}

/* .icon{
    height: 30px;
    width: 30px;
    margin-right: .5rem;
} */

.tabs {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.tab {
  width: 8rem;
  word-break: break-word;
  max-width: 25%;
  padding: 10px 5px;
  margin: 5px;
  background-color: #64b5f6;
  color: white;
  border: none;
  cursor: pointer;
}

.tab.active {
  background-color: #1976d2;
}

.modal {
  display: none;
  z-index: 1000;

  position: fixed;
  justify-content: center;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.4);
}

.modal_body {
  position: absolute;
  top: 50%;
  left: calc(50% - 200px);

  width: 400px;
  /* height:600px;  */

  padding: 40px;

  text-align: center;

  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);

  transform: translateY(-50%);
}

.modal_btn {
  display: none;
  padding: 0.5rem !important;
  margin-bottom: 0 !important;
}

#footer_html {
  .icon {
    height: 30px;
    width: 30px;
    margin-right: 0.5rem;
    filter: invert(45%) sepia(63%) saturate(1946%) hue-rotate(343deg)
      brightness(95%) contrast(101%);
  }
  .icon-naver {
    height: 30px;
    width: 30px;
    margin-right: 0.5rem;
  }
  .icon-youtube {
    height: 32px;
    width: 32px;
    margin-right: 0.5rem;
    filter: invert(45%) sepia(63%) saturate(1946%) hue-rotate(343deg)
      brightness(95%) contrast(101%);
  }
  .icon-aircess {
    height: 32px;
    width: 32px;
    margin-right: 0.5rem;
  }

  .icon-in-circle {
    height: 18px;
    width: 18px;
  }
  .social-icons a {
    display: inline-block;

    width: 26px;
    line-height: 26px; /* 아이콘 세로 중앙 정렬 */
    height: 26px;

    text-align: center;
    border-radius: 50%;
    background-color: transparent !important;
    color: #ccc;
    margin-right: 10px;
    transition: background-color 0.3s ease;
  }

  .social-icons .icon {
    margin: 4px;
  }
}
hr {
  border: 0;
  border-bottom: 1px solid #e0e0e0;
}

.product-page {
  .icon {
    height: 20px;
    width: 20px;
    color: #555;
    filter: invert(36%) sepia(0%) saturate(1835%) hue-rotate(157deg)
      brightness(90%) contrast(95%);

    /* margin-right: .5rem; */
  }
}

.icon-facebook {
  filter: invert(24%) sepia(91%) saturate(2732%) hue-rotate(214deg)
    brightness(101%) contrast(103%) !important;
}
.icon-twitter {
  filter: invert(54%) sepia(35%) saturate(5296%) hue-rotate(177deg)
    brightness(99%) contrast(86%) !important;
}
.icon-google {
  filter: invert(27%) sepia(54%) saturate(1642%) hue-rotate(333deg)
    brightness(122%) contrast(85%) !important;
}
.ma-0 {
  margin: 0 !important;
}

.icon-sm {
  height: 16px !important;
  width: 16px !important;
}
.icon-white {
  /* margin: 4px; */
  filter: brightness(0) invert(1) !important;
}

a.twitter {
  background-color: #1d9beb !important;
}
a.facebook {
  background-color: #0866ff !important;
}
.social-icons a:hover {
  /* background-color: #f35d26; */
  color: #fff;
}

html,
body {
  width: 100%;
  min-width: 300px;
  height: 100%;
}
#Wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* height:100%;width:100%;display: flex;flex-direction: column; */
}
#header_html {
  flex: 0 0 auto;
}
#footer_html {
  flex: 0 0 auto;
}

.main-content {
  flex: 1 1 auto;

  /* padding-top:calc(var(--header-height)); */
  padding: 2rem;
  /* height: auto; */
  /* height: calc(100% - var(--header-height)); */
}

.show-flex {
  display: flex !important;
}
.show {
  display: block !important;
}
.hidden {
  display: none !important;
}

.hero {
  background-image: url("../img/intro/intro-1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  text-align: center;
  color: white;
  padding: 100px 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 기본 설정 */
.mobile-content {
  display: none; /* 기본적으로 모바일 콘텐츠 숨김 */
}

.desktop-content {
  display: block; /* 기본적으로 데스크톱 콘텐츠 표시 */
}

/* 공통 애니메이션 keyframes */
@keyframes charAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUpPartial {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flashBright {
  0% {
    filter: brightness(1) drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
  }
  50% {
    filter: brightness(2.5) drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.8));
  }
  100% {
    filter: brightness(1) drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
  }
}

/* 데스크톱 애니메이션 (600px 초과에서) */
@media screen and (min-width: 601px) {
  .hero {
    overflow: hidden; /* 이미지 잘림 효과를 위해 */
  }

  .desktop-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 메뉴(z-index: 6)보다 낮게 설정 */
    overflow: hidden;
  }

  /* 좌상단 제이엠피시스템 - 한글자씩 (데스크톱) */
  .company-name-desktop {
    position: absolute;
    top: 24px; /* 추가로 10px 위로 이동 (34px - 10px) */
    left: 60px;
    font-size: 3rem; /* 데스크톱용 큰 폰트 */
    font-weight: 900;
    color: #f8f9fa; /* 크림색으로 변경 - 부드럽고 우아한 느낌 */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9), 4px 4px 8px rgba(0, 0, 0, 0.7),
      0px 0px 12px rgba(0, 0, 0, 0.5), 1px 1px 0px rgba(0, 0, 0, 0.8),
      -1px -1px 0px rgba(0, 0, 0, 0.8); /* 외곽선 대신 더 강한 그림자 */
  }

  .company-name-desktop .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px);
    animation: charAppear 0.6s ease-out forwards;
  }

  .company-name-desktop .char[data-delay="0"] {
    animation-delay: 0s;
  }
  .company-name-desktop .char[data-delay="0.2"] {
    animation-delay: 0.2s;
  }
  .company-name-desktop .char[data-delay="0.4"] {
    animation-delay: 0.4s;
  }
  .company-name-desktop .char[data-delay="0.6"] {
    animation-delay: 0.6s;
  }
  .company-name-desktop .char[data-delay="0.8"] {
    animation-delay: 0.8s;
  }
  .company-name-desktop .char[data-delay="1.0"] {
    animation-delay: 1s;
  }
  .company-name-desktop .char[data-delay="1.2"] {
    animation-delay: 1.2s;
  }

  /* 회사 설명 - 페이드인 (데스크톱) */
  .company-desc-desktop {
    position: absolute;
    top: 94px; /* 추가로 10px 위로 이동 (104px - 10px) */
    left: 60px;
    font-size: 2rem; /* 데스크톱용 큰 폰트 */
    font-weight: 600;
    color: #f8f9fa; /* 크림색으로 변경 - 부드럽고 우아한 느낌 */
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9), 2px 2px 6px rgba(0, 0, 0, 0.7),
      0px 0px 10px rgba(0, 0, 0, 0.5), -1px -1px 0px rgba(0, 0, 0, 0.8); /* 외곽선 대신 더 강한 그림자 */
    opacity: 0;
    animation: fadeIn 1s ease-out 1.4s forwards;
  }

  /* MAP9000 이미지 - 아래에서 위로 (데스크톱) */
  .product-image-desktop {
    position: absolute;
    bottom: -120px; /* 데스크톱용 더 큰 잘림 */
    right: 40px;
    opacity: 0;
    transform: translateY(200px); /* 더 아래에서 시작 */
    animation: slideUpPartial 1.5s ease-out 2.4s forwards;
  }

  .product-image-desktop img {
    width: 300px; /* 데스크톱용 큰 크기 */
    height: auto;
    filter: drop-shadow(6px 6px 12px rgba(0, 0, 0, 0.4));
    animation: flashBright 0.3s ease-out 4.2s forwards; /* 등장 완료 0.3초 후 플래시 */
  }
}

/* 모바일 애니메이션 (600px 이하에서만) */
@media screen and (max-width: 600px) {
  .hero {
    overflow: hidden; /* 이미지 잘림 효과를 위해 */
  }

  .desktop-content {
    display: none; /* 모바일에서는 데스크톱 콘텐츠 숨김 */
  }

  .mobile-content {
    display: block; /* 모바일에서만 표시 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 메뉴(z-index: 6)보다 낮게 설정 */
    overflow: hidden; /* 이미지 잘림 효과를 위해 */
  }

  .hero-content {
    display: none; /* 모바일에서는 기존 content 숨김 */
  }

  /* 좌상단 제이엠피시스템 - 한글자씩 */
  .company-name {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.5rem; /* 1.2배 확대 */
    font-weight: 900;
    color: #f8f9fa; /* 크림색으로 변경 - 부드럽고 우아한 느낌 */
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9), 2px 2px 6px rgba(0, 0, 0, 0.7),
      0px 0px 8px rgba(0, 0, 0, 0.5), -1px -1px 0px rgba(0, 0, 0, 0.8); /* 외곽선 대신 더 강한 그림자 */
  }

  .company-name .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px);
    animation: charAppear 0.6s ease-out forwards;
  }

  .company-name .char[data-delay="0"] {
    animation-delay: 0s;
  }
  .company-name .char[data-delay="0.2"] {
    animation-delay: 0.2s;
  }
  .company-name .char[data-delay="0.4"] {
    animation-delay: 0.4s;
  }
  .company-name .char[data-delay="0.6"] {
    animation-delay: 0.6s;
  }
  .company-name .char[data-delay="0.8"] {
    animation-delay: 0.8s;
  }
  .company-name .char[data-delay="1.0"] {
    animation-delay: 1s;
  }
  .company-name .char[data-delay="1.2"] {
    animation-delay: 1.2s;
  }

  /* 회사 설명 - 페이드인 */
  .company-desc {
    position: absolute;
    top: 44px; /* 위로 10px 더 이동 */
    left: 28px; /* 오른쪽으로 8px 이동 */
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8f9fa; /* 크림색으로 변경 - 부드럽고 우아한 느낌 */
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.7),
      0px 0px 8px rgba(0, 0, 0, 0.5), -1px -1px 0px rgba(0, 0, 0, 0.8); /* 외곽선 대신 더 강한 그림자 */
    opacity: 0;
    animation: fadeIn 1s ease-out 1.4s forwards; /* 1.4초 후 시작 */
  }

  /* MAP9000 이미지 - 아래에서 위로 올라오다가 마는 효과 */
  .product-image {
    position: absolute;
    bottom: -48px; /* 이미지 하단 40% 잘림 */
    right: 14px; /* 우측으로 6px 더 이동 */
    opacity: 0;
    transform: translateY(100px); /* 더 아래에서 시작 */
    animation: slideUpPartial 1.5s ease-out 2.4s forwards; /* 2.4초 후 시작 */
  }

  .product-image img {
    width: 144px; /* 1.2배 확대 */
    height: auto;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
    animation: flashBright 0.3s ease-out 4.2s forwards; /* 등장 완료 0.3초 후 플래시 */
  }

  .catchphrase-text div[style*="display: flex"] {
    flex-direction: column;
    gap: 16px;
  }

  .catchphrase-text .action-btn {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    font-size: 1rem;
    width: auto; /* 너비를 자동으로 조정 */
    min-width: 150px; /* 최소 너비 설정 */
  }
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f8ff;
  /* 연한 파스텔톤 파란색 배경 */
  color: #333;
  /* 짙은 텍스트 색상 */
}

#header_html {
  top: 0;
  /* position: fixed; */
  width: 100%;
  height: var(--header-height);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  height: calc(100% - 40px);
  /* 흰색 배경 */
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  /* 짙은 로고 색상 */
}

.hero {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height as needed */
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.background-animation {
  font-size: 20px;
  margin-bottom: 10px;
}

.slogan {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
}

.inquiry-button {
  padding: 15px 30px;
  font-size: 16px;
  background-color: #64b5f6;
  /* 밝은 버튼 색상 */
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.buttons {
  display: flex;
  justify-content: center;
  padding: 50px 0;
}

.buttons button {
  padding: 20px 40px;
  font-size: 18px;
  margin: 0 20px;
  background-color: #64b5f6;
  /* 밝은 버튼 색상 */
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.footer_html {
  display: none;
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* 반응형 스타일 */

/* 세로폰 환경 */
@media screen and (max-width: 600px) {
  .main-content {
    padding: 1rem;
  }
  .hero {
    height: 40vh; /* Adjust height for smaller screens */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .slogan {
    font-size: 1.5rem;
  }
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  .buttons button {
    width: 80%;
    margin-bottom: 10px;
  }

  /* 모바일에서 문의하기 버튼들 세로 배치 */
  .catchphrase-text div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .catchphrase-text .action-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* 대문 중하단부 */
.main-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
  min-height: 80px; /* 높이 줄임 */
}
.action-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 14px 22px 18px 22px;
  text-align: center;
  width: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.action-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}
.action-icon svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: block;
  margin: 0 auto 8px auto;
}

.action-btn {
  margin-top: 14px;
  padding: 10px 24px;
  background: #64b5f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s;
}
.action-btn:hover {
  background: #1976d2;
}

.main-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
  min-height: 80px;
}
.action-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 14px 10px 10px 10px;
  text-align: center;
  width: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.action-card h3 {
  font-size: 1.1rem;
  margin: 10px 0 6px 0;
}
.action-card p {
  font-size: 0.95rem;
  margin: 0 0 8px 0;
}
.action-btn {
  margin-top: 8px;
  padding: 7px 18px;
  font-size: 0.95rem;
}
.action-icon svg,
.action-icon img {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

.background-wrapper {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 0.5rem 0;
}

.floating-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-circles div {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: float 25s infinite ease-in-out;
  filter: blur(30px);
  opacity: 0.7;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-120px, 160px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.catchphrase {
  position: relative;
  z-index: 2;
  padding: 12px;
  text-align: center;
}

.catchphrase .action-btn {
  height: 40px;
  line-height: 40px; /* Aligns text vertically */
  padding: 0 20px;
  /* font-size: 1rem; */
  font-size: 0.8rem;
  width: 160px; /* Adjust width */
  box-sizing: border-box; /* Ensures padding is included in the height */
  margin-top: 0;
}

.main-actions {
  position: relative;
  z-index: 2;
}

.catchphrase-text h2 {
  color: #222;
  font-size: 1.5rem;
}
.catchphrase-text p {
  color: #555;
  font-size: 1.1rem;
}

.fas.fa-video {
  font-size: 24px; /* 아이콘 크기 */
  color: #1976d2; /* 아이콘 색상 */
  margin-right: 8px; /* 오른쪽 여백 */
  transition: color 0.3s; /* 색상 변경 시 애니메이션 */
}

.fas.fa-video:hover {
  color: #0d47a1; /* 호버 시 색상 변경 */
}

.fas.fa-video {
  font-size: 24px;
  color: #1976d2;
  margin-right: 8px;
  transition: color 0.3s;
  cursor: pointer; /* 커서를 포인터로 변경 */
  display: inline-block; /* 인라인 블록으로 표시 */
  vertical-align: middle; /* 수직 정렬 */
}

.fas.fa-video:hover {
  color: #0d47a1;
  transform: scale(1.1); /* 호버 시 약간 확대 */
}

.circle-text {
  font-style: normal !important;
}

@media (max-width: 700px) {
  .main-actions {
    flex-direction: column;
    gap: 24px;
  }
  .action-card {
    width: 60%;
  }
}

/* 가로 태블릿 환경 */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .hero {
    height: 500px;
    padding: 50px auto;
  }

  .buttons button {
    padding: 15px 30px;
  }
}

/* 가로 데스크톱 환경 */
@media screen and (min-width: 1025px) {
  .hero {
    height: 600px;
  }
}

.circle-text {
  font-style: normal !important;
}

@media (max-width: 768px) {
  .background-wrapper,
  .floating-circles {
    display: block !important;
  }
}
