/*  --------------- 스타일 초기화 --------------- */
    /* 세로 스크롤 숨기기, 스크롤 가능 */
    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; /* 텍스트 선택 금지 */
}
h1 {
    font-size: 80px;
    font-weight: 800;
}
h2 {
    font-size: 30px;
    font-weight: 200;
}
figure {
    z-index: 3;
}
section {
    margin-bottom: 200px;
}
button {
    border: none;
    cursor: pointer;
}
a {
    cursor: pointer;
}


/* ! ------------------------ header ---------------------- */
header {
    z-index: 99;
    width: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
    background: transparent;
    backdrop-filter: none; /* 초기에는 블러 없음 */
}
header.bg-visible {
    background: #111113;
    -webkit-backdrop-filter: blur(10px); /* 사파리 대응 */
}
.scroll-progress {
    width: 100%;
    height: 5px;
    position: absolute;
    left: 0;
    top: 0;
}
.scroll-progress .bar {
    width: 0%;
    height: 2px;

    /* 녹색 계열 그라데이션 */
    background: linear-gradient(90deg, #00cc55, #33cc77, #33ccaa);

    border-radius: 5px;

    /* 녹색 네온 아웃글로우 */
    box-shadow:
        0 0 5px #00ff66,
        0 0 10px #00ff66,
        0 0 20px #00ff99,
        0 0 30px #00ff99,
        0 0 40px #00ffcc,
        0 0 50px #00ffcc;

    transition: width 0.2s ease-out;
}
h1.logo {
    width: 120px;
    height: 60px;
    background: url('images/logos/kgfc로고-국문포함.png') no-repeat center / cover;
    background-size: contain; /*👈*/
}
div.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
a.contect {
    color: #fff;
}
button.all-menu {
    width: 38px * 1.3;  /* 38px → 49.4px */
    height: 38px * 1.3; /* 38px → 49.4px */
    width: 50px;         /* 반올림 */
    height: 50px;        /* 반올림 */
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;    /* 패딩도 약간 늘림 */
}

button.all-menu span {
    display: block;
    width: 24px * 1.3;  /* 24px → 31.2px */
    width: 31px;         /* 반올림 */
    height: 3px * 1.3;  /* 3px → 3.9px */
    height: 4px;         /* 반올림 */
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

button.all-menu:hover span {
    background: lime;
    box-shadow: 0 0 8px lime, 0 0 12px lime, 0 0 20px lime;
}

/* ---------------------- 고정 슬라이드 메뉴 ------------------- */
:root {
    --menu-speed-open: 400ms;     /* 열릴 때 속도 */
    --menu-speed-close: 2000ms;   /* 닫힐 때 속도 */
}
.full-menu {
    width: 25vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;   /* 화면 밖 */
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.64));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1200;                     /* header 위 */
    /* 닫힐 때 기본 속도 적용 */
    transition: right var(--menu-speed-close) ease;
}
.full-menu-text {
    padding: 130px 98px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 120px;
    justify-content: center;
}
.full-menu .sub-menus {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.full-menu p.head {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 40px;
}
.full-menu a {
    font-weight: 200;
    font-size: 15px;
}
/* 열릴 때: right = 0, 그리고 속도 변수 변경 */
.full-menu.visible {
    right: 0;
    transition: right var(--menu-speed-open) ease;
}
.full-menu .close {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 60px;
    height: 60px;

    transform: translateX(-50%) rotate(0deg);

    /* 원(테두리/배경) 제거 */
    border: none;
    background: transparent;
    cursor: pointer;

    transition: transform 0.4s ease;
}

/* X 아이콘 (두 개의 대각선 라인) */
.full-menu .close::before,
.full-menu .close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 2px;
    background: #fff;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.full-menu .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.full-menu .close:hover::before,
.full-menu .close:hover::after {
    background: lime;
    box-shadow: 0 0 6px lime, 0 0 12px lime;
}

.sub-menus a {
    color: white; /* 기본 색상 */
    transition: color 0.3s ease; /* 색상이 0.3초 동안 부드럽게 변함 */
}
div.sub-menus a:hover {
    color: rgb(0, 255, 119);
}



/*! ----------------------------- main-visual -------------------------- */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh; /* 필요하면 조절 */
    overflow: hidden;
}
.main-visual > figure {
    position: absolute;
    left: 100px;
    bottom: 245px;
}
/* -------------------- a.more ------------------ */
.main-visual figure a.more {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 175px;
    height: 43px;
    font-size: 22px;
    color: #fff;
    border-radius: 50px;
    /* 유리 느낌 배경 */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    transition: 500ms;
}
.main-visual figure a.more:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(38,57,90,0.12);
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}
/* 내부 물결(데이터 URI는 **한 줄**로) */
.main-visual figure a.more::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency="0.008" numOctaves="3"/><feDisplacementMap in="SourceGraphic" scale="18"/></filter><rect width="400" height="400" filter="url(#f)"/></svg>');
    background-position: center;
    background-size: cover;
    opacity: 0.25;
    mix-blend-mode: soft-light;
    animation: liquidMove 8s infinite ease-in-out;
}
@keyframes liquidMove {
    0% { transform: translate(-5%, -5%) scale(1.05); }
    50% { transform: translate(5%, 5%) scale(1.08); }
    100% { transform: translate(-5%, -5%) scale(1.05); }
}
.main-visual figure a.more::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.0) 100%);
    opacity: 0.7;
    mix-blend-mode: screen;
    animation: highlightMove 3s infinite linear;
}
@keyframes highlightMove {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}
/* ------------------------------------------------------------------ */

