/* Google Fonts - 나눔명조(Nanum Myeongjo)와 나눔고딕(Nanum Gothic) */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&family=Nanum+Myeongjo:wght@400;700;800&display=swap');

/* 기본 변수 설정 */
:root {
    --primary-color: #784212;
    --secondary-color: #a86832;
    --accent-color: #d7a86e;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f9f5f0;
    --bg-cream: #f3e9d2;
    --bg-beige: #e6d7b8;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nanum Gothic', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section {
    padding: 5rem 0;
}

/* 섹션 애니메이션 */
.section-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 갤러리 아이템 애니메이션 */
.gallery-item-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 질문-답변 아이템 애니메이션 */
.qa-ready {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.qa-animate {
    opacity: 1;
    transform: translateX(0);
}

/* 히어로 텍스트 애니메이션 */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-content h2 {
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-content p {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: fadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

/* 섹션 내부 요소 애니메이션 */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-element.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* 네비게이션바 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1rem 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar .logo {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

/* 스크롤 시 네비게이션바 변화 */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
}

#navbar.scrolled .logo {
    color: var(--primary-color);
}

#navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

#navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

#navbar.scrolled .hamburger {
    color: var(--primary-color);
}

/* 히어로 섹션 */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/wood-texture.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 서각이란? 섹션 */
#about {
    background-color: var(--bg-cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-tools {
    background-color: var(--bg-beige);
    padding: 2rem;
    border-radius: 10px;
}

.about-tools h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.tools-gallery {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.tools-gallery img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* 작가소개 섹션 */
.artist-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.artist-image {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 300px;
    margin: 0 auto;
}

.artist-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.en-name {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.birth {
    margin-bottom: 1.5rem;
    color: #666;
}

.artist-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.artist-specialty {
    background-color: var(--bg-beige);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.artist-specialty h4 {
    margin-bottom: 1rem;
}

.artist-specialty ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.artist-specialty li {
    position: relative;
    padding-left: 1.5rem;
}

.artist-specialty li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 작가인터뷰 섹션 */
#interview {
    background-color: var(--bg-cream);
}

.interview-header h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-style: italic;
}

.interview-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-answer {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.question-answer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.question h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.answer p {
    line-height: 1.8;
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: underline;
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow);
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #888;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

.modal-body {
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* 작품소개 섹션 */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.gallery-grid.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.gallery-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    aspect-ratio: 1/1;
    height: auto;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f8f8f8;
    transition: var(--transition);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

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

.item-overlay h3 {
    margin-bottom: 0.5rem;
}

.item-description {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* 주문제작 문의 섹션 */
#contact {
    background-color: var(--bg-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info ul {
    margin-bottom: 2rem;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.opening-hours {
    background-color: var(--bg-beige);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.opening-hours h4 {
    margin-bottom: 1rem;
}

.opening-hours p {
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Nanum Gothic', sans-serif;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 플로팅 버튼 */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    animation: floating 3s ease-in-out infinite;
}

.floating-btn a {
    display: block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    transition: var(--transition);
    width: 240px;
    text-align: center;
}

.floating-btn a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 푸터 */
footer {
    background-color: #222;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-social a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .about-content,
    .tools-gallery,
    .artist-profile,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .artist-image {
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .floating-btn a {
        width: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-links.show {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        margin: 30px auto;
        max-height: 80vh;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .artist-specialty ul {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1rem;
    }
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.2rem;
}

/* 로딩 스피너 스타일 */
.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.form-status.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.form-status.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.form-status.loading {
    background-color: rgba(120, 66, 18, 0.05);
    padding: 20px;
} 