/* =========================================
   1. 기본 설정 (Base)
   ========================================= */
:root {
    --primary-color: #20c3b3;       /* 민트 (BIOVIS Key Color) */
    --primary-dark: #1aa093;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #111111;             /* Tech 페이지용 다크 배경 */
    --text-on-dark: #e0e0e0;        /* 다크 배경 위 텍스트 */
    --white: #ffffff;
    --code-bg: #1e1e1e;             /* 코드 박스 배경 */
    --gradient-bg: linear-gradient(135deg, #111, #223, #111);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; color: var(--text-dark); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-50 { margin-bottom: 50px; }
.primary-text { color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }

/* 섹션 공통 */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 18px; }

/* =========================================
   2. 헤더 & 네비게이션 (Header)
   ========================================= */
header { background: var(--white); border-bottom: 1px solid #eee; position: fixed; width: 100%; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo a { font-size: 24px; font-weight: 700; color: var(--primary-color); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 16px; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

/* 드롭다운 메뉴 */
.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background-color: #fff; min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 10; border-radius: 8px; top: 100%; left: 0; padding: 10px 0;
}
.dropdown-content a { color: var(--text-dark); padding: 12px 20px; display: block; font-size: 14px; }
.dropdown-content a:hover { background-color: #f1f1f1; color: var(--primary-color); }
.dropdown:hover .dropdown-content { display: block; }

/* =========================================
   3. 메인 페이지 (index.html) 스타일
   ========================================= */
/* 메인 Hero Section */
.hero-video {
    margin-top: 80px; 
    height: 80vh; 
    
    /* [핵심 1] 영상 가장자리가 투명해질 때 뒤에 보일 색상을 '검은색'으로 지정 */
    background-color: #000; 
    
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    position: relative; 
    overflow: hidden;
    z-index: 0;
}

/* 2. 배경 비디오: 가장자리를 투명하게 지우기 (마스크 효과) */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    object-fit: cover; 
    object-position: center center; 
    z-index: -1;

    /* 아까 적용한 확대(Zoom) 유지 (검은 띠 제거용) */
    transform: scale(1.35); 

    /* [핵심 2] 마스크 이미지 적용 (가장자리를 지우개로 지우는 효과) */
    /* 중앙(black)은 보이고, 가장자리(transparent)로 갈수록 투명해져서 배경(#000)과 섞임 */
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 100%);
    mask-image: radial-gradient(circle, black 50%, transparent 100%);
}

.video-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1;

    /* [핵심 솔루션] 라디얼 그라데이션(Radial Gradient) 적용 */
    /* 1. 중앙 (0% ~ 50%): 글씨가 잘 보이도록 50% 투명한 검은색 유지 */
    /* 2. 가장자리 (100%): 완전한 검은색(#000)으로 변해서 배경과 경계 없이 이어짐 */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 50%, #000 100%);
}

.hero-content { 
    position: relative; 
    z-index: 2;
    padding: 20px; 
}

