/* ===== 기존 RESET & BASE 유지 ===== */

/* 브라우저 기본 스크롤 비활성화 및 레이아웃 안정화 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* body의 모든 스크롤 기능 비활성화 */
}

/* 스크롤을 담당할 유일한 컨테이너 */
#fullpage {
    height: 100%;
    overflow-y: scroll; /* 세로 스크롤은 여기서만 작동 */
    overflow-x: hidden; /* 가로 스크롤은 항상 비활성화 */
    scroll-snap-type: y mandatory;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}



/* ===== 페이지별 스크롤 제어 ===== */
/* --- 모든 페이지 공통 스타일 --- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
    background: #000412;
    color: #ffffff00;
    line-height: 1.6;
}


/* --- 메인 페이지(index.html) 전용 스타일 --- */
body.has-fullpage,
body.has-fullpage html {
    height: 100%;
    overflow: hidden; /* body의 스크롤 기능 비활성화 */
}

body.has-fullpage #fullpage {
    height: 100%;
    overflow-y: scroll; /* #fullpage에서만 스크롤 허용 */
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}


/* --- 서브 페이지(company-1.html 등) 전용 스타일 --- */
body.sub-page-body {
    overflow-y: auto; /* body에서 정상적으로 스크롤 허용 */
    overflow-x: hidden;
}

/* main.css 파일 상단 */
html, body {
    overflow-x: hidden;
}


/* 메인 인트로 */

/* 인트로 오버레이 */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a132c 0%, #070e22 50%, #050b1a 100%);  /* #002657 0%, #082552 50%, #0B1633 100% */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: all 1s ease-out;
    /* 모바일 좌우 여백 추가 */
    padding: 0 clamp(1rem, 5vw, 2rem);
}

/* 인트로 사라지는 효과 */
.intro-overlay.fade-out {
    opacity: 0;
    transform: translateY(-100%);
    visibility: hidden;
}

/* 인트로 완전 제거 */
.intro-overlay.remove {
    display: none !important;
}

/* 인트로 콘텐츠 */
.intro-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* 모바일 좌우 여백 추가 */
    padding: 0 1rem;
}

/* 로고 텍스트 */
.intro-logo {
    font-size: clamp(32px, 8vw, 120px);
    font-weight: 900;
    color: #ffffff;
   /* letter-spacing: clamp(0.03em, 0.5vw, 0.1em); */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap; /* 작은 화면에서 줄바꿈 허용 */
    gap: clamp(2px, 0.5vw, 8px); /* 글자 사이 간격 자동 조정 */
    
    /* 초기 애니메이션 */
    opacity: 0;
    transform: translateY(50px);
    animation: logoAppear 1s ease-out 0.4s forwards;
}

/* 각 글자 스타일 */
.intro-logo .letter {
    display: inline-block;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    /* 고정 너비 제거로 글자가 자연스럽게 배치됨 */
}

/* 공백 */
.intro-logo .space {
    width: clamp(10px, 2vw, 40px);
    display: inline-block;
}

/* 글자별 사라지는 애니메이션 */
.intro-logo .letter:nth-child(1) { animation: letterDisappear 0.5s ease-in 2.5s forwards; }
.intro-logo .letter:nth-child(2) { animation: letterDisappear 0.5s ease-in 2.6s forwards; }
.intro-logo .letter:nth-child(3) { animation: letterDisappear 0.5s ease-in 2.7s forwards; }
.intro-logo .letter:nth-child(4) { animation: letterDisappear 0.5s ease-in 2.8s forwards; }
.intro-logo .letter:nth-child(6) { animation: letterDisappear 0.5s ease-in 2.4s forwards; }
.intro-logo .letter:nth-child(7) { animation: letterDisappear 0.5s ease-in 2.5s forwards; }
.intro-logo .letter:nth-child(8) { animation: letterDisappear 0.5s ease-in 2.6s forwards; }
.intro-logo .letter:nth-child(9) { animation: letterDisappear 0.5s ease-in 2.7s forwards; }
.intro-logo .letter:nth-child(10) { animation: letterDisappear 0.5s ease-in 2.8s forwards; }
.intro-logo .letter:nth-child(11) { animation: letterDisappear 0.5s ease-in 2.9s forwards; }
.intro-logo .letter:nth-child(12) { animation: letterDisappear 0.5s ease-in 3.0s forwards; }
.intro-logo .letter:nth-child(13) { animation: letterDisappear 0.5s ease-in 3.1s forwards; }

/* 애니메이션 키프레임 */
@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterDisappear {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5);
        filter: blur(3px);
    }
}

/* 메인 콘텐츠 초기 숨김 */
body.intro-active {
    overflow: hidden;
}

body.intro-active .main-content,
body.intro-active main,
body.intro-active section:not(.intro-overlay) {
    visibility: hidden;
}

/* 인트로 완료 후 메인 콘텐츠 표시 */
body.intro-complete .main-content,
body.intro-complete main,
body.intro-complete section:not(.intro-overlay) {
    visibility: visible;
}

