@import "form.css";

/* Hero Section (900px 높이) */
.hero-section {
    height: 40vh;
    padding: 60px 16px;
    position: relative;
    width: 100%;
    z-index: 10;
}

.hero-bg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.hero-bg img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}


.hero-content {
    bottom: 16%;
    left: 150px;
    position: absolute;
    z-index: 1;
}

.hero-text {
    /* margin-bottom: 40px; */
}

.hero-title {
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 120%;
    margin: 0 0 20px 0;
}

.hero-description {

    color: #ffffff;
    margin-bottom: 15px;
}


/* Product Introduction Section (1380px 높이) */
.product-intro-section {
    align-items: center;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    z-index: 1;
}

.product-intro-bg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.product-intro-bg img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product-intro-overlay {
    background-color: rgba(0, 0, 0, 0.2);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

.product-intro-content {
    max-width: var(--content-max-width);
    padding: 80px 16px;
    position: relative;
    z-index: 3;
}


.section-label {
    color: var(--color-primary-02);
    display: block;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 150%;
    margin-bottom: 4px;
}


.product-grid-wrapper{
    display: flex;
    flex-direction: column;
    gap: 80px;
}


.tams-main-screenshot {
    width: 100%;
    object-fit: contain;
}

/* Features Section */
.features-section {
    align-items: center;
    background-color: var(--color-bg-01);
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.features-bg-rectangle {
    display: flex;
    flex-direction: row;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;

    /* background-color: var(--color-bg-01); */
}

.bg-left {
    background-color: var(--color-primary-04);
    height: 100%;
    width: 72%;
}

.bg-right {
    background-color: var(--color-primary-03);
    height: 100%;
    position: relative;
    width: 28%;
    z-index: 2;
}

.features-content {
    max-width: var(--content-max-width);
    padding: 60px 16px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.features-header {
    margin-bottom: 40px;
}

.features-title {
    color: var(--color-gray-01);
    margin: 0 0 20px 0;
}


.features-large-text {
    color: var(--color-primary-03);
    font-size: 108px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 100%;
    z-index: 1;
}

.swiper-feature-box.swiper {
    overflow: visible;
}

.features-cards {
    display: flex;
    position: relative;
    z-index: 2;
}

.features-cards .swiper-slide-active {
    background-color: var(--color-primary-01);
    transform: scale(1.15);
}

.features-cards .swiper-slide-active .card-icon {
    background: #FFFFFF1A;
}

.features-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-primary-01);
}

/* 네비게이션 버튼 스타일 */
.feature-nav-btn {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--color-gray-01);
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    width: 48px;
    z-index: 10;
}


.feature-nav-prev {
    left: -24px;
}

.feature-nav-next {
    right: -24px;
}

/* 네비게이션 버튼 비활성화 상태 */
.feature-nav-btn.swiper-button-disabled {
    background-color: rgba(255, 255, 255, 0.3);
    color: rgba(21, 21, 21, 0.3);
    cursor: not-allowed;
    pointer-events: none;
}


.features-cards .swiper-slide-active p,
.features-cards .swiper-slide-active h3 {
    color: #fff;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 420px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    width: 300px;
}


.card-icon {
    align-items: center;
    background-color: var(--color-bg-01);
    border-radius: 50%;
    display: flex;
    height: 100px;
    justify-content: center;
    margin-bottom: auto;
    transition: all 0.3s ease;
    width: 100px;
}

.card-icon svg {
    height: 62.5px;
    width: 62.5px;
}


.feature-card h3 {
    color: var(--color-gray-01);
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 150%;
    margin: 0;
}

.feature-card p {
    color: var(--color-gray-02);
    display: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 150%;
    margin-top: 20px;
}

.features-cards .feature-card.swiper-slide-active p {
    display: block;
}

.features-cards .feature-card.swiper-slide-active h3 br {
    display: none;
}

