/* 공통 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 기본 스타일 설정 */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
}

/* 네비게이션 바 */
.navbar {
  background-color: #343a40;
  padding: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #00bfff;
}

.navbar-toggler {
  display: none;
}

/* 메인 페이지 슬라이드 및 텍스트 중앙 정렬 */
#main-page {
    margin-top: 70px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

/* 슬라이드 컨테이너 */
.slider-container {
    position: relative;
    background-color: transparent;
}

/* 기능 안전성 텍스트 스타일 */
.functional-safety-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    max-width: 80%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.functional-safety-text span {
    opacity: 0;
    display: inline;
    background-color: transparent;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(20px);
}

.functional-safety-text span.active {
    opacity: 1;
    transform: translateY(0);
}

/* 로딩 페이지 */
#loading-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-text {
  font-size: 2rem;
  color: #333;
}

/* 슬라이드 설정 */
.slider-container {
  width: 100%;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  margin-bottom: 0;
}

.slide {
  display: none;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 슬라이드 텍스트 스타일 */
.text {
  color: #fff;
  font-size: 2rem;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 5px;
}

/* 점 네비게이션 */
.dots-container {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.active, .dot:hover {
  background-color: #717171;
}

/* 슬라이드 전환 애니메이션 */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Particle 배경 설정 */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* About Us 섹션 */
#about {
  background-color: #ffffff;
  padding: 50px 0;
  text-align: center;
}

/* About 슬라이더 */
.about-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 20px auto;
  overflow: hidden;
}

.about-slide {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* 이미지와 텍스트를 세로로 배치 */
}

.about-slide img {
  width: 480px;
  height: 270px;
  object-fit: cover;
  border-radius: 10px;
}

/* 슬라이드 설명: 이미지 바로 아래에 배치 */
.slide-text {
  color: #333;
  font-size: 1.5rem;
  margin-top: 10px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px 15px;
  border-radius: 5px;
}

/* About 슬라이드 네비게이션 점 */
.about-dots-container {
  text-align: center;
  position: relative;
  bottom: 10px;
  width: 100%;
}

.about-dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.about-dot.active, .about-dot:hover {
  background-color: #717171;
}

/* 비전 섹션 */
#vision {
  background-color: #f5f7fa;
  padding: 50px 0;
  text-align: center;
}

#vision h2 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#vision p {
  color: #666;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* 비전 이미지 */
#vision-image {
  background-color: #ffffff;
  padding: 50px 0;
  text-align: center;
}

#vision-image img {
  width: 80%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Our Customers 섹션 */
#Our-Customers h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

#Our-Customers {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.customer-carousel {
  display: flex;
  justify-content: center;
  align-items: center; /* 아이템들 수직 중앙 정렬 */
  overflow: hidden;
  flex-wrap: wrap; /* 고객 로고들이 화면 크기에 맞게 줄을 바꿈 */
  width: 60%;
  gap: 20px; /* 로고 사이 간격 추가 */
}

.customer-item {
  display: flex;
  flex-direction: column; /* 세로로 나란히 배치 */
  align-items: center; /* 수직 정렬 */
  text-align: center;
  padding: 10px;
}

.customer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.customer-name {
  font-size: 16px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.customer-name:hover {
  color: #007bff;
}

/* 섹션 간 여백 (5cm 설정) */
section {
  margin-top: 5cm;
  margin-bottom: 5cm;
}

/* 섹션 제목 스타일 (Our Services, Our Products, Our Customers) */
h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

/* 서비스, 제품 텍스트 스타일 */
#service-texts, #product-texts {
  font-size: 36px;
  font-weight: bold;
  line-height: 1.6;
  min-height: 100px;
  text-align: center;
}

/* 페이드 인/아웃 효과 */
.fade-in-out {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in-out.show {
  opacity: 1;
}

/* Learn More 버튼 스타일 - 중앙 배치 */
.learn-more-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #6c757d !important; /* 차분한 회색 */
  color: white !important;
  text-decoration: none !important;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
  text-align: center;
}

.learn-more-btn:hover {
  background-color: #5a6268 !important; /* 호버 시 조금 더 어두운 색 */
}


/* Learn More 버튼 부모 컨테이너 중앙 정렬 */
#services .container, #products .container {
  text-align: center;  /* Learn More 버튼을 중앙에 배치 */
}