.hero-content h1 { font-size: 48px; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-sub { font-size: 20px; margin-bottom: 40px; color: #ddd; }
.btn-primary {
    background-color: var(--primary-color); color: var(--white); padding: 15px 40px;
    border-radius: 30px; font-weight: 700; transition: 0.3s; display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); background-color: var(--primary-dark); }

/* Business Areas (메인 카드 뉴스 Grid) - *여기가 빠져서 깨졌던 부분입니다* */
.business-section { padding: 100px 0; }
.business-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.biz-card {
    border: 1px solid #eee; border-radius: 15px; padding: 30px 15px; text-align: center;
    transition: 0.3s; background: white; cursor: pointer; display: flex; flex-direction: column;
    justify-content: space-between; height: 340px;
}
.biz-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.icon-box { font-size: 36px; color: var(--primary-color); margin-bottom: 20px; }
.biz-card h3 { font-size: 18px; margin-bottom: 15px; color: var(--text-dark); word-break: keep-all; }
.biz-card p { font-size: 13px; color: var(--text-light); margin-bottom: 20px; line-height: 1.5; }
.learn-more { font-weight: 700; color: var(--primary-color); font-size: 13px; }

/* Main Technology Section (메인 하단 기술 요약) */
.tech-section { padding: 100px 0; }
.tech-flex { display: flex; justify-content: space-around; gap: 30px; text-align: center; }
.tech-item { flex: 1; padding: 20px; }
.tech-icon { font-size: 50px; color: var(--primary-color); margin-bottom: 20px; }
.tech-item h3 { font-size: 22px; margin-bottom: 15px; }

/* 반응형 수정 (화면이 작아질 때) */
@media (max-width: 1200px) {
    .business-grid { grid-template-columns: repeat(3, 1fr); } /* 중간 화면에선 3개씩 */
}
@media (max-width: 768px) {
    .business-grid { grid-template-columns: 1fr; } /* 모바일은 1개씩 */
}

/* =========================================
   4. 상세 페이지: Technology (bv-pose.html)
   ========================================= */
.dark-section { background-color: var(--bg-dark); color: var(--text-on-dark); padding: 100px 0; }
.dark-hero {
    background: radial-gradient(circle at center, #222 0%, #111 100%);
    padding: 150px 0 100px 0; text-align: center; color: white;
}
.dark-hero h1 { font-size: 48px; margin-bottom: 20px; }
.dark-hero .subtitle { font-size: 20px; color: #aaa; max-width: 800px; margin: 0 auto; }

/* Tech Grid (Dark Mode 3단) */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.tech-card {
    background: #1a1a1a; border: 1px solid #333; padding: 40px 30px; border-radius: 15px; transition: 0.3s;
}
.tech-card:hover { border-color: var(--primary-color); box-shadow: 0 0 20px rgba(32, 195, 179, 0.2); transform: translateY(-5px); }
.tech-card h3 { color: var(--primary-color); font-size: 22px; margin-bottom: 15px; }
.tech-card p { color: #ccc; font-size: 15px; line-height: 1.7; }

/* Tech Specs Table & Code Box */
.spec-container { background: #1a1a1a; padding: 40px; border-radius: 15px; margin-top: 50px; border: 1px solid #333; }
.spec-row { display: flex; border-bottom: 1px solid #333; padding: 20px 0; align-items: center; }
.spec-row:last-child { border-bottom: none; }
.spec-label { width: 30%; font-weight: 700; color: var(--primary-color); }
.spec-value { width: 70%; color: #fff; font-family: 'Courier New', monospace; }

.code-box {
    background: var(--code-bg); padding: 20px; border-radius: 10px; font-family: 'Courier New', monospace;
    color: #a9b7c6; font-size: 14px; border-left: 4px solid var(--primary-color); margin-bottom: 30px;
}
.code-keyword { color: #cc7832; }
.code-string { color: #6a8759; }

/* =========================================
   5. 상세 페이지: Solution (bv-care.html)
   ========================================= */
.light-hero {
    background: linear-gradient(135deg, #f0fdfb 0%, #fff 100%);
    padding: 150px 0 80px 0; text-align: center;
}
.light-hero h1 { font-size: 42px; margin-bottom: 20px; color: var(--text-dark); }
.light-hero .subtitle { font-size: 20px; color: var(--text-light); }

/* Zigzag Layout */
.feature-section { padding: 100px 0; }
.feature-row { display: flex; align-items: center; gap: 80px; margin-bottom: 100px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 32px; margin-bottom: 20px; }
.feature-text h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px;}
.feature-img {
    flex: 1; height: 400px; background: #eee; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); overflow: hidden;
}

/* Software Capabilities Grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.cap-item { text-align: center; padding: 30px; background: white; border-radius: 15px; border: 1px solid #eee; }
.cap-icon { font-size: 40px; color: var(--primary-color); margin-bottom: 20px; }

/* =========================================
   6. 푸터 & 반응형 (Footer & Responsive)
   ========================================= */
footer { background: #222; color: #fff; padding: 60px 0; text-align: center; }
.copyright { margin-top: 30px; color: #555; font-size: 13px; }

@media (max-width: 1024px) {
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-row, .feature-row.reverse { flex-direction: column; gap: 40px; }
    .feature-img { width: 100%; height: 300px; }
    .hero-content h1, .dark-hero h1, .light-hero h1 { font-size: 32px; }
}
@media (max-width: 768px) {
    .business-grid { grid-template-columns: 1fr; }
    .tech-flex, .tech-grid, .cap-grid { grid-template-columns: 1fr; } /* 모바일에서 1줄로 */
    .spec-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .spec-label { width: 100%; }
}

/* =========================================
   7. 로고 이미지 스타일 (추가)
   ========================================= */

/* 상단 헤더 로고 크기 */
.logo img {
    height: 40px; /* 로고 높이를 40px로 고정 (비율 유지) */
    vertical-align: middle;
}

/* 하단 푸터 로고 크기 */
.footer-logo {
    height: 50px; /* 푸터 로고는 조금 더 크게 */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   8. 서브 메뉴 - 완벽한 연결 & 포커스 유지 (Perfect Match)
   ========================================= */

/* 서브 메뉴 감싸는 영역 */
.submenu-item {
    position: relative;
    width: 100%;
}

/* 1. 트리거 (Smart Factory 텍스트) */
.submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
    width: 100%;
    /* 기본 상태는 투명 */
    background-color: transparent; 
}

/* [핵심 기능 1] 마우스가 서브 메뉴로 넘어가도 부모(Smart Factory) 색상 유지 */
.submenu-item:hover .submenu-trigger {
    background-color: #f1f1f1; /* 메인 메뉴 호버 색상과 100% 동일한 회색 */
    color: var(--primary-color); /* 글자는 민트색 */
}

/* 2. 서브 메뉴 박스 */
.submenu-options {
    display: none;
    position: absolute;
    
    /* 위치: 부모 바로 오른쪽 */
    left: 100%; 
    top: -5px; /* 높이 맞춤 */
    
    /* [핵심 기능 2] 배경색 통일 */
    background: #f1f1f1; /* 메인 메뉴 호버 색상과 100% 동일한 회색 */
    
    /* 유리 효과 살짝 (선택 사항, 통일감을 위해 제거하거나 약하게) */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    /* 형태: 왼쪽은 직각, 오른쪽만 둥글게 -> 연결된 느낌 */
    border-radius: 0 8px 8px 0;
    
    /* 그림자: 오른쪽 아래로만 */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    
    /* 테두리 없음 (색상으로 연결) */
    border: none;
    
    min-width: 180px;
    padding: 5px 0; /* 패딩을 줄여서 더 컴팩트하게 */
    z-index: 20;
    
    /* 애니메이션 */
    animation: fadeInRight 0.2s ease;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 마우스 올렸을 때 보이기 */
.submenu-item:hover .submenu-options {
    display: block;
}

/* 서브 메뉴 내부 링크 (BV-CARE) */
.submenu-options a {
    color: #555;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    display: block;
    transition: all 0.2s;
}

/* 서브 메뉴 내부 링크 호버 효과 */
.submenu-options a:hover {
    background-color: rgba(0,0,0,0.01); /* 살짝 더 진해짐 */
    color: var(--primary-color);
    padding-left: 25px;
}

/* =========================================
   9. About 페이지 & 리브랜딩 스타일 (New)
   ========================================= */

:root {
    /* 기존 민트색 유지하되, 차분한 세이지 그린 추가 */
    --sage-green: #6c9a8b;       /* 차분한 숲색 */
    --soft-teal: #e0f2f1;        /* 아주 연한 틸 배경 */
    --text-serif: 'Noto Serif KR', serif; /* 감성적인 명조체 계열 (필요시 임포트) */
}

/* 감성적인 폰트 적용 (구글 폰트 추가 필요) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600&display=swap');

/* About Hero Section (감성 영상/이미지 배경) */
.about-hero {
    height: 60vh; /* 높이를 살짝 줄여서 깔끔하게 (80vh -> 60vh) */
    
    /* 배경: 브랜드 민트색(#20c3b3)을 아주 연하게(10%) 적용 */
    background-color: rgba(32, 195, 179, 0.1); 
    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* 배경이 밝으므로 글자는 진한 색으로 변경 */
    color: var(--text-dark); 
}

.about-hero::after {
    display: none; 
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.about-hero h1 {
    font-family: var(--text-serif);
    font-size: 54px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: -1px;
    color: #2c3e50; /* 제목은 조금 더 진하게 */
}

.about-hero p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    color: #555; /* 본문은 부드러운 회색 */
}

/* 공통 섹션 스타일 (여백 많이) */
.about-section {
    padding: 120px 0;
}

.text-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.serif-title {
    font-family: var(--text-serif);
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.desc-text {
    font-size: 18px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 40px;
}

/* CEO Message 섹션 */
.ceo-section {
    background-color: var(--soft-teal); /* 부드러운 배경색 */
    display: flex;
    align-items: center;
}

.ceo-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.ceo-img {
    flex: 1;
    height: 500px;
    
    /* 이미지가 없을 때 회색 배경 */
    background-color: #e0e0e0; 
    
    border-radius: 20px 0 20px 0;
    overflow: hidden;
    
    /* '사진 들어갈 곳' 글자 중앙 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
}

.ceo-text {
    flex: 1;
    text-align: left;
}

.quote-mark {
    font-size: 60px;
    color: var(--sage-green);
    font-family: var(--text-serif);
    line-height: 0;
    margin-right: 10px;
}

/* Core Values (감성 키워드) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 20px;
    transition: 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 40px;
    color: var(--sage-green);
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--text-serif);
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Scope (Business Areas 재해석) */
.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* 카드 사이 간격 없음 (이어지는 느낌) */
}

.scope-item {
    padding: 60px 40px;
    border-right: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
}

.scope-item:last-child { border-right: none; }
.scope-item:hover { background-color: #fafafa; }

.scope-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sage-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 반응형 */
@media (max-width: 768px) {
    .ceo-layout { flex-direction: column; }
    .values-grid, .scope-grid { grid-template-columns: 1fr; }
    .scope-item { border-right: none; border-bottom: 1px solid #eee; }
    .about-hero h1 { font-size: 36px; }
}

/* =========================================
   10. History (타임라인) 스타일
   ========================================= */

.history-section {
    padding: 100px 0;
    background-color: #fff; /* 깔끔한 흰색 배경 */
}

/* 타임라인 전체 컨테이너 (왼쪽 정렬) */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    position: relative;
}

/* 수직선 (Vertical Line) */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px; /* 점의 위치와 맞춤 */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee; /* 연한 회색 선 */
}

/* 개별 아이템 */
.timeline-item {
    position: relative;
    padding-left: 50px; /* 선과의 간격 */
    margin-bottom: 50px;
}

.timeline-item:last-child { margin-bottom: 0; }

/* 타임라인 점 (Dot) */
.timeline-dot {
    position: absolute;
    left: 14px; /* 선 위에 오도록 위치 조정 */
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color); /* 민트색 점 */
    border: 3px solid #fff; /* 흰색 테두리로 깔끔하게 */
    box-shadow: 0 0 0 1px var(--primary-color); /* 이중 테두리 느낌 */
    z-index: 1;
}

/* 날짜 텍스트 */
.timeline-date {
    font-family: var(--text-serif); /* 감성적인 명조체 */
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

/* 내용 텍스트 */
.timeline-content h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 15px;
    color: #777;
}

/* 중요 실적 강조 스타일 (Highlight) */
.timeline-item.highlight .timeline-date {
    font-size: 22px; /* 날짜 더 크게 */
    color: #2c3e50; /* 진한 색으로 무게감 */
}

.timeline-item.highlight .timeline-dot {
    width: 18px; height: 18px; left: 12px;
    background: #2c3e50; /* 점 색상도 변경 */
    box-shadow: 0 0 0 1px #2c3e50;
}

.timeline-item.highlight .timeline-content h4 {
    font-weight: 700;
    color: #2c3e50;
    
    /* [수정됨] 하이라이트 높이 조절 */
    /* 기존 50% -> 85%로 변경하여 글씨 높이만큼 색이 차오르게 설정 */
    background: linear-gradient(to top, rgba(32, 195, 179, 0.1) 100%, transparent 85%);
    
    display: inline-block;
    
    /* [추가] 텍스트 좌우에 살짝 여백을 주어 형광펜이 더 자연스럽게 보이도록 함 */
    padding: 0 4px; 
}
html {
    scroll-padding-top: 100px; /* 헤더 높이(80px) + 여유공간(20px) */
    scroll-behavior: smooth;   /* 부드럽게 스크롤 이동 */
}

/* =========================================
   11. Contact 페이지 스타일 (추가)
   ========================================= */

/* Contact 페이지 전용 상단 여백 (헤더가 가리지 않도록) */
.contact-page-wrapper {
    padding-top: 120px; 
    padding-bottom: 80px;
    background-color: var(--bg-light);
}

/* 상단 타이틀 섹션 */
.page-header { 
    text-align: center; 
    margin-bottom: 50px; 
}
.page-header h1 { 
    font-size: 42px; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 10px; 
}
.page-header p { 
    font-size: 18px; 
    color: var(--text-light); 
}

/* 메인 박스 (왼쪽 정보 + 오른쪽 폼) */
.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; /* 1:1.5 비율 */
    background: var(--white); 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* 부드러운 그림자 */
    overflow: hidden; 
    margin-bottom: 80px;
}

/* 왼쪽: 회사 정보 영역 (민트색 그라데이션) */
.info-section { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); 
    color: var(--white); 
    padding: 60px 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

.info-title { 
    font-size: 28px; 
    margin-bottom: 40px; 
    font-weight: 600; 
    color: white;
}

.info-item { margin-bottom: 35px; }

.info-label { 
    font-size: 14px; 
    color: rgba(255,255,255,0.8); /* 약간 투명한 흰색 */
    margin-bottom: 8px; 
    font-weight: 700; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
}

.info-value { 
    font-size: 18px; 
    font-weight: 400; 
    line-height: 1.6; 
}

/* 오른쪽: 입력 폼 영역 */
.form-section { padding: 60px 50px; }

.form-group { margin-bottom: 25px; }

.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 600; 
    color: var(--primary-color); 
    font-size: 15px; 
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid #e1e4e8; 
    border-radius: 8px; 
    font-size: 16px; 
    background-color: #fcfcfc;
    transition: all 0.2s; 
    font-family: 'Noto Sans KR', sans-serif;
}

/* 입력창 클릭했을 때 효과 */
.form-group input:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    background-color: var(--white); 
    box-shadow: 0 0 0 3px rgba(32, 195, 179, 0.15); /* 민트색 글로우 */
}

/* 문의하기 버튼 */
.submit-btn { 
    background-color: var(--primary-color); 
    color: var(--white); 
    padding: 18px 0; 
    border: none; 
    border-radius: 8px; 
    font-size: 18px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: background-color 0.3s; 
    width: 100%; 
    margin-top: 10px;
}

.submit-btn:hover { 
    background-color: var(--primary-dark); 
}

/* 지도 영역 */
.map-section { margin-bottom: 100px; }
.map-frame { 
    width: 100%; 
    height: 450px; 
    background-color: #eaeaea; 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #888; 
    font-weight: 500;
}

/* 반응형: 화면이 좁아질 때 (모바일) */
@media (max-width: 768px) {
    .contact-wrapper { 
        grid-template-columns: 1fr; /* 위아래로 배치 */
    }
    .page-header { padding: 40px 0; }
    .form-section, .info-section { padding: 40px 25px; }
}

/* =========================================
   12. Footer 아이콘 스타일 (추가)
   ========================================= */

/* 연락처 정보들을 감싸는 박스 */
.footer-contact-list p {
    margin-bottom: 10px; /* 줄 간격 */
    display: flex;       /* 아이콘과 텍스트 높이 중앙 정렬 */
    align-items: center; 
    justify-content: center; /* 가로 중앙 정렬 */
    gap: 10px;           /* 아이콘과 글자 사이 간격 */
}

/* 아이콘 스타일 */
.footer-icon {
    width: 20px;         /* 아이콘 너비를 고정해서 텍스트 시작점을 맞춤 */
    text-align: center;
    color: var(--primary-color); /* 브랜드 컬러(민트/청록)로 포인트 주기 (선택사항) */
    /* 흰색으로 하고 싶으시면 위 color 줄을 지우거나 color: #fff; 로 하세요 */
}

/* 모바일 화면에서는 줄바꿈이 일어날 수 있으므로 유연하게 대응 */
@media (max-width: 768px) {
    .footer-contact-list p {
        flex-direction: column; /* 모바일엔 아이콘 위, 글자 아래 (공간 부족시) */
        gap: 5px;
        margin-bottom: 20px;
    }
}

/* =========================================
   13. Top 버튼 (Scroll to Top) 스타일
   ========================================= */
#scrollTopBtn {
    display: none;          /* 기본적으로는 숨김 */
    position: fixed;        /* 화면에 고정 */
    bottom: 30px;           /* 아래에서 30px 띄움 */
    right: 30px;            /* 오른쪽에서 30px 띄움 */
    z-index: 9999;          /* 다른 요소들보다 위에 오도록 */
    
    border: none;
    outline: none;
    background-color: var(--primary-color); /* 브랜드 컬러 사용 (민트/청록) */
    color: white;           /* 화살표 색상 */
    
    cursor: pointer;
    width: 50px;            /* 너비 */
    height: 50px;           /* 높이 */
    border-radius: 50%;     /* 완벽한 원형 */
    font-size: 20px;        /* 아이콘 크기 */
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* 그림자로 입체감 */
    transition: all 0.3s ease; /* 부드러운 애니메이션 효과 */
}

/* 마우스 올렸을 때 효과 */
#scrollTopBtn:hover {
    background-color: #333; /* 어두운 색으로 변경 */
    transform: translateY(-5px); /* 살짝 위로 떠오르는 느낌 */
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 모바일에서는 버튼 크기와 위치 조절 */
@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* =========================================
   14. 언어 변환 버튼 스타일 (Language Switcher)
   ========================================= */
.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Contact 메뉴와 간격 띄우기 */
    font-size: 14px;
    font-weight: 500;
}

.lang-btn {
    color: #888;          /* 기본: 회색 */
    transition: color 0.3s;
    text-decoration: none;
    padding: 0 5px;
}

.lang-btn:hover {
    color: var(--primary-color); /* 마우스 올리면 민트색 */
}

/* 현재 선택된 언어 강조 */
.lang-btn.active {
    color: #111;           /* 진한 검정 */
    font-weight: 700;
}

.divider {
    color: #ddd;           /* 구분선 색상 */
    font-size: 12px;
    margin-top: -2px;      /* 위치 미세 조정 */
}

/* 모바일 반응형 대응 */
@media (max-width: 768px) {
    .lang-switch {
        margin-left: 0;
        margin-top: 15px; /* 모바일 메뉴에서는 아래로 내림 */
        justify-content: center;
    }
}

/* =========================================
   15. Client Login 버튼 스타일 (New)
   ========================================= */
.nav-login-btn {
    background-color: var(--primary-color);
    color: #fff !important; /* 글자색 흰색 강제 */
    padding: 8px 20px;      /* 안쪽 여백 */
    border-radius: 25px;    /* 둥근 모서리 */
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;               /* 아이콘과 글자 사이 간격 */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(32, 195, 179, 0.3); /* 부드러운 민트색 그림자 */
    margin-left: 10px;      /* 왼쪽 메뉴와 간격 */
}

/* 마우스 올렸을 때 효과 */
.nav-login-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px); /* 살짝 위로 떠오름 */
    box-shadow: 0 6px 15px rgba(32, 195, 179, 0.5);
    color: #fff !important;
}

/* =========================================
   17. 모바일 강제 최적화 (Mobile Fix)
   ========================================= */
@media (max-width: 768px) {
    /* [핵심 1] 헤더가 화면을 따라다니지 않게 설정 */
    header { position: relative !important; }

    /* 전체 레이아웃 */
    .container { padding: 0 20px; width: 100%; overflow-x: hidden; }

    /* [핵심 2] 메인 히어로 영상: 너비에 맞춤 (잘림 방지) */
    .hero-video {
        height: 60vh !important; /* 높이를 조금 줄여서 컴팩트하게 */
        min-height: 400px;       /* 최소 높이 확보 */
        background-color: #000;  /* 빈 공간은 검은색 처리 */
    }

    .bg-video {
        width: 100% !important;
        height: 100% !important;
        
        /* [중요] cover(꽉채움) 대신 contain(다보임) 사용 */
        /* 영상 비율을 유지하며 가로 너비에 딱 맞춥니다. */
        object-fit: contain !important; 
        
        /* 확대 효과 제거 (모바일엔 원본 크기) */
        transform: scale(1) !important; 
        
        /* 마스크 효과 제거 (모바일엔 선명하게) */
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* 영상 위 글씨(오버레이) */
    .video-overlay {
        /* 글씨가 잘 보이도록 배경을 좀 더 어둡게 */
        background: rgba(0, 0, 0, 0.6) !important; 
    }
    
    .hero-content h1 { font-size: 28px !important; }
    .hero-sub { font-size: 14px !important; }

    /* [핵심 3] 헤더 컨테이너 */
    .header-container {
        height: auto !important;
        padding: 15px 0;
        flex-direction: column;
    }
    
    /* 메뉴 배치 */
    .nav-links {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
    }

    .nav-links li { margin: 0; flex-shrink: 0; }
    .nav-links a { font-size: 13px; padding: 5px; display: block; }

    /* 드롭다운 */
    .dropdown { position: static; }
    .dropdown-content {
        position: static;
        float: none;
        display: none;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        background-color: #fafafa;
        margin: 10px 0;
        text-align: center;
    }
    
    .dropdown:hover .dropdown-content { display: block; width: 100%; }
    .submenu-options {
        position: static;
        box-shadow: none;
        background: #f1f1f1;
        border: none;
        padding-left: 0;
    }

    /* 버튼 및 기타 */
    .nav-login-btn { margin: 5px 0; padding: 6px 12px; font-size: 12px; }
    .lang-switch { margin-top: 5px; }

    /* 카드 높이 자동 조절 */
    .biz-card {
        height: auto !important;
        min-height: 320px;
        padding: 40px 25px !important;
        justify-content: center;
    }

    /* 본문 비율 유지 */
    .tech-flex, .business-grid, .tech-grid, .cap-grid, 
    .values-grid, .scope-grid, .mgmt-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 30px;
    }

    .feature-row, .feature-row.reverse, .ceo-layout, .contact-wrapper {
        flex-direction: column !important;
        height: auto !important;
    }

    .feature-img, .feature-img-fixed { width: 100% !important; height: 250px !important; }
    .ceo-img { height: 300px !important; width: 100% !important; }

    /* 폰트 */
    h1 { font-size: 30px !important; line-height: 1.3 !important; }
    h2 { font-size: 24px !important; }
    p { font-size: 15px !important; word-break: keep-all; }
}