@charset "UTF-8";

/* ==============================================
   Hero Section
============================================== */
.hero {
    background-color: #F5F6F6;
    height: 80vh;
    border-bottom-right-radius: 300px;
    background-image: url('/images/main/hero.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    display: flex;
    align-items: center; /* 텍스트를 수직 중앙에 배치 */
}

.hero .container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero h1 {
    font-size: 64px;
    padding-bottom: 20px;
}

.hero .hero-info {
    font-weight: 400;
    font-size: 20px;
    color: #505050;
}

/* ==============================================
   Features Section
============================================== */
section.features {
    background-color: #FFFFFF;
    padding: 0;
    height: 100vh;
}

.features .features-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 배경 이미지 속성 통합 및 중복 제거 */
    background-size: 85% auto, cover; 
    background-repeat: no-repeat;
    background-position: right -140px bottom -230px, 0 0;
    transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* 세로 구분선 */
.feature-item:not(:first-child)::after {
    content: '';
    position: absolute;
    top: 5%;
    bottom: 5%;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #9AC0FF, rgba(255, 255, 255, 0));
}

.feature-icon {
    margin-bottom: 40px;
}

.feature-icon img {
    width: auto;
}

.feature-title {
    font-weight: 700;
    font-size: 28px;
    color: #416BB2;
    position: relative;
}

.feature-description {
    margin-top: 20px;
}

.feature-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex
;
    flex-direction: column;
    gap: 8px;
}

/* 호버 오버레이 레이어 - 기본 설정 */
.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat, no-repeat;
    background-size: 40vw auto, cover;
    background-position: right -13vw bottom -35vh, 0 0;
    opacity: 0; 
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

/* 아이템별 배경 설정 */
.feature-item.item-video::before {
    background-image: url('/images/main/AI_bg.png'), linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(67, 199, 255, 0.2));
}

.feature-item.item-ai::before {
    background-image: url('/images/main/ondevice_bg.png'), linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(67, 199, 255, 0.2));
}

.feature-item.item-sql::before {
    background-image: url('/images/main/SQL_bg.png'), linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(67, 199, 255, 0.2));
}

/* 호버 시 Fade-in */
.feature-item:hover::before {
    opacity: 0.4;
}

/* 실제 콘텐츠는 가상요소보다 위에 있도록 */
.feature-item>* {
    position: relative;
    z-index: 2;
}

/* 아이콘 컨테이너 스타일 */
.icon-normal {
    border: 1px solid #4383F0;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 0 20px rgb(255, 255, 255);
    width: 80px;
    height: 80px;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.icon-normal img {
    width: 100%;
    height: auto;
}

/* 호버 시 아이콘 스타일 (중복 제거 및 통합) */
.feature-item:hover .icon-normal {
    border: 1px solid white;
    background: white;
    box-shadow: 0 0 20px rgba(135, 180, 255, 1);
}

/* ==============================================
   Product Section
============================================== */
.product {
    max-width: 1400px;
    margin: 0 auto;
}

.product-header {
    display: flex;
    margin-bottom: 30px;
    text-align: left;
    justify-content: space-between;
}

h2.title {
    font-weight: 700;
    font-size: 40px;
    color: #416BB2;
}

.product-info p {
    font-size: 18px;
}

.product-tab {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
    width: 300px;
    margin-top: 15px;
}

.product-tab li {
    cursor: pointer;
    font-weight: 500;
    color: #555;
    text-align: center;
    font-size: 18px;
}

.product-tab li:hover {
    color: #3b74cf;
}

.product-tab li.active {
    color: #2c5ca9;
    font-weight: 700;
}

/* 탭 인디케이터 컨테이너 */
.tab-indicator-container {
    position: relative;
    width: 100%;
    height: 20px;
    margin-bottom: 30px;
}

/* 헤더 아래 라인 */
.tab-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background-color: #416BB2;
    z-index: 1;
}

/* 이동하는 원 */
.tab-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-color: #416BB2;
    border-radius: 50%;
    transition: left 0.3s ease;
    z-index: 2;
}

.product-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    position: relative;
    height: 500px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-15px);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

.product-content a {
    text-decoration: none;
    color: inherit;
}

/* 각 배경 이미지 (유지) */
.product-item.bg1 { background-image: url('/images/main/product_1.png'); }
.product-item.bg2 { background-image: url('/images/main/product_2.png'); }
.product-item.bg3 { background-image: url('/images/main/product_3.png'); }
.product-item.bg4 { background-image: url('/images/main/product_4.png'); }
.product-item.bg5 { background-image: url('/images/main/AIPlatform_1.png'); }
.product-item.bg6 { background-image: url('/images/main/AIPlatform_2.png'); }
.product-item.bg7 { background-image: url('/images/main/AIPlatform_3.png'); }
.product-item.bg8 { background-image: url('/images/main/AIData_1.png'); }
.product-item.bg9 { background-image: url('/images/main/AIData_2.png'); }
.product-item.bg10 { background-image: url('/images/main/AIData_3.png'); }
.product-item.bg11 { background-image: url('/images/main/AIData_4.png'); }