.main-visual img {
    width: 17px;
    display: block;
}
.main-visual figure h2 {
    margin: 10px 0 30px;
}
div.down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
div.down h2 {
    font-size: 20px;
    letter-spacing: 5px;
}
.down .arrow {
    stroke: #00ff80;                /* 기본 네온 그린 */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: 0.25s ease;
    stroke: #00ff80;
    filter: drop-shadow(0 0 6px #00ff80);
    margin-top: 10px;
    /* 🔥 아래→위로 무한 반복 애니메이션 */
    animation: arrowBounce 1.2s ease-in-out infinite;
}
/* 🔥 화살표 이동 keyframes */
@keyframes arrowBounce {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px); /* 아래로 이동 */
        opacity: 0.6;              /* 살짝 흐려짐 */
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
.video-slider, .swiper-wrapper, .swiper-slide {
    width: 100%;
    height: 80vh; /* main-visual 높이와 동일 */
    position: relative;
}
.video-slider {
    width: 100%;
    height: 100vh;
}
.video-slider video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    position: relative;
}
.video-slider .swiper-slide figure {
    position: absolute;
    left: 100px;
    top: 450px;
    z-index: 10; /* 영상 위로 올림 */
}
/* 슬라이드 공통 딤 처리 + 하단 페이드 */
.video-slider .overlay {
    position: absolute;
    inset: 0; /* top/right/bottom/left 0 */
    z-index: 5; /* 영상 위, figure/텍스트 아래 */
    pointer-events: none; /* 클릭 방해 안 함 */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,       /* 상단 살짝 딤 */
        rgba(0, 0, 0, 0.2) 70%,      /* 중간 유지 */
        #111113 100%                 /* 하단 배경색과 자연스러운 연결 */
    );
}

/*! --------------------------- section.intro ---------------------------- */
section.intro {
    padding: 0 124px;
}
section.intro figure {
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}
.intro figure h1,
.intro figure h2 {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}
/* 보여질 때의 상태 */
.intro.in-view figure h1,
.intro.in-view figure h2 {
    opacity: 1;
    transform: translateY(0);
}

