* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;;
}

@font-face {
	font-family: 'Orbitron';
	font-weight: 800;
	font-display: swap;
	src: url(../fonts/orbitron-black.otf) format('opentype');
}

@font-face {
    font-family: 'OngleIpSeaBreeze';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2510-1@1.0/Ownglyph_the_sea_breeze-Rg.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

html, body {
    height: 100%;
    font-family: 'Pretendard', 'Montserrat', sans-serif;
}

html, body, a, button, input, textarea, .section,.swiper, .swiper-container, .swiper-wrapper, .swiper-slide {
    cursor: none !important;
}
/* 풀페이지 */
.fullpage-wrapper { height: 100vh; overflow: hidden; position: relative; }
.sections-container { height: 100%; transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1); }
.section { height: 100vh; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }



/* 풀페이지 */
.fullpage-wrapper { height: 100vh; overflow: hidden; position: relative; }
.sections-container { height: 100%; transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1); }
.section { height: 100vh; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* 메인 비주얼 */
.section-main { background: #0a0a0a; flex-direction: column; cursor: none; }
.moving-gallery { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
.gallery-row { display: flex; position: absolute; white-space: nowrap; }
.gallery-row-1 { animation: scrollLeft 60s linear infinite; }
.gallery-row-2 { top: 35%; animation: scrollRight 55s linear infinite; }
.gallery-row-3 { top: 65%; animation: scrollLeft 65s linear infinite; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.gallery-item { width: 280px; height: 180px; margin: 0 20px; border-radius: 12px; background-size: cover; background-position: center; opacity: 0.5; flex-shrink: 0; transition: opacity 0.5s ease; }
.vignette-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.8) 60%, rgba(10,10,10,0.98) 100%); z-index: 2; pointer-events: none; }

/* 커스텀 커서 */
.custom-cursor {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 40px;
    height: 40px;
    
    border: 2px solid #E8941A;
    background-color: rgba(232, 148, 26, 0.1);
    border-radius: 50%;
    
    pointer-events: none; 
    z-index: 2147483647 !important; 
    
    will-change: transform;       
    backface-visibility: hidden;  
    
    /* [수정] 초기 위치를 화면 밖으로 보내거나 0,0으로 설정 (JS가 즉시 덮어씀) */
    transform: translate3d(0, 0, 0); 
    
    /* [중요] transition에서 transform을 뺐는지 다시 확인하세요! */
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    
    mix-blend-mode: difference;
    opacity: 1 !important;
}

/* 마우스가 링크에 올라갔을 때 (확대 효과) */
.custom-cursor.expanded {
    width: 60px;      /* 크기 확대 */
    height: 60px;     /* 크기 확대 */
    background: rgba(232, 148, 26, 0.2); /* 배경은 연하게 */
    border: 1px solid #E8941A;           /* 테두리 추가 */
}
/* 인트로 오버레이 */
.intro-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 100; display: flex; align-items: center; justify-content: center; 
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1); 
    background-color: #0a0a0a; /* 배경색 명시 */
}
.intro-overlay.fade-out { opacity: 0; pointer-events: none; }

.intro-scene { 
    position: relative; width: 100%; height: 100%; 
    overflow: hidden; /* 내부 요소가 커질 때 스크롤 방지 */
    font-family: 'Orbitron', sans-serif;
    
}

.intro-scene{
    font-size:56px;
}
/* 새로운 인트로 애니메이션 */
.glowing-text-container { 
    position: absolute; /* absolute로 변경하여 정중앙 고정 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; 
    opacity: 0; 
    transition: opacity 1s ease; 
    width: 100%;
    text-align: center;
    pointer-events: none;
}
.glowing-text-container.show { opacity: 1; }
.intro-full-text { 
    font-size: 72px; 
    font-weight: 300; 
    display: inline-flex; /* flex로 변경하여 가로 정렬 유지 */
    justify-content: center; 
    align-items: center;
    white-space: nowrap;
}

.intro-full-text .char { 
    display: inline-block; 
    transition: all 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    transform-origin: center;
    opacity: 1;
    max-width: 100px; 
    margin: 0 1px;
    color: rgba(255, 255, 255, 0.37);
}

/* 2. 사라질 때 (공간 삭제) - 가장 중요 */
.intro-full-text .char.vanish-active { 
    opacity: 0; 
    max-width: 0px !important; 
    margin: 0 !important;      
    padding: 0;
    transform: scale(0);       
}

/* 3. 남은 글자 빛남 */
.intro-full-text .char.glow {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 30px rgba(255, 255, 255, 0.8);
    opacity: 1; /* dim 클래스 덮어쓰기 */
}
.intro-full-text .char.fade-away { opacity: 0; transform: translateY(-20px); }
/* 2. 아웃라인 텍스트 컨테이너 (뒤에 나타날 선) */
.devrection-outline-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 정확히 중앙 배치 */
    z-index: 5; /* 메인 텍스트 뒤 */
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.devrection-outline {
    font-size: 72px; /* 메인 텍스트와 크기 동일 */
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 0.5px #fff; /* 주황색 선 */
    letter-spacing: normal; /* 글자 간격 초기화 */
    display: inline-block;
    margin: 0; /* 마진 제거 */
}

/* 아웃라인 등장 */
.devrection-outline-wrapper.show {
    opacity: 1; 
    /* 등장 시 살짝 확대된 상태에서 원래 크기로 돌아오거나, 살짝만 키워둠 */
    transform: translate(-50%, -50%) scale(1.05); 
}

.glowing-text-container.zoom-out {
    transform: translate(-50%, -50%) scale(20); /* 위치 유지하며 확대 */
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.5s ease-in;
}

.devrection-outline-wrapper.zoom-out {
    transform: translate(-50%, -50%) scale(20); /* 위치 유지하며 확대 */
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.5s ease-in;
}

/* Devrection만 표시 */
.devrection-only { position: absolute; opacity: 0; transition: opacity 0.8s ease; }
.devrection-only.show { opacity: 1; }
.devrection-only.fade-out { opacity: 0; }
.glowing-devrection {
    font-size: 120px;
    font-weight: 200;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(232,148,26,0.6), 0 0 80px rgba(232,148,26,0.4), 0 0 120px rgba(232,148,26,0.2);
    letter-spacing: 5px;
}



