* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*---------------------- 전역 이미지 반응형 설정 ---------------------- */
img {
    max-width: 100%; /* 부모 요소의 너비를 넘지 않음 */
    width: auto; /* 이미지의 기본 너비를 유지 */
    height: auto; /* 비율을 유지하며 크기 조정 */
    min-width: 100px; /* 최소 너비 설정 * << 이거 건드리면 작아짐*/
    object-fit: contain; /* 이미지가 왜곡되지 않도록 설정 */
    display: block; /* 불필요한 여백 제거 */
    margin: 0 auto; /* 이미지 가운데 정렬 */
        min-width: unset; /* 최소 너비 제한 해제 */
        will-change: transform, opacity;
transform: translateZ(0);
backface-visibility: hidden;
}

video, .animated {
  will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

.fade-in {
  will-change: transform, opacity;
  opacity: 0;
   transform: translateY(30px);
}
/*---------------------- 전역 이미지 반응형 설정 ---------------------- */
/*--------------------------------- Font ---------------------------- */

h3 {
  color: #333;
  margin: 0;
  text-align: center; /* 중앙 정렬 */
  font-weight: 600;; /* 기본 두께로 설정 */
  font-size: 1.2rem;
  font-family: 'Lato', sans-serif; /* Lato 폰트 적용 */
}

h4 {
  margin-bottom: 1rem;
  font-weight: 600; /* 기본 두께로 설정 */
  font-size: 1rem;
  color: #555;
  font-family: 'Lato', sans-serif; /* Lato 폰트 적용 */
}

p {
  font-size: .9rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-family: 'Lato', sans-serif; /* Lato 폰트 적용 */
}

a{
  font-family: 'Montserrat', sans-serif; /* 제목에 Montserrat 폰트 적용 */
}
/*--------------------------------- Font ---------------------------- */
.parallax {
    position: relative;  /* 부모 요소는 relative */
    overflow: hidden;  /* 불필요한 튕김 방지 */
    width: 100%;
    height: auto; /* 높이를 자동으로 조정 */
    min-height: 300px; /* 최소 높이 지정 (이미지가 안 보이는 경우 대비) */
}

.parallax img {
    position: relative;  /* 기존 absolute에서 relative로 변경 */
    width: 100%;
    height: auto;
    display: block;  /* inline 요소로 인한 여백 제거 */
    transform: translateY(0);  /* 초기 위치 */
}



.fade-in-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;  /* 흰색 배경 */
    z-index: 9999;  /* 모든 요소 위에 위치 */
    opacity: 1;  /* 처음에는 완전히 보임 */
    transition: opacity 0.6s ease-in-out;  /* 페이드 아웃 효과 */
    pointer-events: none;  /* 클릭 방지 */
}

/*------------------------------ Header ------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease; /* 부드러운 이동 효과 */
}

