/* =========================================
   1. 기본 설정 및 변수
   ========================================= */
:root {
    --deep-blue: #0A2540;  
    --white: #FFFFFF;      
    --orange: #FF6B00;     
    --text-dark: #222222;
    --text-light: #F8F9FA;
    --bg-gray: #f4f5f7; 
}

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

html { 
    font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif; 
    scroll-behavior: smooth; 
}

/* =========================================
   2. 헤더 및 네비게이션
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    box-shadow: 0 1px 0px rgba(0,0,0,0.05); 
}

.header-logo { font-size: 1.4rem; font-weight: 900; color: var(--deep-blue); letter-spacing: -0.5px; text-decoration: none; position: relative; z-index: 1001; }

nav ul { list-style: none; display: flex; gap: 50px; }
nav ul li a { text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 1rem; transition: color 0.3s; }
nav ul li a:hover { color: var(--orange); }

.hamburger { display: none; cursor: pointer; position: relative; z-index: 1001; }
.hamburger span { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--deep-blue); transition: all 0.3s ease-in-out; }

/* =========================================
   3. 레이아웃 및 공통 스타일
   ========================================= */
/* 풀페이지 스크롤 컨테이너 */
.scroll-container { height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; }
.section { height: 100vh; scroll-snap-align: start; display: flex; width: 100%; position: relative; }

/* 애니메이션 */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 랜딩 페이지 */
.hero-section { justify-content: center; align-items: center; text-align: center; flex-direction: column; }
.hero-content { display: flex; flex-direction: column; align-items: center; }

/* 50:50 분할 레이아웃 */
.text-area { width: 50%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; text-align: left; }
.media-area { width: 50%; height: 100%; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; background-size: cover; background-position: center; }

/* 배경색 유틸리티 */
.bg-white { background-color: var(--white); color: var(--text-dark); }
.bg-blue { background-color: var(--deep-blue); color: var(--text-light); }
.bg-gray { background-color: var(--bg-gray); color: var(--text-dark); }

/* 타이포그래피 */
h2 { font-size: 3.5rem; margin-bottom: 15px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; color: inherit; }
h3 { font-size: 1.5rem; margin-bottom: 30px; font-weight: 500; opacity: 0.9; color: inherit; }
p { font-size: 1.15rem; line-height: 1.7; word-break: keep-all; color: inherit; opacity: 0.8; }
.slogan { font-size: 1.6rem; color: var(--deep-blue); line-height: 1.5; font-weight: 500; }
.slogan strong { font-size: 2.2rem; font-weight: 800; }

/* 디자인 요소 */
.solution-logo { height: 3.5rem; width: auto; margin-bottom: 15px; display: block; }
.divider { width: 40px; height: 4px; background-color: var(--orange); margin: 0 0 30px 0; }
.badge { display: inline-block; color: var(--orange); border: 2px solid var(--orange); padding: 6px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 800; margin-bottom: 20px; width: fit-content; }
.image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; color: rgba(255, 255, 255, 0.8); text-align: center; padding: 40px; }

/* 버튼 및 연락처 */
.cta-btn { background-color: var(--orange); color: var(--white); border: none; padding: 18px 45px; font-size: 1.1rem; font-weight: 800; border-radius: 50px; cursor: pointer; margin-top: 40px; transition: all 0.3s; text-decoration: none; display: inline-block; width: fit-content; }
.cta-btn:hover { background-color: #e65c00; transform: translateY(-2px); }

.contact-info { margin-top: 40px; font-size: 1.3rem; font-weight: 600; }
.contact-info p { margin-bottom: 10px; opacity: 1; }

.sticky-btn { position: fixed; bottom: 40px; right: 40px; background-color: var(--orange); color: var(--white); padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4); z-index: 999; transition: transform 0.3s; }
.sticky-btn:hover { transform: translateY(-5px); }

/* =========================================
    연혁(Timeline) 및 조직도(Org Chart) 스타일
   ========================================= */
/* 타임라인(연혁) 디자인 */
.timeline {
    margin-top: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #eee; /* 좌측 기준선 */
}
.timeline-item {
    position: relative;
    margin-bottom: 25px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
/* 타임라인 점 모양 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--white);
    border: 3px solid var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1); /* 은은한 주황색 빛 번짐 */
}
.timeline-year {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 5px;
}
.timeline-desc {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.5;
    word-break: keep-all;
}

