/* ===== 기본 스타일 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 전체 페이지 스타일 ===== */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #121212;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 메인 컨테이너 레이아웃 ===== */
.container {
    display: flex;
    height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

/* ===== 좌측 섹션 - 제품 특징 ===== */
.left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.features-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 400px;
    width: 100%;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(-30px);
}

/* 좌측 메뉴 아이템 애니메이션 */
.feature-item:nth-child(1) {
    animation: leftMenuSlideIn 0.8s ease-out 1.7s forwards;
}

.feature-item:nth-child(2) {
    animation: leftMenuSlideIn 0.8s ease-out 2.0s forwards;
}

.feature-item:nth-child(3) {
    animation: leftMenuSlideIn 0.8s ease-out 2.3s forwards;
}

.feature-item:nth-child(4) {
    animation: leftMenuSlideIn 0.8s ease-out 2.6s forwards;
}

@keyframes leftMenuSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin: 0;
}

/* ===== 중앙 섹션 - 텍스트 블록들 ===== */
.center-section {
    flex: 0.8;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    z-index: 10;
    position: relative;
    text-align: center;
}

/* 중앙 경계선 */
.container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 60%;
    background: #ffffff;
    opacity: 0;
    z-index: 1;
    animation: boundaryLineAppear 1.5s ease-out forwards;
}

/* 경계선 애니메이션 */
@keyframes boundaryLineAppear {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scaleX(0.1);
    }
    100% {
        opacity: 1.0;
        transform: translate(-50%, -50%) scaleX(1);
    }
}

/* 텍스트 블록 기본 스타일 */
.text-block {
    text-align: center;
    max-width: 500px;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 좌측 텍스트 블록 간격 */
.left-block {
    padding: 0 2rem 0 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 우측 텍스트 블록 간격 */
.right-block {
    padding: 0 0 0 5rem;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: -2rem;
}

/* ===== 우측 섹션 - 인증서 ===== */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.certifications-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 400px;
    width: 100%;
}

.cert-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(30px);
}

/* 우측 메뉴 아이템 애니메이션 */
.cert-item:nth-child(1) {
    animation: rightMenuSlideIn 0.8s ease-out 1.8s forwards;
}

.cert-item:nth-child(2) {
    animation: rightMenuSlideIn 0.8s ease-out 2.1s forwards;
}

.cert-item:nth-child(3) {
    animation: rightMenuSlideIn 0.8s ease-out 2.4s forwards;
}

.cert-item:nth-child(4) {
    animation: rightMenuSlideIn 0.8s ease-out 2.7s forwards;
}

@keyframes rightMenuSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 이미지 Scale Up 애니메이션 */
@keyframes imageScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 버튼 페이드인 애니메이션 */
@keyframes buttonFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cert-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.cert-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cert-item p {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin: 0;
}

/* 섹션 제목 스타일 */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    opacity: 0;
    animation: titleFadeIn 0.8s ease-out 4.2s forwards;
}

/* 제목 페이드인 애니메이션 */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 제품 이미지 스타일 */
.product-img {
    width: 300px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
    animation: imageScaleUp 1s ease-out 3.5s forwards;
}

.product-img:hover {
    transform: scale(1.05);
}

/* 로고 이미지 스타일 */
.logo-img {
    width: 300px;
    height: auto;
    max-width: 100%;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
    animation: imageScaleUp 1s ease-out 3.5s forwards;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* 웹사이트 링크 스타일 */
.website-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 400;
    transition: color 0.3s ease;
}

.website-link:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* More Discover 버튼 스타일 */
.more-discover-btn {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: buttonFadeIn 0.5s ease-out 4.5s forwards;
}

/* 버튼 호버 효과 - 빛나는 애니메이션 */
.more-discover-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.more-discover-btn:hover::before {
    left: 100%;
}

/* 버튼 호버 상태 */
.more-discover-btn:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* 화살표 아이콘 스타일 */
.more-discover-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* 좌측 버튼 호버 시 왼쪽 화살표 애니메이션 */
.shopping-mall-container .more-discover-btn:hover i {
    transform: translateX(-3px);
}

/* 우측 버튼 호버 시 오른쪽 화살표 애니메이션 */
.workshop-container .more-discover-btn:hover i {
    transform: translateX(3px);
}


/* ===== 화면 전환 애니메이션 ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.transition-content {
    text-align: center;
    color: #ffffff;
}

.transition-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: scale(0.5);
    animation: logoAppear 1s ease-out 0.5s forwards;
}

.transition-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: textSlideUp 0.8s ease-out 1s forwards;
}

.transition-subtext {
    font-size: 1rem;
    color: #bdc3c7;
    opacity: 0;
    transform: translateY(30px);
    animation: textSlideUp 0.8s ease-out 1.2s forwards;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    margin: 2rem auto 0;
    animation: spin 1s linear infinite;
    opacity: 0;
    animation: spin 1s linear infinite, fadeIn 0.5s ease-out 1.5s forwards;
}

@keyframes logoAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ===== 반응형 디자인 ===== */

/* 태블릿 크기 (1200px 이하) */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-section,
    .right-section {
        flex: none;
        height: 40vh;
    }
    
    .center-section {
        flex: none;
        height: 20vh;
        gap: 2rem;
        padding: 1rem;
        flex-direction: row;
    }
    
    .center-section::before {
        height: 60%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* 모바일 크기 (768px 이하) */
@media (max-width: 768px) {
    .center-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .center-section::before {
        display: none;
    }
    
    .left-block,
    .right-block {
        padding: 0 1rem;
    }
    
    .features-showcase,
    .certifications-showcase {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .more-discover-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    
    .feature-item,
    .cert-item {
        padding: 1rem;
    }
    
    .feature-icon,
    .cert-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i,
    .cert-icon i {
        font-size: 1.2rem;
    }
    
    .product-img {
        width: 220px;
    }
    
    .logo-img {
        width: 220px;
    }
}

/* 소형 모바일 크기 (480px 이하) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.2rem;
    }
    
    .center-section {
        gap: 1.5rem;
    }
    
    
    .feature-item,
    .cert-item {
        padding: 0.8rem;
    }
    
    .feature-icon,
    .cert-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i,
    .cert-icon i {
        font-size: 1rem;
    }
    
    .feature-item h3,
    .cert-item h3 {
        font-size: 0.9rem;
    }
    
    .feature-item p,
    .cert-item p {
        font-size: 0.7rem;
    }
    
    .product-img {
        width: 180px;
    }
    
    .logo-img {
        width: 180px;
    }
}