/* 헤더 숨김 상태 */
.header.hidden {
    transform: translateY(-100%); /* 위로 숨김 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header h1 a {
    text-decoration: none;
    color: #7d7d7d;
    font-weight: 900;
    letter-spacing: -3.5px;
    transition: color 0.3s;
}

header h1 a:hover {
    color: #555;
}

header nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #ccc;
    font-weight: normal;
    transition: color 0.3s, font-weight 0.3s;
}

/* 활성화된 상태 */
header nav a.active {
    color: #000;
    font-weight: bold;
}

header nav a:hover {
    color: #555;
}
/*------------------------------ Header ------------------------------ */


/*-----------------------------01.Main_Intro-----------------------------*/
.container-intro{

 align-items: center;
 max-width: 900px;
 margin: 0 auto;
}

    .intro-section {
      flex-direction: row;
      justify-content: space-between; /* 좌우 정렬 */
      align-items: center;
      text-align: center;
      gap: 1rem;
  }

  .intro-section .left {
      flex: 1;
      max-width: 100%;
  }

  .intro-section .title-image {
         max-width: 80%; /* 작은 화면에서 Left 로고 크기 조정 */
         min-width: 100px; /* 최소 너비 설정 */
     }

     .intro-section .right img {
         max-width: 60%; /* 작은 화면에서 Right 로고 크기 조정 */
         min-width: 80px; /* 최소 너비 설정 */
     }

  .intro-section .project-details {
      text-align: left;
  }

/* Intro 섹션의 이미지만 크기 제한 */
.intro img {
    max-width: 70%; /* 부모 요소의 70% 너비로 제한 */
    height: auto; /* 비율 유지 */
}


/* Intro Section Styling */
.intro-section {
  display: flex;  /* 내부 요소(.left, .right)를 가로 정렬 */
  flex-direction: row;  /* 가로 방향 배치 */
  justify-content: space-between;  /* 좌우 끝으로 배치 */
    align-items: flex-start;
    gap: 3rem; /* 좌우 간격 증가 */
    margin: 3rem 0;
    padding: 0 1.5rem; /* 양옆 여백 */
    font-family: 'Lato', sans-serif; /* Lato 폰트 적용 */
}

.intro-section .left {
    max-width: 600px; /* 최대 너비 제한 */

}

.intro-section .title-image {
    max-width: 25%; /* Left 로고 크기 */
    text-align: left; /* 왼쪽 정렬 */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: -1rem; /* 로고와 설명 사이 간격 증가 */
}

.intro-section .description_left {
    max-width: 500px; /* 설명의 최대 너비 */
    margin: 0 auto; /* 수평 가운데 정렬 */
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    text-align: left; /* 텍스트 중앙 정렬 */

}

.intro-section .right {
  width: auto; /* 내용물 크기에 맞춤 */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 왼쪽 정렬 */
      max-width: 140px; /* 최대 너비 제한 */
}

.intro-section .right img {
    max-width: 65%; /* Right 로고 크기 */
    height: auto;
    margin-top: 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: -.5rem; /* 로고와 설명 사이 간격 */
}

.intro-section .description_right {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0; /* 위쪽에 여백 추가 */
    line-height: 2; /* 줄 간격 */
    color: #555; /* 텍스트 색상 */
    font-size: .95rem; /* 글자 크기 */
    font-weight: 600;
    max-width: 140px;
    text-align: left; /* 텍스트 중앙 정렬 */

}
/*-----------------------------01.Main_Intro-----------------------------*/

/*--------------------------02.Main_First-------------------------*/
.First {
    position: relative;
    width: 100%;
    max-width: 1000px; /* 최대 너비 800px */
    height: 500px; /* 섹션 높이 */
    background: url("L210 img/Barrel.webp") center/cover no-repeat;
    margin: 10rem auto 0; /* 위쪽 여백 추가, 가운데 정렬 */
    margin-bottom: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.First::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 50% 검은색 투명도 */
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 1.2rem;
    max-width: 80%;
    line-height: 1.5;
}

.overlay p{
  color: #f5f5f5;
  font-size: 1rem;
}

/*--------------------------02.Main_First-------------------------*/
/*--------------------------03.Main_Quotes-------------------------*/
.text-slider {
    display: flex;
    flex-direction: column; /* 위아래 배치 */
    justify-content: center;
    align-items: center;
    height: 200px;
    text-align: center;
    max-width: 900px;
    margin: 3rem auto;
    margin-bottom: 0;
}



/* 고정된 텍스트 스타일 */
.static-text {
    margin-bottom: 10px; /* 타이핑 문장과 간격 조정 */
}

/* 타이핑 효과 텍스트 스타일 */
.typing-text {
    color: #333;
  font-weight: 500;
  font-size: 1.6rem;
  font-style: italic;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/*--------------------------03.Main_Quotes-------------------------*/
/*--------------------------04.Main_Process-------------------------*/
.Process {
    padding: 0rem 1.5rem; /* 섹션 상하좌우 여백 */
    margin-top: -2rem;
    }

.Process .process-container { /* ✅ 대소문자 통일 */
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* ✅ 중앙 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
    gap: 1.7rem; /* 요소 간의 간격 */
}

.process-image-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* 이미지 최대 너비 */
    display: flex; /* ✅ 추가 */
    justify-content: center; /* ✅ 이미지 중앙 정렬 */
}

.process-image-container img {
    width: 100%; /* 이미지 너비 100% */
    height: auto; /* 비율 유지 */
}

.process-text p{
}

/*--------------------------04.Main_Process-------------------------*/
/*--------------------------05.Main_safequick-------------------------*/
/* 전체 컨테이너 (파란 박스) */
.safequick {
    padding: 3rem 1.5rem; /* 섹션 상하좌우 여백 */
    margin-top: 10rem;
    }

.safequick .safequick-container { /* ✅ 대소문자 통일 */
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* ✅ 중앙 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
    gap: .7rem; /* 요소 간의 간격 */
}

.safequick-image-logo {
    position: relative;
    width: 100%;
    max-width: 40px; /* 이미지 최대 너비 */
    display: flex; /* ✅ 추가 */
    justify-content: center; /* ✅ 이미지 중앙 정렬 */
        opacity: 0.7; /* 50% 투명도 */
    }



.safequick-image-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* 이미지 최대 너비 */
    display: flex; /* ✅ 추가 */
    justify-content: center; /* ✅ 이미지 중앙 정렬 */
}