/* 반응형 - 태블릿 */
@media (max-width: 1100px) {
    .intro-overlay {
        padding: 0 clamp(1.5rem, 4vw, 2rem);
    }
    
    .intro-content {
        padding: 0 1.5rem;
    }
    
    .intro-logo {
        font-size: clamp(55px, 7vw, 60px);
        letter-spacing: clamp(0.03em, 0.4vw, 0.08em);
        gap: clamp(2px, 0.4vw, 6px);
    }
    
    .intro-logo .space {
        width: clamp(8px, 1.5vw, 15px);
    }
}

/* 반응형 - 모바일 가로/세로 */
@media (max-width: 768px) {
    .intro-overlay {
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }
    
    .intro-content {
        padding: 0 1rem;
    }
    
    .intro-logo {
        font-size: clamp(50px, 6vw, 55px);
        letter-spacing: clamp(0.02em, 0.3vw, 0.05em);
        gap: clamp(1px, 0.3vw, 4px);
    }
    
    .intro-logo .space {
        width: clamp(6px, 1.2vw, 12px);
    }
}

/* 반응형 - 초소형 모바일 */
@media (max-width: 480px) {
    .intro-overlay {
        padding: 0 1rem;
    }
    
    .intro-content {
        padding: 0 0.75rem;
    }
    
    .intro-logo {
        font-size: clamp(38px, 7vw, 40px);
        letter-spacing: clamp(0.01em, 0.2vw, 0.03em);
        gap: clamp(1px, 0.2vw, 3px);
        /* 매우 작은 화면에서는 두 줄로 표시 허용 */
        line-height: 1.2;
    }
    
    .intro-logo .space {
        width: clamp(4px, 1vw, 10px);
    }
}

/* 초소형 기기 (320px 이하) */
@media (max-width: 360px) {
    .intro-overlay {
        padding: 0 0.75rem;
    }
    
    .intro-content {
        padding: 0 0.5rem;
    }
    
    .intro-logo {
        font-size: clamp(34px, 6vw, 36px);
        letter-spacing: 0.01em;
        gap: 1px;
    }
    
    .intro-logo .space {
        width: clamp(3px, 0.8vw, 8px);
    }
}



/* ===== 섹션 단위 스크롤 ===== */
#fullpage {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
}

/* ===== 네비게이션 도트 ===== */
.section-navigation {
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 3.3rem;
    transform: translateY(-50%);
}

.section-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-navigation ul li {
    position: relative;
    width: 20px;
    margin: 17.5px 0;
}

.section-navigation ul li a {
    display: block;
    position: relative;
    width: 100%;
    height: 20px;
    padding: 7px;
    text-decoration: none;
}