/* 시간차 연출 */
.intro.in-view figure h1 { transition-delay: 0.1s; }
.intro.in-view figure h2 { transition-delay: 0.25s; }
section.intro h2 {
    margin-top: 10px;
    margin-bottom: 200px;
}
.intro-card {
    display: flex;
    justify-content: space-between;
}
.card-image-service {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    background: url('images/controlservice.png') no-repeat center / cover;
}
.card-image-build {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    background: url('images/systemdevelopmentconstruction.png') no-repeat center / cover;
}
.card-image-maintenance {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    background: url('images/maintenance.png') no-repeat center / cover;
}
.card-image-solution {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    background: url('images/solution.png') no-repeat center / cover;
    background-size: contain;
}
/* Reset and base styles */
/* CSS Variables */
:root {
        --electric-border-color: #00ff73;
        --electric-light-color: oklch(from var(--electric-border-color) l c h);
        --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
        --color-neutral-900: oklch(0.185 0 0);
    }
        /* Main container */
        .main-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        /* SVG positioning */
        .svg-container {
            position: absolute;
        }
        /* Card container */
        .card-container {
            padding: 2px;
            border-radius: 24px;
            position: relative;
            background: linear-gradient(-30deg,
                    var(--gradient-color),
                    transparent,
                    var(--gradient-color)),
                linear-gradient(to bottom,
                    var(--color-neutral-900),
                    var(--color-neutral-900));
        }
        /* Inner container */
        .inner-container {
            position: relative;
        }
        /* Border layers */
        .border-outer {
            border: 2px solid rgba(72, 186, 221, 0.5);
            border-radius: 24px;
            padding-right: 4px;
            padding-bottom: 4px;
        }
        .main-card {
            width: 350px;
            height: 500px;
            border-radius: 24px;
            border: 2px solid var(--electric-border-color);
            margin-top: -4px;
            margin-left: -4px;
            filter: url(#turbulent-displace);
        }
        /* Glow effects */
        .glow-layer-1 {
            border: 2px solid rgba(72, 166, 221, 0.6);
            border-radius: 24px;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            filter: blur(1px);
        }
        .glow-layer-2 {
            border: 2px solid var(--electric-light-color);
            border-radius: 24px;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            filter: blur(4px);
        }
        /* Overlay effects */
        .overlay-1 {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 24px;
            opacity: 1;
            mix-blend-mode: overlay;
            transform: scale(1.1);
            filter: blur(16px);
            background: linear-gradient(-30deg,
                    white,
                    transparent 30%,
                    transparent 70%,
                    white);
        }
        .overlay-2 {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 24px;
            opacity: 0.5;
            mix-blend-mode: overlay;
            transform: scale(1.1);
            filter: blur(16px);
            background: linear-gradient(-30deg,
                    white,
                    transparent 30%,
                    transparent 70%,
                    white);
        }
        /* Background glow */
        .background-glow {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 24px;
            filter: blur(32px);
            transform: scale(1.1);
            opacity: 0.3;
            z-index: -1;
            background: linear-gradient(-30deg,
                    var(--electric-light-color),
                    transparent,
                    var(--electric-border-color));
        }
        /* Content container */
        .content-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        /* Content sections */
        .content-top {
            display: flex;
            flex-direction: column;
            padding: 48px;
            padding-bottom: 16px;
            height: 100%;
            gap: 20px;
        }
        .content-bottom {
            display: flex;
            flex-direction: column;
            padding: 48px;
            padding-top: 16px;
        }
        /* Scrollbar glass component */
        .scrollbar-glass {
            background: radial-gradient(47.2% 50% at 50.39% 88.37%,
                    rgba(255, 255, 255, 0.12) 0%,
                    rgba(255, 255, 255, 0) 100%),
                rgba(255, 255, 255, 0.04);
            position: relative;
            transition: background 0.3s ease;
            border-radius: 14px;
            width: fit-content;
            height: fit-content;
            padding: 8px 16px;
            text-transform: uppercase;
            font-weight: bold;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
        }
        .scrollbar-glass:hover {
            background: radial-gradient(47.2% 50% at 50.39% 88.37%,
                    rgba(255, 255, 255, 0.12) 0%,
                    rgba(255, 255, 255, 0) 100%),
                rgba(255, 255, 255, 0.08);
        }
        .scrollbar-glass::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 1px;
            background: linear-gradient(150deg,
                    rgba(255, 255, 255, 0.48) 16.73%,
                    rgba(255, 255, 255, 0.08) 30.2%,
                    rgba(255, 255, 255, 0.08) 68.2%,
                    rgba(255, 255, 255, 0.6) 81.89%);
            border-radius: inherit;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: xor;
            -webkit-mask-composite: xor;
            pointer-events: none;
        }
        /* Typography */
        .title {
            font-size: 25px;
            font-weight: 500;
            margin-top: auto;
            text-align: center;
        }
        .description {
            font-size: 15px;
            opacity: 0.5;
            text-align: center;
        }
        /* Divider */
        .divider {
            margin-top: auto;
            border: none;
            height: 1px;
            background-color: currentColor;
            opacity: 0.1;
            mask-image: linear-gradient(to right, transparent, black, transparent);
            -webkit-mask-image: linear-gradient(to right,
                    transparent,
                    black,
                    transparent);
        }