.safequick-image-container img {
    width: 100%; /* 이미지 너비 100% */
    height: auto; /* 비율 유지 */
}

.safequick-text {
  margin-bottom: 5rem;
}

.safequick-text p{
  font-size: 1.6rem;
    color: #333;
    letter-spacing: -.7px; /* 더 좁게 */
}

/*--------------------------05.Main_safequick-------------------------*/
/*--------------------------05.Main_safequick2-------------------------*/
/* 전체 컨테이너 (파란 박스) */
.safequick2 {
    padding: 3rem 1.5rem; /* 섹션 상하좌우 여백 */
    margin-top: 10rem;
    }

.safequick2 .safequick2-container { /* ✅ 대소문자 통일 */
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* ✅ 중앙 정렬 */

}



.safequick2-image-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* 이미지 최대 너비 */
    display: flex; /* ✅ 추가 */
    justify-content: center; /* ✅ 이미지 중앙 정렬 */
}

.safequick2-image-container img {
    width: 100%; /* 이미지 너비 100% */
    height: auto; /* 비율 유지 */
}

/*--------------------------05.Main_safequick2-------------------------*/
/*--------------------------06.Main_video-------------------------*/
.video-section {
    display: flex;
    justify-content: center; /* 중앙 정렬 */
    align-items: center;
    margin-top: 12rem;
}

.video-container {
    width: 100%;
    max-width: 1200px; /* 최대 너비 1000px */
    text-align: center; /* 비디오 중앙 정렬 */
     overflow: hidden; /* 넘치는 부분 숨김 */
}

.video-container video {
    width: 100%; /* 반응형 적용 */
    display: block; /* 블록 요소로 변경하여 여백 제거 */
    object-fit: cover; /* 비디오 비율 유지 & 넘치는 부분 자동 조정 */
}
/*--------------------------06.Main_video-------------------------*/
/*--------------------------06.Main_3video-------------------------*/
.video-info-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 3rem 1.5rem;
    margin-top: 10rem;
    width: 100%;
}

/* ✅ 전체 컨테이너: 세로 정렬 유지 */
.video3-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    gap: 1rem; /* 제목과 비디오 사이 간격 */
}

/* ✅ 제목을 포함한 헤더 */
.video-header {
    text-align: center;
    width: 100%;
}

/* ✅ 소제목 스타일 */
.video-section-title {
    text-align: center;
    margin-bottom: 1rem; /* 제목 아래 간격 추가 */
}

/* ✅ 비디오 및 설명을 가로로 배치 */
.video3-content {
    display: flex; /* 가로 정렬 유지 */
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: .8rem;
}

/* 비디오 컨테이너 */
.video3-box {
    flex: 1;
    text-align: center;
    max-width: 500px;
    position: relative;
}

/* 비디오 크기 조정 */
.video3-box video {
    width: 100%;
    height: auto;
}

/* 개별 제목 스타일 */
.video3-box h4 {
    margin-top: 1rem;
    font-weight: bold;
}

/* 개별 텍스트 스타일 */
.video3-box p {
    max-width: 350px; /* ✅ 텍스트 너비 제한 */
    margin: 0 auto; /* 중앙 정렬 */
    line-height: 1.5;
    color: #333;
}


/*--------------------------06.Main_3video-------------------------*/


/*---------------------------07.Main_Final-Design--------------------------*/
.works {
    padding: 8rem 0rem 0rem 0rem; /* 섹션 상하좌우 여백 */
}

.works-container {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 중앙 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
    gap: 2rem; /* 요소 간의 간격 */
}


.works-image-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* 이미지 최대 너비 */

}

.works-image-container2 {
    position: relative;
    width: 100%;
    max-width: 400px; /* 이미지 최대 너비 */
    margin-top: 4rem;

}