.section-navigation ul li a span {
    display: block;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.section-navigation ul li a.active span {
    background-color: #fff;
    transform: scale(1.5);
}

/* ===== 모바일에서 네비게이션 숨김 (768px 이하) ===== */
@media (max-width: 768px) {
    .section-navigation {
        display: none;
    }
}

/* ===== 공통 스타일 ===== */

/* ===== 01. HERO SECTION ===== */
.main-visual.dark-hero {
    min-height: 100vh;
    width: 100%; /* 100vw에서 100%로 변경 */
    background:
        linear-gradient(120deg, rgba(10, 12, 22, 0.2) 0%, rgba(19, 22, 34, 0.2) 60%, rgba(26, 28, 48, 0.2) 100%),
        url('/images/main/naru_main_sec_bg2.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* 이 섹션 자체의 overflow는 hidden으로 유지 */
}

.hero-inner {
    width: 100%;
    max-width: 1320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1vw;
    padding: 0 2.5vw;
    z-index: 1;
}


/* 타이틀 텍스트 애니메이션 */
.main-visual-txt-box {
    text-align: left;
    color: white;
    padding: 0 clamp(0rem, 0vw, 0rem); /* 좌우 여백 추가 */
}

/* 첫 번째 텍스트 - "지능형 위협을 분석하고 대응하는," */
.main-visual-txt1 {
    font-size: clamp(1.2rem, 3vw, 2.2rem); /* 모바일: 1.2rem, PC: 2.2rem */
    font-weight: 500;
    line-height: clamp(1.4, calc(1em + 0.2vw), 1.6); /* 반응형 line-height */
    margin-bottom: clamp(0.8rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: clamp(0.3px, 0.1vw, 1px);
}

/* 두 번째 텍스트 - "데이터 보안 전문가 그룹" */
.main-visual-txt2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem); /* 모바일: 1.5rem, PC: 2.8rem */
    font-weight: 500;
    line-height: clamp(1.3, calc(1em + 0.1vw), 1.4);
    margin-bottom: clamp(0.6rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.95);
}

.main-visual-txt2 b {
    font-weight: 700;
    color: #76d4ff;
    text-shadow: 0 0 10px rgba(118, 182, 255, 0.3);
}

/* 세 번째 텍스트 - "내부망의 숨겨진 위협까지..." */
.main-visual-txt3 {
    font-size: clamp(1.5rem, 4vw, 2.8rem); /* 모바일: 1.5rem, PC: 2.8rem */
    font-weight: 500;
    line-height: clamp(1.3, calc(1em + 0.1vw), 1.4);
    margin-bottom: clamp(0.6rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.95);
}

/* small 태그 최적화 */
.main-visual-txt2 small,
.main-visual-txt3 small {
    font-size: clamp(1rem, 2.5vw, 1.8rem); /* 모바일: 1rem, PC: 1.8rem */
    display: inline-block;
    line-height: inherit;
}

/* ===== 태블릿 최적화 (1024px 이하) ===== */
@media (max-width: 1024px) {
    .main-visual-txt-box {
        /* padding: 0 clamp(1rem, 2.5vw, 1.5rem); */
    }

    .main-visual-txt1 {
        font-size: clamp(2.7rem, 4vw, 3.6rem);
        line-height: 1.5;
        margin-bottom: clamp(0.7rem, 1.8vw, 1.2rem);
        letter-spacing: 0.5px;
    }

    .main-visual-txt2,
    .main-visual-txt3 {
        font-size: clamp(2.7rem, 4vw, 3.6rem);
        line-height: 1.35;
        margin-bottom: clamp(0.5rem, 1.3vw, 0.9rem);
    }

    .main-visual-txt2 small,
    .main-visual-txt3 small {
        font-size: clamp(0.95rem, 2.3vw, 1.6rem);
    }
}

/* ===== 모바일 가로/세로 (768px 이하) ===== */
@media (max-width: 768px) {
    .main-visual-txt-box {
        padding: 0 0rem;
        max-width: 100%;
    }

    .main-visual-txt1 {
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.5;
        margin-bottom: 0.8rem;
        letter-spacing: 0.3px;
    }

    .main-visual-txt2,
    .main-visual-txt3 {
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }

    .main-visual-txt2 b {
        display: inline-block; /* 줄바꿈 방지 */
        text-shadow: 0 0 8px rgba(118, 182, 255, 0.4);
    }

    .main-visual-txt2 small,
    .main-visual-txt3 small {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        line-height: 1.5;
    }

    /* br 태그 간격 조정 */
    .main-visual-txt2 br {
        content: "";
        display: block;
        margin-bottom: 0.3rem;
    }
}

/* ===== 소형 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
    .main-visual-txt-box {
        padding: 0 0rem;
    }

    .main-visual-txt1 {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        line-height: 1.55;
        margin-bottom: 0.7rem;
        letter-spacing: 0.2px;
    }

    .main-visual-txt2,
    .main-visual-txt3 {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        line-height: 1.45;
        margin-bottom: 0.6rem;
    }

    .main-visual-txt2 small,
    .main-visual-txt3 small {
        font-size: clamp(0.85rem, 4.5vw, 1.1rem);
        line-height: 1.6;
    }

    .main-visual-txt2 b {
        font-size: clamp(1.15rem, 5.5vw, 1.55rem);
    }
}

/* ===== 초소형 모바일 (360px 이하) ===== */
@media (max-width: 360px) {
    .main-visual-txt-box {
        padding: 0 0rem;
    }

    .main-visual-txt1 {
        font-size: clamp(1.2rem, 4.5vw, 1.4rem);
        line-height: 1.6;
        margin-bottom: 0.6rem;
        letter-spacing: 0.1px;
    }

    .main-visual-txt2,
    .main-visual-txt3 {
        font-size: clamp(1rem, 5.5vw, 1.35rem);
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .main-visual-txt2 small,
    .main-visual-txt3 small {
        font-size: clamp(0.8rem, 4.5vw, 1rem);
        line-height: 1.65;
    }
}


/* 기존 애니메이션 유지 */
.animate-fade-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.3s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.6s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.9s; }
.animate-fade-up:nth-child(4) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 기존 보안 격자 배경, 레이더, 펄스 효과 모두 유지 */
.security-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(45, 85, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 85, 255, 0.1) 1px, transparent 1px);
    background-size: 90px 90px;
    animation: gridShift 20s linear infinite;
    z-index: 2;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(90px, 90px); }
}

.radar-container {
    flex: 1;
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 15, 55, 100) 0%, rgba(0, 0, 0, 0.5) 100%);
    box-shadow: 0 0 20px  rgba(0, 119, 255, 0.3);
    overflow: hidden;
}

/* 레이더 스캔 막대 - 12시에서 시계방향 시작 */
.radar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 358deg,
        rgba(0, 225, 255, 0.6) 359deg,
        rgb(0, 225, 255) 0deg,
        rgba(0, 225, 255, 0.6) 1deg,
        transparent 2deg
    );
    animation: radar-scan-clockwise 4s linear infinite;
    transform-origin: center;
    z-index: 3;
}

.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgb(0, 195, 255);
    border-radius: 50%;
    box-shadow: 0 0 10px rgb(0, 204, 255), 0 0 20px rgb(0, 204, 255);
    animation: radar-pulse 2s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

.radar-afterglow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 195, 255, 0.03) 30deg,
        rgba(0, 195, 255, 0.15) 68deg,
        transparent 75deg,
        transparent 360deg
    );
    animation: radarAfterglowRotate 4s linear infinite;
}