/*!  ------------------------- section.project ------------------------ */
section.project {
    padding: 0 120px;
    margin-bottom: 0;
}
section.project figure {
    text-align: center;
}
section.project figure h2 {
    margin-top: 20px;
}
div.projects {
    display: flex;        /* 필수 */
    flex-wrap: nowrap;    /* 한 줄로 유지 */
}
div.project-slider {
    overflow: hidden;
    padding-top: 200px;
}
.swiper-slide {
    width: 518px;
    height: 636px;
    flex-shrink: 0;
    padding: 0; /* 슬라이드 자체 padding 제거 */
    }
div.projects div[class*=swiper-slide] {
    width: 518px;
    height: 636px;
    padding: 60px 50px;
}

/* 기본적으로 grab 커서 제거 */
.project-slider .swiper-wrapper,
.project-slider .swiper-slide {
    cursor: auto !important;
}

/* 카드 위에서는 pointer 적용 */
.projects .swiper-slide .project-inner {
    cursor: pointer !important;
}
/* ? ---------------- 공통 요소 --------------- */
div.project-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
p.project-title {
    font-size: 35px;
    font-weight: 800;
    margin: 20px 0 50px;
    line-height: 130%;
}
p.project-lable {
    font-size: 20px;
    font-weight: 300;
    line-height: 150%;
}
/* iOS-style Liquid Glass button */
/* iOS-style Liquid Glass button (NO hover actions) */
a.learn-more {
    position: absolute;
    bottom: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 300;
    text-decoration: none;
    cursor: pointer;
    /* ultra thin transparent glass fill */
    background: linear-gradient(180deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.02) 60%,
        rgba(255,255,255,0.01) 100%);
    /* glass border */
    border: 1px solid rgba(255,255,255,0.12);
    /* real glass effect */
    backdrop-filter: blur(14px) saturate(140%) contrast(100%);
    -webkit-backdrop-filter: blur(14px) saturate(140%) contrast(100%);
    /* depth */
    box-shadow:
        0 10px 30px rgba(2,6,23,0.55),
        inset 0 1px 0 rgba(255,255,255,0.04);
    background-clip: padding-box;
    /* transition removed (optional) */
    transition: none;
    -webkit-tap-highlight-color: transparent;
    transition: 300ms;
    }
    a.learn-more:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(38,57,90,0.12);
    outline: 1px solid #ffffff;
    outline-offset: 5px;
    }
    /* glossy streak */
    a.learn-more::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg,
                rgba(255,255,255,0.22) 0%,
                rgba(255,255,255,0.06) 12%,
                rgba(255,255,255,0.00) 30%);
    transform: translateY(-28%);
    filter: blur(8px);
    opacity: .7;
    mix-blend-mode: overlay;
    }
    /* liquid bottom shadow */
    a.learn-more::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 6%;
    height: 6px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(180deg,
                rgba(0,0,0,0.28),
                rgba(0,0,0,0.08));
    opacity: .75;
    filter: blur(6px);
    }
    /* reduced-motion support */
    @media (prefers-reduced-motion: reduce) {
    a.learn-more { transition: none; transform: none; }
    a.learn-more::before,
    a.learn-more::after { transition: none; transform: none; }
    }
    div.projects div img {
        width: 64px;
    }
    /* 배경 레이어 div
/* ? ---------------- --------------------------- */

