html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Noto Sans KR', sans-serif;
  overflow-x: hidden;
}

/* 상단바 */
#top-bar {
  width: 100% !important;
  margin: 0 !important;
  height: 70px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;  /* ← 공간 줄어들며 햄버거 밀리는 문제 방지 */
}

.logo img {
  height: 60px;
}

.nav-menu{
  width: auto;
  display: flex;
  align-items: center;
}

.nav-menu a {
  margin-left: 20px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* 메인 이미지 */
#main-image {
  width: 100%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /*text-align: center;*/
  color: white;
  position: relative;
  padding-top: 70px; /*원래 120*/
}

#main-image::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #2C3E50;
}

.main-text {
  position: relative;
  z-index: 1;
  /*padding: 0 10px;*/
  display: flex;
  gap: 10%;
  /*width: 67%;*/
}

.main-text h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.main-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background-color: #e67e22;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background-color: #d35400;
}

/* 소개 섹션 */
#intro-container {
  background-color: #f7f7f7;
  padding: 100px 10% 80px;
  text-align: center;
}

.intro-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.intro-header p {
  color: #000000;
  margin-bottom: 50px;
}

/* 콘텐츠 섹션 */
#intro-content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.intro-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 320px;
  padding: 20px;
  text-align: center;
}

.intro-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.intro-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #34495e;
}

/* About Us 이미지 갤러리 */
.intro-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-box {
  width: 100%;
  aspect-ratio: 1 / 1; /* 정사각형 유지 */
  background-color: #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* 문의 섹션 */
#contact {
  background-color: #2c3e50;
  height: 200px;
  color: white;
  padding: 50px 5%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

#contact-mobile{
  display: none;
}

#contact h2 {
  margin-bottom: 20px;
}

#contact p {
  margin: 5px 0;
  font-size: 0.95rem;
}

.hamburger {
  display: none;  /* 모바일에서만 보이니 초기에는 숨김 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 2000; /* 메뉴 위 */
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: black;
  border-radius: 3px;
  margin: 4px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 모바일 메뉴 (오른쪽 사이드 슬라이드) */
.nav-menu-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: #ffffff;
  box-shadow: -2px 0 15px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  padding: 30px 25px;
  transition: 0.4s ease;
  z-index: 200;  /* 오버레이보다 위 */
}

.nav-menu-mobile.active {
  right: 0;
}

.nav-menu-mobile a {
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1.2rem;
  text-decoration: none;
  color: #000;
}

.nav-menu-mobile a:last-child {
  border-bottom: none;
}
/* 어두운 배경 오버레이 */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 99;
}

#overlay.active {
  display: block;
}

#main-text-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*width: 100%;*/
}
#contact-circle {
  font-size: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 40px;
  text-align: center;
  border : 1px solid;
  border-radius: 20px;
}
#main-image-container{
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5%;
  margin-top: 5%;
}
#main-image-src{
  width: 600px;
  height: 350px;
  border-radius: 10px;
}

#contact-info {
  width: 100%;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: white;
  position: relative;
  /*margin-top: -160px;*/
}

#contact-info-container{
  background-image: url('/img/customerInfo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(0, 0, 0, 0.4); /* 반투명한 어두운 색상 */
  background-blend-mode: darken;        /* 배경 이미지와 어두운색 섞기 */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#logo{
  width: 30%;
}

#logo-img{
  width: 100%;
}

#contact-container p {
  font-size: 22px;
}

.contact-text-mobile{
  display: none;
}
/* 반응형 스타일 */
@media (max-width: 1024px) {
  #main-image h2 {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu { display: none; }
  .contact-text{
    display: none;
  }
  .contact-text-mobile{
    display: flex;
  }
  #intro-container {
    padding: 30px 5%;
    height: auto;
  }

  .intro-header h2 {
    font-size: 1.8rem;
  }

  #intro-content-container {
    flex-direction: column;
    gap: 30px;
  }

  .intro-content {
    width: 100%;
    padding: 0;
  }

  .intro-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .gallery-box {
    font-size: 0.9rem;
  }

  #contact {
    padding: 40px 5%;
  }

  #main-image {
    height: 100vh;
    /*padding: 120px 0px 40px;*/
    background: #2C3E50;
    color: white;
    padding-top: 0;
  }

  #main-image::after {
    background: none; /* 기존 어둡게 처리 제거 */
  }
  /* 메인 텍스트 전체 중앙 정렬 */
  .main-text {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .main-text h2 {
    font-size: 2rem;
    margin: 0;
  }
  #contact-info{
    margin-top: 0px;
  }
  .main-text h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 10px 0;
  }
  #main-text-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  /* 이미지 컨테이너 모바일에서는 세로정렬 */
  #main-image-container {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  #main-image-container img {
    width: 90%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 15px;
  }
  .contact-circle {
    width: 230px;
    height: 20px;
    padding: 12px 24px;
    font-size: 2rem;
    border-radius: 30px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: inherit;
    text-decoration: none;
  }

  #contact-info-container h1{
    font-size: 3rem;
  }

  #contact-info-container p{
    font-size: 1.5rem;
  }
  .contact-text{
    display: none;
  }

  #contact-info-container{
    height: 100%;
  }

  #contact{
    display: none;
  }

  #contact-mobile{
    background-color: #2c3e50;
    color: white;
    /*text-align: center;*/
    padding: 20px 10%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  #contact-container-mobile p{
    font-size: 19px;
    margin: 2% 0;
  }
}