/* 레이더 스캔 애니메이션 - 12시부터 시계방향 */
@keyframes radar-scan-clockwise {
    0% { transform: rotate(0deg); }    /* 12시 시작 */
    100% { transform: rotate(360deg); } /* 시계방향 한 바퀴 */
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 52, 104, 0.363);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.radar-ring-1 { width: 60px; height: 60px; }
.radar-ring-2 { width: 100px; height: 100px; }
.radar-ring-3 { width: 140px; height: 140px; }
.radar-ring-4 { width: 180px; height: 180px; }
.radar-ring-5 { width: 220px; height: 220px; }
.radar-ring-6 { width: 260px; height: 260px; }
.radar-ring-7 { width: 300px; height: 300px; }
.radar-ring-8 { width: 340px; height: 340px; }
.radar-ring-9 { width: 380px; height: 380px; }

.threat-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px #ff4757;
    transform-origin: center;
    transition: opacity 0.2s ease;
}

/* 각 점의 위치별 애니메이션 (레이더 막대 4초 회전과 동기화) */
.threat-dot:nth-child(4) { 
    top: 13.5%; 
    left: 30%;
    /* 30도 위치 - 레이더가 0.33초에 도달 */
    animation: radarDetection4 4s linear infinite;
}

.threat-dot:nth-child(2) { 
    top: 65%; 
    left: 70%;
    /* 135도 위치 - 레이더가 1.5초에 도달 */
    animation: radarDetection2 4s linear infinite;
}

.threat-dot:nth-child(3) { 
    top: 20%; 
    left: 70%;
    /* 225도 위치 - 레이더가 2.5초에 도달 */
    animation: radarDetection3 4s linear infinite;
}

.threat-dot:nth-child(1) { 
    top: 69%; 
    left: 25%;
    /* 315도 위치 - 레이더가 3.5초에 도달 */
    animation: radarDetection1 4s linear infinite;
}

/* 각 점별 레이더 감지 애니메이션 */
@keyframes radarDetection4 {
    0%, 86% {
        opacity: 0;
        transform: scale(0.8);
    }
    87%, 91% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px #ff4757, 0 0 25px rgba(255, 71, 87, 0.5);
    }
    92%, 99% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 10px #ff4757;
    }
    100%, 7% {
        opacity: 0;
        transform: scale(0.8);
    }
}


@keyframes radarDetection2 {
    0%, 36% {
        opacity: 0;
        transform: scale(0.8);
    }
    37%, 41% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px #ff4757, 0 0 25px rgba(255, 71, 87, 0.5);
    }
    42%, 54% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 10px #ff4757;
    }
    55%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes radarDetection3 {
    0%, 7% {
        opacity: 0;
        transform: scale(0.8);
    }
    8%, 12% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px #ff4757, 0 0 25px rgba(255, 71, 87, 0.5);
    }
    13%, 25% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 10px #ff4757;
    }
    26%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes radarDetection1 {
    0%, 61% {
        opacity: 0;
        transform: scale(0.8);
    }
    72%, 66% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px #ff4757, 0 0 25px rgba(255, 71, 87, 0.5);
    }
    77%, 79% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 10px #ff4757;
    }
    80%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* 레이더 스캔 라인 강화 (더 명확한 효과) */
.radar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        transparent 0deg, 
        transparent 358deg,
        rgba(0, 225, 255, 0.8) 359deg, 
        rgb(0, 225, 255) 360deg,
        rgba(0, 225, 255, 0.8) 1deg,
        transparent 2deg,
        transparent 360deg
    );
    animation: radar-scan 4s linear infinite;
    transform-origin: center;
    z-index: 3;
}

/* 추가: 레이더 스캔 잔상 효과 */
.radar-sweep-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg,
        rgba(0, 195, 255, 0.1) 10deg,
        rgba(0, 195, 255, 0.05) 20deg,
        transparent 30deg,
        transparent 360deg
    );
    animation: radar-scan 4s linear infinite;
    transform-origin: center;
    z-index: 2;
}

/* 기존 애니메이션 키프레임 유지 */
@keyframes radar-scan {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes radarAfterglowRotate {
    0% { transform: rotate(-70deg); }
    100% { transform: rotate(290deg); }
}

@keyframes radar-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

@keyframes threatReveal {
    0%, 20% {
        opacity: 0;
        transform: scale(0.8);
    }
    25%, 75% {
        opacity: 1;
        transform: scale(1);
    }
    80%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* 기존 펄스 효과 유지 */
.pulse {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 20%,
        #76d4ff 25%,
        #76d4ff 30%,
        transparent 35%,
        transparent 45%,
        #76d4ff 50%,
        #76d4ff 55%,
        transparent 60%,
        transparent 70%,
        #76d4ff 75%,
        #76d4ff 80%,
        transparent 85%,
        transparent 100%
    );
    animation: heartbeat 4s ease-in-out infinite;
    box-shadow: 0 0 10px #76d4ff;
}

.pulse::after {
    content: '';
    position: absolute;
    top: calc(50% + 40px);
    left: -100%;
    width: 200%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 30%,
        rgba(122, 209, 251, 0.6) 35%,
        rgba(122, 209, 251, 0.6) 40%,
        transparent 45%,
        transparent 55%,
        rgba(77, 190, 255, 0.6) 60%,
        rgba(77, 190, 255, 0.6) 65%,
        transparent 70%,
        transparent 100%
    );
    animation: heartbeat 4s ease-in-out infinite 0.5s;
    box-shadow: 0 0 8px rgba(77, 190, 255, 0.6);
}

