/* ================================
   無盡藏 무진장 전문상담연구소
   Global Styles & Variables
   ================================ */

:root {
    /* Colors - 동양 철학 기반 컬러 팔레트 */
    --primary-color: #8B4513;        /* 흙, 안정 */
    --secondary-color: #C19A6B;      /* 금, 풍요 */
    --accent-color: #D4AF37;         /* 금빛 */
    --dark-color: #2C1810;           /* 진한 갈색 */
    --light-color: #F5E6D3;          /* 따뜻한 베이지 */
    --text-color: #3E2723;           /* 어두운 브라운 */
    --text-light: #6D4C41;           /* 밝은 브라운 */
    --bg-color: #FFF8F0;             /* 따뜻한 흰색 */
    --white: #FFFFFF;
    
    /* Accent Colors */
    --korea-color: #FFD700;          /* 황금빛 용 */
    --japan-color: #DC143C;          /* 빨강 (위험) */
    --china-color: #FF4500;          /* 주황빛 빨강 */
    
    /* Karma Colors */
    --karma-purple: #7B68EE;
    --karma-blue: #4169E1;
    --karma-green: #32CD32;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Fonts */
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* ================================
   Navigation
   ================================ */

.navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
}

.nav-brand i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ================================
   Hero Section
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chinese-text {
    font-size: 5rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    letter-spacing: 0.5rem;
}

.korean-text {
    font-size: 3rem;
    color: var(--white);
    letter-spacing: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Fade in animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-in 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s both;
}

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

/* ================================
   Buttons
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ================================
   Section Common Styles
   ================================ */

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-header h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 1.5rem auto;
}

/* ================================
   Introduction Section
   ================================ */

.intro-section {
    background: var(--white);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--text-color);
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.intro-card {
    background: linear-gradient(135deg, var(--light-color), var(--white));
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.intro-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

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

/* ================================
   Prophecy Section
   ================================ */

.prophecy-section {
    background: linear-gradient(to bottom, var(--bg-color), var(--light-color));
}

.prophet-intro {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.prophet-intro h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.achievement-list {
    list-style: none;
    margin: 1.5rem 0;
}

.achievement-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
}

.achievement-list i {
    color: var(--karma-green);
    margin-right: 0.8rem;
}

.prophecy-highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    border-left: 5px solid var(--primary-color);
}

