@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600&display=swap');

.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #060606;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* 배경 이미지 레이어 */
.intro-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/bg_city.jpg') no-repeat center bottom;
    background-size: 60% auto;
    opacity: 1;
    z-index: -1;
}

@keyframes skyAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.intro-content {
    text-align: center;
    color: #ffffff;
    width: 100%;
    height: 100%;
    position: relative;
}

.text-content {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 3rem;
}

.text-content::before,
.text-content::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.text-content::before {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.text-content::after {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%) rotate(45deg);
}

.intro-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Noto Serif KR', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.intro-subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.5s;
    font-weight: 500;
    letter-spacing: 1.5px;
    font-family: 'Noto Serif KR', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* 태블릿 화면 */
@media screen and (max-width: 1024px) {
    .intro-title {
        font-size: 3.5rem;
    }
    .intro-subtitle {
        font-size: 2rem;
    }
    .intro-container::after {
        background-size: 120% auto;
    }
}

/* 모바일 화면 */
@media screen and (max-width: 768px) {
    .intro-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    .intro-subtitle {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    .text-content {
        padding: 1.5rem;
    }
    .intro-container::after {
        background-size: 140% auto;
    }
}

/* 작은 모바일 화면 */
@media screen and (max-width: 480px) {
    .intro-title {
        font-size: 2rem;
    }
    .intro-subtitle {
        font-size: 1.2rem;
    }
    .text-content {
        padding: 1rem;
    }
    .intro-container::after {
        background-size: 160% auto;
    }
}

.intro-title:hover,
.intro-subtitle:hover {
    transition: all 0.3s ease;
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.intro-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
}

.intro-title.show,
.intro-subtitle.show {
    opacity: 1;
    transform: translateY(0);
}

.intro-image.show {
    opacity: 1;
    transform: scale(1);
}

.text-content.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 형광 선 효과 */
.fluorescent-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none;
}

.fluorescent-line {
    position: absolute;
    opacity: 0;
    filter: blur(1px);
    box-shadow: 0 0 10px #2a66b3, 0 0 20px #2a66b3, 0 0 30px #2a66b3;
    animation-play-state: paused;
}