/* 슬로건 */
.intro-slogan { position: absolute; text-align: center; opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.intro-slogan.show { opacity: 1; transform: translateY(0); }
.intro-slogan.fade-out { opacity: 0; transform: translateY(-30px); }
.slogan-text { font-size: 32px; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.slogan-brand { font-size: 56px; font-weight: 500; color: #E8941A; text-shadow: 0 0 30px rgba(232,148,26,0.5); }

/* 인트로 그룹 */
.intro-group-1, .intro-group-2 { position: absolute; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(20px); }
.intro-group-1.show, .intro-group-2.show { animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.intro-group-1.fade-out, .intro-group-2.fade-out { animation: fadeOutUp 1s ease forwards; }

.intro-group-1 .intro-main-text { font-size: 48px; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: -1px; line-height: 1.4; text-align: center; }
.intro-group-1 .intro-main-text .highlight { color: #fff; }
.intro-group-2 .intro-sub-text { font-size: 28px; font-weight: 400; color: rgba(255,255,255,0.5); line-height: 1.6; text-align: center; }
.intro-group-2 .intro-sub-text .em { color: #fff; font-weight: 500; }

@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeOutUp { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-30px); } }





/* ========== 메인 콘텐츠 ========== */
.main-content-wrapper {
    position: absolute;  /* 절대 위치로 변경 */
    bottom: 15%;         /* 화면 아래에서 15% 정도 띄움 */
    right: 8%;           /* 화면 오른쪽에서 8% 정도 띄움 */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 아이템들을 오른쪽 끝으로 정렬 */
    justify-content: center;
    z-index: 10;         /* 트랙(z-index:1)보다 위에 오도록 */
    opacity: 0;
    transform: translateY(60px);
    text-align: right;   /* 텍스트 내용 우측 정렬 */
}

.main-content-wrapper.show {
    animation: mainReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mainReveal {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 메인 텍스트 스타일 */
.main-title-text {
    font-size: 35px;
    font-weight: 300;
    color: #111;
    line-height: 1.4; /* 줄간격 살짝 여유 있게 */
    margin-bottom: 40px;
    letter-spacing: -1px;
    word-break: keep-all;
}

/* 롤링 텍스트 컨테이너 */
.word-rotator {
    display: inline-grid; /* 단어들을 한 곳에 겹치기 위함 */
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    vertical-align: bottom; /* 텍스트 베이스라인 맞춤 */
    overflow: hidden; /* 영역 밖 글자 숨김 */
    position: relative;
    min-width: 2em; /* 최소 너비 확보 */
    text-align: center; /* 단어 가운데 정렬 */
}

/* 개별 단어 스타일 */
.word-rotator .word {
    grid-area: 1 / 1; /* 같은 위치에 겹치기 */
    display: block;
    background-clip: text;
    color: #000; 
    white-space: nowrap;
    padding:0 10px;
    /* 애니메이션 초기 상태 (아래에 숨김) */
    transform: translateY(100%);
    opacity: 0;
    font-style: italic;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    text-align: right;
    font-family: 'OngleIpSeaBreeze';
    font-size: 58px;
    -webkit-text-stroke:0.7px;
}

/* 현재 보이는 단어 */
.word-rotator .word.visible {
    transform: translateY(0);
    opacity: 1;
}

/* 위로 사라지는 단어 */
.word-rotator .word.hidden-up {
    transform: translateY(-100%);
    opacity: 0;
}

/* 강조 텍스트 (볼드 처리) */
.main-title-text .highlight {
    color: #111;          /* 색상은 통일하되 */

}
.main-content-wrapper.show .main-title-text {
    animation: textFadeIn 1s ease forwards;

}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}






/* ABOUT US 버튼 */
.main-about-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #111; /* 테두리 검정 */
    color: #111;            /* 글자 검정 */
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: transparent;
}

/* 버튼 호버 효과 */
.main-about-btn:hover {
    background: #111;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.main-content-wrapper.show .main-about-btn {
    animation: textFadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

/* 메인 이미지 - 숨김 처리 */
.main-image-container {
    display: none;
}



.section-main video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-main .section-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.section-main h1 {
    font-size: 41px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.section-main p {
    font-size: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.section.active .section-main h1,
.section.active .section-main p,
.section-main.active h1,
.section-main.active p {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 메인 비주얼 컴포넌트 ========== */
.main-visual-component {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 70vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5;
    padding: 0 40px;
}

/* 스마트폰 목업 */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.4);
    z-index: 10;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s ease;
}

.section-main.active .phone-mockup {
    transform: translateY(80px);
    opacity: 1;
    transition-delay: 0.5s;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #87CEEB 0%, #87CEEB 60%, #E8941A 60%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* 폰 상단 바 */
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #333;
}

.phone-header .menu-icon {
    font-size: 20px;
}

.phone-header .search-icon {
    font-size: 18px;
}

/* 폰 화면 내 빌딩 이미지 영역 */
.phone-image {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #87CEEB 0%, #5BA3C6 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.building-silhouette {
    width: 80%;
    height: 150px;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
    clip-path: polygon(10% 100%, 10% 30%, 20% 30%, 20% 20%, 35% 20%, 35% 40%, 45% 40%, 45% 10%, 55% 10%, 55% 40%, 65% 40%, 65% 25%, 80% 25%, 80% 35%, 90% 35%, 90% 100%);
}

/* 폰 내 메시지 박스 */
.phone-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #E8941A;
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    width: 85%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.phone-message p {
    color: #fff;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
    opacity: 1;
    transform: none;
}

.phone-message .bracket {
    color: rgba(255,255,255,0.8);
}

/* 폰 하단 홈 인디케이터 */
.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

/* ========== 좌우 카드 ========== */
.info-card {
    position: absolute;
    bottom: 80px;
    width: 300px;
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s ease;
}

/* 왼쪽 카드 - Mission */
.card-mission {
    left: calc(50% - 480px);
    transform: translateX(-50px) translateY(100px);
}

.section-main.active .card-mission {
    transform: translateX(0) translateY(0);
    opacity: 1;
    transition-delay: 0.8s;
}

/* 오른쪽 카드 - Vision */
.card-vision {
    right: calc(50% - 480px);
    transform: translateX(50px) translateY(100px);
}

.section-main.active .card-vision {
    transform: translateX(0) translateY(0);
    opacity: 1;
    transition-delay: 1s;
}

/* 카드 아이콘 */
.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ccc;
    fill: none;
    stroke-width: 1.5;
}

/* 카드 타이틀 */
.card-title {
    font-size: 32px;
    font-weight: 700;
    color: #E8941A;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

/* 카드 본문 */
.card-text {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

.card-text .underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-text .highlight {
    color: #E8941A;
}





/* 섹션 02 */
.section-02 {
    background-color: #111; /* 짙은 배경 */
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 맨 뒤로 */
    overflow: hidden;
}

/* 비디오 스타일 */
.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 화면 꽉 차게 */
    opacity: 0.6; /* 비디오 투명도 조절 (너무 튀지 않게) */
}

/* 비디오 오버레이 (텍스트 가독성 확보) */
.bg-video-wrapper .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 33%); /* 검은색 반투명 (조절 가능) */
    z-index: 1; /* 비디오 바로 위 */
}
.sec02-container {
    width: 100%;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* --- 왼쪽: 아웃라인 텍스트 --- */
.sec02-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.outline-text-box {
    position: relative;
}

.outline-typo {
    font-size: 100px; /* 매우 큰 폰트 */
    font-weight: 800;
    line-height: 0.9;
    font-family: 'Orbitron', sans-serif; /* 헤드라인 폰트 사용 */
    display: flex;
    flex-direction: column;
}

.outline-typo .line {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); /* 얇은 외곽선 */
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(-50px);
}

/* 호버 시 채워지는 효과 (선택사항) */
.outline-typo:hover .line {
    -webkit-text-stroke: 1px #E8941A;
    color: rgba(232, 148, 26, 0.1);
}

/* 섹션 활성화 시 등장 애니메이션 */
.section-02.active .outline-typo .line {
    opacity: 1;
    transform: translateX(0);
}
.section-02.active .outline-typo .line:nth-child(1) { transition-delay: 0.2s; }
.section-02.active .outline-typo .line:nth-child(2) { transition-delay: 0.4s; }
.section-02.active .outline-typo .line:nth-child(3) { transition-delay: 0.6s; }


/* --- 오른쪽: 설명 및 스탯 --- */
.sec02-right {
    flex: 1;
    padding-left: 80px; /* 왼쪽과의 간격 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 설명 텍스트 */
.sec02-desc-box {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

.section-02.active .sec02-desc-box {
    opacity: 1;
    transform: translateY(0);
}

.sec02-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.sec02-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    font-weight: 300;
}

.sec02-desc strong {
    color: #fff;
    font-weight: 600;
}

/* 스탯 카운터 (기존 로직 활용) */
.sec02-stats-row {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.8s;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.section-02.active .sec02-stats-row {
    opacity: 1;
    transform: translateY(0);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 48px;
    font-weight: 700;
    color: #E8941A; /* 포인트 컬러 */
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 5px;
}

.stat-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 버튼 (History) */
.sec02-btn-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 1s;
}

.section-02.active .sec02-btn-wrap {
    opacity: 1;
    transform: translateY(0);
}

.history-btn {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px; /* 둥근 버튼 */
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
}

.history-btn:hover {
    background: #E8941A;
    border-color: #E8941A;
    color: #fff;
    box-shadow: 0 5px 15px rgba(232, 148, 26, 0.4);
}



/* 왼쪽 텍스트 영역 - 기존 스타일 유지 */
.section-02-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.section-02-left h2 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-02-left p {
    font-size: 18px;
    color: fff;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.15s;
}

.section-02.active .section-02-left h2,
.section-02.active .section-02-left p {
    opacity: 1;
    transform: translateY(0);
}

/* 오른쪽 원형 영역 */
.section-02-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 원형 그라데이션 컨테이너 */
.circle-container {
    position: relative;
    width: 500px;
    height: 500px;
}

/* 공통 원 스타일 */
.circle {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 가장 큰 원 (바깥) */
.circle-outer {
    width: 500px;
    height: 500px;
    background: rgba(245, 166, 35, 0.2);
}

/* 중간 원 */
.circle-middle {
    width: 380px;
    height: 380px;
    background: rgba(245, 166, 35, 0.35);
    transition-delay: 0.15s;
}

/* 가장 작은 원 (안쪽) */
.circle-inner {
    width: 260px;
    height: 260px;
    background: rgba(245, 166, 35, 0.5);
    transition-delay: 0.3s;
}

/* 활성화 시 원 퍼지는 애니메이션 */
.section-02.active .circle {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ========== 인터랙티브 원형 메뉴 시스템 ========== */

/* 회전하는 버튼 컨테이너 - 이제 회전하지 않고 각 버튼의 위치만 변경 */
.rotating-menu {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* 해시태그 버튼들 - 위치는 JavaScript로 제어 */
.hashtag {
    position: absolute;
    background: #F5A623;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    cursor: pointer;
    user-select: none;
    /* 버튼의 중심점을 기준으로 위치 설정 */
    transform: translate(-50%, -50%) scale(0.8);
}

.hashtag:hover {
    background: #e09520;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.hashtag.active-btn {
    background: #ff8e22;
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.6);
}

/* 활성화 시 해시태그 나타남 */
.section-02.active .hashtag {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 둥둥 떠다니는 애니메이션 - 비활성 상태일 때만 */
@keyframes float-hashtag {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        transform: translate(-50%, calc(-50% - 10px)) scale(1); 
    }
}

.section-02.active .hashtag:not(.active-btn):not(.animating) {
    animation: float-hashtag 3s ease-in-out infinite;
}

/* 중앙 텍스트 영역 */
.center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    width: 200px;
    pointer-events: none;
}

.center-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.center-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

.center-content.show .center-title,
.center-content.show .center-desc {
    opacity: 1;
    transform: translateY(0);
}

/* 연결선 SVG 컨테이너 */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.connection-lines svg {
    width: 100%;
    height: 50%;
    overflow: visible;
}

/* 연결선 스타일 */
.connection-line {
    fill: none;
    stroke: #ff8e22;
    stroke-width: 2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease;
    opacity: 0;
}

.connection-line.show {
    stroke-dashoffset: 0;
    opacity: 1;
}

/* 연결선 끝 점 */
.line-dot {
    fill: #ff7300;
    opacity: 0;
    transform-origin: center;
    transition: all 0.4s ease 0.6s;
}

.line-dot.show {
    opacity: 1;
}

/* 펄스 애니메이션 - 활성화된 버튼 */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(245, 166, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
    }
}

.hashtag.active-btn {
    animation: pulse-ring 1.5s infinite !important;
}

/* ========== 서비스 이미지 영역 ========== */
.service-image-container {
    position: absolute;
    top: 0;
    left: -50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    z-index: 0;

}

.service-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.service-image.active {
    opacity: 1;
    transform: translateY(0%);
}



/* 섹션 03 */
.section-03 {
    background-color: #000;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transform: translateZ(0);
    cursor: none !important;
}
.swiper-container, 
.swiper-wrapper, 
.swiper-slide,
.portfolio-card, 
.portfolio-card img,
.portfolio-nav-btn {
    cursor: none !important;
}
.section-03-layout {
    width: 100%;
    /* 좌우 여백을 줄여서 슬라이더가 더 넓게 보이도록 함 */
    max-width: 90%; 
    position: relative;
    z-index: 2;

}

/* 타이틀 영역 */
.portfolio-title-wrapper {
    margin-bottom: 50px;
    padding-right: 5%; /* 타이틀은 우측 여백 맞춤 */
}

.portfolio-title {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    letter-spacing: 2px;
}

/* 슬라이더 영역 */
.portfolio-slider-wrapper {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-03.active .portfolio-slider-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
    transition-duration: 1s;
}

/* Swiper 컨테이너 */
.portfolio-swiper {
    width: 100%;
    padding-bottom: 80px !important; /* 하단 공간 확보 */
    overflow: visible !important;
}

/* [중요] 슬라이드 너비를 CSS가 제어하도록 설정 */
.portfolio-swiper .swiper-slide {
    width: auto; /* JS의 고정 너비 무시 */
    height: auto;
    margin-right: 30px; /* 슬라이드 간격 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* [핵심 디자인] 패턴 만들기 (너비 불규칙하게)
   nth-child를 사용하여 반복적인 리듬감을 줍니다.
*/

/* 패턴 1: 기본 (350px) */
.portfolio-swiper .swiper-slide {
    width: 350px; 
}

/* 패턴 2: 넓은 가로형 (500px) - 2번째, 6번째... */
.portfolio-swiper .swiper-slide:nth-child(4n+2), 
.portfolio-swiper .swiper-slide:nth-child(4n+3) {
    width: 500px;
}

/* 패턴 3: 좁은 세로형 (280px) - 1번째, 5번째... */
.portfolio-swiper .swiper-slide:nth-child(4n+1) {
    width: 280px;
}


/* 포트폴리오 카드 (배경색 추가) */
.portfolio-card {
    display: flex;
    flex-direction: column;
    border-radius: 30px; 
    padding: 25px; /* 내부 여백을 늘려 배경이 잘 보이게 함 */
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    height: 100%; 
    
}

/* 1번째, 5번째... (좁은 카드) */
.portfolio-swiper .swiper-slide:nth-child(4n+1) .portfolio-card img{
    /* background-color: #E91E63; /* 가장 밝은 톤 */
}

/* 2번째, 6번째... (넓은 카드) */
.portfolio-swiper .swiper-slide:nth-child(4n+2) .portfolio-card img{
   /* background-color: #663ab6; /* 가장 어두운 톤 (묵직함) */
}

/* 3번째, 7번째... (넓은 카드) */
.portfolio-swiper .swiper-slide:nth-child(4n+3) .portfolio-card img{
    /* background-color: #3f51b5; /* 중간 톤 */
}

/* 4번째, 8번째... (기본 카드) */
.portfolio-swiper .swiper-slide:nth-child(4n+4) .portfolio-card img{
    /* background-color: #0086d4; /* 약간 색다른 톤 */
}

/* 호버 효과 */
.portfolio-card:hover img{
    transform: translateY(-15px);
    border-color: #e8961a98;
    box-shadow: 0 5px 15px rgb(255 193 7 / 40%);
}

/* 이미지 스타일 (비율 다양화) */
.portfolio-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 500px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 300px;
    transition: all 0.5s ease;
    background-color: #ffffff21;
    border: 1px solid #ffffff2b;
    backdrop-filter: blur(5px);
}

/* [핵심] 이미지 비율도 슬라이드 너비에 따라 조정 */
/* 좁은 카드: 이미지를 길게 (세로형) */
.portfolio-swiper .swiper-slide:nth-child(4n+1) .portfolio-card img {
    height: 380px; /* 더 길게 */
}

/* 넓은 카드: 이미지를 짧게 (가로형) */
.portfolio-swiper .swiper-slide:nth-child(4n+2) .portfolio-card img,
.portfolio-swiper .swiper-slide:nth-child(4n+3) .portfolio-card img {
    height: 280px; /* 더 짧게 */
}


/* 텍스트 정보 */
.portfolio-card-left {
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* 네비게이션 버튼 */
.portfolio-nav {
    position: absolute;
    top: -80px;
    right: 0; /* 우측 정렬 */
    display: flex;
    gap: 10px;
    z-index: 30;
}

.portfolio-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-nav-btn:hover {
    background: #E8941A;
    border-color: #E8941A;
}

/* 페이지네이션 */
.portfolio-pagination {
    bottom: 0 !important;
    text-align: center;
    display:none;
}

.portfolio-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.portfolio-pagination .swiper-pagination-bullet-active {
    background: #E8941A;
    width: 30px;
    border-radius: 5px;
}

/* 배경 텍스트 최적화 */
.section-03-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 150%;
    display: flex;
    flex-direction: column;
    gap: 50px;

    pointer-events: none;
    z-index: -1;
}

.bg-text-row {
    font-size: 150px;
    font-weight: 900;
    white-space: nowrap;
    display: flex;
    gap: 50px;
    font-family: 'Orbitron', sans-serif;
    /* [Outline 스타일 적용] */
    color: transparent; /* 내부는 투명하게 */
    -webkit-text-stroke: 2px #ffffff5c; /* 테두리는 흰색 2px */
    text-stroke: 2px #ffffff5c;         /* 표준 속성 (지원 브라우저용) */
    
    animation-play-state: paused;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.section-03.active .bg-text-row {
    animation-play-state: running;
}

/* [수정] 애니메이션 이름을 기존에 정의된 'scrollLeft', 'scrollRight'로 변경 */
.bg-text-row:nth-child(1) { 
    animation: scrollLeft 60s linear infinite; 
    animation-play-state: paused; 
}

.bg-text-row:nth-child(2) { 
    animation: scrollRight 70s linear infinite; 
    animation-play-state: paused; 
}

/* 활성화 시 다시 running 처리 (우선순위 확보) */
.section-03.active .bg-text-row:nth-child(1) { animation-play-state: running; }
.section-03.active .bg-text-row:nth-child(2) { animation-play-state: running; }


/* ========== 다크 테마 섹션 (02, 03) - 검은색 UI ========== */
/* 헤더 - 다크 테마 */

#header.dark-theme .header-nav > ul > li > a {
    color: #333;
}

#header.dark-theme .mobile-menu-toggle {
    color: #333;
}

/* 페이지네이션 - 다크 테마 */
.page-pagination.dark-theme .pagination-line {
    background: rgba(0,0,0,0.3);
}

.page-pagination.dark-theme .dot {
    background: rgba(0,0,0,0.4);
}

.page-pagination.dark-theme .dot-wrapper.active .dot {
    background: #333;
}

.page-pagination.dark-theme .dot-wrapper.active .dot::before {
    border-color: rgba(0,0,0,0.5);
}

.page-pagination.dark-theme .dot-label {
    color: rgba(0,0,0,0.5);
}

.page-pagination.dark-theme .dot-wrapper.active .dot-label {
    color: #333;
}

.page-pagination.dark-theme .dot-wrapper:hover .dot-label {
    color: #333;
}

/* 스크롤 인디케이터 - 다크 테마 */
.scroll-indicator.dark-theme .mouse {
    border-color: rgba(0,0,0,0.5);
}

.scroll-indicator.dark-theme .mouse::before {
    background: rgba(0,0,0,0.5);
}

.scroll-indicator.dark-theme .arrow {
    color: rgba(0,0,0,0.5);
}

/* 섹션 04, 05 */
.section-04 {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
}

.section-05 {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
}

/* 섹션 공통 콘텐츠 스타일 */
.section-content {
    text-align: center;
    z-index: 10;
}

.section-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-content p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.8;
}

/* 페이지네이션 */
.page-pagination {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.pagination-line {
    position: absolute;
    right: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(255,255,255,0.3);
    display:none;
}

.dot-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.dot-wrapper.active .dot {
    background: #fff;
}

.dot-wrapper.active .dot::before {
    border-color: rgba(255,255,255,0.5);
}

.dot-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dot-wrapper.active .dot-label {
    color: #fff;
}

.dot-wrapper:hover .dot-label {
    color: #fff;
}

/* 스크롤 인디케이터 */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scroll-animation 1.5s infinite;
}

/* 아웃라인 텍스트 컨테이너 (메인 텍스트 뒤에 위치) */
.devrection-outline-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* 메인 텍스트(z-index:10) 뒤 */
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

/* 아웃라인 텍스트 스타일 */
.devrection-outline {
    font-size: 72px; /* 합쳐진 텍스트 크기와 일치 */
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px #fff; /* 주황색 테두리 */
    letter-spacing: normal;
    display: inline-block;
}

/* 아웃라인 등장 클래스 */
.devrection-outline-wrapper.show {
    opacity: 0.6; /* 은은하게 뒤에 보이도록 */
    /* 살짝 확대되어 뒤에 있는 느낌 강조 */
    transform: translate(-50%, -50%) scale(1.1); 
}

/* [중요] 확대되며 사라지는(Zoom Out) 애니메이션 */
/* 메인 텍스트와 아웃라인 텍스트가 동시에 엄청 커지면서 투명해짐 */
.glowing-text-container.zoom-out, 
.devrection-outline-wrapper.zoom-out {
    transform: translate(-50%, -50%) scale(15); /* 15배 확대 */
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.5s ease-in;
}

/* 메인 텍스트 컨테이너는 원래 transform이 없으므로 zoom-out 시 중앙 정렬 보정 */
.glowing-text-container.zoom-out {
    /* 원래 위치에서 확대 */
    transform: scale(15);
    transform-origin: center;
}
@keyframes scroll-animation {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator .arrow {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    animation: arrow-bounce 1.5s infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: right 0.4s ease;
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.mobile-menu-nav ul {
    list-style: none;
}

.mobile-menu-nav > ul > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-nav > ul > li > a {
    display: block;
    padding: 20px 0;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-nav .submenu {
    padding: 0 0 15px 15px;
}

.mobile-menu-nav .submenu li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    text-decoration: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    background: #F5A623;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}


/* =========================================
   [추가] 화이트 인트로 전환 & 라이트 모드 스타일
   ========================================= */

/* 1. 인트로 오버레이 화이트 전환 */
.intro-overlay.white-transition {
    background-color: #ffffff !important; /* 배경을 하얗게 변경 */
    transition: background-color 1s ease; /* 부드럽게 전환 */
}

/* 2. 메인 섹션 화이트 배경 */
.section-main.white-bg {
    background: #ffffff !important;
}

/* 메인 텍스트 컬러 반전 (검정색) */
.section-main.white-bg .main-title-text {
    color: #c0c0c0 !important;
    line-height: inherit;
}
.section-main.white-bg .main-title-text .highlight {
    color: #111 !important;
    font-weight: 600;
    font-style: italic;
    margin-right: 20px;
    font-size: 46px;
}

/* 3. 확대 애니메이션 수정 (사라지지 않고 덮치는 느낌) */
/* 중요: 기존의 .zoom-out 스타일보다 우선순위를 높이기 위해 !important 사용 */
.glowing-text-container.zoom-out, 
.devrection-outline-wrapper.zoom-out {
    transform: translate(-50%, -50%) scale(100) !important; /* 화면을 덮을 정도로 크게 확대 */
    opacity: 1 !important; /* 투명해지지 않음 */
    transition: transform 2s cubic-bezier(0.7, 0, 0.3, 1); /* 천천히 확대 */
}

/* 4. 헤더 & UI 다크 테마 (흰 배경 위 검은 글씨) 적용 */
/* 로고 색상 반전 (검은색 로고로) */
#header.dark-theme .logo img {
    filter: invert(1) brightness(0);
}

/* 메뉴 텍스트 */
#header.dark-theme .header-nav > ul > li > a {
    color: #111 !important;
}
#header.dark-theme .header-nav > ul > li > a:hover,
#header.dark-theme .header-nav > ul > li > a.active {
    color: #E8941A !important;
}

/* 모바일 토글 버튼 */
#header.dark-theme .mobile-menu-toggle {
    color: #111 !important;
}

/* 페이지네이션 (우측 점) */
.page-pagination.dark-theme .dot {
    background: rgba(0, 0, 0, 0.2); 
}
.page-pagination.dark-theme .dot-wrapper.active .dot {
    background: #111; 
}
.page-pagination.dark-theme .dot-wrapper.active .dot::before {
    border-color: rgba(0, 0, 0, 0.2);
}
.page-pagination.dark-theme .dot-label {
    color: rgba(0, 0, 0, 0.4);
}
.page-pagination.dark-theme .dot-wrapper.active .dot-label {
    color: #111;
}

/* 스크롤 인디케이터 (마우스 아이콘) */
.scroll-indicator.dark-theme .mouse {
    border-color: rgba(0, 0, 0, 0.3);
}
.scroll-indicator.dark-theme .mouse::before {
    background: #111;
}
.scroll-indicator.dark-theme .arrow {
    color: #111;
}

/* 트랙 공통 스타일 */
/* 1. 단일 대각선 트랙 래퍼 */
.diagonal-track-wrapper.single-track {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 화면을 가로지르도록 넉넉한 너비 */
    width: 150vw; 
    
    /* 텍스트(50px) + 이미지(180px) + 텍스트(50px) = 약 280px */
    height: auto; 
    
    /* 대각선 회전 (-10도) */
    transform: translate(-50%, -50%) rotate(-10deg);
    
    background-color: transparent; /* 전체 배경은 투명 */
    
    opacity: 0; 
    transition: opacity 1.5s ease;
    
    /* [중요] 세로로 쌓기 (텍스트 - 이미지 - 텍스트) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* 요소 사이 간격 */
    
    z-index: 1;
}

.diagonal-track-wrapper.show {
    opacity: 1;
}

/* 2. 텍스트 라인 스타일 */
.track-text-line {
    width: 100%;
    height: 40px; /* 텍스트 줄 높이 */
    display: flex;
    align-items: center;
    overflow: hidden; /* 흐르는 텍스트 잘림 처리 */
    background: transparent; /* 배경 투명 */
    position: relative;
}

/* 텍스트 내용 */
.text-flow-content {
    display: flex;
    white-space: nowrap;
}

.text-flow-content span {
    display: inline-block;
    font-size: 38px; 
    font-weight: 800;
    color: #ededed; /* 요청하신 노란색(주황) 포인트 */
    padding-right: 50px;
    letter-spacing: 1px;
}

/* 스크롤 애니메이션 */
.scroll-left { animation: scrollLeft 20s linear infinite; }
.scroll-right { animation: scrollRight 20s linear infinite; }

/* 3. 무빙 갤러리 컨테이너 (중앙) */
.moving-gallery-container {
    width: 100%;
    height: 180px; /* 이미지 높이 */
    background: #000; /* 이미지 뒤 검은 배경 */
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;

}
.track-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px; /* 선 두께 */
    z-index: 10;
}

/* [핵심] 위쪽 라인 (Cyan -> Blue) */
.track-line.top {
    top: 0; /* 컨테이너 상단에 붙임 */
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        #00f260 20%, 
        #0575e6 80%, 
        transparent 100%
    );
    /* 네온 빛 번짐 효과 */
    box-shadow: 0 -2px 10px rgba(0, 242, 96, 0.5); 
}