/*  ------------------------ project01 card ------------------------ */
div.projects div.project01 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}
div.projects div.project01::before,
div.projects div.project01::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s;
    z-index: 1; /* ❗ 배경은 아래 레이어 */
}
/* 기본 배경 */
div.projects div.project01::before {
    background: url('images/project1-1.png') no-repeat center / cover;
    opacity: 1;
}
/* hover 배경 */
div.projects div.project01::after {
    background: url('images/project1-1hover.png') no-repeat center / cover;
    opacity: 0;
}
/* 실제 콘텐츠는 위(static 상태면 z-index 2로 올려줘야 함) */
div.projects div.project-inner {
    position: relative;
    z-index: 2;  /* ❗ 텍스트/아이콘은 항상 위에 */
}
/* hover 시 */
div.projects div.project01:hover::after {
    opacity: 1;
}
div.projects div.project01:hover::before {
    opacity: 0;
}
/*  ------------------------ project02 card ------------------------ */
div.projects div.project02 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}
div.projects div.project02::before,
div.projects div.project02::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s;
    z-index: 1; /* ❗ 배경은 아래 레이어 */
}
/* 기본 배경 */
div.projects div.project02::before {
    background: url('images/project1-2.png') no-repeat center / cover;
    opacity: 1;
}
/* hover 배경 */
div.projects div.project02::after {
    background: url('images/project1-2hover.png') no-repeat center / cover;
    opacity: 0;
}
/* 실제 콘텐츠는 위(static 상태면 z-index 2로 올려줘야 함) */
div.projects div.project-inner {
    position: relative;
    z-index: 2;
}
/* hover 시 */
div.projects div.project02:hover::after {
    opacity: 1;
}
div.projects div.project02:hover::before {
    opacity: 0;
}
/*  ------------------------ project03 card ------------------------ */
div.projects div.project03 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}
div.projects div.project03::before,
div.projects div.project03::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s;
    z-index: 1; /* ❗ 배경은 아래 레이어 */
}
/* 기본 배경 */
div.projects div.project03::before {
    background: url('images/project1-3.png') no-repeat center / cover;
    opacity: 1;
}
/* hover 배경 */
div.projects div.project03::after {
    background: url('images/project1-3hover.png') no-repeat center / cover;
    opacity: 0;
}
/* 실제 콘텐츠는 위(static 상태면 z-index 2로 올려줘야 함) */
div.projects div.project-inner {
    position: relative;
    z-index: 2;
}
/* hover 시 */
div.projects div.project03:hover::after {
    opacity: 1;
}
div.projects div.project03:hover::before {
    opacity: 0;
}
/*  ------------------------ project04 card ------------------------ */
div.projects div.project04 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}
div.projects div.project04::before,
div.projects div.project04::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s;
    z-index: 1; /* ❗ 배경은 아래 레이어 */
}
/* 기본 배경 */
div.projects div.project04::before {
    background: url('images/project1-4.png') no-repeat center / cover;
    opacity: 1;
}
/* hover 배경 */
div.projects div.project04::after {
    background: url('images/project1-4hover.png') no-repeat center / cover;
    opacity: 0;
}
/* 실제 콘텐츠는 위(static 상태면 z-index 2로 올려줘야 함) */
div.projects div.project-inner {
    position: relative;
    z-index: 2;
}
/* hover 시 */
div.projects div.project04:hover::after {
    opacity: 1;
}
div.projects div.project04:hover::before {
    opacity: 0;
}
/*  ------------------------ project05 card ------------------------ */
div.projects div.project05 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}
div.projects div.project05::before,
div.projects div.project05::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s;
    z-index: 1; /* ❗ 배경은 아래 레이어 */
}
/* 기본 배경 */
div.projects div.project05::before {
    background: url('images/project1-5.png') no-repeat center / cover;
    opacity: 1;
}
/* hover 배경 */
div.projects div.project05::after {
    background: url('images/project1-5hover.png') no-repeat center / cover;
    opacity: 0;
}
/* 실제 콘텐츠는 위(static 상태면 z-index 2로 올려줘야 함) */
div.projects div.project-inner {
    position: relative;
    z-index: 2;
}
/* hover 시 */
div.projects div.project05:hover::after {
    opacity: 1;
}
div.projects div.project05:hover::before {
    opacity: 0;
}
/* 4번,5번 카드 투명처리 */
.project04, .project05 {
    opacity: 0;               /* 완전히 안보이게 */
    pointer-events: none;     /* 클릭 불가 */
    visibility: hidden;       /* 접근성에서도 숨김 */
}
/* --------------------------------------------------------------------------- */
/* 초기 상태 (아래에 숨겨진 상태) */
.project figure h1,
.project figure h2,
.project .project-slider {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

/* 순차 애니메이션 - in-view 클래스가 붙으면 시작 */
.project.in-view figure h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.project.in-view figure h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.project.in-view .project-slider {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}


/* ! ------------------------ section.news --------------------- */
section.news {
    padding: 124px;
    padding-top: 0;
    background: url('images/noticebg.png') no-repeat center / cover;
}
div.news-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
section.news p.title {
    font-size: 80px;
    font-weight: 800;
    text-align: left;
}
section.news p.lable {
    font-size: 30px;
    font-weight: 200;
    text-align: left;
    margin-top: 20px;
}
article.preview {
    width: 640px;
}
.swiper.vertical-scroll {
    height: 530px;
    margin-top: 38px;
}
/* 스크롤바 전체 track */
.swiper-scrollbar {
    background: rgba(70, 70, 70, 0.9); /* 트랙(배경) */
    width: 6px;
    border-radius: 10px;
    display: none;
}
/* 실제 움직이는 bar */
.swiper-scrollbar-drag {
    background: lime; /* ← 여기서 색 변경 가능! */
    border-radius: 10px;
}
/*  ------------- 스크롤 컨테이너 적용 시 필수 --------------- */
.swiper.vertical-scroll .swiper-slide {
    height: auto;
}
.outro-textbox {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 30px 28px 45px;
    color: #fff;
    background: #111113;
    margin-bottom: 20px;
    border: 1px solid #00ff88;

    /* 기본 네온글로우 */
    box-shadow:
        0 0 2px rgba(0, 255, 136, 0.4),
        0 0 4px rgba(0, 255, 136, 0.3),
        inset 0 0 2px rgba(0, 255, 136, 0.2);

    animation: neonPulse 0.9s ease-in-out infinite;
    cursor: pointer;
    transition: 300ms;
}

/* 글리치/빛 효과 라인 */
.outro-textbox::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    opacity: 0;
}