.works-image-container img {
    width: 100%; /* 이미지 너비 100% */
    height: auto; /* 비율 유지 */
    margin-bottom: .4rem;
}

.works-text-content {
    max-width: 380px; /* 텍스트 최대 너비 */
    text-align: center; /* 텍스트 중앙 정렬 */
    margin: 0;
}

.works-text-content p{

    margin-bottom: .4rem;
}

/*---------------------------07.Main_Final-Design--------------------------*/

/*-----------------------------09.Main_Detail-------------------------------*/
/* 비디오 섹션 전체 스타일 */
.video2-section {
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    align-items: center;
    padding: 1rem 0; /* 위아래 여백 */
    margin-top: 8rem;
}

/* 내부 컨테이너: 비디오 + 설명을 세로 배치 (수직 정렬) */
.video2-container {
    display: flex;
    flex-direction: column; /* ✅ 세로 정렬 */
    align-items: center; /* ✅ 가운데 정렬 */
    max-width: 600px; /* ✅ 세로 정렬에 맞는 적절한 너비 */
    width: 100%;

}

/* 비디오 컨테이너 */
.video2-container2 {
    width: 100%;
    max-width: 500px; /* 비디오 최대 너비 */
}

.video2-container2 video {
  margin-top: 2rem;
  margin-bottom: 3rem;
    width: 100%;
    display: block;
    object-fit: cover;
}

/* 설명 컨테이너 */
.video2-description-container {
  margin-top: 0rem;
    display: flex;
    flex-direction: column; /* ✅ 세로 정렬 */
    align-items: center; /* ✅ 중앙 정렬 */
    text-align: center; /* ✅ 텍스트 중앙 정렬 */
    max-width: 400px; /* 설명 컨텐츠 최대 너비 */
}

/* 설명 컨텐츠 내 이미지 */
.video2-description-container img {
    max-width: 60%; /* 이미지 크기 조정 */
    height: auto;
    margin-top: 3rem;
}
/*-----------------------------09.Main_Detail-------------------------------*/
/*--------------------------10.Main_video3-------------------------*/
.video-section3 {
    display: flex;
    justify-content: center; /* 중앙 정렬 */
    align-items: center;
    margin-top: 10rem;
}

.video-container3 {
    width: 100%;
    max-width: 400px; /* 최대 너비 1000px */
    text-align: center; /* 비디오 중앙 정렬 */
     overflow: hidden; /* 넘치는 부분 숨김 */
     display: flex;
flex-direction: column; /* ✅ 세로 정렬 */
align-items: center; /* ✅ 모든 요소 가운데 정렬 */

}

.video-container3 h3 {
  margin-bottom: 1rem;
}


.video-container3 video {
    width: 100%; /* 반응형 적용 */
    display: block; /* 블록 요소로 변경하여 여백 제거 */
    object-fit: cover; /* 비디오 비율 유지 & 넘치는 부분 자동 조정 */
}

.video3-text {
    max-width: 280px; /* 텍스트 최대 너비 */
    text-align: center; /* 텍스트 중앙 정렬 */
    padding-top: 3rem; /* 위쪽 여백 */
    margin: 0 auto; /* 가운데 정렬 추가 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 요소 중앙 정렬 */
}

/*--------------------------10.Main_video3-------------------------*/
/*-----------------------------11.Main_open-------------------------------*/

/* 기본 이미지 컨테이너 */
.open {
  margin-top: 8rem;
}
/* 이미지 컨테이너 */
.hover-image-container {
    width: 400px;
    height: auto;
    margin: 0 auto;
}

/* 기본 이미지 스타일 */
.hover-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out; /* 0.3초 동안 자연스럽게 변화 */
}
/* 텍스트 스타일 */
.open-text {
    max-width: 350px; /* 텍스트 최대 너비 */
    text-align: center; /* 텍스트 중앙 정렬 */
    padding-top: 3rem; /* 위쪽 여백 */
    margin: 0 auto; /* 가운데 정렬 추가 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 요소 중앙 정렬 */
}

/*-----------------------------10.Main_open-------------------------------*/

/*-----------------------------11.Main_lastdance-------------------------------*/
.lastdance {
  margin-top: 15rem;
}

.lastdance-container {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 중앙 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
    background-color: #000000;
    overflow: hidden;
    position: relative; /* ✅ 텍스트를 배치할 기준 설정 */
}