/* [핵심] 아래쪽 라인 (Purple -> Orange) */
.track-line.bottom {
    bottom: 0; /* 컨테이너 하단에 붙임 */
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        #b224ef 20%, 
        #E8941A 80%, 
        transparent 100%
    );
    /* 네온 빛 번짐 효과 */
    box-shadow: 0 2px 10px rgba(232, 148, 26, 0.5);
}
/* 내부 갤러리 로직 */
.moving-gallery {
    width: 100%;
    display: flex;
    align-items: center;
}

.gallery-row {
    display: flex;
    white-space: nowrap;
    animation: scrollLeft 40s linear infinite; /* 이미지 흐름 */
}

/* 갤러리 이미지 아이템 */
.gallery-item {
    width: 280px;
    height: 140px;
    margin: 0 10px;
    border-radius: 8px;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.gallery-item:hover {
    filter: grayscale(0%);
    opacity: 0.5;
    transform: scale(1.05);
}

/* 애니메이션 키프레임 */
@keyframes scrollLeft { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}
@keyframes scrollRight { 
    0% { transform: translateX(-50%); } 
    100% { transform: translateX(0); } 
}

/* 인트로 후 화이트 배경 */
.section-main.white-bg {
    background-color: #ffffff !important;
}

/* [커서] Section-02와 동일하게 기본 커서 표시 */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;  /* 원의 크기 */
    height: 40px;
    border: 2px solid #E8941A; /* 주황색 테두리 */
    background-color: rgba(232, 148, 26, 0.1); /* 내부 살짝 주황색 틴트 */
    border-radius: 50%;
    
    /* 정중앙 정렬을 위한 설정 */
    transform: translate(-50%, -50%);
    
    pointer-events: none; /* 클릭 통과 */
    z-index: 999999 !important; /* 최상위 레이어 */
    
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference; /* 배경색에 따라 반전되어 잘 보이게 함 */
    opacity: 1 !important; /* 항상 보임 */
}