/* 🔥 호버 시 글리치 라이트 슉~ */
.outro-textbox:hover::before {
    animation: glitchLight 0.8s ease forwards;
    opacity: 1;
}

/* 애니메이션 정의 */
@keyframes glitchLight {
    0% {
        left: -120%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}


@keyframes neonPulse {
    0%, 100% {
        box-shadow:
            0 0 2px rgba(0, 255, 136, 0.35),
            0 0 4px rgba(0, 255, 136, 0.25),
            inset 0 0 2px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow:
            0 0 4px rgba(0, 255, 136, 0.55),
            0 0 8px rgba(0, 255, 136, 0.45),
            inset 0 0 3px rgba(0, 255, 136, 0.3);
    }
}
.outro-textbox p {
    margin-top: 19px;
}
/*----------------- 3개만 고정으로 보이게 ------------ */
.notices .outro-textbox:nth-of-type(n+4) {
    display: none;
}
div.bt {
    width: 60%;
    display: flex;
    justify-content: end;
    margin: 0 auto;
}
.go-notice {
    display: block;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
}

/* + 아이콘 */
.go-notice::before,
.go-notice::after {
    content: "";
    position: absolute;
    background: #fff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
}

/* 가로선 */
.go-notice::before {
    width: 60%;
    height: 2px;
}

/* 세로선 */
.go-notice::after {
    width: 2px;
    height: 60%;
}

/* Hover 효과 */
.go-notice:hover {
    border-color: lime;
    box-shadow: 0 0 6px lime, 0 0 12px lime, 0 0 20px lime;
    transition: 0.5s;
}

.go-notice:hover::before,
.go-notice:hover::after {
    background: lime;
    box-shadow: 0 0 6px lime, 0 0 12px lime;
}

/* 처음에는 아래로 내려가 있고 투명 */
.news .notice-title .title,
.news .notice-title .lable {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 화면에 등장했을 때 */
.news.in-view .notice-title .title,
.news.in-view .notice-title .lable {
    opacity: 1;
    transform: translateY(0);
}

/* 옵션: 더 자연스럽게 하려면 딜레이 주기 */
.news.in-view .notice-title .title {
    transition-delay: 0.1s;
}
.news.in-view .notice-title .lable {
    transition-delay: 0.25s;
}



/* ! ---------------------- section.footer --------------------- */
section.footer {
    width: 100%;
    height: 205px;
    padding: 0 100px;
    background: url('images/footer-bg.png') no-repeat center / cover;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* 중앙 조명을 절대 위치로 배치하기 위해 */
}
section.footer .logo{
    width: 200px;
    height: 50px;
    background: url('images/logos/kgfc로고-국문포함.png') no-repeat center / cover;
    background-size: contain;
}
section.footer .footer-text {
    width: 100%;
    text-align: center;
    line-height: 200%;
    color: #fff;
    opacity: 80%;
    font-size: 20px;

}
/* 중앙 조명 */
/* footer 중앙 네온 조명 */
section.footer .footer-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;               /* 원 크기 */
    height: 120px;
    background: rgba(0, 255, 100, 0.6); /* 네온 느낌의 녹색 */
    border-radius: 50%;
    filter: blur(60px);         /* 레이어 블러 느낌 강화 */
    pointer-events: none;
    z-index: -1;                /* footer 내부에서도 맨 뒤로 */
    animation: glowPulse 2.5s infinite alternate;
}

/* 네온빛 맥박 애니메이션 */
@keyframes glowPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}


    .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;
    }