/* Company Page Styles */
/* Navigation Background Removal for Company Page */
body .navigation {
    background: transparent !important;
    backdrop-filter: none !important;
}
body .navigation.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}

/* Main Container */
.company-container {
    position: relative;
    width: 100%;
    height: auto;
}

/* Hero Sections */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Initial z-index for sections */
.section-1 {
    z-index: 10;
    opacity: 1;
}

.section-2 {
    z-index: 9;
    opacity: 0;
}

.section-3 {
    z-index: 8;
    opacity: 0;
}

.section-4 {
    z-index: 7;
    opacity: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px !important;
}

.hero-content {
    position: absolute;
    left: 15%;
    top: calc(50% - 50px);
    transform: translateY(-50%);
    z-index: 2;
    text-align: left;
    color: #1A1A1A;
    max-width: 800px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.title-container {
    margin-bottom: 30px;
}

.company-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    color: #1A1A1A;
}

.title-fixed {
    display: block;
    margin-bottom: 15px;
}

.title-changing {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-size: 28px;
}

.hero-description {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    color: #636363;
}

/* Spacer for scroll */
.section-spacer {
    height: 200vh; /* 2 sections * 100vh - to allow section 2 to be fully visible before history */
    position: relative;
    z-index: 0;
}

/* History Section */
.history-section {
    background: #FFFFFF;
    padding: 200px 0 100px;
    position: relative;
    z-index: 100;
    margin-top: 200vh;
    /* 모바일에서 터치스크롤 활성화 */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.history-container {
    max-width: 100%;
    margin: 0;
    padding: 0 0 0 15%;
    position: relative;
    /* 터치스크롤 활성화 */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.history-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.25;
    color: #1A1A1A;
    margin: 0 0 60px 0;
    text-align: left;
    padding-left: 0;
    position: relative;
}

.history-timeline {
    position: relative;
}

.timeline-columns {
    display: flex;
    gap: 100px;
    align-items: flex-start;
    overflow-x: scroll !important;
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    transition: none;
    padding-top: 10px;
    padding-bottom: 50px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    /* PC 버전에서 가로+세로 스크롤 보장 */
    touch-action: pan-x pan-y !important;
    white-space: nowrap;
    /* 스크롤 강제 활성화 */
    scroll-snap-type: x mandatory;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* 스크롤 강제 활성화 */
    -webkit-overflow-scrolling: touch !important;
}

.timeline-columns::-webkit-scrollbar {
    display: none;
}

.timeline-columns.active {
    cursor: grabbing;
}

.timeline-year {
    position: relative;
    min-width: 539px;
    width: 539px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
    flex-shrink: 0;
    user-select: none;
    /* Scroll snap alignment */
    scroll-snap-align: start;
    /* Ensure proper positioning */
    position: relative;
    /* 스크롤 강제 활성화 */
    flex-shrink: 0;
}

.year-dot {
    width: 20px;
    height: 20px;
    background: #1A1A1A;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: -5px;
    z-index: 2;
    box-shadow: 0 0 0 3px #FFFFFF;
}

.year-dot::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    width: 610px;
    height: 1px;
    background: #CCCCCC;
    z-index: 0;
}

.year-label {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.25;
    color: #1A1A1A;
    margin: 35px 0 30px 0;
    padding-left: 0;
    position: relative;
}

.year-content {
    padding-left: 0;
    padding-top: 20px;
    position: relative;
}

.year-events {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.event-date {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    color: #1A1A1A;
    min-width: 40px;
    text-align: center;
}

.event-details {
    flex: 1;
}

.event-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.event-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #666666;
    margin: 0;
}

/* Footer Section */
.footer-section {
    position: relative;
    z-index: 100;
}

/* Responsive Design - Very Large Screens (2560px and above) */
@media (min-width: 2560px) {
    .hero-content {
        padding: 0 60px;
        max-width: 1100px;
        left: 25%;
        top: calc(50% - 160px);
    }
    .company-title {
        font-size: 52px;
    }
    .title-changing {
        font-size: 52px;
    }
    .hero-description {
        font-size: 24px;
    }
    .history-title {
        font-size: 100px;
    }
    .history-container {
        padding: 0 0 0 15%;
    }
    
    .hero-image img {
        border-radius: 0 !important;
    }
}