/* 3. 클릭 가능한 요소 호버 시 커지는 효과 (선택사항) */
.custom-cursor.expanded {
    width: 60px;
    height: 60px;
    background-color: rgba(232, 148, 26, 0.3);
    border-color: #E8941A;
}

/* 다크 모드 커서 클래스가 붙어도 주황색 유지 */
.custom-cursor.dark-mode-cursor {
    background-color: rgba(232, 148, 26, 0.1) !important;
    border-color: #E8941A !important;
}





/* Footer */
.section-footer { background: #0d1117; color: #fff; padding: 0; display: flex; flex-direction: column; }
.footer-content { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px;  max-width: 80% ; margin: 0 auto; width: 100%; align-items: start; padding-top:150px; }

.footer-left, .footer-right { opacity: 0; transform: translateY(40px); }
.footer-left.animate-in, .footer-right.animate-in { animation: footerFadeIn 0.8s ease forwards; }
@keyframes footerFadeIn { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

.footer-title { font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 30px; display: flex; align-items: center; gap: 12px; font-family: 'Orbitron', sans-serif;}
.footer-title i { font-size: 20px; }

.footer-map-wrapper { 
    margin-bottom: 25px; 
    height: 500px; /* 지도가 잘 보이도록 높이 고정 (조절 가능) */
    width: 100%;
}

.map-placeholder { 
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d); 
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 16px; 
    
    /* [중요] padding을 0으로 변경하여 지도가 꽉 차게 함 */
    padding: 0; 
    
    text-align: center; 
    
    /* 부모 높이(footer-map-wrapper)를 꽉 채우도록 설정 */
    width: 100%;
    height: 100%;
    min-height: auto; /* 기존 min-height 제거 */
    
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    
    /* [중요] 둥근 모서리 밖으로 지도가 튀어나가지 않게 함 */
    overflow: hidden; 
}

.map-placeholder:hover { 
    border-color: rgba(232,148,26,0.3); 
}

/* [추가] iframe(지도) 스타일 */
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* 지도에 흑백 필터를 주고 싶다면 아래 주석 해제 (선택사항) */
    /* filter: grayscale(100%) invert(90%); */
}

