* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.section {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.left-section {
    background: linear-gradient(135deg, #865e55 0%, #A6756A 100%);
}

.right-section {
    background: linear-gradient(135deg, #865e55 0%, #A6756A 100%);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.left-section .background-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)),
        url('/gnuboard5/img/main-img01.png');
}

.right-section .background-image {
    background-image:
        linear-gradient(rgba(90, 138, 92, 0), rgba(0, 0, 0, 0.157)),
        url('/gnuboard5/img/main-img02.png');
}

.section {
    display: block;
    text-decoration: none;
    color: inherit;
}

.section:hover {
    cursor: pointer;
}

/* 호버 효과 */
.container:hover .section:not(:hover) {
    flex: 0.8;
}

.container:hover .section:not(:hover) .background-image {
    filter: brightness(0.6);
}

.container:hover .section:hover {
    flex: 1.3;
}

.container:hover .section:hover .background-image {
    filter: brightness(1.1);
}

.content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: white;
    transition: all 0.5s ease;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.logo {
    width: 350px;
    position: absolute;
    z-index: 3;
}

.logo-top {
    bottom: 0px;
    left: 0px;
}

.logo-bottom {
    top: 0px;
    right: 0px;
}

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

.logo-j {
    position: relative;
    display: inline-block;
}

.logo-n {
    position: relative;
    display: inline-block;
    margin-left: -10px;
}

.category {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.9;
    letter-spacing: 0.4em;
    color: #ffffff8d;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.model {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    opacity: 0.9;
}

.left-section .model {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><rect fill="%23ffffff" opacity="0.1" width="400" height="600"/></svg>');
}

.right-section .model {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><rect fill="%23ffffff" opacity="0.1" width="400" height="600"/></svg>');
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .section {
        height: 50vh;
    }
    
    /* 모바일에서는 호버 효과 제거 */
    .container:hover .section:not(:hover) {
        flex: 1;
        filter: none;
    }

    .container:hover .section:hover {
        flex: 1;
    }

    .container:hover .section:not(:hover) .background-image {
        filter: none;
    }

    .container:hover .section:hover .background-image {
        transform: none;
        filter: none;
    }
    
    .logo {
        width: 150px;
        height: auto;
    }

    .logo-top {
        bottom: 0px;
        left: 0px;
    }

    .logo-bottom {
        top: 0px;
        right: 0px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .category {
        font-size: 1rem;
    }
}

/* JN 로고 스타일링 */
.logo-styling {
    background: linear-gradient(45deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* 텍스트 호버시 확대 효과 */
.container:hover .section:hover .text-content {
    transform: scale(1.05);
}

.container:hover .section:not(:hover) .text-content {
    transform: scale(0.95);
    opacity: 0.8;
}

/* 텍스트 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.category {
    animation-delay: 0.2s;
}

.title {
    animation-delay: 0.4s;
}

.logo {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* 링크 기본 스타일 초기화 */
.title a {
    color: #fff;             /* 흰색 텍스트 */
    text-decoration: none;   /* 밑줄 제거 */
}

.title a:visited {
    color: #fff;             /* 방문 후에도 흰색 유지 */
}

.title a:hover {
    color: #f0f0f0;          /* 마우스 올리면 살짝 밝게 */
}