/* 조직도 카드 디자인 */
.org-chart-wrapper {
    width: 90%;
    max-width: 500px;
    text-align: center;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.08);
}
.org-chart-wrapper h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 20px;
}
.org-chart-box {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.org-chart-box img {
    width: 100%;
    height: auto;
    display: block;
}
.org-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* =========================================
    연혁(Timeline) & CEO Message 스타일
   ========================================= */
.timeline { margin-top: 20px; position: relative; padding-left: 20px; border-left: 2px solid #eee; }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { 
    content: ''; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; 
    background-color: var(--white); border: 3px solid var(--orange); border-radius: 50%; 
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1); 
}
.timeline-year { font-size: 1.2rem; font-weight: 800; color: var(--orange); margin-bottom: 5px; }
.timeline-desc { font-size: 1.05rem; color: var(--text-dark); line-height: 1.5; word-break: keep-all; }

/* CEO 인사말 카드 디자인 */
.ceo-message-wrapper { 
    width: 90%; max-width: 500px; text-align: left; background: var(--white); 
    padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(10, 37, 64, 0.08); 
}
.ceo-message-wrapper h3 { font-size: 1.8rem; font-weight: 800; color: var(--deep-blue); margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.ceo-text p { font-size: 1.05rem; color: #555; line-height: 1.7; margin-bottom: 15px; word-break: keep-all; }
.ceo-text p:first-child { font-weight: 700; color: var(--deep-blue); font-size: 1.15rem; }
.ceo-sign { margin-top: 20px; text-align: right; font-size: 1.1rem; color: var(--text-dark); }
.ceo-sign strong { font-size: 1.2rem; }

/*  조직도 버튼 (아웃라인 스타일) */
.outline-btn { 
    background-color: transparent; border: 2px solid var(--deep-blue); color: var(--deep-blue); 
    padding: 15px 30px; font-size: 1.1rem; margin-top: 30px; display: block; width: 100%; text-align: center; 
}
.outline-btn:hover { background-color: var(--deep-blue); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(10, 37, 64, 0.15); }

/* =========================================
    조직도 팝업 (Modal) 스타일
   ========================================= */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); z-index: 9999; 
    display: flex; justify-content: center; align-items: center; 
    opacity: 0; visibility: hidden; transition: all 0.3s ease; 
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { 
    background: var(--white); padding: 40px; border-radius: 20px; width: 90%; max-width: 800px; 
    position: relative; text-align: center; transform: translateY(30px); 
    transition: transform 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-btn { position: absolute; top: 15px; right: 25px; font-size: 2.5rem; color: #999; cursor: pointer; transition: color 0.3s; line-height: 1; }
.close-btn:hover { color: var(--orange); }

/* =========================================
   4. 도입 문의 (Contact Form) 및 하단 레이아웃
   ========================================= */
.contact-section { height: auto !important; min-height: 100vh; flex-direction: column; }
.split-container { display: flex; flex-direction: row; width: 100%; flex: 1; padding-top: 100px; } 

.contact-section .text-area,
.contact-section .media-area { height: auto; padding: 40px 8% 80px; justify-content: flex-start; }

.inquiry-form-box { background: var(--white); padding: 50px 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(10, 37, 64, 0.08); width: 100%; max-width: 550px; margin: 0 auto; text-align: left; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; color: var(--deep-blue); }
.form-group label .required { color: var(--orange); margin-left: 4px; }

.inquiry-form input[type="text"],
.inquiry-form input[type="tel"],
.inquiry-form select { width: 100%; padding: 16px 20px; border: 1px solid #e1e4e8; border-radius: 12px; font-size: 1rem; font-family: inherit; transition: all 0.3s ease; color: var(--text-dark); background-color: var(--bg-gray); }

.inquiry-form input::placeholder { color: #a0aab5; }
.inquiry-form input:focus, .inquiry-form select:focus { outline: none; border-color: var(--orange); background-color: var(--white); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15); }

.location-selects { display: flex; gap: 15px; }

.checkbox-group { margin-top: 35px; margin-bottom: 35px; padding-top: 25px; border-top: 1px dashed #e1e4e8; }
.checkbox-label { display: flex; align-items: center; cursor: pointer; font-size: 1.05rem !important; font-weight: 700; color: var(--deep-blue); }
.checkbox-label input { width: 22px; height: 22px; margin-right: 12px; accent-color: var(--orange); }
.privacy-desc { font-size: 0.9rem; color: #666; margin-top: 12px; line-height: 1.6; padding-left: 34px; word-break: keep-all; }

.submit-btn { width: 100%; background-color: var(--orange); color: var(--white); border: none; padding: 20px; font-size: 1.2rem; font-weight: 800; border-radius: 50px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3); }
.submit-btn:hover { background-color: #e65c00; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4); }

/* =========================================
   티메이트, 모빌리티비 배경 슬라이더 애니메이션
   ========================================= */
.slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    height: 100%;
    /* slider-track 계산식 : width = 총 이미지 갯수(원본+첫번쨰 복제1개) x 100% */
    width: 400%; 
    /* 애니메이션 시간 = 이미지 1장 당 4초 계산*/
    animation: slide-step 12s infinite ease-in-out;
}

.slider-item {
    /* slider-item 계산식 : width = 100% ÷ 총 이미지 갯수(원본+첫번째 복제 1개)  */
    width: 25%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 이미지 위에 어두운 오버레이 */
.slider-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
}

/*이동거리(translateX) = 100% ÷ 총 이미지 갯수(원본+첫번째 복제 1개)% 씩 이동 
애니메이션 시간 ( transform 앞의 퍼센트) = 100 ÷ 원본 이미지 갯수에서 이동시간 차감 (적당히 3~4%정도 나누기) */
@keyframes slide-step {
    0%, 28% { transform: translateX(0%); }      /* 1번 이미지 대기 */
    33%, 61% { transform: translateX(-25%); }   /* 2번 이미지로 이동 후 대기 */
    66%, 94% { transform: translateX(-50%); }   /* 3번 이미지로 이동 후 대기 */
    100% { transform: translateX(-75%); }       /* 1번 복제본으로 이동하여 반복 */
}

/* =========================================
   5. 푸터 (Footer)
   ========================================= */
.site-footer { width: 100%; background-color: #1a1a1a; color: #aaa; text-align: center; padding: 40px 20px 30px; font-size: 0.9rem; line-height: 1.6; z-index: 10; }
.site-footer p { font-size: 0.9rem; margin: 0; opacity: 0.8; }
.site-footer span { display: inline-block; margin: 0 10px; color: #555; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 20px; }

/* 추가된 정책 링크 스타일 */
.footer-policy-links { margin-bottom: 25px; }
.footer-policy-links a { color: #ccc; text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.footer-policy-links a:hover { color: var(--orange); } /* 마우스 올리면 오렌지색으로 변함 */
.footer-policy-links strong { color: #fff; font-weight: 700; } /* 개인정보처리방침 강조 */
.policy-divider { display: inline-block; margin: 0 15px; color: #555; font-size: 0.9rem; }

.footer-info { margin-bottom: 15px; }
.copyright { margin-top: 15px; opacity: 0.5; }

/* =========================================
   6. 반응형 (태블릿 & 모바일)
   ========================================= */
@media (max-width: 1024px) {
    .section { flex-direction: column; }
    .split-container { flex-direction: column; }
    
    /* 버튼이 잘리지 않도록 텍스트 영역 비율(55%)을 늘리고 상단 여백 축소 */
    .text-area { width: 100%; height: 55%; padding: 80px 5% 5%; align-items: center; text-align: center; }
    .media-area { width: 100%; height: 45%; padding: 40px 5%; }
    
    /* 요소들의 세로 여백을 줄여 공간 확보 */
    .divider { margin: 0 auto 20px auto; } 
    h2 { font-size: 2.5rem; }
    .badge, .cta-btn { align-self: center; margin-left: auto; margin-right: auto; }
    .cta-btn { margin-top: 20px; } /* 버튼 위쪽 여백 절반으로 축소 */
    
    .main-logo { margin: 0 auto 30px auto !important; }
    .contact-section .text-area { padding-top: 40px; padding-bottom: 20px; height: auto; }
    .contact-section .media-area { padding: 20px 5% 60px; height: auto; background-color: var(--bg-gray); }
}

@media (max-width: 768px) {
    header { padding: 10px 20px; }
    .hamburger { display: block; }
    
    nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.98); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: right 0.4s ease-in-out; z-index: 999; }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 40px; }
    nav ul li a { font-size: 1.8rem; font-weight: 800; }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* 작은 모바일 화면 맞춤 압축 (비율 60:40) */
    .text-area { height: 60%; padding-top: 70px; } 
    .media-area { height: 40%; }
    
    .solution-logo { height: 2rem; margin-bottom: 10px; } /* 로고 크기 축소 */
    h3 { font-size: 1.2rem; margin-bottom: 10px; } /* 부제목 크기 및 여백 축소 */
    p, .slogan { font-size: 1rem; line-height: 1.5; } /* 본문 줄 간격 압축 */
    
    .sticky-btn { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 1rem; }
    .site-footer span { display: block; margin: 5px 0; opacity: 0; height: 0; }
    
    .inquiry-form-box { padding: 25px 20px; }
    .location-selects { flex-direction: column; }
	
	/* 모바일 타임라인 & 조직도 압축 */
    .org-chart-wrapper { padding: 20px; }
    .org-chart-wrapper h3 { font-size: 1.4rem; margin-bottom: 15px; }
    .timeline-desc { font-size: 0.9rem; }

	/* CEO 인삿말 */
.ceo-message-wrapper { padding: 30px 20px; }
    .modal-content { padding: 30px 20px; }
    .timeline-desc { font-size: 0.95rem; }
}