/* -------------------- 스타일 초기화 -------------------- */
html, body {
    overflow-y: scroll; /* 실제 스크롤 가능 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    background-color: #111113;
    color: #fff;
    user-select: none;
}

h1.title { font-size: 80px; font-weight: 800; }
p.title { font-size: 60px; font-weight: 400; margin: 10px 0; }
p.lable { font-weight: 100; font-size: 45px; letter-spacing: 75px; }
p.lable span { letter-spacing: 0; }

article { text-align: center; }

/* 페이지가 아래로 이동 + 블러 증가 + 투명해지며 사라지는 효과 */
.page-drop-blur {
    animation: pageDropBlur 0.7s ease forwards;
}

@keyframes pageDropBlur {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(120px); /* 아래로 더 크게 드랍 */
        filter: blur(12px); /* 흐려지면서 사라짐 */
    }
}


header {
    width: 100%;
    background: transparent;
    position: fixed;
    z-index: 99;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 20px 100px;
}

header a.back-bt {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    cursor: pointer;

    background: transparent;
    --line-color: #fff;
    transition: 0.3s ease;
}

/* X (두 개의 선) */
header a.back-bt::before,
header a.back-bt::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--line-color);

    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: 0.3s ease;
}

/* 두 번째 선 */
header a.back-bt::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 🔥 호버 시: X에만 빛이 들어옴 */
header a.back-bt:hover::before,
header a.back-bt:hover::after {
    background: lime;
    box-shadow: 0 0 6px lime, 0 0 12px lime, 0 0 18px lime;
}

/* -------------------- section.uam -------------------- */
section.uam {
    padding: 100px;
}

div.lines {
    width: 100%;
}
div.lines .line {
    width: 100%;
    height: 2px;
    background: url('images/uam-line01.png') no-repeat center / cover;
    margin-bottom: 30px;
}
div.lines .line[class*=last] { margin-bottom: 0; }

div.uam-img {
    position: relative;
    width: 100%;
    height: 70vh;
    background: url('images/uam\ 배경.jpeg') no-repeat center / contain;
    background-color: #111113;
    overflow: hidden;
    z-index: -1;
}

div.main-title {
    text-align: center;
    margin: 50px auto 100px;
}
div.main-title p { font-weight: 100; font-size: 25px; line-height: 150%; }

a.logo {
    display: block;
    width: 237px;
    height: 68px;
    margin: 0 auto;
    background: url('images/logos/kgfc로고-국문포함.png') no-repeat center / contain;
}

div.title-img {
    width: 100%;
    height: 150px;
    background: url('images/uss 타이틀 이미지.png') no-repeat center / cover;
    background-size: contain;
}

/* -------------------- 기본 트랜지션 공통 -------------------- */
.uam-wrap article h1,
.uam-wrap article p.title,
.uam-wrap article p.lable,
.uam-wrap .lines .line,
.uam-img {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* -------------------- uam-wrap loaded -------------------- */
.uam-wrap.loaded article h1 { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.uam-wrap.loaded article p.title { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.uam-wrap.loaded article p.lable { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

.uam-wrap.loaded .lines .line:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.uam-wrap.loaded .lines .line:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.uam-wrap.loaded .lines .line:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.85s; }

.uam-wrap.loaded .uam-img { opacity: 1; transform: translateY(0); transition-delay: 1s; }

/* -------------------- 네온 라인 -------------------- */
.neon-line,
.neon-line-horizontal {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0 0 6px #00ff99)
            drop-shadow(0 0 12px #00ff99)
            drop-shadow(0 0 16px #00ffbb);
}

.neon-line {
    top: 0;
    width: 2px;
    height: 100vh;
    background: repeating-linear-gradient(to bottom, rgba(0,255,120,0.8), rgba(0,255,120,0.8) 4px, transparent 4px, transparent 20px);
}

.neon-line-horizontal {
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(to right, rgba(0,255,120,0.8), rgba(0,255,120,0.8) 4px, transparent 4px, transparent 20px);
}

/* 깜빡임 애니메이션 */
@keyframes flickerCycle {
    0%,5% { opacity:0; }
    6% { opacity:1; }
    7% { opacity:0.3; }
    8% { opacity:1; }
    10% { opacity:0.5; }
    12% { opacity:1; }
    20% { opacity:0.2; }
    24% { opacity:0; }
    100% { opacity:0; }
}

/* -------------------- section.uatm -------------------- */
section.uatm {
    width: 100%;
    height: 100%;
    padding: 0 100px 0;
    z-index: 30;
    position: relative;
}

section.uatm div.uatm-img {
    width: 70%;
    height: 70vh;
    background: url('images/uatm\ 배경.jpg') no-repeat center / cover;
    background-size: contain;
    margin: 100px auto;
    border: 2px solid rgb(0, 255, 140);
    border-radius: 20px;
}
section.uatm p.lable {
    letter-spacing: 60px;
}
/* 초기 상태 (스크롤 전은 투명+아래) */
.uatm article h1,
.uatm article p.title,
.uatm article p.lable {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 등장 상태 */
.uatm.loaded article h1,
.uatm.loaded article p.title,
.uatm.loaded article p.lable {
    opacity: 1;
    transform: translateY(0);
}

/* 순차 딜레이 */
.uatm.loaded article h1 { transition-delay: 0.1s; }
.uatm.loaded article p.title { transition-delay: 0.25s; }
.uatm.loaded article p.lable { transition-delay: 0.4s; }

/* 가려짐 방지 */
.uatm {
    position: relative;
    z-index: 10;
}
/* uatm-img 초기 상태 */
.uatm .uatm-img {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 등장 상태 */
.uatm.loaded .uatm-img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s; /* 텍스트 3개 다음에 자연스럽게 등장 */
}



.to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 50px;
    padding: 12px 14px;
    background: none;
    color: #fff;
    border-radius: 50px;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 14px;
    z-index: 999;
    opacity: 0;               /* 기본은 숨김 */
    transition: opacity 0.4s; /* 부드러운 페이드 */
    pointer-events: none;      /* 숨김 상태에서 클릭 불가 */
    transition: 300ms;
    }

    .to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    }

    .to-top-btn:hover {
    border-color: lime;
    box-shadow: 0 0 6px lime, 0 0 12px lime, 0 0 20px lime;
    transition: 0.5s;
    color: lime;
    }
