* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  color: #3f464d;
  font-family: "Spoqa Han Sans Neo", "Sans-serif";
}

/* a 링크 태그 스타일 초기화 */
a {
  all: unset;
}
a:link {
  text-decoration: none;
  color: #3f464d;
}
a:visited {
  text-decoration: none;
  color: #3f464d;
}
a:active {
  text-decoration: none;
  color: #3f464d;
}
a:hover {
  text-decoration: none;
  color: #3f464d;
}

.inner {
  width: 100%; /* 가로 사이즈가 1200px 넘는 해상도에서는 max-width 설정 */
  height: 100%; /* align-items 등으로 수직 가운데 정렬을 위해, 알맞은 height 설정이 필요함 */
  margin: 0 auto; /* 가운데 정렬: 동일 요소에 width 가 설정되어 있을 때에만 적용 */
  padding: 0rem 3rem; /* 좌우 padding 을 살짝 주어서, 좌우에 딱 붙지 않도록 함 */
  overflow: hidden; /* 넘치는 영역에 대해서는 표시안되도록 작성해야 함 */
}

header {
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.head-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 필요시 세부 설정을 위해, 상단 좌측 브랜드만을 별도로 클래스로 정의 */
.head-container .head-brand {
  font-weight: bold;
  font-size: 1.6em;
}

.head-container .head-brand a:hover {
  color: #2186c4;
  cursor: pointer;
}

/* 필요시 세부 설정을 위해, 상단 우측 메뉴만을 별도로 클래스로 정의 */
.head-container .head-blog {
  font-weight: bold;
  font-size: 1.2em;
}

.head-container .head-blog a:hover {
  color: #2186c4;
  cursor: pointer;
}

/* 기본 - 모바일에선 select 숨기고 버튼·메뉴 감춤 */
#langSelect { display: none; }
#langToggle,
#langMenu { display: none; }


/* 언어 메뉴 스타일 */
#langMenu {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 6rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0.375rem; /* Tailwind의 rounded-md */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
}
#langMenu li a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}
#langMenu li a:hover {
  background-color: #f3f4f6; /* Tailwind의 gray-100 */
}

/* 햄버거 버튼 기본 스타일 */
#langToggle {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  background-color: #fff;
  cursor: pointer;
  font-size: 1.25rem; /* 햄버거 아이콘 크기 */
}
#langToggle:hover {
  border-color: #3b82f6; /* Tailwind의 blue-500 */
}


section {
  width: 100%;
  background-color: #ffffff;
  position: relative;
}
.main {
  height: 560px; /* 최소 높이 보장 */
  background-image: url("../img/main.png");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  z-index: 1;
  padding: 80px 0;

  /* 호버 애니메이션을 위한 설정 */
  transition: transform 0.3s ease;       /* 부드러운 확대 애니메이션 */
  transform-origin: center center;       /* 중앙을 기준으로 확대 */
}

.main:hover {
  transform: scale(0.9);                 /* 10% 확대 */
}


/* 배경 이미지에 색상을 어둡게 하기 위해, 어두운 색상으로 이미지 상위에 투명도를 주어 덮어씌움 */
.main-container {
  width: 100%;
  height: 140%;
  background-color: rgb(47, 48, 89);
  opacity: 0.5;
  z-index: 2;
  margin-top: -80px; /* position 이 fixed 일 경우, 문서 흐름에서 빠지므로, 이 부분은 margin 으로 적용 */
}

.main-nav ul {
  list-style: none;
  margin: 20px;
  padding: 0;
  display: flex;
  gap: 2rem;           /* 메뉴 간격 */
}

.main-nav a {
  text-decoration: none;
  color: #3f464d;
  font-weight: 500;
}

.main-nav a:hover {
  color: #2186c4;

}
.main-nav:hover  {
  transform: scale(1.1);
}


/* CSS */
.master-logo {
  height: 50px;   /* 스샷 높이와 동일하게 맞춤 */
  width: auto;    /* 비율 유지 */
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}


/* hover 시 크기 확대, 투명도 변경 예시 */
.master-logo:hover {
  transform: scale(1.1); /* 10% 확대 */
  opacity: 0.8;           /* 약간 투명하게 */
}

.title-container {
  padding-top: 100px;
  padding-bottom: 100px;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  padding-top: 160px;     /* 상단 내부 여백 추가 */
  margin-bottom: 2rem;
  text-align: left;
}


.message {
  font-size: 1.4rem;
  font-weight: normal;
  color: #fff;
  line-height: 2rem;
  text-align: left;    /* 오른쪽 정렬 */
}

.news {
  font-size: 1.2rem;
  font-weight: bold;
  color: #07ee07;
}


.skill-box {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5em 1em 1em 1em;
}


.skill-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem 0;
}
.skill {
  width: 25%;
  background-color: #fff;
  display: flex;
  align-items: center;
  border-radius: 9px;
  padding: 0.5rem 1rem;
  margin: 0 1rem;
  /* box-shadow: 블럭에 그림자를 적용하는 CSS 기능
     https://developer.mozilla.org/ko/docs/Web/CSS/box-shadow 
     offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: 10px 10px 10px -5px rgba(25, 42, 70, 0.2);
  transition: 0.4s;
}

.skill:hover {
  transform: translate(0, -5px);
}

.skill-icon {
  font-size: 6.5rem;
  margin: 0 10px;
}

.skill-title {
  display: flex;
  flex-direction: column;
  align-content: center;
}

.skill-name {
  font-weight: bold;
  color: #545e6f;
  margin-bottom: 0.2rem;
}

.skill-usage {
  font-size: 0.9rem;
  color: #545e6f;
}

.ai-style {
  color: #1c0ee4;
}
.aiapp-style {
  color: #0fd81f;
}
.analysis-style {
  color: #b82512;  
}
.factory-style {
  color: #864e05;  
}
.led-style {
  color: #4da6ff; 
}
.roadmap-container {
  width: 100%;
  margin-top: 2rem;
}

.roadmap-title-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roadmap-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #545e6f;
}

.slide-prev {
  font-size: 2rem;
  cursor: pointer;
  color: rgb(47, 48, 89);
}

.slide-next {
  font-size: 2rem;
  cursor: pointer;
  color: #cfd8dc;
}

.arrow-container {
  display: flex;
}

.class-list {
  display: flex;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  overflow: none; /* overflow 를 hidden 으로 설정하면, transform 시 이미지 짤림 */
}

