@import "button.css";

/* Header Component Styles */
.header {
    background-color: #ffffff;
    height: 90px;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease, height 0.3s ease;
    width: 100%;
    z-index: 1000;
}

.header .header-container {
    border-bottom: 1px solid #eeeeee;

}

/* Header Scrolled State */
.header.scrolled {
    animation: stickySlideDown .65s cubic-bezier(0.23, 1, 0.32, 1) both;
    left: 0;
    position: fixed;
    top: 0;
}

.empty-space {
    height: 90px;
    opacity: 0;
}

@media (max-width: 1200px) {
    .empty-space {
        height: 56px;
    }
}

@keyframes stickySlideDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }

}

.header-container {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* Logo Section */
.logo-section {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    width: 135px;
}

.logo-section a {
    align-items: center;
    display: flex;
    justify-content: center;
}

.logo-img {
    height: 45px; /* 로고 높이 */
    width: auto;  /* 비율 유지 */
    display: block;
}

.logo-section svg {
    height: 52px;
    width: 135px;
}

.header .logo-section svg path:nth-child(1) {
    fill: var(--color-gray-01);
}

.header .logo-section svg path:nth-child(2) {
    fill: var(--color-primary-02);
}

.logo-text {
    color: var(--color-gray-01);
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.44px;
    line-height: 45px;
    text-align: center;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.logo-subtitle {
    color: #2e8dbd;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 21px;
    text-align: center;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.logo-section,
.navigation {
  display: flex;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

/* Navigation Menu */
.navigation {
    align-items: center;
    display: flex;
    gap: 0;
    height: 90px;
    margin-left: 20px;
}

.nav-item {
    align-items: center;
    display: flex;
    height: 90px;
    justify-content: center;
    position: relative;
    width: 147px;
}

.nav-link {
    align-items: center;
    color: var(--color-gray-01);
    display: flex;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 500;
    height: 100%;
    justify-content: center;
    letter-spacing: 0px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary-02);
}

/* Individual Nav Item Submenus (Hidden by default) */
.nav-item .submenu {
    display: none;
}

/* Action Buttons */
.action-buttons {
    align-items: center;
    display: flex;
    gap: 13px;
    height: 90px;
    margin-left: auto;
}

.quote-button {
    align-items: center;
    background-color: var(--color-primary-01);
    border: 1px solid var(--color-primary-01);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0;
    line-height: 24px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.quote-button:hover {
    background-color: #ffffff;
    color: var(--color-primary-01);
}

/* Language Toggle */
.language-toggle {
    align-items: center;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 60px;
}

.toggle-container {
    align-items: center;
    background-color: #e8e8e8;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: space-between;
    padding: 2px;
    position: relative;
    transition: background-color 0.3s ease;
    width: 60px;
}

.toggle-active {
    background-color: var(--color-primary-01);
    border-radius: 16px;
    height: 32px;
    left: 1px;
    position: absolute;
    top: 2px;
    transition: transform 0.3s ease;
    width: 32px;
}

.language-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 24px;
    position: relative;
    text-align: center;
    transition: color 0.3s ease;
    width: 28px;
    z-index: 1;
}

.language-text.ko {
    color: #ffffff;
}

.language-text.en {
    color: #999999;
}

/* EN 활성화 상태 */
.language-toggle[data-language="en"] .toggle-active {
    transform: translateX(26px);
}

.language-toggle[data-language="en"] .language-text.ko {
    color: #999999;
}

.language-toggle[data-language="en"] .language-text.en {
    color: #ffffff;
}

/* Mobile Menu Button */
.mobile-menu-button {
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    height: 16px;
    justify-content: space-between;
    position: relative;
    width: 20px;
}

.hamburger-line {
    background-color: var(--color-gray-01);
    height: 2px;
    transform-origin: center;
    transition: all 0.3s ease;
    width: 100%;
}

/* Hamburger Menu Active State (X animation) */
.mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


@media (max-width: 1200px) {
    /* Mobile Header Adjustments */
    .header {
        height: 56px;
    }

    .header-container {
        height: 56px;
        padding: 0 20px;
        position: relative;

    }

    /* Logo Adjustments for Mobile */
    .logo-section {
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
        width: auto;
    }

    .logo-section svg {
        height: 36px;
        width: 135px;
    }

    /* Hide Desktop Elements */
    .desktop-only {
        display: none !important;
    }

    /* Show Mobile Elements */
    .mobile-only {
        display: flex;
    }

    /* Mobile Menu Button */
    .mobile-menu-button {
        display: flex;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    /* 추가적인 작은 화면 조정이 필요한 경우 여기에 추가 */
    .header-container {
        padding: 0 15px;
    }
}

/* Submenu Container */
.submenu-container {
    background-color: var(--color-white);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .07);
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    visibility: hidden;
    width: 100%;
    z-index: 999;
}

.submenu-container.show {
    max-height: 300px !important; /* 충분히 큰 값으로 설정하여 모든 컨텐츠가 들어갈 수 있도록 */
    opacity: 1 !important;
    visibility: visible !important;
}

/*.submenu-wrapper {*/
/*    display: flex;*/
/*    gap: 0;*/
/*    height: fit-content;*/
/*    justify-content: center;*/
/*    margin: 0 auto;*/
/*    padding: 20px 60px;*/
/*    width: 100%;*/
/*}*/
.submenu-wrapper {
    display: flex;
    gap: 0;
    height: fit-content;
    justify-content: start;
    left: 0;
    padding: 20px 60px;
    position: relative;
    top: 0;
    width: 100%;
    margin-left: 200px;
}

.submenu-column {
    display: flex;
    gap: 80px;
}

.submenu-item {
    margin-bottom: 0;
}

.submenu-item a {
    align-items: center;
    background-color: transparent;
    color: var(--color-gray-01);
    display: flex;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    height: 44px;
    justify-content: center;
    line-height: 24px;
    margin-left: 0;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.submenu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}


.submenu-item:hover a {
    color: var(--color-primary-02);
}

/* Hide submenu when not hovering */
.header:not(:hover) .submenu-container {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 1400px) {
    .submenu-column[data-submenu='products'] {
        gap: 40px;
    }
}

@media (max-width: 1200px) {
    .submenu-container {
        top: 56px;
    }
} 