.features-pagination {
    bottom: -45px !important;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

/* Performance Section */
.performance-section {
    background-color: var(--color-01);
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.performance-bg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.performance-bg img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.performance-overlay {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

.performance-content {
    max-width: var(--content-max-width);
    padding: 100px 0;
    position: relative;
    width: 100%;
    z-index: 3;
}

.performance-header {
    margin-bottom: 40px;
}

.performance-title {

    color: #ffffff;
    margin-bottom: 84px;
}

.performance-stats {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 60px;
}

.stat-box {
    min-width: 220px;
    text-align: center;

}

.stat-box:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    margin-right: 60px;
    padding-right: 60px;
}

.stat-number {
    color: #ffffff;
    display: block;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 150%;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-label {
    color: #ffffff;
    display: block;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 150%;
    margin-top: 8px;
}

/*
.stat-divider {
    background-color: rgba(255, 255, 255, 0.5);
} */

/* Partner Logos Container */
.partner-logos-container {
    position: relative;
    width: 100%;
}

/* PC: 1줄 롤링 배너 */
.partner-logos-pc {
    display: block;
    width: 100%;
}

.partner-logos-pc .logos-wrapper {
    animation: scrollLeft 90s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
}


/* Mobile: 2줄 교차 롤링 배너 */
.partner-logos-mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin: 0 -16px;
}

.partner-logos-row {
    overflow: hidden;
    width: 100%;
}

.partner-logos-row .logos-wrapper {
    display: flex;
    width: max-content;
    will-change: transform;
}

.partner-logos-row[data-direction="left"] .logos-wrapper {
    animation: scrollLeft 90s linear infinite;
}

.partner-logos-row[data-direction="right"] .logos-wrapper {
    animation: scrollRight 90s linear infinite;
}


/* 무한 스크롤 애니메이션 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 로고 박스 공통 스타일 */
.logo-box {
    align-items: center;
    background-color: #ffffff;
    /*background-color: rgba(255, 255, 255, 0.1);*/
    border-radius: 8px;
    display: flex;
    height: 80px !important;
    justify-content: center;
    margin-right: 24px;
    position: relative;
    transition: all 0.3s ease;
    width: 200px !important;
}

/* 카드 호버 효과 개선 */
.feature-card {
    background-color: #ffffff;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 420px;
    padding: 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 300px;
    will-change: transform, box-shadow;
}


/* 클릭 이벤트 개선을 위한 포인터 이벤트 설정 */
.feature-card {
    cursor: pointer;
    pointer-events: auto;
}

.feature-card * {
    pointer-events: none;
}

.feature-card::before {
    background: linear-gradient(135deg, rgba(4, 61, 39, 0.05) 0%, rgba(232, 243, 237, 0.1) 100%);
    border-radius: 15px;
    bottom: 0;
    content: '';
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.4s ease;
}


/* 성능 지표 카운트업 애니메이션 */
.stat-number {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.stat-number.animate {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 히어로 섹션 애니메이션 */
.hero-title {
    animation: heroTitleFadeIn 1.2s ease-out 0.3s forwards;
    color: gold;//-#ffffff;
    font-size: 46px; //--27px
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    animation: heroDescFadeIn 1.2s ease-out 0.6s forwards;
    color: rgba(255, 255, 255, 0.9);
    font-size: 30px; //--18px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroTitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroDescFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-box img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}


/* 반응형: 모바일 */
@media (max-width: 768px) {
    .partner-logos-pc {
        display: none;
    }

    .partner-logos-mobile {
        display: flex;
    }

    .logo-box {
        height: 48px !important;
        margin-right: 16px;
        width: 120px !important;
    }

    .logo-box::after {
        font-size: 10px;
    }

}

/* Government Procurement Section */
.procurement-section {
    align-items: center;
    background: linear-gradient(90deg, #043D27 0%, #3A896A 100%);
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    z-index: 1;
}

.procurement-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    max-width: var(--content-max-width);
    padding: 60px 16px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.procurement-text h3 {
    color: #ffffff;
}

.procurement-text p {
    color: #ffffff;
}

/* Notice Section */
.notice-section {
    background-color: var(--color-primary-03);
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
}

.notice-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: var(--content-max-width);
    padding: 60px 16px;
    position: relative;
    width: 100%;
}

.notice-header {
    display: flex;
    flex-direction: column;
}

.notice-button {
    border: 1px solid var(--color-primary-01) !important;
    color: var(--color-primary-01) !important;
}


.notice-title {
    color: var(--color-gray-01);
    font-family: 'Pretendard', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 150%;
    margin: 0 0 40px;
}

.notice-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 55%;
}

.notice-card {
    align-items: center;
    background-color: var(--color-bg-02);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    gap: 60px;
    padding: 20px 60px;
    width: 100%;
}

/* 공지사항 카드 애니메이션 */
.notice-card {
    opacity: 0;
    transform: translateY(30px);
}

.notice-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* 정보 박스 애니메이션 */
.info-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    flex-direction: row-reverse;
    display: flex;
    justify-content: space-between;
}
.info-box .content-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 45%;
}
.info-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.info-box .content-wrapper h1,
.info-box .content-wrapper span{
    color: #fff;
}

.info-box .content-wrapper p{
    color: #fff;
    font-size: 20px;
}


.info-box.gs-certification-box img {
    height: fit-content;
}
.info-box .info-box-img{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-box .info-box-img img{
    width: 100%;
}


.info-box.row-reverse{
    flex-direction: row;
}


.info-box p{
    margin: 0;
}



.notice-date {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-width: 60px;
}

.date-month {
    color: var(--color-gray-02);
    display: block;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 150%;
}


.notice-text {
    color: var(--color-gray-01);
    flex: 1;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    -webkit-line-clamp: 1;
    line-height: 150%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Contact Us Section */
.contact-section {
    background-color: var(--color-primary-03);
    display: flex;
    justify-content: center;
    padding: 60px 16px;
    position: relative;
    width: 100%;

}


.contact-box-bg img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.contact-box-bg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.contact-content {
    align-items: center;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--content-max-width);
    overflow: hidden;
    padding: 100px 0;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.contact-label {
    color: #ffffff;
    display: block;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 150%;
    margin-bottom: 8px;
}

.contact-title {

    color: #ffffff;
    margin-bottom: 40px;
}

/* Contact 버튼 */
.contact-button {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.contact-form-container {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    margin: 0 auto;
    max-width: 800px;
    padding: 24px;
    width: 100%;
}

.contact-form-container .form-input::placeholder,
.contact-form-container .form-textarea::placeholder {
    color: #777777;
}

@media (hover: hover) and (pointer: fine) {
    .contact-button:hover {
        background-color: #ffffff !important;
        color: var(--color-gray-01) !important;
    }

    .feature-nav-btn:hover {
        background-color: var(--color-primary-01);
        color: #ffffff;
        transform: translateY(-50%) scale(1.1);
    }

    .feature-nav-btn.swiper-button-disabled:hover {
        background-color: rgba(255, 255, 255, 0.3);
        color: rgba(21, 21, 21, 0.3);
        transform: translateY(-50%);
    }

    .feature-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-4px);
    }

    .feature-card:not(.swiper-slide-active):hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(-12px) scale(1.02);
    }

    .feature-card.swiper-slide-active:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(-12px) scale(1.17);
    }

    .feature-card:hover::before {
        opacity: 1;
    }

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section,
    .product-intro-content,
    .features-content,
    .performance-content,
    .procurement-content,
    .notice-content,
    .contact-content {
        padding: 40px 16px;
    }

    .product-grid-wrapper{
        gap: 40px;
    }

    .hero-content {
        left: 120px;
    }

    .features-cards .swiper-slide-active {
        transform: unset;
    }

    .features-pagination {
        bottom: 0 !important;
    }

    /* 네비게이션 버튼 위치 조정 */
    .feature-nav-prev {
        left: 8px;
    }

    .feature-nav-next {
        right: 8px;
    }

}

@media (max-width: 768px) {
    .info-box .content-wrapper p{
        font-size: 16px;
    }
    .info-box{
        flex-direction: column-reverse;
        gap: 20px;
    }

    .info-box.row-reverse{
        flex-direction: column-reverse;
    }

    .info-box .info-box-img{
        width: 100%;
    }

    .info-box .content-wrapper{
        width: 100%;
    }

    .stat-box {
        min-width: 140px;
    }

    .stat-box:first-child {
        margin-right: 20px;
        padding-right: 20px;
    }

    .section-label {
        font-size: 14px;
    }

    .hero-section {
        height: 40vh;
        padding: 40px 16px;
    }

    .hero-content {
        bottom: 16%;
        left: 16px;
        top: unset;
        width: calc(100% - 32px);
    }

    .procurement-section {
        flex-direction: column;
    }

    .procurement-content {
        flex-direction: column;
        gap: 20px;
    }

    .procurement-text {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-title {
        font-size: 30px; //--17px
    }

    .hero-description {
        font-size: 18px; //--14px
    }

    .performance-title {
        margin-bottom: 125px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 14px;
    }

    .performance-stats {
        justify-content: center;
    }

    .features-large-text {
        display: none;
    }

    .notice-content {
        flex-direction: column;
    }

    .notice-header {
        align-items: flex-end;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 40px;
    }

    .contact-section {
        padding-top: 20px;
    }

    .notice-cards {
        width: 100%;
    }

    .notice-card {
        gap: 30px;
        padding: 20px;
    }

    .notice-title {
        margin-bottom: 0;
    }

    .notice-button {
        height: fit-content;
    }

    /* 모바일 네비게이션 버튼 */
    .feature-nav-btn {
        height: 40px;
        width: 40px;
    }

    .feature-nav-prev {
        left: 4px;
    }

    .feature-nav-next {
        right: 4px;
    }
}