.class-card {
  width: 240px;
  /* box-shadow: 블럭에 그림자를 적용하는 CSS 기능
     https://developer.mozilla.org/ko/docs/Web/CSS/box-shadow 
     offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: 10px 10px 10px -5px rgba(25, 42, 70, 0.2);
  border-radius: 8px;
  margin: 0 10px;
  transition: 0.4s;
  /* IE11 에서는 flex 설정시, 디폴트로 flex 아이템들에 고정 너비를 무시 */
  flex-shrink: 0;
}

.class-card:hover {
  box-shadow: 10px 10px 10px 0px rgba(25, 42, 70, 0.2);
  transform: translate(0, -5px);
}

.class-image {
  width: 240px;
  /* border-radius: 블럭 모서리를 둥글게 하는 CSS 기능
     top-left | top-right | bottom-right | bottom-left */
  border-radius: 8px 8px 0 0;
  height: 150px;
}

.class-container {
  width: 100%;
  padding: 0.5rem 1rem 1rem 1rem;
}

.class-skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-type {
  font-size: 1rem;
  color: #949393;
  font-weight: bold; /* 또는 600, 700 등 숫자로도 지정 가능 */
}

.class-format1 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #2ba10d;
  padding: 0.2rem;
}
.class-format2 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #0d47a1;
  padding: 0.2rem;
}
.class-format3 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #2ba10d;
  padding: 0.2rem;
}
.class-format4 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #0d47a1;
  padding: 0.2rem;
}
.class-sub-format1 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #0d47a1;
  padding: 0.2rem;
}
.class-sub-format2 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #2ba10d;
  padding: 0.2rem;
}
.class-sub-format3 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #c40f0f;
  padding: 0.2rem;
}
.class-sub-format4 {
  font-size: 0.9rem;
  color: #fff;
  background-color: #834308;
  padding: 0.2rem;
}
.class-desc {
  width: 100%;
  margin-top: 1rem;
  color: #545e6f;
}

.class-desc:hover {
  color: #2186c4;
}

.class-title {
  font-weight: bold;
  color: inherit;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  margin-top: 1em;
}

.class-detail {
  font-size: 0.9rem;
  color: inherit;
  line-height: 1.5rem;
}

.roadmap-desc {
  display: visible;
}

li a:hover {
  cursor: pointer;
}


footer {
  border-top: 1px solid #e4e4e4;
  background-color: #f8f9fa;
  padding: 1rem 0;
  margin: 1rem 0;
}

.footer-message {
  font-weight: bold;
  color: #545e6f;
  margin: 0.3rem 0.5rem;
}

.footer-contact {
  color: #545e6f;
  margin: 0 0.5rem;
}

.footer-copyright {
  color: #545e6f;
  margin: 1rem 0.5rem;
}


#backtotop {
  background-color: rgb(47, 48, 89);
  width: 40px;
  height: 40px;
  text-align: center;

  border-radius: 20px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition-property: background-color, opacity, visibility;
  transition-duration: 0.3s, 0.5s, 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

/* 아이콘 적용 방법
  1. ::after (요소 뒤에 content 추가) 가상 요소에서,
  2. content: "폰트어썸 유니코드" 를 넣고,
  3. font-family: FontAwesome 이라고 넣으면 됨
  */
#backtotop::after {
  content: "\f077";
  font-family: FontAwesome;
  font-size: 1.5rem;
  line-height: 40px;
  color: #fff;
}

#backtotop.show:hover {
  cursor: pointer;
  background-color: #21c43c;
}

#backtotop.show {
  opacity: 1;
  visibility: visible;
  background-color: rgb(47, 48, 49);
}

/* drag 할 수 있는 아이템임을 나타내는 표시를 포인터로 변경함 */
ul li img:hover {
  cursor: grab; /* IE11에서는 지원 안함 */
}

/* dragging 중인 상태에서 잡는 표시를 포인터로 변경함 */
ul li img:active {
  cursor: grabbing; /* IE11에서는 지원 안함 */
}

@media only screen and (min-width: 1200px) {
  .inner {
    max-width: 1200px;
  }
}

/* 800px 초과일 때(데스크탑) select만 보이게 */
@media (min-width: 800px) {
  #langSelect { display: inline-block; }
}

/* 800px 이하일 때(모바일) 버튼만 보이게 */
@media (max-width: 800px) {
  #langToggle { display: inline-block; }
}

@media only screen and (max-width: 980px) {
  .main-nav{
  display: none;
  }
  .skill-container {
  display: none;
  }
  
  .roadmap-desc {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
  .class-skill {
    display: none;
  }
  .class-container {
    padding: 0.5rem;
  }
  .class-desc {
    margin-top: 0rem;
  }
}

@media only screen and (max-width: 480px) {
  .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.8rem;
  }
  .message {
    font-size: 1.2rem;
    font-weight: normal;
    color: #fff;
    line-height: 2rem;
  }
  .class-skill {
    display: none;
  }
  .class-container {
    padding: 0.5rem;
  }
  .class-desc {
    margin-top: 0.3rem;
  }
}