/* Responsive Design - Large Screens (1600px to 2499px) */
@media (min-width: 1600px) and (max-width: 2499px) {
    .hero-content {
        padding: 0 50px;
        max-width: 850px;
    }
    .company-title {
        font-size: 40px;
    }
    .title-changing {
        font-size: 40px;
    }
    .hero-description {
        font-size: 20px;
    }
    .history-title {
        font-size: 90px;
    }
    .history-container {
        padding: 0 0 0 15%;
    }
    
    .history-title {
        padding-left: 0;
    }
    
    .timeline-columns {
        flex-direction: row;
        padding-left: 0;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        user-select: none;
        scroll-behavior: smooth;
        white-space: nowrap;
        /* 스크롤 강제 활성화 */
        scroll-snap-type: x mandatory;
    }
    
    .timeline-year {
        min-width: 539px;
        width: 539px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    .hero-image img {
        border-radius: 0 !important;
    }
}

/* Responsive Design - Medium Screens (1200px to 1599px) */
@media (max-width: 1599px) and (min-width: 1200px) {
    .hero-content {
        padding: 0 40px;
    }
    .company-title {
        font-size: 36px;
    }
    .title-changing {
        font-size: 36px;
    }
    .hero-description {
        font-size: 18px;
    }
    .history-title {
        font-size: 52px;
        padding-left: 0;
    }
    .history-container {
        padding: 0 0 0 15%;
    }
    .history-section {
        padding: 120px 0 100px;
    }
    
    .year-label {
        font-size: 28px;
    }
    
    .event-title {
        font-size: 17px;
    }
    
    .timeline-columns {
        flex-direction: row;
        padding-left: 0;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        user-select: none;
        scroll-behavior: smooth;
        white-space: nowrap;
        /* 스크롤 강제 활성화 */
        scroll-snap-type: x mandatory;
    }
    
    .timeline-year {
        min-width: 539px;
        width: 539px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    .hero-image img {
        border-radius: 0 !important;
    }
}

/* Responsive Design - Small Screens (1025px to 1199px) */
@media (max-width: 1199px) and (min-width: 1025px) {
    .hero-content {
        padding: 0 40px;
        left: 10%;
        position: absolute;
    }
    .company-title {
        font-size: 36px;
    }
    .title-changing {
        font-size: 36px;
    }
    .hero-description {
        font-size: 17px;
    }
    .history-title {
        font-size: 52px;
    }
    .history-container {
        padding: 0 0 0 15%;
    }
    .history-section {
        padding: 100px 0 100px;
    }
    
    .timeline-columns {
        flex-direction: row;
        padding-left: 0;
        overflow-x: auto;
        overflow-y: hidden;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        user-select: none;
        scroll-behavior: smooth;
        white-space: nowrap;
    }
    
    .timeline-year {
        min-width: 539px;
        width: 539px;
        flex-shrink: 0;
    }
}

/* Responsive Design - Tablet (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .hero-content {
        justify-content: flex-start;
        padding: 0 40px;
        left: 10%;
        position: absolute;
    }
    .company-title {
        font-size: 32px;
    }
    .title-changing {
        font-size: 32px;
        margin-top: 20px;
    }
    .hero-description {
        font-size: 16px;
    }
    .history-section {
        padding: 80px 0 100px;
        /* 태블릿에서 기본 터치 스크롤 활성화 */
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    .history-container {
        left: 10%;
        padding: 0 220px 0 40px;
        /* 태블릿에서 터치스크롤 강화 */
        touch-action: pan-y;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .history-title {
        font-size: 48px;
        margin-bottom: 50px;
        padding-left: 0;
    }
    .timeline-columns {
        gap: 40px;
        padding-left: 0;
        padding-right: 0;
        /* 태블릿에서도 세로형으로 표시 */
        flex-direction: column;
        align-items: flex-start;
        /* 태블릿에서 스크롤 가능하도록 수정 */
        overflow-y: auto;
        overflow-x: hidden;
        /* 태블릿에서 터치스크롤 활성화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        /* 스크롤 영역 높이 설정 */
        max-height: 100vh;
    }
    
    .timeline-year {
        min-width: 100%;
        width: 100%;
        margin-bottom: 50px;
        /* 터치스크롤 최적화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    .event-title {
        font-size: 20px;
        /* 태블릿에서 두 줄 처리 */
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        display: block;
        width: 100%;
    }
    .event-subtitle {
        /* 태블릿에서 두 줄 처리 */
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        display: block;
        width: 100%;
    }
    
    .year-label {
        font-size: 36px;
        margin-bottom: 25px;
    }

    /* 태블릿에서도 닷과 라인 숨김 */
    .year-dot,
    .year-dot::before,
    .year-dot::after {
        display: none;
    }
}

/* Responsive Design - Mobile (767px and below) */
@media (max-width: 767px) {
    .hero-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s ease;
        z-index: 1;
    }
    
    /* 모바일에서도 데스크탑과 동일한 z-index 설정 */
    .section-1 {
        z-index: 10;
        opacity: 1;
    }
    
    .section-2 {
        z-index: 9;
        opacity: 0;
    }
    
    .section-3 {
        z-index: 8;
        opacity: 0;
    }
    
    .section-4 {
        z-index: 7;
        opacity: 0;
    }
    
    .hero-content {
        padding: 100px 20px 0 20px;
        justify-content: flex-start;
        transform: translateY(-10%);
        left: 5%;
        top: 120px;
        max-width: 480px;
    }
    
    .company-title {
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-description {
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 모바일에서 텍스트 애니메이션 활성화 */
    .title-changing {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
        font-size: 24px;
        margin-top: 15px;
    }
    
    .hero-description {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
        font-size: 14px;
    }
    
    .section-spacer {
        display: none;
    }
    
    .company-title {
        font-size: 24px;
    }
    
    .history-section {
        padding: 60px 0 80px;
        overflow: visible;
        position: relative;
        z-index: 100;
        scroll-behavior: smooth;
        margin-top: 400vh;
        /* 기본 터치 스크롤 활성화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .history-container {
        padding: 0 32px 0 32px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* 터치스크롤 강화 */
        touch-action: pan-y;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .history-title {
        font-size: 36px;
        margin-bottom: 30px;
        padding-left: 0;
    }
    
    .timeline-columns {
        gap: 30px;
        padding-left: 0;
        padding-right: 0;
        /* 모바일에서는 세로형으로 표시 */
        flex-direction: column;
        align-items: flex-start;
        /* 모바일에서 스크롤 가능하도록 수정 */
        overflow-y: auto;
        overflow-x: hidden;
        /* 모바일에서 터치스크롤 활성화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        /* 스크롤 영역 높이 설정 */
        max-height: 100vh;
    }
    
    .timeline-year {
        min-width: 100%;
        width: 100%;
        margin-bottom: 40px;
        /* 터치스크롤 최적화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .year-label {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .event-item {
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }
    
    .event-details {
        flex: 1;
        width: 100%;
    }
    
    .event-title {
        font-size: 16px;
        width: 100%;
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .event-date {
        font-size: 20px;
        min-width: 35px;
    }
    
    .event-subtitle {
        width: 100%;
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    /* 모바일에서만 닷과 라인 숨김 */
    .year-dot,
    .year-dot::before,
    .year-dot::after {
        display: none;
    }
}

/* Responsive Design - Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-content {
        padding: 80px 16px 0 16px;
        left: 5%;
        top: 120px;
        max-width: 280px;
    }
    
    .company-title {
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-description {
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .company-title {
        font-size: 24px;
    }
    
    .title-changing {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .history-container {
        padding: 0 32px 0 32px;
    }
    
    .history-title {
        font-size: 32px;
    }
    
    /* 작은 모바일에서 히스토리 섹션 기본 터치 스크롤 */
    .history-section {
        /* 기본 터치 스크롤 활성화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .timeline-columns {
        flex-direction: column;
        align-items: flex-start;
        /* 작은 모바일에서 스크롤 가능하도록 수정 */
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0;
        /* 작은 모바일에서 터치스크롤 활성화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        /* 스크롤 영역 높이 설정 */
        max-height: 100vh;
    }
    
    .timeline-year {
        min-width: 100%;
        width: 100%;
        margin-bottom: 40px;
        /* 터치스크롤 최적화 */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .year-label {
        font-size: 24px;
    }
    
    .event-title {
        font-size: 15px;
        width: 100%;
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .event-date {
        font-size: 18px;
        min-width: 30px;
    }
    
    .event-subtitle {
        width: 100%;
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    /* 작은 모바일에서만 닷과 라인 숨김 */
    .year-dot,
    .year-dot::before,
    .year-dot::after {
        display: none;
    }
}

/* Desktop specific styles (1025px and above) */
@media (min-width: 1025px) {
    .timeline-columns {
        /* PC 버전에서 가로+세로 스크롤 보장 */
        touch-action: pan-x pan-y;
        overflow-x: scroll !important;
        overflow-y: auto !important;
        cursor: grab;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
    }
    
    .timeline-columns:hover {
        cursor: grabbing;
    }

    /* 데스크탑/태블릿에서 히스토리 인터랙션 보장 */
    .history-section,
    .history-container,
    .timeline-columns,
    .timeline-year {
        pointer-events: auto;
    }
}