/* 이미지 컨테이너 */
.lastdance-image-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    overflow: hidden;
}

/* 이미지 확대 효과 */
.lastdance-image-container img {
    width: 100%;
    height: auto;
    transform: scale(1);
    animation: slowZoom 14s ease-in-out infinite alternate;
}

/* ✅ 텍스트를 이미지 위에 배치 */
.lastdance-text {
    position: absolute; /* ✅ 이미지 위에 텍스트를 겹치도록 설정 */
    top: 50%; /* 화면 중앙 정렬 */
    left: 50%;
    transform: translate(-100%, -50%); /* 정확한 중앙 정렬 */
    color: white; /* 텍스트 색상 */
    font-size: 1.8rem; /* 글자 크기 */
    font-weight: bold;
    text-align: center;
    max-width: 80%; /* 글자가 너무 길어지지 않도록 */
    z-index: 10; /* ✅ 이미지 위로 텍스트가 올라오도록 */
}

/* ✅ 텍스트 확대 방지 */
.lastdance-text h3{
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
    color: #f1f1f1;
    letter-spacing: 0.03em;
}

.lastdance-text h3, p {
    transform: none; /* 텍스트에는 확대 효과 없음 */
    font-weight: 100;
}

.lastdance-text p {
  padding-left: 20rem;
      color: #f1f1f1;
}


               @keyframes slowZoom {
                   0% {
                       transform: scale(1);
                   }
                   100% {
                       transform: scale(1.12); /* 20% 확대 */
                   }
               }
/*-----------------------------11.Main_lastdance-------------------------------*/


/*-----------------------------10.Main_people-------------------------------*/
.people {
    padding: 1rem; /* 섹션 상하좌우 여백 */
    margin-top: 10rem;
}

.people-container {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 중앙 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
    gap: 1rem; /* 요소 간의 간격 */
}

.people-image-container1 {
    position: relative;
    gap: 0px 2px 0px 0px; /* 이미지 간 간격 설정 */
    width: 100%;
    max-width: 1500px; /* 이미지 최대 너비 */
    margin-bottom: 12rem;

}




.people-image-container img {
    width: 100%; /* 이미지 너비 100% */
    height: auto; /* 비율 유지 */
    margin-bottom: .4rem;
}

/*-----------------------------10.Main_people-------------------------------*/
/*---------------------------BacktoMain--------------------------*/
/* 섹션 정렬 */
.back-to-home {
    display: flex;
    justify-content: center;
    align-items: center;
padding-top: 4rem;
    text-align: center; /* 가운데 정렬 */

}

/* 정사각형 프레임 */
.grid-icon {
    width: 44px; /* 20px + 20px + 3px 간격 */
    height: 44px; /* 정사각형 프레임 */
    display: grid;
    grid-template-columns: 20px 20px;
    grid-template-rows: 20px 20px;
    gap: 1px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

/* 네모 기본 스타일 */
.square {
    background-color: #b0b0b0;
    border-radius: 2px;
    transition: height 0.3s ease-in-out;
    position: absolute;
}

/* 초기 네모 크기 및 위치 */
.square-1 { width: 20px; height: 25px; top: 0; left: 0; }  /* 좌측 위 */
.square-2 { width: 20px; height: 15px; top: 0; right: 0; }   /* 우측 위 */
.square-3 { width: 20px; height: 15px; bottom: 0; left: 0; } /* 좌측 아래 */
.square-4 { width: 20px; height: 25px; bottom: 0; right: 0; } /* 우측 아래 */

/* 🟢 호버 시 길이만 변경 (위치는 유지됨) */
.grid-icon:hover .square-1 { height: 15px; }   /* 좌측 위 → 작아짐 */
.grid-icon:hover .square-2 { height: 25px; }  /* 우측 위 → 길어짐 */
.grid-icon:hover .square-3 { height: 25px; }  /* 좌측 아래 → 길어짐 */
.grid-icon:hover .square-4 { height: 15px; }   /* 우측 아래 → 작아짐 */

/* 호버 시 색상 변경 */
.grid-icon:hover .square {
    background-color: #4b5563; /* 어두운 회색 */
}

/*---------------------------BacktoMain--------------------------*/


/* Footer */
footer {
  padding: 4rem 2rem 0.5rem 2rem; /* 아래쪽 패딩 조정 */
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: -1.3px;
}
