/* --- 화이트 테마 & 새 폰트 적용 --- */

/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #fff; 
    color: #222; 
}

a {
    color: #222;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}


/* 헤더 (로고, 메뉴) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo a {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
    font-size: 18px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

nav ul li a:hover {
    color: #ff4d4d;
}


/* 첫 화면 (히어로 섹션) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #f0f0f0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-text {
    position: relative;
    z-index: 5;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
}

.arrow {
    width: 20px;
    height: 20px;
    border: 2px solid #222;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-15px) rotate(45deg);
    }
    60% {
        transform: translateY(-10px) rotate(45deg);
    }
}


/* 작품 갤러리 섹션 */
.gallery {
    padding: 100px 50px;
    text-align: center;
}

.gallery h2 {
    font-size: 3rem;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    user-select: none;
    -webkit-user-drag: none; 
}

.gallery-item .overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 50px;
    font-weight: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before,
.gallery-item:hover .overlay-icon {
    opacity: 1;
}

/* 푸터 */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee; 
}

/* --- Pages Common Styles --- */
.page-title {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
}

.page-title h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.2rem;
    color: #777;
}

/* --- Artists Page Styles --- */
.artist-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 25px;
    padding: 0 50px 100px 50px;
}

.artist-card {
    background-color: #fff;
    color: #222;
    border: 1px solid #eee;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.artist-card h3 {
    font-size: 1.4rem;
    text-align: center;
    padding: 0 10px;
    font-weight: 700;
}

.artist-card:hover {
    transform: translateY(-10px);
}

.artist-card.linked {
    border-color: #222;
}

