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

:root {
    --primary-pink: #FFB6C1;
    --primary-purple: #DDA0DD;
    --primary-blue: #87CEEB;
    --primary-mint: #98D8C8;
    --primary-yellow: #F7DC6F;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Nanum Pen Script', 'Jua', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 1.8rem;
}

/* 네비게이션 - 수정된 부분 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6b4423;
    text-decoration: none;
    white-space: nowrap; /* 로고가 줄바꿈되지 않도록 */
}

/* 네비게이션 메뉴 - 핵심 수정 */
.nav-menu {
    display: flex; /* flex 명시 */
    flex-direction: row; /* 가로 정렬 명시 */
    list-style: none;
    gap: 2rem; /* 메뉴 간격 */
    align-items: center; /* 세로 중앙 정렬 */
}

.nav-menu li {
    display: inline-block; /* inline-block으로 가로 정렬 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0; /* 상하 여백만 */
    display: inline-block; /* 클릭 영역 확보 */
    white-space: nowrap; /* 링크 텍스트 줄바꿈 방지 */
    font-size: 1.6rem;
}

.nav-menu a:hover {
    color: var(--primary-purple);
}

/* 햄버거 메뉴 버튼 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 섹션 공통 스타일 */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 히어로 섹션 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://www.genspark.ai/api/files/s/sfFV6MPw') center/cover no-repeat;
    background-color: #f5f5f5;
    color: var(--text-dark);
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-cross {
    position: absolute;
    font-size: 15rem;
    opacity: 0.03;
    color: #CD5C5C;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(205, 92, 92, 0.2);
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.05; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 
        2px 2px 4px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    letter-spacing: 2px;
    color: #8B4513;
    font-family: 'Jua', 'Noto Sans KR', sans-serif;
}

.hero h1 span {
    display: inline-block;
    opacity: 0;
    animation: fadeInChar 0.5s ease-in-out forwards;
}

@keyframes fadeInChar {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.8);
    color: #6B4423;
    font-weight: 600;
    opacity: 0;
    animation: fadeInDelayed 1s ease-in-out 3.5s forwards;
}

@keyframes fadeInDelayed {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 1.2rem 2rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    border: 2px solid rgba(205, 92, 92, 0.3);
    font-size: 1.8rem;
    opacity: 0;
    animation: fadeInDelayed 1s ease-in-out 3.5s forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: fadeInDelayed 1s ease-in-out 3.5s forwards;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
}

.btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: 'Jua', 'Noto Sans KR', sans-serif;
    font-size: 2rem;
}

.btn-primary {
    background: var(--white);
    color: #DC143C;
    border: 3px solid #DC143C;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    font-weight: 700;
    font-size: 2rem;
}

.btn-primary:hover {
    background: #DC143C;
    color: var(--white);
    border: 3px solid #DC143C;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: #228B22;
    border: 3px solid #228B22;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
    font-weight: 700;
    font-size: 2rem;
}

.btn-secondary:hover {
    background: #228B22;
    color: var(--white);
    border: 3px solid #228B22;
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.5);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 섹션 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 카드 그리드 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.8rem;
}

/* 타임라인 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.8rem;
}

.timeline-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-weight: bold;
}

/* 갤러리 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-placeholder {
    color: var(--white);
    font-size: 3rem;
}

/* 리스트 스타일 */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding-left: 3rem;
    position: relative;
    font-size: 1.8rem;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 신청 단계 */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.footer-info p {
    margin: 0.5rem 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Back to Top 버튼 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

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

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

/* 반응형 디자인 - 모바일 */
@media (max-width: 768px) {
    /* 모바일에서 햄버거 메뉴 표시 */
    .hamburger {
        display: flex;
    }

    /* 모바일 메뉴 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    /* 히어로 섹션 모바일 */
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero-cross {
        font-size: 10rem;
        opacity: 0.02;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
    }

    /* 섹션 */
    section {
        padding: 3rem 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* 카드 그리드 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 타임라인 모바일 */
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    /* 갤러리 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    /* 신청 단계 */
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 태블릿 */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 접근성 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 프린트 스타일 */
@media print {
    nav,
    .back-to-top,
    .cta-buttons {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
