:root {
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --primary: #007AFF;
}

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

body {
    background: #000;
    color: #fff;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== 뷰 공통 스타일 ===== */
.view {
    display: none;
    height: 100vh;
    overflow-y: auto;
}

.view.active {
    display: block;
}

/* ===== 상단 네비게이션 버튼 ===== */
.view-controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 8px;
}

button {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

button:hover {
    border-color: var(--primary);
}

button.btn-active {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: bold;
}

/* ===== 개인정보 박스 ===== */
.info-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.75rem;
    line-height: 1.6;
    backdrop-filter: blur(10px);
    color: #ccc;
    max-width: 300px;
}

.info-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
}

.info-contact,
.info-email {
    margin-bottom: 3px;
}

.info-note {
    color: #999;
    font-size: 0.7rem;
    margin-top: 6px;
}

/* ===== 이미지 미리보기 박스 ===== */
.list-preview {
    position: fixed;
    z-index: 999;
    display: none;
    gap: 10px;
    pointer-events: none;
    transition: opacity 0.2s ease, top 0.05s ease, left 0.05s ease;
    will-change: transform;
}

.list-preview img {
    width: 267px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ===== 리스트 뷰 ===== */
#list-view {
    padding: 80px 10%;
}

/* 모바일에서 정보 박스 숨김 */
@media (max-width: 767px) {
    .info-box {
        display: none;
    }
}

.year-divider {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.15;
    margin: 40px 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.project-row {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: all 0.2s;
}

.project-row .date {
    opacity: 0.5;
    font-size: 0.85rem;
}

.project-row .title {
    font-size: 1.1rem;
    margin-top: 5px;
    transition: color 0.2s;
}

.project-row:hover .title {
    color: var(--primary);
}

/* ===== 슬라이드 뷰 ===== */
#slide-view {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slide-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s var(--ease-out);
    will-change: transform;
}

.slide-item {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    opacity: 0.1;
    transform: scale(0.8);
    transition: all 0.5s;
}

.slide-item.active {
    opacity: 1;
    transform: scale(1);
}

.slide-img-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    max-width: 600px;
    margin-bottom: 20px;
}

.slide-img-box img {
    width: auto;
    max-height: 20vh;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
}

.dot {
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    margin: 15px auto;
    transition: all 0.3s;
}

.slide-item.active .dot {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.info h3 {
    font-size: 1.4rem;
    margin: 10px 0;
    text-align: center;
}

.info p {
    opacity: 0.5;
    font-size: 0.9rem;
    text-align: center;
}

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

/* 태블릿 이상 */
@media (min-width: 768px) {
    .year-divider {
        font-size: 5rem;
    }

    .project-row {
        flex-direction: row;
        align-items: center;
    }

    .project-row .date {
        width: 140px;
    }
}

/* PC 화면 */
@media (min-width: 480px) {
    .slide-img-box {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .slide-img-box img {
        max-height: 40vh;
    }
}
