* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #9dd0ff6b;
  color: #333;
  font-family: "Hahmlet", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* 전체 레이아웃 */
.section1-layout-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  flex-wrap: wrap;
  /* background: linear-gradient(to bottom, #0d1923e4, #1b758ef6, #9dd0ff6b); */
  margin-top: 200px;
}

.section {
  margin: 100px auto;
}

/* 왼쪽 버튼 박스 */
.section1-left-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 버튼 스타일 */
.section1-button {
  height: 50px;
  cursor: pointer;
  background-color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  color: black;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 7px;
}

.section1-button:hover {
  background-color: #ddd;
}

/* 오른쪽 설명 박스 */
.section1-right-box {
  max-width: 600px;
}

.section1-desc {
  margin-bottom: 25px;
}

.section1-desc h4 {
  margin-bottom: 5px;
  color: #333;
}

.section1-desc p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1b758ef6;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: white;
  font-family: "Black Han Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
}

.dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown a {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.dropdown a:hover {
  background-color: #f0f0f0;
}

.section {
  min-height: 100vh;
  padding: 100px 20px 40px;
  text-align: center;
  scroll-behavior: smooth;
}

.card {
  max-width: 600px;
  margin: 20px auto;
}

.card img {
  max-width: 200px;
  height: auto;
  margin-bottom: 10px;
}

h2 {
  font-family: "Black Han Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
}

/* 2번 */
.ai-table {
  width: 60%;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.ai-table thead {
  background-color: #1b758ef6;
  color: white;
}

.ai-table th,
.ai-table td {
  border: 1px solid #ccc;
  padding: 14px;
  text-align: center;
}

.ai-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.ai-table tr:hover {
  background-color: #f1f1f1;
}

/* Fade-in keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-table tbody tr {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.ai-table tbody tr:nth-child(1) {
  animation-delay: 0.4s;
}
.ai-table tbody tr:nth-child(2) {
  animation-delay: 0.6s;
}
.ai-table tbody tr:nth-child(3) {
  animation-delay: 0.8s;
}
.ai-table tbody tr:nth-child(4) {
  animation-delay: 1s;
}
.ai-table tbody tr:nth-child(5) {
  animation-delay: 1.2s;
}
.ai-table tbody tr:nth-child(6) {
  animation-delay: 1.4s;
}
.ai-table tbody tr:nth-child(7) {
  animation-delay: 1.6s;
}

.section section2-ai {
  margin-bottom: 100px;
}

/* section2: 생성형 AI 섹션 스타일 */
.section2-ai-block {
  max-width: 800px; /* 블록의 최대 너비 */
  margin: 0 auto 40px; /* 중앙 정렬 및 하단 여백 */
  background-color: #ffffff; /* 배경색 */
  padding: 40px 20px; /* 안쪽 여백 */
  border-radius: 16px; /* 모서리 둥글게 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 그림자 효과 */
  text-align: left; /* 텍스트 왼쪽 정렬 */
}

.section2-ai-block h3 {
  font-size: 22px; /* 소제목 크기 */
  margin-bottom: 15px; /* 소제목과 내용 간의 간격 */
  color: #0057b8; /* 소제목 색상 */
}

.section2-ai-block p {
  font-size: 16px; /* 본문 텍스트 크기 */
  line-height: 1.6; /* 본문 텍스트 줄 간격 */
}

.section2-ai-compare .section2-compare-table {
  display: flex; /* flexbox를 사용하여 테이블 구성 */
  flex-direction: column; /* 세로 방향으로 정렬 */
  border: 1px solid #ddd; /* 테이블 테두리 색상 */
  border-radius: 10px; /* 테이블 모서리 둥글게 */
  overflow: hidden; /* 내용이 넘칠 경우 숨기기 */
}

.section2-compare-row {
  display: flex; /* 각 행을 가로로 배치 */
}

.section2-compare-row div {
  flex: 1; /* 각 열의 크기 비율을 동일하게 설정 */
  padding: 12px 16px; /* 셀 내부 여백 */
  border-top: 1px solid #eee; /* 셀 간 경계선 */
}

.section2-compare-title {
  background-color: #f0f8ff; /* 제목 셀 배경색 */
  font-weight: bold; /* 제목 텍스트 굵게 */
  border-top: none; /* 첫 번째 행에는 상단 경계선 없음 */
}

.section2-model-list {
  list-style-type: none; /* 기본 리스트 스타일 제거 */
  padding-left: 0; /* 왼쪽 여백 제거 */
}

.section2-model-list li {
  margin-bottom: 10px; /* 항목 간 간격 */
  font-size: 16px; /* 항목 텍스트 크기 */
}

.section2-model-list li::before {
  content: "➤"; /* 항목 앞에 기호 추가 */
  color: #007bff; /* 기호 색상 */
  margin-right: 8px; /* 기호와 텍스트 간의 간격 */
}

/* 팀 부분 */
.team-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 가운데 정렬 */
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s;
  border-radius: 150px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1b758ef6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 150px;
}

.overlay-box {
  padding: 20px 30px;
  line-height: 2.2;
  text-align: center;
}

.image-container:hover img {
  opacity: 0;
}

.image-container:hover .overlay {
  opacity: 1;
}

.team-row {
  display: flex;
  gap: 40px; /* 가로 간격 */
  justify-content: center;
}

.second-row {
  margin-left: 60px; /* 필요시 사진 위치 미세 조정 가능 */
}

.overlay-box button {
  margin: 5px;
  padding: 10px 20px;
  background-color: #fdfdfd; /* 기본 버튼 배경색 */
  color: rgb(0, 0, 0); /* 버튼 텍스트 색 */
  border: 1px solid #323232; /* 버튼 테두리 색 */
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.overlay-box button:hover:not(:disabled) {
  background-color: #4e4e4e; /* 호버 시 배경색 */
  color: white; /* 호버 시 텍스트 색 */
}

.overlay-box button:disabled {
  cursor: not-allowed;
  background-color: #ebeaea; /* 비활성화된 버튼 배경색 */
  color: #666666; /* 비활성화된 버튼 텍스트 색 */
  opacity: 0.7;
}

@media screen and (max-width: 768px) {
  .team-row,
  .second-row {
    flex-direction: column;
    align-items: center;
  }
}

/* 3번 css 시작 */
.note {
  line-height: 70px;
}

.line {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  display: none;
}

.line.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 40px;
}

#section4 {
  display: block;
  margin: 20px 55px;
}