.artist-list > *:nth-child(1):hover { background-color: #A8E6CF; color: #333; border-color: #A8E6CF; }
.artist-list > *:nth-child(2):hover { background-color: #DCEDC1; color: #333; border-color: #DCEDC1; }
.artist-list > *:nth-child(3):hover { background-color: #FFD3B6; color: #333; border-color: #FFD3B6; }
.artist-list > *:nth-child(4):hover { background-color: #FFAAA5; color: #333; border-color: #FFAAA5; }
.artist-list > *:nth-child(5):hover { background-color: #FF8B94; color: #fff; border-color: #FF8B94; }
.artist-list > *:nth-child(6):hover { background-color: #B2B2B2; color: #fff; border-color: #B2B2B2; }
.artist-list > *:nth-child(7):hover { background-color: #E6E6FA; color: #333; border-color: #E6E6FA; }
.artist-list > *:nth-child(8):hover { background-color: #D3D3D3; color: #333; border-color: #D3D3D3; }
.artist-list > *:nth-child(9):hover { background-color: #F5DEB3; color: #333; border-color: #F5DEB3; }
.artist-list > *:nth-child(10):hover { background-color: #F0E68C; color: #333; border-color: #F0E68C; }
.artist-list > *:nth-child(11):hover { background-color: #ADD8E6; color: #333; border-color: #ADD8E6; }
.artist-list > *:nth-child(12):hover { background-color: #B0C4DE; color: #333; border-color: #B0C4DE; }
.artist-list > *:nth-child(13):hover { background-color: #98FB98; color: #333; border-color: #98FB98; }
.artist-list > *:nth-child(14):hover { background-color: #F08080; color: #fff; border-color: #F08080; }
.artist-list > *:nth-child(15):hover { background-color: #DDA0DD; color: #333; border-color: #DDA0DD; }
.artist-list > *:nth-child(16):hover { background-color: #87CEEB; color: #333; border-color: #87CEEB; }
.artist-list > *:nth-child(17):hover { background-color: #3CB371; color: #fff; border-color: #3CB371; }
.artist-list > *:nth-child(18):hover { background-color: #6A5ACD; color: #fff; border-color: #6A5ACD; }
.artist-list > *:nth-child(19):hover { background-color: #BA55D3; color: #fff; border-color: #BA55D3; }


/* --- About Page Styles --- */
.about-page-body {
    padding-top: 0; 
}
.about-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 150px 50px 50px 50px; 
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.about-hero-reimagined h1 {
    font-size: 2.4rem;
    line-height: 1.4;
    font-weight: 800;
    text-align: left;
    position: sticky;
    top: 120px; 
}
.about-description-reimagined h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #222;
}
.about-description-reimagined p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}
.about-details {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    border-top: 1px solid #eee;
}
.detail-item h4 {
    font-size: 1rem;
    color: #999;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail-item p, .detail-item li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}
.detail-item ul {
    list-style: none;
    padding-left: 0;
}
.detail-item li {
    margin-bottom: 10px;
}
.join-contact {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}
.join-contact a {
    color: #222;
    font-weight: bold;
    text-decoration: underline;
}

/* --- Contact Page Styles --- */
.contact-info {
    text-align: center;
    padding-bottom: 200px;
}
.contact-info p {
    color: #777;
}
.contact-info .email-link {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
    transition: color 0.3s ease;
}
.contact-info .email-link:hover {
    color: #ff4d4d;
}
.contact-image-container {
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}
.contact-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 4;
    object-fit: cover;
}

/* --- Artist Detail Page Styles --- */
.artist-work-gallery {
    max-width: 1200px; 
    margin: 0 auto 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.artist-work-gallery img {
    width: 100%;
    height: auto;
    display: block;
}
.artist-bio {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}
.artist-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}
.artist-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.artist-links a {
    display: inline-block;
    margin-right: 25px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.artist-links a:hover {
    color: #ff4d4d;
}


/*
==============================================
✨✨✨ 모바일 최적화 최종 완성 코드 ✨✨✨
==============================================
*/

@media (max-width: 768px) {
    /* --- 전체 --- */
    body {
        -webkit-text-size-adjust: 100%; /* 아이폰 가로모드 글자확대 방지 */
    }
    header {
        padding: 15px 20px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        position: fixed;
    }
    main {
        padding-top: 70px; /* 고정된 헤더 높이만큼 콘텐츠 시작점을 내림 */
    }
    .logo a, nav ul li a {
        font-size: 16px;
    }
    nav ul li {
        margin-left: 15px;
    }

    /* --- 홈 페이지 --- */
    .hero {
        height: auto; /* 화면 전체 높이를 차지하지 않도록 변경 */
        background-color: #fff;
    }
    .hero-image {
        position: relative; /* absolute에서 변경하여 흐름에 맞게 배치 */
        width: 100%;
        padding: 20px;
        aspect-ratio: 1 / 1; /* 1:1 비율 강제 */
    }
    .hero-image img {
        object-fit: contain; /* 이미지가 잘리지 않게 1:1 공간 안에 맞춤 */
    }
    .gallery {
        padding: 60px 20px;
    }
    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* --- About 페이지 --- */
    .about-grid-container {
        grid-template-columns: 1fr; /* 1열로 변경 */
        gap: 20px;
        padding: 40px 20px;
    }
    .about-hero-reimagined h1 {
        position: static; /* sticky 효과 제거 */
        font-size: 1.4rem;
        text-align: left;
        line-height: 1.3;
    }
    .about-description-reimagined h2 {
        font-size: 1.5rem;
    }
    .about-details {
        padding: 40px 20px;
    }

    /* --- Artists 페이지 --- */
    .page-title {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    .page-title h2 {
        font-size: 2.5rem;
    }
    .artist-list {
        grid-template-columns: repeat(2, 1fr); /* 2열로 고정 */
        gap: 15px;
        padding: 0 20px 80px 20px;
    }
    .artist-card {
        height: 100px; /* 모든 카드 높이 통일 */
    }
    .artist-card h3 {
        font-size: 1rem;
    }
    
    /* --- Contact 페이지 --- */
    .contact-info .email-link {
        font-size: 1.2rem;
        word-break: break-all;
    }
}