/* 수직선 스타일 */
.fluorescent-line.vertical {
    background: linear-gradient(180deg, transparent, #2a66b3, transparent);
    width: 2px;
    height: 0px;
}

/* 수평선 스타일 */
.fluorescent-line.horizontal {
    background: linear-gradient(90deg, transparent, #2a66b3, transparent);
    height: 2px;
    width: 0px;
}

/* 수직선 위치 설정 (위에서 아래로) */
.line-1 {
    top: 0%;
    left: 15%;
    transform: rotate(0deg);
    transform-origin: top center;
    animation: growShrinkVertical1 4s ease-in-out infinite;
    animation-delay: 0s;
}

.line-2 {
    top: 0%;
    left: 50%;
    transform: rotate(0deg);
    transform-origin: top center;
    animation: growShrinkVertical2 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.line-3 {
    top: 0%;
    left: 85%;
    transform: rotate(0deg);
    transform-origin: top center;
    animation: growShrinkVertical3 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* 수직선 위치 설정 (아래에서 위로) */
.line-4 {
    bottom: 0%;
    left: 25%;
    transform: rotate(0deg);
    transform-origin: bottom center;
    animation: growShrinkVertical4 4.2s ease-in-out infinite;
    animation-delay: 1.5s;
}

.line-5 {
    bottom: 0%;
    left: 60%;
    transform: rotate(0deg);
    transform-origin: bottom center;
    animation: growShrinkVertical5 4.8s ease-in-out infinite;
    animation-delay: 2s;
}

.line-6 {
    bottom: 0%;
    left: 90%;
    transform: rotate(0deg);
    transform-origin: bottom center;
    animation: growShrinkVertical6 4.3s ease-in-out infinite;
    animation-delay: 2.5s;
}

/* 수평선 위치 설정 (왼쪽에서 오른쪽으로) */
.line-7 {
    top: 20%;
    left: 0%;
    transform: rotate(0deg);
    transform-origin: left center;
    animation: growShrinkHorizontal7 4.4s ease-in-out infinite;
    animation-delay: 3s;
}

.line-8 {
    top: 50%;
    left: 0%;
    transform: rotate(0deg);
    transform-origin: left center;
    animation: growShrinkHorizontal8 5.1s ease-in-out infinite;
    animation-delay: 3.5s;
}

.line-9 {
    top: 80%;
    left: 0%;
    transform: rotate(0deg);
    transform-origin: left center;
    animation: growShrinkHorizontal9 4.7s ease-in-out infinite;
    animation-delay: 4s;
}

/* 수평선 위치 설정 (오른쪽에서 왼쪽으로) */
.line-10 {
    top: 15%;
    right: 0%;
    transform: rotate(0deg);
    transform-origin: right center;
    animation: growShrinkHorizontal10 4.1s ease-in-out infinite;
    animation-delay: 4.5s;
}

.line-11 {
    top: 45%;
    right: 0%;
    transform: rotate(0deg);
    transform-origin: right center;
    animation: growShrinkHorizontal11 4.3s ease-in-out infinite;
    animation-delay: 5s;
}

.line-12 {
    top: 75%;
    right: 0%;
    transform: rotate(0deg);
    transform-origin: right center;
    animation: growShrinkHorizontal12 4.5s ease-in-out infinite;
    animation-delay: 5.5s;
}

/* 수직선 애니메이션 (위에서 아래로) */
@keyframes growShrinkVertical1 {
    0% {
        height: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        height: 100vh;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        height: 100vh;
        opacity: 0;
    }
}

@keyframes growShrinkVertical2 {
    0% {
        height: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        height: 100vh;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        height: 100vh;
        opacity: 0;
    }
}

@keyframes growShrinkVertical3 {
    0% {
        height: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        height: 100vh;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        height: 100vh;
        opacity: 0;
    }
}

@keyframes growShrinkVertical4 {
    0% {
        height: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        height: 100vh;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        height: 100vh;
        opacity: 0;
    }
}

@keyframes growShrinkVertical5 {
    0% {
        height: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        height: 100vh;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        height: 100vh;
        opacity: 0;
    }
}

/* 수직선 애니메이션 (아래에서 위로) */
@keyframes growShrinkVertical6 {
    0% {
        height: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        height: 100vh;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        height: 100vh;
        opacity: 0;
    }
}

/* 수평선 애니메이션 (왼쪽에서 오른쪽으로) */
@keyframes growShrinkHorizontal7 {
    0% {
        width: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        width: 100vw;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0;
    }
}

@keyframes growShrinkHorizontal8 {
    0% {
        width: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        width: 100vw;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0;
    }
}

@keyframes growShrinkHorizontal9 {
    0% {
        width: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        width: 100vw;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0;
    }
}

/* 수평선 애니메이션 (오른쪽에서 왼쪽으로) */
@keyframes growShrinkHorizontal10 {
    0% {
        width: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        width: 100vw;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0;
    }
}

@keyframes growShrinkHorizontal11 {
    0% {
        width: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        width: 100vw;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0;
    }
}

@keyframes growShrinkHorizontal12 {
    0% {
        width: 0px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        width: 100vw;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0;
    }
}

/* XI 텍스트 스타일 (로고 컨테이너로 변경) */
.xi-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease;
    text-align: center;
}

.xi-text.show {
    opacity: 1;
}

/* 브랜드 로고 스타일 */
.brand-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: opacity 1s ease, transform 1s ease, clip-path 2s ease;
}

.brand-logo.show {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* 브랜드 로고 부분 등장 애니메이션 */
.brand-logo.reveal-part1 {
    clip-path: polygon(0 0, 25% 0, 25% 100%, 0% 100%);
}

.brand-logo.reveal-part2 {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0% 100%);
}

.brand-logo.reveal-part3 {
    clip-path: polygon(0 0, 75% 0, 75% 100%, 0% 100%);
}

.brand-logo.reveal-part4 {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* 대형 화면 (1200px 이상) */
@media screen and (min-width: 1200px) {
    .brand-logo {
        max-width: 250px;
    }
}

/* 태블릿 화면에서 로고 크기 조정 */
@media screen and (max-width: 1024px) {
    .brand-logo {
        max-width: 180px;
    }
}

/* 중간 태블릿 화면 */
@media screen and (max-width: 900px) {
    .brand-logo {
        max-width: 160px;
    }
}

/* 모바일 화면에서 로고 크기 조정 */
@media screen and (max-width: 768px) {
    .brand-logo {
        max-width: 140px;
    }
}

/* 작은 태블릿 화면 */
@media screen and (max-width: 600px) {
    .brand-logo {
        max-width: 120px;
    }
}

/* 작은 모바일 화면에서 로고 크기 조정 */
@media screen and (max-width: 480px) {
    .brand-logo {
        max-width: 100px;
    }
}

/* 매우 작은 모바일 화면 */
@media screen and (max-width: 360px) {
    .brand-logo {
        max-width: 80px;
    }
}

/* 세로 모드 (portrait) 최적화 */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .brand-logo {
        max-width: 120px;
    }
}

/* 가로 모드 (landscape) 최적화 */
@media screen and (min-height: 800px) and (orientation: portrait) {
    .brand-logo {
        max-width: 220px;
    }
} 