#scroll-lines {
  display: block;
  border: 2px solid white;
  background-color: white;
  margin: 0px 110px;
}
@media (max-width: 1024px) {
  #scroll-lines {
    margin: 0 40px;
  }
}

@media (max-width: 768px) {
  #scroll-lines {
    margin: 0 20px;
    padding: 15px;
  }

  .line.show {
    margin-bottom: 30px;
  }

  video {
    width: 100% !important;
    height: auto;
  }
}

@media (max-width: 480px) {
  #section4 {
    padding: 0 10px;
  }

  #scroll-lines {
    margin: 0 5px;
    padding: 10px;
  }

  h2 {
    font-size: 1.4em;
  }

  h3 {
    font-size: 1.2em;
  }

  .line.show {
    margin-bottom: 20px;
  }
}

.image-mainsection {
  position: relative;
  min-height: 100vh;
  background-image: url(/image/polygons-6956577_1920.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-text {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgb(255, 255, 255);
  /* text-shadow: 2px 2px 5px rgb(0, 0, 0); */
}

.image-text h1 {
  font-size: 55px;
  margin-bottom: 10px;
  color: #fffffff6;
  font-family: "Black Han Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.image-text p {
  font-size: 22px;
}

/* 기술특징 사진 슬라이드 */
.slider {
  position: relative;
  width: 80%;
  height: auto;
  margin: 0 auto 20px auto;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
}

.slide.active {
  display: block;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

/* * 기술 카드 스타일 */
.tech-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 30px 200px;
}

.tech-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.tech-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0056b3;
}

.tech-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.tech-card code {
  font-size: 1rem;
  color: #333;
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 4px;
}
.line {
  line-height: 40px;
  text-align: center;
}

/* 애니메이션 */

.line {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.line.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 40px;
}

.note {
  padding: 50px 20px;
}

.submain {
  margin: 100px 0px;
}
.submain h2 {
  text-align: center;
  font-size: 40px;
}

@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-icon {
    align-self: flex-end;
  }

  .dropdown {
    top: 50px;
    right: 10px;
    width: 100%;
  }

  .dropdown a {
    padding: 12px;
    font-size: 16px;
  }

  .submain {
    padding: 0 20px;
  }

  .tech-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 10px;
  }

  .tech-card {
    width: 100%;
    box-sizing: border-box;
  }

  .slider {
    width: 100%;
    overflow: hidden;
  }

  .slider img {
    width: 100%;
    height: auto;
  }

  object {
    width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4,
  h5 {
    font-size: 18px;
  }

  .example {
    margin: 20px 0;
    padding: 10px;
  }

  .note {
    padding: 20px;
  }
}

