/* ----------------- 세로 스크롤 숨기기, 스크롤 가능 ----------------- */
html, body {
    overflow-y: scroll; /* 실제 스크롤은 가능 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
    user-select: none;
}
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* ----------------- 기본 바디 ----------------- */
body {
    background-color: #111113;
    color: #fff;
    background: url('images/Business\ Field_bg.png') no-repeat center / cover;
    user-select: none; /* 텍스트 선택 금지 */
}

/* 페이지가 아래로 이동 + 블러 증가 + 투명해지며 사라지는 효과 */
.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.Business-Field {
    padding: 0 150px;
    position: relative;
}

div.headline {
    margin-top: 100px;
    text-align: center;
}

div.headline h1 {
    font-size: 80px;
    font-weight: 800;
    margin: 0;
}

div.headline h2 {
    font-size: 80px;
    font-weight: 100;
    letter-spacing: 50px;
    margin: 0;
}

div.headline h2 span {
    letter-spacing: 0;
}

div.headline h3 {
    font-size: 30px;
    font-weight: 200;
    margin: 40px 0 176px;
}

/* ----------------- 카드 영역 ----------------- */
div.cards {
    width: 100%;
    display: flex;
    justify-content: center;
    /* gap: 50px; 카드 간격 */
    margin: 0 auto;
    margin-top: 200px;
}

/* ----------------- box-wrap 및 SVG 정렬 ----------------- */
.box-wrap {
    position: relative;
    width: 388px;  /* 가장 큰 도형 기준 */
    height: 1154px; /* 가장 큰 도형 기준 */
    margin: 0 auto; /* 가로 중앙 */
}

.border-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: visible;
}

/* ----------------- SVG 애니메이션 ----------------- */
.animated-rect {
    filter: drop-shadow(0 0 10px #2FFF97);
    opacity: 0.8;
    animation: flicker 1s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
/* ----------- center icon -------- */

div.center-icon {
    width: 20px;
    height: 20px;
    background-color: #2FFF97; /* 녹색 */
    border-radius: 50%; /* 완전한 원 */
    
    /* 네온 아웃글로우 효과 */
    box-shadow:
        0 0 5px #2FFF97,
        0 0 10px #2FFF97,
        0 0 15px #2FFF97,
        0 0 20px #2FFF97;
    
    /* 위치 중앙 (필요시) */
    position: absolute;
    right: 183px;
    top: 92px;
    /* 펄스 효과 애니메이션 */
    animation: neonPulse 1.2s ease-in-out infinite;
}

/* 펄스 조명 애니메이션 */
@keyframes neonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 5px #2fff47,
            0 0 10px #2fff47,
            0 0 15px #2fff47,
            0 0 20px #2fff47;
    }
    50% {
        transform: scale(1.2);
        box-shadow:
            0 0 10px #2fff47,
            0 0 20px #2fff47,
            0 0 30px #2fff47,
            0 0 40px #2fff47;
    }
}
/* ----------------- 스크롤 등장 애니메이션 ----------------- */
/* 초기 상태: 투명 + 약간 이동 */
/* 초기 상태: 투명 + 더 멀리 이동 */
.box-wrap.from-top {
    transform: translateY(-100px); /* 위에서 내려오는 요소 */
}
.box-wrap.from-bottom {
    transform: translateY(100px); /* 아래에서 올라오는 요소 기본 */
}

/* 2번째, 4번째 요소는 좀 더 아래에서 시작 */
.box-wrap.from-bottom:nth-of-type(2),
.box-wrap.from-bottom:nth-of-type(4) {
    transform: translateY(150px); 
}

/* 스르륵 효과 느리게 */
.box-wrap.from-top,
.box-wrap.from-bottom {
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease; /* 기존 0.8s → 1.5s */
}

/* 모든 from-bottom 요소 기본값 */
.box-wrap.from-bottom {
    transform: translateY(30px); /* 1차 기본값 */
}

/*  -------- 2번째와 4번째 .box-wrap 아래로 50px 내리기 ------- */
div.cards .box-wrap:nth-child(2),
div.cards .box-wrap:nth-child(4) {
    margin-top: 100px; /* 원하는 만큼 조정 */
}
/* 스크롤 시 보여질 때 */
.box-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ----------------- innertext ----------------- */
div.innertext {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 252px;
}

div.innertext h1 {
    font-weight: 600;
    font-size: 35px;
    margin: 0 0 20px;
}

div.innertext h2 {
    margin-top: 100px;
    font-size: 20px;
    font-weight: 200;
    line-height: 130%;
    letter-spacing: -0.38px;
}

/* ----------------- 로고 ----------------- */
div.logo {
    width: 237px;
    height: 68px;
    margin: 300px auto 100px;
    background: url('images/logos/kgfc로고-국문포함.png') no-repeat center / cover;
    background-size: contain;
}

/* ------------- 애니메이션 ------------ */

/* headline 초기 상태: 투명 */
div.headline h1,
div.headline h2,
div.headline h3 {
    opacity: 0;
    transition: opacity 1s ease;
}

/* 순차적으로 보여주기 위해 delay 적용 */
div.headline h1.visible {
    opacity: 1;
    transition-delay: 0.2s;
}

div.headline h2.visible {
    opacity: 1;
    transition-delay: 0.4s;
}

div.headline h3.visible {
    opacity: 1;
    transition-delay: 0.6s;
}


.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;
    }
