body {
    background: #111113;
    color: #fff;
    user-select: none;
}
body::before {
    content: "";
    position: fixed;
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: #00ff80;
    filter: blur(250px);
    opacity: 0.06;
    z-index: 1;
}
/* 페이지가 아래로 이동 + 블러 증가 + 투명해지며 사라지는 효과 */
.page-drop-blur {
    animation: pageDropBlur 0.7s ease forwards;
}
/*  --------------- 스타일 초기화 --------------- */
    /* 세로 스크롤 숨기기, 스크롤 가능 */
    html, body {
        overflow-y: scroll; /* 실제 스크롤은 가능 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE, Edge */
    }
    /* Chrome, Safari, Opera */
    html::-webkit-scrollbar, 
    body::-webkit-scrollbar {
        display: none;
    }
body {
    background-color: #111113;
    color: #fff;
    user-select: none; /* 텍스트 선택 금지 */
}

@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;
}

h1 {
    font-size: 80px;
    font-weight: 800;
}
p {
    font-size: 30px;
    font-weight: 100;
    letter-spacing: 70px;
    font-size: 80px;
    line-height: 150%;
}
p span {
    letter-spacing: 0;
}
/*---------------- section.business-area --------------- */
section.business-area {
    position: relative;
    z-index: 1;
    padding: 100px 100px 100px;
}
section.business-area *:not(.light-grid) {
    z-index: 10;
}
article {
    text-align: center;
}
div.content {
    display: flex;
    gap: 40px;
    margin: 130px auto 0;
    justify-content: center;
}
div.right-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
/* 오른쪽 끝 카드들 (2, 4, 6 ...) → 오른쪽 gap 제거 */
div.content > div:nth-child(2) {
    margin-right: 0 !important;
}
div.content > div:nth-child(4) {
    margin-right: 0 !important;
}
.text-container h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}
.text-container h3 {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}
.text-container p {
    text-align: left;
    font-size: 20px;
    letter-spacing: normal;
}
.text-container[class*=right] {
    text-align: right;
}
.text-container[class*=right] p {
    text-align: right;
}
div.dc {
    background: #111113 url('images/systemdevelopmentconstruction.png') no-repeat right;
    background-size: contain;
    border: 5px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    padding-bottom: 40px;  
    padding-top: 60px;
    padding-right: 180px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}
/* 레이어 블러 */
div.dc::after {
    content: "";
    position: absolute;
    right: -40px;    /* 약간 박스 밖에서 시작 */
    bottom: 250px;
    width: 318px;    /* 원 크기 */
    height: 318px;
    background: #00FF80; /* 붉은색 + 약간 투명 */
    border-radius: 50%;
    filter: blur(70px); /* 부드럽게 확산 */
    pointer-events: none;
    z-index: -1; /* 배경 뒤에 */
    opacity: 30%;
}
div.cs {
    background: #111113 url('images/사업영역-관제서비스\ 배경.png') no-repeat right;
    height: 500px;
    padding-top: 60px;
    padding-left: 30px;
    padding-bottom: 300px;
    padding-right: 594px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}