.product-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 15px;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    font-weight: 500;
    font-size: 24px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.product-text * {
    display: block;
    margin-top: 14px;
    color: #fff;
    font-weight: 500;
    font-size: 22px;
}

.product-text span {
    font-weight: 400;
    font-size: 16px;
}

/* ==============================================
   Customer Section
============================================== */
section.customer {
    background-image: url('/images/main/customer_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section.customer * {
    max-width: 1400px;
    padding: 0;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 20px;
    justify-items: center;
    margin: auto;
    margin-top: 60px;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 70px;
    border-radius: 20px;
}

.logo-item img {
    max-width: 100%;
    height: auto;
}

.vision-statement {
    text-align: center;
}

.vision-title {
    font-weight: 700;
    font-size: 38px;
    color: #FFFFFF;
    margin-bottom: 20px
}

.vision-statement p {
    font-weight: 400;
    font-size: 20px;
    color: #FFFFFF;
    margin: 0;
}

/* ==============================================
   News Section
============================================== */
section.news {
    position: relative;
    background-color: #F0F9FF;
    background-image: url('/images/main/Chat.png');
    background-repeat: no-repeat;
    background-position: right top;
    min-height: 60vh;
    padding: 100px 0;
    overflow: hidden;
}

.news .container {
    position: relative;
    z-index: 2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 40px;
    border-bottom: 1px solid #fff;
    padding-bottom: 25px;
}

.section-header .section-title p {
    font-size: 18px;
    color: #505050;
    line-height: 1.6;
}

.btn-more {
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #4B4B4B;
}

a.btn-more:hover {
    text-decoration: none;
    font-weight: 700;
    color: #4B4B4B;
}

.news-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.news-slider-track a:hover {
    text-decoration: none;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.news-card {
    flex: 0 0 calc(25% - 15px);
    background: linear-gradient(51deg, #ffffff05, #ffffffe8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s
ease, box-shadow 0.3s
ease;
    backdrop-filter: blur(12px);
}

.news-card:hover {
    transform: translateY(-15px);
}

.news-card .news-thumbnail-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card .news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.news-card .news-meta .news-category {
    color: #416BB2;
    font-weight: 500;
}

.news-card .news-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 54px;
}

.slider-arrow {
    background-color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    color: #416BB2;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    pointer-events: all;
    align-items: center;
    justify-content: center;
    display: flex;
}

.slider-arrow:hover {
    transform: scale(1.1);
}

.section-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

/* ==============================================
   Contact Section
============================================== */
section.contact {
    background-color: #F0F5FA;
    padding: 100px 0;
}

.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.contact-form-area, .contact-map-area {
    flex: 1;
    min-width: 0;
}

.contact-form-area .section-title {
    margin-bottom: 40px;
}

.contact-form-area .section-title .title {
    color: #416BB2;
    font-size: 38px;
    margin-bottom: 15px;
}

.contact-form-area .section-title p {
    font-size: 18px;
    color: #505050;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    font-size: 20px;
    color: #111111;
}

.form-main input[type="text"], .form-main input[type="email"],
.form-main textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-main textarea {
    height: 150px;
    resize: vertical;
}

.form-footer {
    margin-top: 30px;
}

.btn-contact {
    width: 100%;
    padding: 16px;
    background-color: #416BB2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #2c5ca9;
}

.contact-map-area iframe {
    border-radius: 15px;
    min-height: 500px;
}

/* ==============================================
   Solution Section (Accordion)
============================================== */
.solution-accordion {
    display: flex;
    width: 100%;
    height: 350px;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.solution-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 150px;
    background-size: cover;
    background-position: center;
    transition: flex 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.solution-item.deepsdk::before { background-color: #E5C764; }
.solution-item.safetyguard::before { background-color: #FF8442; }
.solution-item.sqmldi::before { background-color: #4383F0; }

.solution-item.active {
    flex-grow: 1;
    cursor: default;
}

.solution-item.active::before {
    opacity: 0;
}

.item-header {
    position: relative;
    z-index: 2;
    top: 50%;
    margin: auto;
    transform: translateY(-50%);
    transition: opacity 0.4s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.item-header .year {
    color: #fff;
    font-weight: 700;
    font-size: 32px;
}

.item-header .text {
    color: #fff;
}

.item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 150px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    z-index: 2;
}

.solution-item.active .item-content {
    opacity: 1;
    transform: translateX(0);
}

.item-content .logo {
    max-height: 45px;
    width: auto;
    align-self: flex-start;
    margin-bottom: 20px;
}

.item-content .logo-text {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.item-content .description {
    font-weight: 400;
    font-size: 20px;
    color: #FFFFFF;
}

.btn-go {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    background-color: white;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    font-weight: 600;
    font-size: 20px;
    color: #2F280F;
    border-width: 1px;
    border-style: solid;
}

.btn-go:hover {
    text-decoration: none;
    color: #2F280F;
}

.solution-item.deepsdk .btn-go { border-color: #C9AC48; }
.solution-item.safetyguard .btn-go { border-color: #FF8442; }
.solution-item.sqmldi .btn-go { border-color: #4383F0; }

/* ==============================================
   Media Queries
============================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 44px;
        padding-bottom: 8px;
    }
}

/* Medium devices (max-width: 992px) */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
    }
}

/* Button position adjustment for smaller desktops/large tablets */
@media (max-width: 1200px) {
    .btn-go {
        position: relative; 
        top: auto;
        right: auto;
        transform: none;
        width: 150px;
        text-align: center;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* General styles */
    h2.title {
        font-size: 30px;
    }
    .product-info p {
        font-size: 16px;
    }
    .vision-title {
        font-size: 30px;
    }
    .vision-statement p {
        font-size: 16px;
    }
    .feature-title {
        font-size: 24px;
    }
    .section-header .section-title p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Hero Section */
    .hero {
        border-radius: 0;
        padding: 10px;
        background-position: bottom;
        background-size: contain;
        background-color: rgba(245, 246, 246, 0.6);
        background-blend-mode: lighten;
		height: 60vh;
    }
    .hero h1 {
        font-size: 30px;
        padding-bottom: 8px;
    }
    .hero .hero-info {
        font-size: 16px;
    }
    
    /* Features Section */
    section.features {
        height: auto;
    }
    .features-container {
        flex-direction: column;
        padding: 0 20px;
    }
    .feature-item {
        margin-bottom: 40px;
        min-height: 200px; /* 원본에서 500px로 설정되었으나 min-height 유지 */
        height: 500px;
        width: 100%;
        max-width: unset;
        padding: 80px 20px;
        border-radius: 20px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    /* 모바일: ::before 가상 요소를 항상 보이게 하고 투명도 30% 적용 */
    .feature-item::before {
        opacity: 0.3;
        transition: none;
        background-position: center bottom, 0 0; 
        background-size: 70% auto, cover;
    }
    .feature-item:hover::before {
        opacity: 0.3;
    }

    /* 세로 구분선 제거 및 가로 구분선 추가 */
    .feature-item::after {
        display: none;
    }
    .feature-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 10%;
        right: 10%;
        bottom: 0;
        height: 2px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), #9AC0FF, rgba(255, 255, 255, 0));
    }

    /* Product Section */
    .product-header {
        flex-direction: column;
        margin-bottom: 0;
    }
    .product-tab {
        width: 100%;
        flex-direction: row;
    }
    .product-content {
        grid-template-columns: repeat(1, 1fr);
    }
    .product-item {
        height: 300px;
    }

    /* Customer Section */
    section.customer {
        height: 100%;
    }
    section.customer *:not(.logo-item, .logo-item img) {
        padding: 10px;
        word-break: keep-all;
        text-align: left;
    }
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 0;
    }
    .logo-item {
        width: auto;
    }

    /* News Section */
    .news-slider-track {
        flex-direction: column;
    }

    /* Solution Section */
    .solution-accordion {
        flex-direction: column;
        height: auto;
        max-width: 100%;
    }
    .solution-item {
        flex-basis: auto;
        width: 100%;
        height: 80px;
        transition: height 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    .solution-item.active {
        flex-grow: 0;
        height: 400px;
    }
    .item-header {
        top: 40px;
        left: 30px;
        writing-mode: horizontal-tb;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin: 0;
        width: calc(100% - 60px);
    }
    .item-header .year {
        font-size: 28px;
    }
    .item-content {
        padding: 90px 30px 30px 30px;
        justify-content: flex-start;
    }
    .btn-go {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 30px;
        align-self: flex-start;
    }
	/* ✅ 추가: 모바일 메뉴 내 언어 선택 스타일링 */
    .mobile-menu-header .lang-switch {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 500;
    }
    .mobile-menu-header .lang-switch a {
        color: white;
        font-weight: 600;
        padding: 5px 0;
        text-decoration: none;
    }
    .mobile-menu-header .lang-switch a:hover {
        color: #C7E1FF;
    }
}