/* ===== 기본 설정 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0047AB;
    --secondary-color: #003380;
    --accent-color: #00A0E9;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-dark: #1A1A1A;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Header / Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 모바일 메뉴 열렸을 때 헤더 z-index 낮추기 */
body.mobile-menu-open .header {
    z-index: 9998;
}

/* 모바일 메뉴 열렸을 때 햄버거 버튼 위로 */
body.mobile-menu-open .mobile-menu-toggle {
    z-index: 10000;
    position: relative;
}

/* 헤더 hover 시 또는 스크롤 시 배경 표시 */
.header:hover,
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

/* 헤더 hover나 스크롤 시 로고 색상 원래대로 */
.header:hover .logo-img,
.header.scrolled .logo-img {
    filter: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 헤더 hover나 스크롤 시 메뉴 색상 변경 */
.header:hover .nav-item > a,
.header.scrolled .nav-item > a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-item > a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu - 부드럽게 아래로 펼쳐지는 효과 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    list-style: none;
    min-width: 220px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    margin-top: 0;
    pointer-events: none;
    padding-top: 15px;
}

/* 드롭다운 호버 시 부드럽게 나타남 */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* 메가 메뉴 스타일 */
.mega-menu .mega-dropdown {
    min-width: 700px;
    padding: 20px;
    display: flex;
    gap: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    pointer-events: none;
    padding-top: 35px;
    margin-top: 0;
}

