/* 기본 설정 */
:root {
    --primary-color: #8B6F47;
    --secondary-color: #D4A574;
    --accent-color: #F5E6D3;
    --dark-color: #2C2416;
    --light-color: #FFF8F0;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow-color: rgba(139, 111, 71, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --long-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 로더 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.2rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: loadingBar 1.5s infinite;
}

@keyframes loadingBar {
    to {
        left: 100%;
    }
}

/* 음악 플레이어 버튼 */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.music-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.music-icon.pause {
    display: none;
}

.music-toggle.playing .music-icon.play {
    display: none;
}

.music-toggle.playing .music-icon.pause {
    display: block;
}

/* 헤더 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.download-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* 히어로 섹션 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-color) 100%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    word-break: keep-all;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-image {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease-out 0.4s forwards;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    margin: 10px auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 섹션 기본 스타일 */
.section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 3rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* 소개 섹션 */
.intro {
    background: white;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-quote {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.intro-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.intro-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.intro-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.intro-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 프로필 섹션 */
.profile {
    background: var(--light-color);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.profile-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.profile-list {
    list-style: none;
}

.profile-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

.profile-image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.profile-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 성격 섹션 */
.personality {
    background: white;
}

.personality-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    position: relative;
    min-height: 500px;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.content-with-image {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.text-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.quote-list blockquote {
    background: var(--accent-color);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.quote-list blockquote.jealousy {
    border-left-color: var(--secondary-color);
}

.habit-list, .psychology-list {
    list-style: none;
    margin-bottom: 2rem;
}

.habit-list li, .psychology-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.habit-list li::before {
    content: '♥';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.psychology-list li strong {
    color: var(--primary-color);
}

.secret-quote {
    background: linear-gradient(135deg, var(--accent-color), var(--light-color));
    padding: 2rem;
    border-radius: 15px;
    font-family: 'Noto Serif KR', serif;
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
    color: var(--dark-color);
}

.intimate-content {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.tab-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tab-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 첫 장면 섹션 */
.scene {
    background: var(--light-color);
}

.scene-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.scene-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.scene-action {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 2rem 0;
}

.scene-thought {
    font-style: italic;
    color: var(--text-light);
    margin: 1.5rem 0;
    text-align: center;
}

.scene-dialogue {
    margin-top: 2rem;
}

.dialogue {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.8;
}

.scene-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scene-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 갤러리 섹션 */
.gallery {
    background: white;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

/* 라이트박스 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

/* 푸터 */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* 애니메이션 클래스 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--long-transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
        white-space: normal;
        word-break: keep-all;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .content-with-image {
        grid-template-columns: 1fr;
    }
    
    .scene-content {
        grid-template-columns: 1fr;
    }
    
    .tab-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* 네비게이션 반응형 */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* 음악 버튼 모바일 위치 */
    .music-toggle {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* 타이틀 크기 조정 */
    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
        word-break: keep-all;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 그리드 조정 */
    .intro-images {
        grid-template-columns: 1fr;
    }
    
    .profile-image-section {
        grid-template-columns: 1fr;
    }
    
    .tab-images {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    /* 패딩 조정 */
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* 탭 버튼 크기 조정 */
    .tab-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        white-space: normal;
        word-break: keep-all;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-quote {
        font-size: 1.4rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* 프린트 스타일 */
@media print {
    .music-toggle,
    .nav-toggle,
    .download-btn,
    .gallery-filters,
    .personality-tabs {
        display: none;
    }
} 