/* Country Prophecies */
.country-prophecies {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.country-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.country-card:hover {
    transform: scale(1.02);
}

.country-header {
    padding: 2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-header i {
    font-size: 2.5rem;
}

.country-header h3 {
    font-size: 1.8rem;
    margin: 0;
}

.korea-card .country-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.japan-card .country-header {
    background: linear-gradient(135deg, #DC143C, #8B0000);
}

.china-card .country-header {
    background: linear-gradient(135deg, #FF4500, #B22222);
}

.country-content {
    padding: 2.5rem;
}

.country-description {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
}

.warning-text {
    background: #FFE4E1;
    border-left: 5px solid var(--japan-color);
}

/* Prophecy Table */
.prophecy-table {
    margin: 2rem 0;
}

.prophecy-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light-color);
}

.prophecy-row:last-child {
    border-bottom: none;
}

.prophecy-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.prophecy-value {
    color: var(--text-color);
    line-height: 1.7;
}

/* Key Points */
.key-points {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.key-points h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.key-points ul {
    list-style: none;
}

.key-points li {
    padding: 0.8rem 0;
    line-height: 1.8;
}

.key-points strong {
    color: var(--dark-color);
}

/* Disaster Flow */
.disaster-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 15px;
}

.disaster-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.disaster-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.disaster-icon i {
    font-size: 2rem;
    color: var(--japan-color);
}

.disaster-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.disaster-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.disaster-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.disaster-arrow i {
    display: block;
}

/* Warning & Info Boxes */
.warning-box,
.info-box {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.warning-box {
    background: #FFF3E0;
    border-left: 5px solid #FF9800;
}

.info-box {
    background: #E3F2FD;
    border-left: 5px solid #2196F3;
}

.warning-box i,
.info-box i {
    font-size: 1.5rem;
    color: #FF9800;
    flex-shrink: 0;
}

.info-box i {
    color: #2196F3;
}

.warning-box h5,
.info-box h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Crisis Sections */
.crisis-sections {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.crisis-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

.crisis-section h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.crisis-section ul {
    list-style: none;
}

.crisis-section li {
    padding: 0.8rem 0;
    line-height: 1.8;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.crisis-section li:last-child {
    border-bottom: none;
}

/* General Warnings */
.general-warnings {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.general-warnings h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.general-warnings h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.warning-item {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.warning-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.warning-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.warning-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.warning-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.advice {
    font-size: 0.9rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    text-align: left;
}

/* ================================
   Saju Section
   ================================ */

.saju-section {
    background: var(--white);
}

.saju-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* Sample Buttons */
.btn-sample {
    transition: all 0.3s ease;
}

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

.btn-sample:active {
    transform: translateY(0);
}

.saju-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.saju-form h3 i {
    margin-right: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-help-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.mt-4 {
    margin-top: 3rem;
}

/* Ilgan Section */
.ilgan-section {
    background: linear-gradient(135deg, #FFF9E6, #FFECB3);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pillar-group {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.pillar-group h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Sipseong Display */
.sipseong-display {
    margin-top: 1rem;
    padding: 0.8rem;
    background: var(--light-color);
    border-radius: 8px;
    text-align: center;
}

.sipseong-display small {
    font-size: 0.9rem;
    color: var(--text-light);
}

.sipseong-result {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Cheongan/Jiji Select */
.cheongan-select,
.jiji-select {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Daeunsoo Container */
.daeunsoo-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.daeunsoo-item {
    display: grid;
    grid-template-columns: 100px 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.daeunsoo-item .form-group {
    margin: 0;
}

.remove-daeunsoo {
    background: #DC143C;
    color: var(--white);
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-daeunsoo:hover {
    background: #B22222;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Saju Result */
.saju-result {
    max-width: 1000px;
    margin: 4rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.result-header h3 {
    color: var(--primary-color);
    font-size: 2rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-content {
    line-height: 2;
}

.result-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--light-color);
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.result-section h4 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.result-section p {
    line-height: 2;
    margin-bottom: 1.5rem;
}

/* Saju Info */
.saju-info {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--light-color), var(--white));
    border-radius: 15px;
}

.saju-info h3 {
    text-align: center;
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ================================
   Karma Section
   ================================ */

.karma-section {
    background: linear-gradient(to bottom, var(--bg-color), var(--light-color));
}

.karma-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.karma-months {
    display: grid;
    gap: 2rem;
}

.karma-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.karma-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.karma-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.month-badge {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.karma-header h4 {
    font-size: 1.3rem;
    margin: 0;
}

.karma-body {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.karma-section h5 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.karma-section h5 i {
    margin-right: 0.5rem;
}

.karma-section p {
    color: var(--text-color);
    line-height: 1.8;
}

.karma-section.homework {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
}

/* Karma Story */
.karma-story {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.karma-story h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.story-intro {
    font-size: 1.15rem;
    line-height: 2;
    text-align: center;
    margin-bottom: 2.5rem;
}

.story-example {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 10px;
}

.story-example h4 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.story-phase {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.phase-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-arrow {
    text-align: center;
}

.story-arrow i {
    font-size: 2rem;
    color: var(--primary-color);
}

.story-arrow span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.story-lesson {
    display: flex;
    gap: 1rem;
    align-items: start;
    background: #FFF9E6;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
}

.story-lesson i {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.story-lesson p {
    line-height: 1.8;
}

/* Three Methods */
.three-methods {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.three-methods h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.methods-intro {
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.methods-container {
    display: grid;
    gap: 2.5rem;
}

.method-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    position: relative;
    border-left: 5px solid var(--primary-color);
}

.method-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.method-card h4 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.method-purpose {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.method-practice {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.method-practice h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.method-practice ol,
.method-practice ul {
    padding-left: 1.5rem;
}

.method-practice li {
    padding: 0.5rem 0;
    line-height: 1.8;
}

.mantra {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

.method-metaphor {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.method-metaphor i {
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.method-highlight {
    background: #FFF9E6;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 5px solid var(--accent-color);
}

.method-highlight i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* ================================
   Consulting Section
   ================================ */

.consulting-section {
    background: var(--white);
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.consulting-card {
    background: linear-gradient(135deg, var(--light-color), var(--white));
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.consulting-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.consulting-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.consulting-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.consulting-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.consulting-info {
    max-width: 900px;
    margin: 0 auto;
}

.info-box-highlight {
    display: flex;
    align-items: start;
    gap: 1rem;
    background: linear-gradient(135deg, #FFF9E6, #FFECB3);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

.info-box-highlight i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-box-highlight p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ================================
   Contact Section
   ================================ */

.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.contact-section .section-header h2,
.contact-section .section-header .divider {
    color: var(--white);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-note,
.contact-support {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.contact-note {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-note i,
.contact-support i {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-support {
    text-align: center;
}

/* ================================
   Footer
   ================================ */

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-brand i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ================================
   Scroll to Top Button
   ================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ================================
   Vertical Four Pillars Layout (세로형 4기둥)
   Traditional Saju-Palja Style
   ================================ */

.vertical-pillars-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139,69,19,0.05) 0%, rgba(212,175,55,0.05) 100%);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.vertical-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(139,69,19,0.15);
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 180px;
}

.vertical-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(139,69,19,0.25);
    border-color: var(--accent-color);
}

.pillar-header {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
    width: 100%;
    letter-spacing: 0.1em;
}

.vertical-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 1rem;
}

.gapja-combined {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    text-align: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 2px solid var(--accent-color);
}

.gapja-char {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 900;
    color: var(--dark-color);
    line-height: 1;
    text-align: center;
    padding: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gapja-char:first-child {
    border-bottom: 1px solid rgba(139,69,19,0.2);
}

.sipseong-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--accent-color);
    width: 100%;
}

.sipseong-gan,
.sipseong-ji {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    padding: 0.6rem 1rem;
    background: var(--light-color);
    border-radius: 6px;
    transition: var(--transition);
}

.sipseong-gan {
    border-left: 4px solid var(--primary-color);
}

.sipseong-ji {
    border-left: 4px solid var(--secondary-color);
}

.sipseong-gan:hover,
.sipseong-ji:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateX(5px);
}

/* 천간/지지 십성 표시 스타일 */
.sipseong-gan::before {
    content: '天干 ';
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.sipseong-ji::before {
    content: '地支 ';
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 0.3rem;
}

/* Select 스타일 */
.vertical-pillar .form-group {
    width: 100%;
}

.vertical-pillar select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.vertical-pillar select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(139,69,19,0.15);
}

.vertical-pillar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.vertical-pillar label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--dark-color);
        width: 100%;
        padding: 2rem;
        gap: 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .chinese-text {
        font-size: 3rem;
        letter-spacing: 0.3rem;
    }
    
    .korean-text {
        font-size: 2rem;
        letter-spacing: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Prophecy */
    .disaster-flow {
        flex-direction: column;
    }
    
    .disaster-arrow {
        transform: rotate(90deg);
    }
    
    .prophecy-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Story Grid */
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .story-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    /* Daeunsoo */
    .daeunsoo-item {
        grid-template-columns: 1fr;
    }
    
    /* Result Header */
    .result-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    /* Forms */
    .form-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    /* Vertical Pillars - Mobile */
    .vertical-pillars-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .vertical-pillar {
        width: 100%;
        min-width: unset;
        padding: 1.5rem 1rem;
    }
    
    .gapja-char {
        font-size: 3rem;
        min-height: 3.5rem;
    }
    
    .pillar-header {
        font-size: 1.2rem;
    }
    
    /* Contact */
    .contact-main {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .saju-form-container,
    .result-section,
    .karma-story,
    .three-methods {
        padding: 1.5rem;
    }
    
    .info-grid,
    .consulting-grid,
    .warning-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Print Styles
   ================================ */

@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .scroll-top-btn,
    .saju-form-container,
    .result-actions {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .result-content {
        page-break-inside: avoid;
    }
}