@charset "utf-8";

/* =========================================
   HERO SLIDE - 메인 슬라이더
   ========================================= */

/* --- Slider Container --- */
#visual {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1080px;
    overflow: hidden;
    letter-spacing: -1px;
}

#visual .slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- Individual Slide --- */
#visual .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

#visual .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* --- Slide Images --- */
#visual .slide .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#visual .slide .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#visual .slide .m_img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#visual .slide .m_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Dark Overlay --- */
#visual .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* --- Ken Burns 효과 (줌 애니메이션) --- */
#visual .slide.active .img img,
#visual .slide.active .m_img img {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Slide Content (텍스트 오버레이) --- */
#visual .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#visual .slide-content .txt01 {
    text-align: center;
    color: #fff;
    padding: 0 0px;
    max-width: 900px;
}

/* --- 텍스트 등장 애니메이션 --- */
#visual .slide .slide-content .txt01 h2,
#visual .slide .slide-content .txt01 h3,
#visual .slide .slide-content .txt01 .desc,
#visual .slide .slide-content .txt01 .main_button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#visual .slide.active .slide-content .txt01 h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

#visual .slide.active .slide-content .txt01 h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

#visual .slide.active .slide-content .txt01 .desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

#visual .slide.active .slide-content .txt01 .main_button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* --- Typography --- */
#visual .slide-content .txt01 h2 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0px;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#visual .slide-content .txt01 h2.log {
    font-size: 28px;
    font-weight: 300;
}

#visual .slide-content .txt01 h3 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0px;
    margin-bottom: 22px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 -20px 0 rgba(0, 162, 255, 0.45);
}

#visual .slide-content .txt01 .desc {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- CTA Buttons --- */
#visual .main_button ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#visual .main_button ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    padding: 0 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#visual .main_button ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* --- Pagination Indicator --- */
.slide-pagination {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.slide-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
}

.slide-pagination .dot.active {
    background: #fff;
    width: 40px;
    border-radius: 6px;
}

.slide-pagination .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* --- Progress Bar (자동 재생 표시) --- */
.slide-progress {
    display: none;
}

/* =========================================
   RESPONSIVE - 태블릿 (1024px)
   ========================================= */
@media (max-width: 1024px) {
    #visual {
        height: 750px;
    }

    #visual .slide-content .txt01 h3 {
        font-size: 40px;
    }

    #visual .slide-content .txt01 h2 {
        font-size: 18px;
    }

    #visual .slide-content .txt01 .desc {
        font-size: 16px;
    }
}

/* =========================================
   RESPONSIVE - 모바일 (768px)
   ========================================= */
@media (max-width: 768px) {
    #visual {
        height: 100vh;
        min-height: 550px;
        max-height: 900px;
    }

    /* PC 이미지 숨기고 모바일 이미지 표시 */
    #visual .slide .img {
        display: none;
    }

    #visual .slide .m_img {
        display: block;
    }

    #visual .slide-content .txt01 h2 {
        font-size: 15px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    #visual .slide-content .txt01 h2.log {
        font-size: 18px;
    }

    #visual .slide-content .txt01 h3 {
        font-size: 30px;
        margin-bottom: 18px;
        line-height: 1.3;
    }

    #visual .slide-content .txt01 .desc {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    /* 모바일 줄바꿈 제어 */
    .pc_br {
        display: none;
    }

    .m_br {
        display: inline;
    }

    /* CTA 버튼 모바일 */
    #visual .main_button ul {
        gap: 12px;
    }

    #visual .main_button ul li a {
        min-width: auto;
        height: 35px;
        font-size: 14px;
    }

    .slide-pagination {
        bottom: 30px;
    }
}


/* --- 줄바꿈 기본 상태 --- */
.pc_br {
    display: inline;
}

.m_br {
    display: none;
}