@keyframes heartbeat {
    0%, 100% {
        transform: translateX(0) scaleX(1);
        opacity: 0.3;
    }
    10% {
        transform: translateX(20%) scaleX(1.2);
        opacity: 1;
    }
    20% {
        transform: translateX(40%) scaleX(0.8);
        opacity: 0.8;
    }
    30% {
        transform: translateX(60%) scaleX(1.5);
        opacity: 1;
    }
    50% {
        transform: translateX(80%) scaleX(1);
        opacity: 0.6;
    }
    80% {
        transform: translateX(100%) scaleX(0.9);
        opacity: 0.3;
    }
}

/* 기존 스크롤 아이콘 유지 */
.main-scroll-icon {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    cursor: pointer;
    animation: scroll-bounce 2s infinite;
    z-index: 20;
}

.scroll-bd {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.scroll-bd span {
    position: absolute;
    width: 19px;
    height: 19px;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.scroll-bd span.bd1 {
    border-right: 0;
    border-bottom: 0;
    top: 0;
    left: 0;
}

.scroll-bd span.bd2 {
    border-left: 0;
    border-bottom: 0;
    top: 0;
    right: 0;
}

.scroll-bd span.bd3 {
    border-right: 0;
    border-top: 0;
    bottom: 0;
    left: 0;
}

.scroll-bd span.bd4 {
    border-left: 0;
    border-top: 0;
    bottom: 0;
    right: 0;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgb(255, 255, 255);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 2s ease-in-out infinite;
}

@keyframes mouseScroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}


/* 애니메이션 라인 컨테이너 */
.animated-gradient-line {
  width: 100%;
  max-width: 249px;
  /* 그림자가 표시될 수 있도록 높이 확보 */
  height: 15px;
  position: relative;
  /* 자식 요소(라인과 그림자)를 중앙에 배치 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 라인과 그림자의 공통 스타일 */
.animated-gradient-line::before,
.animated-gradient-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  background: linear-gradient(
    280deg,
    transparent,
    #000a2c,
    #BC2D3D,
    #7AD1FB,
    #000a2c,
    transparent
  );
  background-size: 210% 100%;
  animation: scan-animation 7s ease-in-out infinite;
}

/* 빛나는 그림자 (뒷 배경 레이어) */
.animated-gradient-line::before {
  height: 100%; /* 컨테이너 전체 높이를 사용하여 번질 공간 확보 */
  filter: blur(13px);
  opacity: 0.5;
  z-index: 1; /* 선명한 라인보다 뒤에 배치 */
}

/* 선명한 라인 (상단 레이어) */
.animated-gradient-line::after {
  height: 1.5px; /* 실제 라인의 두께 */
  border-radius: 2px;
  z-index: 2; /* 그림자보다 위에 배치 */
}

/* 애니메이션 키프레임 (변경 없음) */
@keyframes scan-animation {
  0% {
    background-position: 100% 0; /* 오른쪽 끝에서 시작 */
  }
  50% {
    background-position: 0% 0;   /* 왼쪽 끝으로 이동 */
  }
  100% {
    background-position: 100% 0; /* 다시 오른쪽 끝으로 복귀 */
  }
}

/* 타이틀 캐치프레이즈 이미지 */
/*
.hero-catch-img {
  scale: 100%;
  position: relative;
  margin-bottom: 0.5rem;
    
}
*/

/* 타이틀 캐치프레이즈 텍스트 */
.hero-catch-text {
  font-size: clamp(1.1rem, 4vw, 0.4rem);
  font-weight: 400;  
  line-height: 1.4;
  margin-bottom: 0.3rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.856);    
}

/* ===== 02. STATUS SECTION ===== */
.status-section {
    min-height: 100vh;
    padding: clamp(4rem, 10vh, 8rem) 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
    display: flex;
    align-items: center;
}

/* 배경 영상 */
.section-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

/* 영상 위 오버레이 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(10, 12, 22, 0.4) 0%, rgba(19, 22, 34, 0.4) 60%, rgba(26, 28, 48, 0.4) 100%);
    z-index: -1;
}

/* 콘텐츠를 영상 위에 표시 */
.status-section .container {
    position: relative;
    z-index: 1;
}

