/* 기본 스타일 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Noto Sans KR", Arial, sans-serif;
    color: #fff;
    background-color: #000;
    overflow: hidden;
}

/* fullPage 섹션 스타일 */
.section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
}

/* 비디오 배경 */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 로고 */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo img {
    width: 200px;
    height: auto;
}

/* 메인 텍스트 */
.content {
    z-index: 2;
    line-height: 1.5;
    text-align: center;
}

.content h1 {
    font-size: 4vw;
    font-weight: bold;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
    white-space: pre-line;
}

/* 스크롤 화살표 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: fadeIn 2s infinite;
}

.scroll-down span {
    display: block;
    margin-bottom: 10px;
}

.scroll-down .arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #fff;
    animation: bounce 1.5s infinite;
}

/* 애니메이션 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fadeIn {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .logo img {
        width: 150px;
    }

    .content h1 {
        font-size: 6vw;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 100px;
    }

    .content h1 {
        font-size: 7vw;
    }
}

/* 공통 스타일 */
.main-banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.main-banner .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.main-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-banner .logo {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 2s ease-out;
}

.main-banner .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1.5;
    animation: slideUp 2s ease-out;
}

.main-banner .scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 1rem;
}

.main-banner .arrow {
    width: 20px;
    height: 20px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(10px) rotate(45deg); }
}

/* 메인 배너 스타일 */
.main-banner .content h1 {
    font-size: 2.5rem;
    line-height: 1.3; /* 줄 간격 조정 */
    white-space: nowrap; /* 강제 줄바꿈 방지 */
    word-break: keep-all; /* 단어가 잘리지 않도록 설정 */
    color: #fff;
    text-align: center;
}

/* 공통 설정 */
.section_intro {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.intro_bg_wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro_bg_wrap .bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000 10%, transparent 80%);
}

.intro_script_wrap {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.intro_script .msg {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.intro_script h2 {
    font-size: 2.5rem;
    font-weight: 500;
}

.obj {
    position: absolute;
    animation: float 5s ease-in-out infinite;
}

.circle_video {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 흐릿해지는 효과 */
.fade-out {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-banner .content,
.main-banner .logo {
    opacity: 1;
    transform: translateY(0);
}

.main-banner.fp-completely .content,
.main-banner.fp-completely .logo {
    opacity: 0;
    transform: translateY(-20px);
}

/* 원형 애니메이션 */
.circle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: circle-animation 10s infinite linear;
}

.circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 70%;
    animation-delay: 2s;
}

.circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 70%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes circle-animation {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5) translateY(-50px);
        opacity: 0;
    }
}

/* 문장 하나씩 나타나는 효과 */
.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* 서클 배경 및 애니메이션 */
.obj {
    position: absolute;
    animation: float 10s infinite alternate ease-in-out;
}

.obj_circle_1 { top: 20%; left: 10%; width: 100px; height: 100px; }
.obj_circle_2 { top: 40%; right: 15%; width: 150px; height: 150px; }
.obj_circle_3 { bottom: 20%; left: 25%; width: 120px; height: 120px; }
.obj_circle_4 { bottom: 10%; right: 10%; width: 100px; height: 100px; }

@keyframes float {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-20px);
    }
}

.circle_video {
    width: 100%;
    height: auto;
}

/* 문장 순차 등장 애니메이션 */
.msg {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.msg.active {
    opacity: 1;
    transform: translateY(0);
}
