/* 전체 리셋 및 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Gowun Batang', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 접근성 - 스크린 리더 전용 텍스트 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 헤더 스타일 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    text-align: center;
}

.footer-links {
    color: #6B46C1;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.footer-links:hover {
    color: #EC4899;
}

/* 섹션 공통 스타일 */
section {
    background: white;
    margin: 30px auto;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 1000px;
    position: relative;
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
}

section h2 {
    font-family: 'Gowun Batang', serif;
    color: #6B46C1;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* 히어로 섹션 */
#hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: twinkle 20s linear infinite;
}

@keyframes twinkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#hero h1 {
    font-family: 'Gowun Batang', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* 버튼 스타일 */
.button {
    display: inline-block;
    padding: 18px 35px;
    margin: 10px;
    background: linear-gradient(45deg, #EC4899, #F97316);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
    position: relative;
    z-index: 2;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

.button.center {
    display: block;
    margin: 15px auto;
    text-align: center;
    max-width: 280px;
}

/* 문제 섹션 */
#problem {
    background: linear-gradient(135deg, #FEF7FF, #F3E8FF);
}

#problem ul {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

#problem li {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #EC4899;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    position: relative;
    transition: transform 0.3s ease;
}

#problem li:hover {
    transform: translateY(-3px);
}

#problem li::before {
    content: "💭";
    position: absolute;
    left: -15px;
    top: 15px;
    background: white;
    padding: 5px;
    border-radius: 50%;
}

/* 솔루션 섹션 */
#solution ul {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    counter-reset: step-counter;
}

#solution li {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    padding: 25px;
    margin: 20px 0;
    border-radius: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 60px;
    transition: transform 0.3s ease;
}

#solution li:hover {
    transform: translateX(10px);
}

#solution li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #6B46C1;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 상담사 카드 섹션 */
#counselor-cards {
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    overflow: hidden;
}

/* Swiper 컨테이너 스타일 */
.swiper-container {
    width: 100%;
    padding-bottom: 50px;
    overflow: visible;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* 슬라이더용 카드 스타일 - 1명씩 보이는 상담사 카드 최적화 */
.swiper-slide .tarot-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.swiper-slide .tarot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #EC4899;
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.3);
    margin-bottom: 20px;
}

.card-info {
    width: 100%;
}

.card-info .name {
    font-family: 'Gowun Batang', serif;
    font-size: 1.8rem;
    color: #6B46C1;
    font-weight: 700;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #EC4899;
    margin-bottom: 10px;
    font-weight: 500;
}

.style {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    list-style: none;
    justify-content: center;
}

.badges li {
    background: linear-gradient(45deg, #EC4899, #F97316);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Swiper 페이지네이션 - 강조된 스타일 */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background: #6B46C1;
    opacity: 0.3;
    width: 14px;
    height: 14px;
    margin: 0 8px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #EC4899;
    transform: scale(1.2);
}

/* 후기 섹션 */
#testimonials {
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
    font-style: italic;
}

.reviewer {
    font-size: 0.9rem;
    color: #6B46C1;
    font-weight: 600;
}

/* FAQ 섹션 */
#faq {
    background: linear-gradient(135deg, #FDF2F8, #FCE7F3);
}

.faq h3 {
    color: #6B46C1;
    font-size: 1.3rem;
    margin-bottom: 10px;
    margin-top: 25px;
    font-weight: 600;
}

.faq h3:first-child {
    margin-top: 0;
}

.faq p {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    line-height: 1.7;
    border-left: 4px solid #EC4899;
}

.faq-cta {
    font-size: 1.3rem;
    color: #6B46C1;
    text-align: center;
    margin: 30px auto 20px;
    font-weight: 500;
    max-width: 800px;
    line-height: 1.7;
}

/* CTA 섹션 */
#cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 30px;
}

#cta:hover {
    transform: none;
}

#cta h2 {
    color: white;
    margin-bottom: 15px;
}

#cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 텍스트 센터 */
.text-center {
    text-align: center;
}

/* 스크롤 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 30px 20px;
        margin: 20px auto;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .card-info .name {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .style {
        font-size: 0.9rem;
    }

    .button {
        display: block;
        margin: 15px auto;
        max-width: 280px;
        padding: 16px 30px;
        font-size: 1rem;
    }

    header {
        padding: 15px 0;
    }

    .footer-links {
        font-size: 1rem;
        margin: 0 8px;
    }

    #problem ul {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .swiper-slide .tarot-card {
        max-width: 280px;
        padding: 20px;
    }
}

@media (max-width: 640px) {
    #hero {
        padding: 50px 20px;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 25px 15px;
    }

    .container {
        padding: 0 10px;
    }

    .swiper-slide .tarot-card {
        max-width: 260px;
        padding: 18px;
    }

    .profile-img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        font-size: 0.9rem;
        margin: 0 5px;
    }

    #problem li {
        padding: 15px;
        font-size: 1rem;
    }

    .badges li {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* 고해상도 디스플레이 최적화 - 1명씩 보이는 카드 */
@media (min-width: 1200px) {
    .swiper-slide .tarot-card {
        max-width: 450px;
        padding: 40px;
    }

    .profile-img {
        width: 160px;
        height: 160px;
    }

    .card-info .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .style {
        font-size: 1.1rem;
    }

    section {
        max-width: 1100px;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 다크모드 대응 (선택적) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    }
}

/* 푸터 스타일 - 향상된 디자인 */
footer {
    background: linear-gradient(135deg, #2D1B69, #6B46C1);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

footer p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .footer-links {
    display: inline-block;
    margin-top: 20px;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

footer .footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* 모바일에서 푸터 링크 레이아웃 */
@media (max-width: 768px) {
    footer {
        padding: 30px 0;
    }

    footer .footer-links a {
        margin: 5px 8px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    footer .footer-links {
        line-height: 2.5;
    }

    footer .footer-links a {
        margin: 3px 5px;
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* 인쇄용 스타일 */
@media print {
    #hero::before,
    .swiper-pagination,
    .button {
        display: none !important;
    }

    section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    footer {
        background: #333 !important;
        color: black !important;
    }
}