.mega-menu:hover .mega-dropdown {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-column {
    flex: 1;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.mega-menu-column:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-menu-title {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 15px;
    padding: 10px 0 !important;
    display: block;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu-title:hover {
    background: none !important;
    padding-left: 0 !important;
}

.mega-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-submenu li {
    border-bottom: none;
}

.mega-submenu a {
    padding: 8px 0 !important;
    font-size: 13px;
}

.mega-submenu a:hover {
    background: none !important;
    color: var(--accent-color) !important;
    padding-left: 10px !important;
    transform: translateX(5px);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
    transform: translateX(2px);
}

/* Language Selector */
.language-selector {
    margin-left: 20px;
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    font-size: 14px;
}

/* 활성화된 언어 버튼 */
.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* 헤더 hover나 스크롤 시 버튼 스타일 변경 */
.header:hover .lang-btn,
.header.scrolled .lang-btn {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.header:hover .lang-btn.active,
.header.scrolled .lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.header:hover .mobile-menu-toggle span,
.header.scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
}

/* 햄버거 메뉴 활성화 애니메이션 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 모바일 메뉴 - 상단 여백 추가 */
.main-nav.active {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 85%;
    max-width: 350px;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    padding: 90px 0 20px 0;
    margin: 0;
    z-index: 9999;
    animation: slideInFromRight 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(0);
    pointer-events: auto;
}

/* 사이드바 열림 애니메이션 */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 사이드바 닫힘 애니메이션 */
.main-nav.closing {
    animation: slideOutToRight 0.3s ease;
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* 모바일 메뉴 오버레이 (배경 어둡게) */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.main-nav.active .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.main-nav.active .nav-item {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
}

.main-nav.active .nav-item:last-child {
    border-bottom: none;
}

.main-nav.active .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 50px 18px 20px;
    color: #212529 !important;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    background: white;
    text-shadow: none !important;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

/* 드롭다운 화살표 표시 */
.main-nav.active .nav-item.dropdown > a::after,
.main-nav.active .nav-item.mega-menu > a::after {
    content: '›';
    font-size: 22px;
    font-weight: 700;
    color: #999;
    transition: transform 0.3s ease;
}

/* 모바일 드롭다운 화살표 */
.dropdown-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
    color: #999;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.main-nav.active .nav-item.mobile-dropdown-active .dropdown-arrow {
    transform: translateY(-50%) rotate(90deg);
    color: var(--primary-color);
}

.main-nav.active .nav-item.mobile-dropdown-active > a {
    background: #f8f9fa;
    color: var(--primary-color) !important;
}

.main-nav.active .nav-item.mobile-dropdown-active > a::after {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.main-nav.active .nav-item > a:active {
    background: #f1f3f5;
}

/* 드롭다운 메뉴 기본 숨김 */
.main-nav.active .dropdown-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

/* 활성화된 드롭다운만 표시 */
.main-nav.active .nav-item.mobile-dropdown-active .dropdown-menu {
    display: block;
    max-height: 1000px;
}

.main-nav.active .dropdown-menu li {
    border-bottom: 1px solid #dee2e6;
}

.main-nav.active .dropdown-menu li:last-child {
    border-bottom: none;
}

.main-nav.active .dropdown-menu li a {
    padding: 14px 20px 14px 40px;
    font-size: 14px;
    display: block;
    color: #495057 !important;
    font-weight: 500;
    background: #f8f9fa;
    text-shadow: none !important;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav.active .dropdown-menu li a::before {
    content: '·';
    position: absolute;
    left: 25px;
    color: #999;
    font-size: 18px;
}

.main-nav.active .dropdown-menu li a:active {
    background: #e9ecef;
    color: var(--primary-color) !important;
    padding-left: 45px;
}

/* 메가 메뉴 스타일 */
.main-nav.active .mega-dropdown {
    display: none;
    position: static;
    transform: none;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.main-nav.active .nav-item.mobile-dropdown-active .mega-dropdown {
    display: block;
    max-height: 2000px;
}

.main-nav.active .mega-menu-column {
    width: 100%;
    padding: 0;
    border: none;
}

.main-nav.active .mega-menu-title {
    display: block;
    padding: 14px 20px !important;
    font-weight: 700;
    color: var(--primary-color) !important;
    background: #e3f2fd;
    border: none;
    margin: 0;
    font-size: 14px;
    border-bottom: 1px solid #bbdefb;
}

.main-nav.active .mega-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.main-nav.active .mega-submenu li {
    border-bottom: 1px solid #dee2e6;
}

.main-nav.active .mega-submenu li:last-child {
    border-bottom: none;
}

.main-nav.active .mega-submenu li a {
    padding: 12px 20px 12px 40px !important;
    font-size: 13px;
    color: #495057 !important;
    font-weight: 500;
    display: block;
    background: #f8f9fa;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav.active .mega-submenu li a::before {
    content: '-';
    position: absolute;
    left: 25px;
    color: #999;
    font-size: 14px;
}

.main-nav.active .mega-submenu li a:active {
    padding-left: 45px !important;
    background: #e9ecef;
    color: var(--primary-color) !important;
}



/* ===== Hero Section with Slider ===== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 128, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-slide.active .hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

/* Company Info Fixed on Hero - REPLACED WITH FLOATING BUTTON */
/*
.hero-company-info {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 71, 171, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    z-index: 15;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.5s ease;
    display: flex;
    gap: 25px;
    max-width: 90%;
}

.company-info-item {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.company-info-item:last-child {
    border-right: none;
}

.hero-company-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    white-space: nowrap;
}

.hero-company-info p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 5px;
    opacity: 0.95;
}

.hero-company-info p:last-child {
    margin-bottom: 0;
}
*/

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0047AB, #003380);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 71, 171, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 71, 171, 0.6);
    animation: none;
}

.float-icon {
    font-size: 28px;
    margin-bottom: 2px;
}

.float-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 71, 171, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 71, 171, 0.7);
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1.5s ease;
}

.scroll-text {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== What We Do Section ===== */
.what-we-do-section {
    background: var(--bg-light);
    position: relative;
    z-index: 10;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: left;
    position: relative;
    min-height: 320px;
    padding-top: 160px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 12px 0 0;
}

.card-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.service-card:hover .card-icon-image {
    transform: scale(1.05);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
}

.icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.card-icon img {
    width: 50px;
    height: 50px;
}

/* 아이콘 이미지가 없을 때 대체 텍스트 표시 */
.card-icon::before {
    color: white;
    font-weight: bold;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-right: 0;
}

.card-subtitle {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-right: 0;
}

.card-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    clear: both;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* ===== Products Section ===== */
.products-section {
    background: white;
    padding: 80px 0;
}

/* Product Video Grid */
.product-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-video-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-video-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-video-subtitle {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.video-wrapper {
    margin-top: 20px;
}

.video-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.video-label:first-child {
    margin-top: 0;
}

.product-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.product-video:last-child {
    margin-bottom: 0;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 3% auto;
    padding: 30px;
    max-width: 1200px;
    animation: slideDown 0.3s ease;
}

.modal-title {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.modal-close:hover {
    color: #f44336;
    transform: scale(1.2);
}

.modal-video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.modal-video-item {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.modal-video-item video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-video-item h3 {
    color: white;
    padding: 15px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Privacy Policy Modal */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.privacy-modal-content {
    position: relative;
    margin: 50px auto;
    padding: 0;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.privacy-modal-header {
    background: var(--primary-color);
    color: white;
    padding: 30px 40px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.privacy-modal-header .modal-close {
    position: static;
    font-size: 40px;
    color: white;
}

.privacy-modal-header .modal-close:hover {
    color: #f44336;
}

.privacy-modal-body {
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
    color: var(--text-dark);
    line-height: 1.8;
}

.privacy-modal-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ebf0;
}

.privacy-modal-body h3:first-child {
    margin-top: 0;
}

.privacy-modal-body p {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.privacy-modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.privacy-modal-body ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.privacy-date {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e8ebf0;
    text-align: center;
}

.privacy-date p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.privacy-date strong {
    color: var(--text-dark);
    font-weight: 600;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 이미지 로드 실패 시 대체 배경 */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 0;
}

.product-image img {
    position: relative;
    z-index: 1;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 71, 171, 0.8), rgba(0, 51, 128, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-overlay p {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.product-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    transition: var(--transition);
}

.product-link:hover {
    transform: translateX(5px);
}

/* ===== About Section ===== */
/* ===== Company Info Sections ===== */

/* Greeting Section */
.greeting-section {
    background: white;
    padding: 100px 0;
}

.greeting-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.greeting-principles {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.greeting-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.8;
}

.greeting-subtitle:last-child {
    margin-bottom: 0;
}

.greeting-text {
    line-height: 2;
}

.greeting-text p {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: justify;
}

.greeting-highlight {
    font-size: 16px !important;
    font-weight: 600;
    color: var(--primary-color) !important;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    margin-bottom: 30px !important;
}

.greeting-closing {
    font-size: 16px !important;
    font-weight: 600;
    margin-top: 40px !important;
}

.greeting-signature {
    font-size: 18px !important;
    font-weight: 700;
    text-align: right;
    margin-top: 30px !important;
}

/* Overview Section */
.overview-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.overview-content {
    padding: 60px 20px;
}

/* History Section */
.history-section {
    background: white;
    padding: 100px 0;
}

.history-content {
    padding: 60px 20px;
}

/* Organization Section */
.organization-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.organization-content {
    padding: 60px 20px;
}

/* Location Section */
.location-section {
    background: white;
    padding: 100px 0;
}

.location-content {
    padding: 60px 20px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-light);
    position: relative;
}

.about-section .container-wide {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-header.text-center {
    text-align: center;
    max-width: 100%;
    margin-bottom: 60px;
}

/* Main Content: 회사 카드 + 계열사 좌우 배치 */
.about-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* About Cards Grid - 더 이상 사용 안함 */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Subsidiary Section Wrapper - 세로 배치 */
.subsidiary-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.subsidiary-intro-card {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
}

.about-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Main About Card - 파란색 박스 */
.about-main {
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    color: white;
    grid-column: 1 / 2;
}

.about-card-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-card-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.about-card-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 25px;
    transition: var(--transition);
    align-self: flex-start;
}

.about-card-link:hover {
    background: white;
    color: var(--primary-color);
}

.about-card-image {
    flex: 1;
    overflow: hidden;
    min-height: 200px;
}

.about-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subsidiary Intro Card */
.subsidiary-intro {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
}

.subsidiary-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.subsidiary-section-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Subsidiary Cards */
.subsidiary-card {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.subsidiary-card-content {
    text-align: center;
    width: 100%;
}

.subsidiary-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.subsidiary-info {
    text-align: left;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #e8ebf0;
    border-bottom: 1px solid #e8ebf0;
}

.subsidiary-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
}

.subsidiary-info p:last-child {
    margin-bottom: 0;
}

.subsidiary-info strong {
    color: var(--text-dark);
    font-weight: 600;
    display: inline-block;
    min-width: 50px;
}

.subsidiary-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.subsidiary-link:hover {
    color: var(--accent-color);
}

/* Old styles - keep for backwards compatibility */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}

.subsection-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.subsection-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.subsidiary-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* News Section */
.news-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
}

.news-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.news-item {
    padding: 20px;
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.news-item:hover {
    background: var(--bg-light);
    padding-left: 25px;
}

.news-date {
    display: block;
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: #AAAAAA;
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    color: #AAAAAA;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-link img {
    width: 20px;
    height: 20px;
}

/* 소셜 아이콘 대체 텍스트 */
.social-link {
    font-size: 18px;
    color: white;
}

.footer-info {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.company-info h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.company-info p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.company-info p strong {
    color: #999;
    font-weight: 600;
    display: inline-block;
    min-width: 50px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 텍스트 살아있는 듯한 애니메이션 */
@keyframes textFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                     0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(255, 255, 255, 0.5),
                     0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-text {
    opacity: 0;
}

.animate-text-delay {
    opacity: 0;
}

/* 활성 슬라이드의 텍스트 애니메이션 */
.hero-slide.active .animate-text {
    animation: slideInFromLeft 1s ease forwards, textFloat 3s ease-in-out 1s infinite;
}

.hero-slide.active .animate-text-delay {
    animation: slideInFromLeft 1.3s ease forwards, textFloat 3s ease-in-out 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

/* ===== Slider Controls ===== */
.slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-main-content {
        grid-template-columns: 1fr;
    }
    
    .about-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .news-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 데스크톱 네비게이션 숨김 (active 클래스 없을 때만) */
    .main-nav:not(.active) {
        display: none !important;
    }

    /* 언어 선택기 숨김 */
    .language-selector {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* 헤더 높이 조정 */
    .header .container {
        padding: 12px 20px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 15px;
        min-height: 44px;
    }
    
    /* Floating Contact Button - Mobile */
    .floating-contact-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .float-icon {
        font-size: 22px;
    }
    
    .float-text {
        font-size: 9px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .section-subtitle {
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        padding: 20px;
    }

    .product-name {
        font-size: 17px;
    }

    .product-desc {
        font-size: 13px;
    }

    .learn-more {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .about-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-card-content {
        padding: 20px;
    }
    
    .subsidiary-section-title {
        font-size: 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        padding: 15px 0;
        font-size: 12px;
    }

    /* 버튼 터치 영역 확보 */
    button,
    .btn,
    a.btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 작은 모바일 기기 최적화 (480px 이하) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 14px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-desc {
        font-size: 12px;
    }

    .footer-info-text {
        font-size: 12px;
    }
}
