@charset "UTF-8";

/* 전체 인트로 화면 레이아웃 */
.intro-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 상단 배경 영역 (#404333) */
.bg-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #404333;
    z-index: 1;
}

/* 하단 배경 영역 (#e5dfd0) */
.bg-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #e5dfd0;
    z-index: 1;
}

/* PNG 패턴 레이어 (배경과 콘텐츠 사이) */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/deco/banner-bg.png');
    background-repeat: repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0.06;
    z-index: 2;
}

/* 콘텐츠 레이어 (가장 위) */
.intro-content {
    position: relative;
    width: 100%;
    max-width: 1800px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    padding: 0 10%;
}

/* 중앙 로고 박스 */
.intro-logo-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.intro-logo {
    width: 120px;
    height: auto;
}

/* 양쪽 링크 버튼 스타일 (유동형 크기 및 오버플로우 방지) */
.intro-link-box {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
	min-width: 420px;
    padding: 85px 100px;
    background-color: #b26445;
    border-color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 텍스트 스타일 */
.intro-link-box .link-text {
    letter-spacing: 0;
    font-size: 40px;
    font-weight: 900;
    color: #e5dfd0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 원본 디자인을 활용한 모서리 점 및 이중 테두리 박스 */
.intro-link-box .decoBorder {
    position: absolute;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* 네 모서리 점(동그라미) 설정 */
.intro-link-box .decoBorder .dotBox {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.intro-link-box .decoBorder .dotBox .dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: #404333;
    border-radius: 50%;
    border: 2px solid #fff; /* 흰색 테두리 효과 */
    z-index: 1;
    transition: all 0.3s ease;
}

.intro-link-box .decoBorder .dotBox .dot:nth-child(1) { top: 0; left: 0; }
.intro-link-box .decoBorder .dotBox .dot:nth-child(2) { top: 0; right: 0; }
.intro-link-box .decoBorder .dotBox .dot:nth-child(3) { bottom: 0; left: 0; }
.intro-link-box .decoBorder .dotBox .dot:nth-child(4) { bottom: 0; right: 0; }

/* 안쪽 라인 박스 */
.intro-link-box .decoBorder .borderBox {
    position: absolute;
    width: calc(100% - 7px);
    height: calc(100% - 7px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.intro-link-box .decoBorder .borderBox .border {
    position: absolute;
    width: 100%;
    height: 100%;
}

.intro-link-box .decoBorder .borderBox .border::before {
    display: block;
    content: "";
    width: 100%;
    height: 1px;
    background-color: #FFF;
    transition: all 0.8s ease-in-out;
}

.intro-link-box .decoBorder .borderBox .border::after {
    display: block;
    content: "";
    width: 1px;
    height: 100%;
    background-color: #FFF;
    transition: all 0.8s ease-in-out 0.2s;
}

.intro-link-box .decoBorder .borderBox .border.top::before { position: absolute; top: 0; left: 0; bottom: auto; right: auto; }
.intro-link-box .decoBorder .borderBox .border.top::after { position: absolute; top: auto; left: auto; bottom: 0; right: 0; }
.intro-link-box .decoBorder .borderBox .border.bottom::before { position: absolute; top: auto; left: 0; bottom: 0; right: auto; }
.intro-link-box .decoBorder .borderBox .border.bottom::after { position: absolute; top: 0; left: 0; bottom: auto; right: auto; }

/* 마우스 호버(Hover) 시 색상 반전 효과 */
.intro-link-box:hover {
    background-color: #aa5634;
    border-color: #ffffff;
    transform: translateY(-5px);
}

.intro-link-box:hover .link-text {
    color: #e5dfd0;
}

.intro-link-box:hover .decoBorder .dotBox .dot {
    background-color: #e5dfd0;
    border-color: #404333;
}

.intro-link-box:hover .decoBorder .borderBox .border::before,
.intro-link-box:hover .decoBorder .borderBox .border::after {
    background-color: #e5dfd0;
}

/* 모바일 화면 대응 (너비 1300px 이하) */
@media (max-width: 1300px) {
    .intro-content {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }
    
    .intro-link-box {
        width: 80%;
        min-width: auto;
        min-height: 50px;
        padding: 40px 20px;
        margin: 10px 0;
    }

    .intro-link-box .link-text {
        writing-mode: horizontal-tb;
        letter-spacing: 1px;
        font-size: 20px;
    }
    
    .intro-logo-box {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px 0;
    }
}