.status-items {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.status-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    flex: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.status-section .status-item:hover {
    transform: translateY(-2px);
}

/* ===== count-num-box strong 기본 설정 ===== */
.count-num-box strong {
    display: block;
    font-size: clamp(2rem, 6vw, 4rem); /* 32px ~ 64px */
    color: #ffffff;
    font-weight: 600;
    line-height: 1em;
    margin-bottom: 0.5rem;
}

/* ===== 태블릿 (1100px 이하) ===== */
@media (max-width: 1100px) {
    .count-num-box strong {
        font-size: 3.5rem; /* 56px */
        line-height: 1em;
        margin-bottom: 0.4rem;
    }
}

/* ===== 모바일 (768px 이하) ===== */
@media (max-width: 768px) {
    .count-num-box strong {
        font-size: 3rem; /* 48px */
        line-height: 1em;
        margin-bottom: 0.4rem;
        font-weight: 700; /* 모바일에서 더 굵게 */
    }
}

/* ===== 소형 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
    .count-num-box strong {
        font-size: 2.5rem; /* 40px */
        line-height: 1em;
        margin-bottom: 0.3rem;
    }
}

/* ===== 초소형 모바일 (360px 이하) ===== */
@media (max-width: 360px) {
    .count-num-box strong {
        font-size: 2rem; /* 32px */
        line-height: 1em;
        margin-bottom: 0.3rem;
    }
}


.status-unit {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.info-txt {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

/* 부드러운 카운터 스타일 */
.status-item strong {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
}

/* 반응형 최적화 */
@media (max-width: 768px) {
    .status-items {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* 모바일에서 영상 최적화 */
    .section-video {
        min-width: 120%;
        min-height: 120%;
    }
}



/* ===== info-txt 기본 설정 ===== */
.info-txt {
    font-size: clamp(1rem, 2vw, 1.2rem); /* 16px ~ 19.2px */
    font-weight: 200;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

/* ===== 태블릿 (1100px 이하) ===== */
@media (max-width: 1100px) {
    .info-txt {
        font-size: 1.125rem; /* 18px */
        line-height: 1.4;
    }
}

/* ===== 모바일 (768px 이하) ===== */
@media (max-width: 768px) {
    .info-txt {
        font-size: 1.25rem; /* 20px */
        line-height: 1.5;
        font-weight: 300; /* 가독성 향상 */
    }
}

/* ===== 소형 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
    .info-txt {
        font-size: 1.125rem; /* 18px */
        line-height: 1.6;
    }
}

/* ===== 초소형 모바일 (360px 이하) ===== */
@media (max-width: 360px) {
    .info-txt {
        font-size: 1rem; /* 16px */
        line-height: 1.65;
    }
}




/* ===== 03. SERVICE SECTION / 04. PRODUCTS SECTION  ===== */
/* =================================== */
/* ===== 1. 공통 카드 그리드 스타일 ===== */
/* =================================== */

.card-grid {
    display: flex;
    overflow-x: auto;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1210px; /* 3개 카드 + 4번째 카드 일부 노출 기준 */
    margin: 0 auto;
    padding: 40px 40px 40px 200px; /* 호버 여유 공간(상/하/우) + 좌측 네비 공간 */
    clip-path: inset(0 0 0 0px); /* padding으로 생긴 좌측 외 불필요한 공간 숨김 */
    scroll-snap-type: x mandatory;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

/* 스크롤바 숨기기 */
.card-grid::-webkit-scrollbar { 
    display: none; 
}

.card-grid { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* 드래그 활성화 시 커서 모양 변경 */
.card-grid.active { 
    cursor: grabbing; 
}

/* =========================== */
/* ===== 2. 개별 카드 스타일 ===== */
/* =========================== */

/* 카드 공통 기본 스타일 */
.service-card,
.product-card {
    flex: 0 0 320px; /* 카드 너비 고정 */
    aspect-ratio: 0.78;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    z-index: 1;
    overflow: hidden; /* 호버 시 자식 요소가 넘치지 않도록 */
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0);
}

/* 카드 공통 호버 스타일 */
.service-card:hover,
.product-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10; /* 다른 카드 위로 올라오도록 설정 */
}

/* Service 카드 개별 스타일 */
.service-card {
    border: 1px solid rgba(0, 92, 49, 0.2);
}

.service-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 136, 0.15);
}

/* Product 카드 개별 스타일 */
.product-card {
    border: 1px solid rgba(0, 50, 107, 0.2);
}

.product-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 33, 221, 0.39);
}

/* ================================= */
/* ===== 3. 카드 콘텐츠 공통 스타일 ===== */
/* ================================= */

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.card-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-content p {
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 150;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .card-content p {
        font-size: 1.25rem;
   }
}

@media (max-width: 480px) {
    .card-content p {
        font-size: 1rem;
   }
}

@media (max-width: 360px) {
    .card-content p {
        font-size: 0.938rem;
   }
}



/* ===== card-grid h3 폰트 크기 설정 ===== */

/* PC 기본 크기 */
.card-grid .card-content h3,
.card-grid .service-card h3,
.card-grid .product-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem); /* 20px ~ 24px */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== 모바일 최적화 (768px 이하) ===== */
@media (max-width: 768px) {
    .card-grid .card-content h3,
    .card-grid .service-card h3,
    .card-grid .product-card h3 {
        font-size: 1.813rem; /* 29px */
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }

    .card-content p {
        font-size: 1.25rem;
    }
}