div.cs::after {
    content: "";
    position: absolute;
    right: -110px;    /* 약간 박스 밖에서 시작 */
    bottom: -120px;
    width: 444px;    /* 원 크기 */
    height: 444px;
    background: #00FF80; 
    border-radius: 50%;
    filter: blur(80px); /* 부드럽게 확산 */
    pointer-events: none;
    z-index: -1; /* 배경 뒤에 */
    opacity: 30%;
}
/* 왼쪽 하단 원 — 새로 추가된 before */
div.cs::before {
    content: "";
    position: absolute;
    left: -40px;  /* 좌측으로 배치 */
    bottom: -40px; /* 하단 동일 */
    width: 284px;
    height: 284px;
    background: #00FF80;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}
div.sm {
    padding-left: 30px;
    padding-bottom: 40px;
    padding-top: 190px;
    padding-right: 440px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    background: #111113 url('images/사업영역-시스템\ 유지보수\ 배경.png') no-repeat right;
}
div.sm::after {
    content: "";
    position: absolute;
    left: -40px;    /* 약간 박스 밖에서 시작 */
    bottom: -100px;
    width: 318px;    /* 원 크기 */
    height: 318px;
    background: #00FF80;
    border-radius: 50%;
    filter: blur(70px); /* 부드럽게 확산 */
    pointer-events: none;
    z-index: -1; /* 배경 뒤에 */
    opacity: 30%;
}
div.bs {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    padding-right: 30px;
    padding-bottom: 40px;
    padding-top: 160px;
    padding-left: 466px;
    background: #111113 url('images/solution.png') no-repeat left;
    background-position: 40px center;
}
div.bs::after {
    content: "";
    position: absolute;
    right: -110px;    /* 약간 박스 밖에서 시작 */
    bottom: -120px;
    width: 444px;    /* 원 크기 */
    height: 444px;
    background: #00FF80; 
    border-radius: 50%;
    filter: blur(80px); /* 부드럽게 확산 */
    pointer-events: none;
    z-index: -1; /* 배경 뒤에 */
    opacity: 30%;
}
/* 왼쪽 하단 원 — 새로 추가된 before */
div.bs::before {
    content: "";
    position: absolute;
    left: -40px;  /* 좌측으로 배치 */
    top: -40px; /* 하단 동일 */
    width: 284px;
    height: 284px;
    background: #00FF80;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}
/* logo */
a.logo {
    display: block;
    width: 237px;
    height: 68px;
    margin:  150px auto 0;
    background: #111113 url('images/logos/kgfc로고-국문포함.png') no-repeat center / cover;
    background-size: contain;
    z-index: 2;
}
/* ! ------------ 애니메이션 및 모핑 ----------------- */
/* 처음엔 투명 + 아래로 조금 내려간 상태 */
.title {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease-out forwards;
}

/* h1은 즉시 */
h1.title {
    animation-delay: 0s;
}

/* p.title은 0.3초 뒤 */
p.title {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 공통 애니메이션 초기 상태 */
.content > div {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease-out forwards;
}

/* 하나씩 시간차 주기 */
.content > div:nth-child(1) {
    animation-delay: 0.4s;
}
.content > div:nth-child(2) {
    animation-delay: 0.6s;
}
.content > div:nth-child(3) {
    animation-delay: 0.8s;
}
.content > div:nth-child(4) {
    animation-delay: 1.0s;
}

/* 재사용되는 애니메이션 */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

    .light-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* body보다 앞, 콘텐츠보다 뒤면 2~4 추천 */
    mix-blend-mode: screen;
    opacity: 0.35; /* 전체 투명도 */

    background:
        /* 세로 라인 */
        repeating-linear-gradient(
        to right,
        rgba(255,255,255,0.15) 0px,
        rgba(255,255,255,0.15) 2px,
        transparent 2px,
        transparent 120px
        ),
        /* 가로 라인 */
        repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.10) 0px,
        rgba(255,255,255,0.10) 2px,
        transparent 2px,
        transparent 120px
        );
    
    animation: pulseMove 6s linear infinite;
    }

    @keyframes pulseMove {
    0% {
        background-position: 0px 0px, 0px 0px;
    }
    100% {
        background-position: 200px 200px, 200px 200px;
    }
    }

/* ------------------------- 반응형 ------------------------- */

/* 1920px ~ (FHD 기준 최적화) */
@media (max-width: 1920px) {
    section.business-area {
        padding: 80px 80px;
    }
    div.content {
        gap: 32px;
        margin-top: 100px;
    }

    /* 카드 공통 축소 */
    .dc, .cs, .sm, .bs {
        padding: 180px 140px 40px 30px;
        background-size: 55%;
    }
}

/* 1600px */
@media (max-width: 1600px) {
    section.business-area {
        padding: 70px 70px;
    }
    
    div.content {
        gap: 28px;
        margin-top: 80px;
    }

    /* 카드 내용이 너무 넓지 않게 조정 */
    .dc, .cs, .sm, .bs {
        padding: 160px 120px 40px 30px;
        background-size: 50%;
    }
}

/* 1400px */
@media (max-width: 1400px) {
    section.business-area {
        padding: 60px 50px;
    }
    div.content {
        gap: 26px;
    }

    /* 카드 */
    .dc, .cs, .sm, .bs {
        padding: 140px 100px 40px 30px;
        background-size: 45%;
    }
}

/* 1200px (노트북 일반 폭) */
@media (max-width: 1200px) {

    /* 카드가 너무 세로로 길어지는 것 방지 */
    .dc, .cs, .sm, .bs {
        padding: 120px 60px 40px 30px;
        background-size: 40%;
    }

    /* 텍스트 간격 */
    .text-container h2 { font-size: 32px; }
    .text-container h3 { font-size: 20px; }
    .text-container p  { font-size: 18px; }
}

/* 992px (태블릿 가로) */
@media (max-width: 992px) {
    section.business-area {
        padding: 50px 30px;
    }
    div.content {
        gap: 20px;
    }

    /* 카드 전체를 세로형 UI로 */
    .dc, .cs, .sm, .bs {
        padding: 80px 30px 30px 30px;
        background-position: center bottom;
        background-size: 70%;
    }
}

/* 768px (태블릿 세로) */
@media (max-width: 768px) {
    .dc, .cs, .sm, .bs {
        padding: 60px 20px 30px 20px;
        background-size: 80%;
    }

    h1.title { font-size: 48px; }
    p.title  { font-size: 40px; }
}

/* 480px (모바일) */
@media (max-width: 480px) {
    section.business-area {
        padding: 40px 15px;
    }
    div.content {
        gap: 16px;
    }

    .dc, .cs, .sm, .bs {
        padding: 50px 15px 25px 15px;
        background-size: 100%;
    }

    .text-container h2 { font-size: 24px; }
    .text-container h3 { font-size: 16px; }
    .text-container p  { font-size: 14px; }
}
.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;
    }