/* 인트로 로딩 페이지 스타일 */

/* 인트로 컨테이너 */
.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1E2A78;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.intro-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-container.hidden {
    display: none;
}

/* 배경 그래프 파형 실루엣 */
.wave-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    opacity: 0.15;
    overflow: hidden;
}

.wave-path {
    fill: none;
    stroke: #4169E1;
    stroke-width: 2;
    opacity: 0.3;
}

.wave-path-1 {
    animation: waveMove1 8s ease-in-out infinite;
}

.wave-path-2 {
    animation: waveMove2 10s ease-in-out infinite;
}

.wave-path-3 {
    animation: waveMove3 12s ease-in-out infinite;
}

@keyframes waveMove1 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
}

@keyframes waveMove2 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes waveMove3 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-30px); }
}

/* 중앙 콘텐츠 */
.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

/* 로고 심볼 - 그래프 파형 실루엣 */
.logo-symbol {
    width: 200px;
    height: 120px;
    margin: 0 auto 30px;
    opacity: 0;
    animation: logoFadeIn 0.2s ease-out 0s forwards;
}

.logo-symbol svg {
    width: 100%;
    height: 100%;
}

.logo-path {
    stroke: #4169E1;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: logoDraw 0.8s ease-out 0.2s forwards;
}

.logo-path-main {
    stroke: #4169E1;
    stroke-width: 4;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: logoDraw 0.6s ease-out 0.2s forwards;
}

.logo-path-secondary {
    stroke: rgba(65, 105, 225, 0.7);
    stroke-width: 2.5;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
}

.logo-path-accent {
    stroke: rgba(65, 105, 225, 0.5);
    stroke-width: 2;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
}

.logo-path circle {
    fill: #4169E1;
    filter: drop-shadow(0 0 6px rgba(65, 105, 225, 0.8));
}

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

@keyframes logoDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* 그래프 완성 후 이펙트 */
.logo-symbol svg {
    animation: graphPulse 0.6s ease-out 1.0s;
}

@keyframes graphPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(65, 105, 225, 0));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(65, 105, 225, 0.8));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(65, 105, 225, 0.4));
    }
}

/* 그래프 선에 글로우 효과 */
.logo-path-main {
    filter: drop-shadow(0 0 8px rgba(65, 105, 225, 0.6));
    animation: pathGlow 1.2s ease-out 0.2s;
}

@keyframes pathGlow {
    0% {
        stroke-dashoffset: 2000;
        filter: drop-shadow(0 0 0px rgba(65, 105, 225, 0));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(65, 105, 225, 0.8));
    }
    100% {
        stroke-dashoffset: 0;
        filter: drop-shadow(0 0 8px rgba(65, 105, 225, 0.6));
    }
}

/* 점들이 순차적으로 나타나는 효과 */
.logo-path circle {
    opacity: 0;
    transform: scale(0);
    animation: pointPop 0.3s ease-out forwards;
}

.logo-path circle:nth-child(4) {
    animation-delay: 0.6s;
}

.logo-path circle:nth-child(5) {
    animation-delay: 0.7s;
}

.logo-path circle:nth-child(6) {
    animation-delay: 0.8s;
}

.logo-path circle:nth-child(7) {
    animation-delay: 0.9s;
}

@keyframes pointPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 보조 곡선들도 약간의 지연을 두고 그려지게 */
.logo-path-secondary {
    animation: logoDraw 0.6s ease-out 0.4s forwards;
}

.logo-path-accent {
    animation: logoDraw 0.5s ease-out 0.5s forwards;
}

/* StableLab 텍스트 */
.logo-text {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    transform: translateY(30px);
    opacity: 0;
    animation: textSlideIn 0.4s ease-out 1.0s forwards;
    letter-spacing: -0.02em;
}

@keyframes textSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 슬로건 */
.slogan {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    opacity: 0;
    animation: sloganFadeIn 0.4s ease-out 1.4s forwards;
    letter-spacing: 0.02em;
}

@keyframes sloganFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 컨셉 텍스트 */
.concept-text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: conceptFadeIn 0.6s ease-out 1.8s forwards;
}

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

/* 전체 밝아지는 효과 */
.intro-container.brighten {
    background: linear-gradient(180deg, #1E2A78 0%, #2A3A8F 100%);
    animation: brighten 0.8s ease-out 2.2s forwards;
}

@keyframes brighten {
    to {
        background: linear-gradient(180deg, #4169E1 0%, #1E2A78 100%);
    }
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    .logo-symbol {
        width: 160px;
        height: 96px;
        margin-bottom: 20px;
    }

    .logo-text {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .slogan {
        font-size: 16px;
    }

    .concept-text {
        font-size: 12px;
        bottom: 30px;
    }
}