/* ===== 소형 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
    .card-grid .card-content h3,
    .card-grid .service-card h3,
    .card-grid .product-card h3 {
        font-size: 1.5rem; /* 24px */
        line-height: 1.35;
    }

    .card-content p {
        font-size: 1rem;
    }
}

/* ===== 초소형 모바일 (360px 이하) ===== */
@media (max-width: 360px) {
    .card-grid .card-content h3,
    .card-grid .service-card h3,
    .card-grid .product-card h3 {
        font-size: 1.25rem; /* 20px */
        line-height: 1.4;
    }

    .card-content p {
        font-size: 0.938rem;
    }
}


/* ============================== */
/* ===== 4. 섹션 공통 스타일 ===== */
/* ============================== */

.main-service-section,
.main-product-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding: clamp(4rem, 8vh, 6rem) 0;
    position: relative;
    overflow: hidden; /* 자식 요소인 ::before가 넘치지 않도록 */
}

.main-service-section > *,
.main-product-section > * {
    position: relative;
    z-index: 1;
}

/* 배경 이미지 및 애니메이션 */
.main-service-section::before,
.main-product-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: bgMove 20s ease-in-out infinite;
}

.main-service-section::before {
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url('/images/main/naru_main_ser_bg02.webp');
}

.main-product-section::before {
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url('/images/main/naru_main_ser_bg03.webp');
}

@keyframes bgMove {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ====================================== */
/* ======= 5. 화살표 버튼 스타일 ======= */
/* ====================================== */

.card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 4rem;
}

/* 이미지 스타일 */
.card-arrow img {
    width: 30%; /* 버튼 너비 조절 */
    height: auto; /* 이미지 비율 유지 */
    transition: transform 0.2s ease-in-out; /* 부드러운 효과를 위한 트랜지션 */
}

/* 호버 효과 */
.card-arrow:hover img {
    transform: scale(1.1); /* 마우스를 올리면 아이콘이 약간 커지는 효과 */
}

.card-arrow.left {
    left: -1.9rem; /* 위치 조정 */
}

.card-arrow.right {
    right: -1.9rem; /* 위치 조정 */
}

.card-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 화살표 버튼 비활성화 상태 */
.card-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none; /* 클릭 및 호버 이벤트를 모두 막습니다. */
}

/* 비활성화 상태에서는 호버 효과 발생하지 않음 */
.card-arrow:disabled:hover img {
    transform: none;
}

/* ====================================== */
/* ===== 6. PC 반응형 (769px 이상) ===== */
/* ====================================== */

@media (min-width: 769px) {
    /* Product 섹션 2개 카드 중앙 정렬 */
    .main-product-section .card-grid {
        justify-content: center;
        padding-left: 40px; /* 좌측 네비 공간 제거 */
    }
}

/* ====================================== */
/* ===== 7. 모바일 반응형 (768px 이하) ===== */
/* ====================================== */

@media (max-width: 768px) {
    .card-grid {
        /* 모바일에서는 좌측 네비 공간 제거 및 전체 너비 사용 */
        padding: 20px;
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
        clip-path: none;
        max-width: none;
        gap: 1rem;
        scroll-padding: 0 20px;
    }

    .service-card,
    .product-card {
        /* 모바일 카드 하나씩 표출 */
        flex: 0 0 calc(100vw - 40px);
        max-width: 400px;
    }

    .main-service-section, 
    .main-product-section {
        padding: clamp(3rem, 8vh, 4rem) 0;
    }

    /* 모바일에서 화살표 버튼 숨기기 */
    .card-arrow {
        display: none;
    }
}




/* ===== 05. REFERENCES SECTION ===== */

/* 전체 섹션 기본 구조 */
.main-references-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  padding: clamp(4rem, 8vh, 6rem) 0;
  position: relative;
  overflow: hidden;
}

/* 배경 이미지 */
.main-references-section::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: 
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url('/images/main/naru_main_ser_bg04.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 컨테이너 내부 요소 */
.main-references-section > * {
  position: relative;
  z-index: 1;
}

/* ===== 로고 캐러셀 ===== */
.logo-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0rem;
  overflow: hidden;
  z-index: 2;
}

.logo-grid-container {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 2rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 270px);
  grid-template-rows: repeat(4, 80px);
  gap: clamp(1rem, 2vw, 1.5rem);
  opacity: 0;
  transition: all 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  justify-content: center;
  width: 100%;
  max-width: 1400px;
}

.logo-grid.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.logo-item {
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}

.logo-bg {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.logo-bg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== 화살표 버튼 ===== */
.main-references-section .card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 2rem;
}

.main-references-section .card-arrow img {
  width: 30%;
  height: auto;
  transition: transform 0.2s ease-in-out;
}

.main-references-section .card-arrow:hover img {
  transform: scale(1.1);
}

.main-references-section .card-arrow.left {
  left: -1.9rem;
}

.main-references-section .card-arrow.right {
  right: -1.9rem;
}

.main-references-section .card-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 비활성 상태 처리 */
.main-references-section .card-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== 기타 보호 스타일 ===== */
.section {
  position: relative;
  z-index: 1;
}