/* 기존 아이콘/텍스트 스타일은 지도가 들어가면서 필요 없어지지만, 혹시 모르니 둠 (숨김 처리됨) */
.map-placeholder i, 
.map-placeholder p { 
    display: none; 
}
.map-placeholder { background: linear-gradient(145deg, #1a1a1a, #0d0d0d); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; text-align: center; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.3s ease; }
.map-placeholder:hover { border-color: rgba(232,148,26,0.3); }
.map-placeholder i { font-size: 48px; color: rgba(232,148,26,0.5); margin-bottom: 20px; }
.map-placeholder p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; }

.footer-address-info p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; transition: color 0.3s ease; }
.footer-address-info p:hover { color: rgba(255,255,255,0.8); }
.footer-address-info i { color: #E8941A; width: 20px; font-size: 14px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 20px; padding: 15px 20px; background: rgba(255,255,255,0.02); border-radius: 12px; transition: all 0.3s ease; }
.contact-item:hover { background: rgba(232,148,26,0.08); transform: translateX(5px); }
.contact-item i { font-size: 20px; color: #E8941A; width: 24px; }
.contact-item div { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 16px; color: #fff; font-weight: 500; }

.footer-social { display: flex; gap: 15px; }
.social-link { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; transition: all 0.3s ease; text-decoration: none; }
.social-link:hover { background: #E8941A; border-color: #E8941A; transform: translateY(-5px); }

.footer-bottom {width:100%; border-top: 1px solid rgba(255,255,255,0.05); padding: 30px 100px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); }
.footer-bottom.animate-in { animation: footerFadeIn 0.8s ease forwards 0.4s; }
.footer-logo .logo-text { font-size: 28px; font-weight: 700; color: #E8941A; letter-spacing: 3px; }
.copyright { font-size: 13px; color: rgba(255,255,255,0.4); }

.top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1); /* 반투명 배경 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900; /* 페이지네이션 근처 레벨 */
    
    /* 초기 상태: 숨김 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
    
    /* 커스텀 커서 사용을 위해 시스템 커서 숨김 */
    cursor: none; 
    backdrop-filter: blur(5px);
}

/* 활성화 클래스 */
.top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* 호버 효과 */
.top-btn:hover {
    background: #E8941A;
    border-color: #E8941A;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(232, 148, 26, 0.3);
}

.top-btn i {
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.top-btn:hover i {
    transform: translateY(-2px);
}


/* 반응형 */
@media (max-width: 1240px) {
   .info-card {
        width: 260px;
        padding: 25px 20px;
    }
    
    .card-mission {
        left: 20px;
        transform: translateX(0) translateY(100px);
    }
    
    .card-vision {
        right: 20px;
        transform: translateX(0) translateY(100px);
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .section-02-left {
        padding: 80px 30px 80px 50px;
    }
    
    .section-02-left h2 {
        font-size: 38px;
    }
    
    .circle-container {
        width: 400px;
        height: 400px;
    }
    
    .circle-outer { width: 400px; height: 400px; }
    .circle-middle { width: 300px; height: 300px; }
    .circle-inner { width: 200px; height: 200px; }
    
    .service-image-container {
        width: 280px;
        height: 280px;
    }
    .section-03-layout{
        width: 80%;;
    }
    .portfolio-title{
        font-size:23px;
    }
    .portfolio-swiper{
        padding-bottom: 0px !important;
    }
    .center-content {
        width: 160px;
    }
    
    .center-title {
        font-size: 16px;
    }
    
    .center-desc {
        font-size: 12px;
    }
    .footer-content{
        padding-top:100px;
    }
    .footer-left{
        width:100%;
    }
    .footer-map-wrapper{
        height:170px;
    }
    .footer-content{
    display: flex;
    flex-direction: column;
    gap:30px;
    justify-content: center;
    padding-top:60px;
}

}

@media (max-width: 1240px) {
    .custom-cursor{
        display:none;
    }
}


@media (max-width: 1024px) {
 .glowing-dx {
        font-size: 200px;
    }
    .glowing-dx::after {
        font-size: 200px;
    }
    .gallery-item {
        width: 220px;
        height: 140px;
    }
    
    .sec02-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .sec02-left {
        margin-bottom: 50px;
        justify-content: center;
        position:absolute;
    }
    
    .outline-typo {
        font-size: 70px;
        align-items: center;
    }
    
    .sec02-right {
        padding-left: 0;
        align-items: center;
    }
    
    .sec02-stats-row {
        justify-content: center;
        gap: 30px;
    }

    .footer-right{
        width:100%;
    }

}

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav > ul {
        display: none;
    }
    
    .section-main p {
        font-size: 16px;
    }
    
    .page-pagination {
        display:none;
    }
    
    .page-pagination .dot-label {
        display: none;
    }
    
    .section-content h2 {
        font-size: 32px;
    }
    
    .section-main h1 {
        font-size: 18px;
    }
    .section-main h1.main-title-text{
        font-size: 25px;
        padding:0;
        margin-bottom:10px;
    }
    .section-main .word-rotator span{
        font-size: 28px;
    }
    .main-about-btn{
        padding:8px 20px;
        font-size:12px;
    }
    .main-content-wrapper{
        bottom:20%;
    }
    .portfolio-card{
        width:180px;
        height:180px;
    }
    .glowing-dx {
        font-size: 120px;
        letter-spacing: -5px;
    }
    .glowing-dx::after {
        font-size: 120px;
        letter-spacing: -5px;
    }
    .dx-subtitle {
        font-size: 10px;
        letter-spacing: 4px;
        bottom: -40px;
    }
    .intro-group-1 .intro-main-text {
        font-size: 32px;
    }
    .intro-group-2 .intro-sub-text {
        font-size: 18px;
        padding: 0 30px;
    }
    .main-title-text {
        font-size: 28px;
        padding: 0 20px;
    }
    .gallery-item {
        width: 160px;
        height: 100px;
        margin: 0 10px;
    }


    .info-card {
        display: none;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        border-radius: 30px;
    }
    
    .phone-screen {
        border-radius: 22px;
    }
    
    .phone-message {
        padding: 20px 15px;
    }
    
    .phone-message p {
        font-size: 12px;
    }


    /* section02*/

    .outline-typo {
        font-size: 60px;
    }
    
    .outline-typo .line{
        -webkit-text-stroke: 1px rgb(255 255 255 / 18%);
        opacity: 0.5!important;
    }
    
    .stat-num {
        font-size: 28px;
    }
    .stat-name{
        font-size:9px;
    }
    .sec02-desc-box{
        margin-bottom: 20px;  
    }
    .sec02-subtitle{
        font-size:20px;
        margin-bottom: 20px;
    
    }
    .sec02-desc{
        font-size:14px;
    }
    .sec02-stats-row {
        flex-direction: row;
        gap: 30px;
        margin-bottom: 0;
        padding-top: 20px;
    }

    .section-02-layout {
        flex-direction: column;
    }
    
    .section-02-left {
        flex: none;
        padding: 100px 30px 30px;
        text-align: center;
    }
    .sec02-left{

        margin-bottom:0;
        padding:0;

    }
    .section-02-left h2 {
        font-size: 28px;
    }
    
    .section-02-left p {
        font-size: 15px;
    }
    
    .section-02-right {
        flex: 1;
    }
    
    .circle-container {
        width: 280px;
        height: 280px;
    }
    .section-02.active .sec02-btn-wrap{
        margin-top:80px;
    }
    .circle-outer { width: 280px; height: 280px; }
    .circle-middle { width: 210px; height: 210px; }
    .circle-inner { width: 140px; height: 140px; }
    
    .hashtag {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .service-image-container {
        width: 200px;
        height: 180px;
    }
    
    .center-content {
        width: 120px;
    }
    
    .center-title {
        font-size: 13px;
    }
    
    .center-desc {
        font-size: 10px;
    }

    /* section03 */
    .portfolio-title{
        font-size: 16px;
    }
    .bg-text-row{
        font-size:80px;
    }
    .portfolio-card {
        padding:0;
    }
    .portfolio-card-title{
        font-size:14px;
    }

    .portfolio-card-desc{
        font-size:10px;
    }
    .portfolio-swiper .swiper-slide:nth-child(4n+1),.portfolio-swiper .swiper-slide:nth-child(4n+2), .portfolio-swiper .swiper-slide:nth-child(4n+3),.portfolio-swiper .swiper-slide{
        width:auto;
    }
    .portfolio-card img{
        height:250px;
    }
    .intro-full-text, .devrection-outline { font-size: 32px; }
    .intro-full-text .char { max-width: 40px; }

    /*footer*/

    .footer-title{
        font-size:16px;
        margin-bottom:20px;
    }
    .footer-content{
        display:flex;
        flex-direction: column;
        align-items: center;
        gap:20px;
    }
    .footer-bottom{
        padding: 20px 10px;
    }
    .contact-item{
        padding:10px 20px;
    }
    .contact-value{
        font-size:12px;
    }
    .footer-address-info p{
        font-size:11px;
    }
    .top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
}

@media only screen and (max-height: 600px) and (orientation: landscape) {

    /* 1. 풀페이지 기능 해제 -> 일반 스크롤로 변경 */
    html, body {
        overflow-y: auto !important; /* 세로 스크롤 허용 */
        height: auto !important;
    }
    .word-rotator .word{
        color:#e38d0d;
    }
    .main-about-btn{
        border: 1px solid #FF9800;
        color: #FF9800;
    }
    .fullpage-wrapper {
        height: auto !important;
        overflow: visible !important;
    }

    .sections-container {
        height: auto !important;
        transform: none !important; /* JS에 의한 강제 이동 무시 */
        display: block !important;
    }

    .section {
        height: auto !important;     /* 100vh 강제 해제 */
        min-height: 100vh;           /* 최소 높이만 유지 */
        padding: 60px 0 !important;  /* 위아래 여백 확보 */
        overflow: visible !important;
        display: block !important;   /* Flex 해제하여 자연스럽게 흐르도록 */
    }

    
    .page-pagination, 
    .scroll-indicator,
    .top-btn {
        display: none !important; /* 좁은 화면에서 가려지는 UI 숨김 */
    }

    /* 3. Section 01 (메인) 조정 */
    .section-main {
        min-height: 120vh; /* 여유 공간 */
        padding-top: 60px !important;
    }

    .main-content-wrapper {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
        text-align: center !important;
        align-items: center !important;
        margin-top: 50px;
    }

    .main-title-text {
        font-size: 24px !important; /* 폰트 줄임 */
    }
    
    .word-rotator .word {
        font-size: 40px !important;
        text-align: center !important;
    }

    /* 트랙 크기 축소 */
    .diagonal-track-wrapper.single-track {
        transform: translate(-50%, -50%) rotate(-5deg) scale(0.7) !important;
    }

    /* 4. Section 02 (Company) 조정 */
    .sec02-container {
        flex-direction: row !important; /* 가로 배치 유지 */
        align-items: flex-start !important;
        padding-top: 50px;
    }

    .sec02-left {
        position: relative !important; /* absolute 해제 */
        flex: 1;
        margin-bottom: 0 !important;
    }

    .outline-typo {
        font-size: 50px !important; /* 타이틀 줄임 */
    }

    .sec02-right {
        flex: 1;
        padding-left: 30px !important;
    }

    .sec02-subtitle { font-size: 18px !important; }
    .sec02-desc { font-size: 13px !important; }
    
    .sec02-stats-row {
        gap: 15px !important;
    }
    
    .stat-num { font-size: 24px !important; }

    /* 5. Section 03 (Portfolio) - 여기가 가장 중요 */
    .section-03-layout {
        padding-top: 50px !important;
        width:100%;
        margin:0 auto;
    }

    .portfolio-title-wrapper {
        margin-bottom: 10px !important;
        margin-top:10px !important;
        text-align: center;
    }

    .portfolio-title {
        font-size: 24px !important;
        text-align: left !important;
    }

    /* 스와이퍼 카드 크기 강제 축소 */
    .portfolio-swiper {
        padding-bottom: 40px !important;
    }

    .portfolio-swiper .swiper-slide {
        width: 220px !important; /* 카드 너비 줄임 */
        margin-right: 15px !important;
    }
    
    /* nth-child로 설정했던 너비 무시하고 통일 */
    .portfolio-swiper .swiper-slide:nth-child(n) {
        width: 220px !important; 
    }

    .portfolio-card {
        padding: 15px !important;
    }

    .portfolio-card img {
        height: 150px !important; /* 이미지 높이 대폭 축소 */
        margin-bottom: 10px !important;
    }
    
    /* 좁은 화면/넓은 화면용 이미지 높이 설정도 초기화 */
    .portfolio-swiper .swiper-slide:nth-child(n) .portfolio-card img {
        height: 150px !important;
    }

    .portfolio-card-title {
        font-size: 16px !important;
    }
    
    /* 네비게이션 버튼 위치 조정 */
    .portfolio-nav {
        top: -50px !important;
        right:0;
    }
    
    /* 6. Footer 조정 */
    .footer-content {
        padding-top: 50px !important;
        gap: 30px !important;
        max-width: 90% !important;
    }
    
    .footer-map-wrapper {
        height: 200px !important;
    }
}