.main-references-section {
  z-index: 2;
}

.main-references-section .logo-grid:not(.active) {
  visibility: hidden;
  pointer-events: none;
}

.main-references-section .logo-grid.active {
  visibility: visible;
  pointer-events: auto;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(3, 280px);
    grid-template-rows: repeat(5, 100px);
  }
}

@media (max-width: 768px) {
  .logo-carousel {
    padding: 0 1rem;
  }
  .logo-grid-container {
    min-height: auto;
    overflow: visible;
  }
  .logo-grid {
    position: relative;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    grid-template-columns: repeat(2, 250px);
    grid-template-rows: repeat(8, 80px);
  }
  .main-references-section .card-arrow {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(16, 80px);
  }
  .main-references-section .card-arrow {
    width: 40px;
    height: 40px;
  }
}



/* ===== 반응형 미디어쿼리 ===== */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 4vw;
    }
    
    .radar {
        width: 350px;
        height: 350px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(3, 280px);
        grid-template-rows: repeat(5, 100px);
    }
}

@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        justify-content: center;
        max-width: 98vw;
    }
    
    .main-visual-txt-con {
        text-align: center;
        max-width: 100%;
    }
    
    .radar-container {
        width: 100%;
        margin-top: 2rem;
    }
    
    .radar {
        width: 300px;
        height: 300px;
    }
    
    .section-navigation {
        left: 1rem;
    }
}

@media (max-width: 768px) {
    .status-items {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .service-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 250px);
        grid-template-rows: repeat(8, 80px);
    }
    
    /* 모바일에서 fixed 배경 비활성화 */
    .main-visual.dark-hero,
    .status-section,
    .main-service-section,
    .main-product-section,
    .references-section {
        background-attachment: scroll;
    }
}

@media (max-width: 600px) {
    .main-visual.dark-hero {
        min-height: 100dvh;
        padding: 0 0.5rem;
    }
    
    .hero-inner {
        padding: 0;
        gap: 1.8rem;
    }
    
    .radar {
        width: 250px;
        height: 250px;
    }
    
    .section-navigation {
        left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(16, 80px);
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ======================================================== */
/* ===== REFERENCES 섹션 모바일 (768px 이하) ===== */
/* ======================================================== */

@media (max-width: 768px) {
    /* --- 1. 캐러셀 전체 구조 조정 --- */
    .logo-carousel {
        /* 모바일에서는 좌우 화살표 공간 제거 */
        padding: 0 1rem; 
    }

    /* --- 2. 로고 컨테이너 높이 문제 해결 --- */
    .logo-grid-container {
        /* 고정 높이 해제하여 콘텐츠 높이에 맞게 자동 조절 */
        min-height: auto; 
        /* 컨테이너 자체의 스크롤 기능은 불필요하므로 해제 */
        overflow: visible; 
    }

    /* --- 3. 데스크탑 애니메이션 및 위치 해제 --- */
    .logo-grid {
        /* position: absolute 해제하여 일반적인 흐름으로 복귀 */
        position: relative !important; 
        /* transform 값 초기화하여 화면 밖으로 밀려나는 문제 해결 */
        transform: none !important; 
        /* opacity, visibility 강제 활성화하여 항상 보이도록 설정 */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        /* 위치 계산의 기준이 되는 left 값 제거 */
        left: auto;
        top: auto;

        /* 두 번째 로고 세트와의 간격 추가 */
        margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }

    /* 마지막 로고 세트는 하단 마진 불필요 */
    .logo-grid:last-of-type {
        margin-bottom: 0;
    }

    /* --- 4. 모바일 친화적 로고 그리드 재설정 --- */
    .logo-grid {
        /* 화면 크기에 맞춰 자동으로 열 개수가 조절되는 유연한 그리드로 변경 */
        /* 최소 120px 너비를 확보하며, 남는 공간을 채움 */
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        /* 행의 개수나 높이를 자동으로 설정 */
        grid-template-rows: auto;
        gap: 1rem; /* 모바일에 맞는 간격으로 조정 */
    }

    /* --- 5. 불필요한 데스크탑 UI 요소 숨김 --- */
    .carousel-arrow {
        /* 모바일에서는 좌우 화살표 버튼 숨김 */
        display: none !important; 
    }

    /* --- 기존 768px 미디어 쿼리와의 충돌 방지 --- */
    /* 아래 코드는 이미 존재할 수 있으나, 재확인 차원에서 포함합니다. */
    .service-grid,
    .product-grid { 
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .main-visual.dark-hero,
    .status-section,
    .main-service-section,
    .main-product-section,
    .references-section {
        background-attachment: scroll;
    }
}

/* 480px 이하 추가 수정 */
@media (max-width: 480px) {
    .logo-grid {
        /* 더 작은 화면에서는 최소 너비를 100px로 조정 */
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* main.css에 추가 헤더 햄버거, 한글 메뉴 간격 조절 값 (메인에서만 적용) */
.header .header-inner {
  padding-right: 1.4rem;
}

.header .gnb-center {
  margin-right: 2rem;
}

.header .hamburger {
  margin-right: 0.93rem;
}

