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

*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%; /* 모든 요소가 부모 컨테이너를 넘지 않도록 */
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px; /* 모바일 최소 읽기 가능한 크기 */
    -webkit-text-size-adjust: 100%; /* iOS에서 텍스트 크기 자동 조정 방지 */
    -ms-text-size-adjust: 100%; /* Windows Phone에서 텍스트 크기 자동 조정 방지 */
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

html {
    overflow-x: hidden; /* 가로 스크롤 방지 */
    width: 100%;
    max-width: 100%;
}

/* iOS Safari 전용 수정 */
@supports (-webkit-overflow-scrolling: touch) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }
    
    *, *:before, *:after {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Language-specific fonts */
body[data-lang="en"] {
    font-family: 'Noto Sans', sans-serif;
}

body[data-lang="ja"] {
    font-family: 'Noto Sans JP', sans-serif;
}

body[data-lang="zh"] {
    font-family: 'Noto Sans SC', sans-serif;
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* iOS Safari 전용 추가 안전장치 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .question-container,
    .question-title,
    .question-options,
    .option {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .question-container {
        padding-left: env(safe-area-inset-left, 0.5rem) !important;
        padding-right: env(safe-area-inset-right, 0.5rem) !important;
    }
    
    .option {
        margin: 0 !important;
        overflow: visible !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
}

/* iPhone X 이상 기기용 추가 설정 */
@supports (padding: max(0px)) {
    .question-container {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
}

/* 모바일 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .option:hover,
    .lang-btn:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .btn:active,
    .option:active,
    .lang-btn:active {
        transform: scale(0.98);
    }
    
    /* iOS Safari 전용 터치 최적화 */
    @supports (-webkit-overflow-scrolling: touch) {
        .option {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }
    }
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: inline-block;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sections */
.section {
    padding: 3rem 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.company-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 44px; /* 모바일 터치 최소 크기 */
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Assessment Section */
.assessment-section {
    background: var(--bg-white);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.assessment-header {
    margin-bottom: 3rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: var(--text-light);
    min-width: 60px;
    text-align: center;
}

.question-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    padding: 0 1rem;
    overflow-x: hidden;
    position: relative;
}

/* iOS Safari 전용 질문 컨테이너 수정 */
@supports (-webkit-overflow-scrolling: touch) {
    .question-container {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        margin-left: auto;
        margin-right: auto;
        padding: 0 0.5rem;
        transform: translateZ(0); /* 하드웨어 가속 */
    }
}

.question-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    min-height: 4rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    word-wrap: break-word;
    hyphens: auto;
}

/* iOS Safari 전용 질문 제목 수정 */
@supports (-webkit-overflow-scrolling: touch) {
    .question-title {
        width: 100%;
        max-width: 100%;
        overflow: visible;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

.question-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0;
}

/* iOS Safari 전용 질문 옵션 수정 */
@supports (-webkit-overflow-scrolling: touch) {
    .question-options {
        width: 100%;
        max-width: 100%;
        margin: 1.5rem auto 3rem auto;
        padding: 0;
        transform: translateZ(0); /* 하드웨어 가속 */
    }
}

.option {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    background: var(--bg-white);
    min-height: 60px; /* 모바일 터치 최소 크기 */
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
    user-select: none; /* 텍스트 선택 방지 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* iOS Safari 전용 옵션 수정 */
@supports (-webkit-overflow-scrolling: touch) {
    .option {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.2rem;
        overflow: visible;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        -webkit-transform: translateZ(0); /* 하드웨어 가속 */
        transform: translateZ(0);
    }
}

.option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.option.selected {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    width: 100%;
    height: 100%;
}

.option-label span {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    max-width: 100%;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.option.selected .option-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.option.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Results Section */
.results-section {
    background: var(--bg-light);
    align-items: flex-start;
    padding: 2rem 0;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.results-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.results-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

/* Overall Score */
.overall-score {
    text-align: center;
}

.score-display {
    margin-bottom: 2rem;
}

.score-circle {
    position: relative;
    display: inline-block;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score-interpretation {
    font-size: 1.125rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Strengths and Improvements */
.strength-item,
.improvement-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--success-color);
    background: rgba(16, 185, 129, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.improvement-item {
    border-left-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.item-description {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Recommendations */
.recommendation-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.recommendation-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.recommendation-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.recommendation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.recommendation-link:hover {
    text-decoration: underline;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
        max-width: 100vw;
    }
    
    /* iOS Safari 전용 컨테이너 수정 */
    @supports (-webkit-overflow-scrolling: touch) {
        .container {
            width: 100%;
            max-width: 100vw;
            padding: 0 0.25rem;
            margin: 0 auto;
        }
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .language-selector {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 65px;
    }
    
    .title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .feature-item {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .feature-item i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        text-align: center;
    }
    
    .contact-info span {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 50px;
        border-radius: 12px;
    }
    
    .question-container {
        width: 100%;
        max-width: 100vw;
        padding: 0 0.5rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* iOS Safari 전용 질문 컨테이너 수정 (모바일) */
    @supports (-webkit-overflow-scrolling: touch) {
        .question-container {
            width: calc(100% - 1rem);
            max-width: calc(100vw - 1rem);
            padding: 0 0.25rem;
            margin: 0 auto;
            position: relative;
        }
    }
    
    .question-title {
        font-size: 1.4rem;
        line-height: 1.3;
        min-height: auto;
        height: auto;
        padding: 1rem 0;
        text-align: center;
        overflow: visible;
        word-wrap: break-word;
        width: 100%;
        max-width: 100%;
    }
    
    .question-options {
        width: 100%;
        max-width: 100%;
        margin: 1.5rem auto;
        gap: 1rem;
        padding: 0;
    }
    
    /* iOS Safari 전용 질문 옵션 수정 (모바일) */
    @supports (-webkit-overflow-scrolling: touch) {
        .question-options {
            width: 100%;
            max-width: 100%;
            margin: 1rem auto;
            padding: 0;
        }
    }
    
    .option {
        padding: 1.2rem;
        min-height: 60px;
        height: auto;
        font-size: 1rem;
        line-height: 1.4;
        overflow: visible;
        word-wrap: break-word;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .option:hover,
    .option:focus {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .option.selected {
        border-width: 2px;
    }
    
    .option-label {
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .option-label span {
        flex: 1;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .navigation-buttons {
        flex-direction: row;
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .navigation-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .progress-container {
        margin-bottom: 2rem;
    }
    
    .progress-text {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-header h1 {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .results-date {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .result-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .result-card h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .score-circle {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
    
    .score-text {
        font-size: 2.5rem;
    }
    
    .chart-container {
        height: 300px;
        margin: 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        padding: 1rem 0;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul li a {
        font-size: 1rem;
        padding: 0.5rem;
        display: inline-block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.25rem;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 55px;
    }
    
    .title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .features {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .feature-item {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-item span {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
    }
    
    .question-container {
        width: 100%;
        max-width: 100vw;
        padding: 0 0.25rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .question-title {
        font-size: 1.2rem;
        line-height: 1.3;
        padding: 0.8rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .question-options {
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 0.8rem;
    }
    
    .option {
        padding: 1rem;
        min-height: 55px;
        font-size: 0.95rem;
        line-height: 1.3;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .navigation-buttons {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .navigation-buttons .btn {
        min-width: 100px;
        padding: 0.8rem 1rem;
    }
    
    .result-card {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
        border-radius: 10px;
    }
    
    .result-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-text {
        font-size: 2rem;
    }
    
    .chart-container {
        height: 250px;
        margin: 0.8rem 0;
    }
    
    .action-buttons {
        padding: 0 0.5rem;
    }
    
    .results-header h1 {
        font-size: 1.8rem;
    }
    
    .results-date {
        font-size: 0.9rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .contact-info span {
        font-size: 0.85rem;
    }
    
    /* 아주 작은 화면을 위한 추가 조정 */
    .progress-text {
        font-size: 1rem;
    }
    
    .company-info p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .welcome-content {
        text-align: center;
    }
    
    /* 터치 친화적인 인터페이스 */
    .option:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* 매우 작은 모바일 화면 (360px 이하) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.125rem;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .question-container {
        width: 100%;
        max-width: 100vw;
        padding: 0 0.125rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .question-title {
        font-size: 1.1rem;
        padding: 0.6rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .question-options {
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 0.6rem;
    }
    
    .option {
        padding: 0.8rem;
        min-height: 50px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .navigation-buttons .btn {
        min-width: 90px;
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .score-circle {
        width: 130px;
        height: 130px;
    }
    
    .score-text {
        font-size: 1.8rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .result-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-info span {
        font-size: 0.8rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
        padding: 0.3rem;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Print Styles */
@media print {
    body {
        background-color: white !important;
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .header, 
    .footer, 
    .action-buttons,
    .language-selector,
    .navigation-buttons {
        display: none !important;
    }
    
    .results-section {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .result-card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        margin-bottom: 20px;
        padding: 15px;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .results-header h1 {
        font-size: 18pt;
        margin-bottom: 10px;
        color: black !important;
    }
    
    .results-date {
        font-size: 10pt;
        color: #666 !important;
        margin-bottom: 20px;
    }
    
    .result-card h3 {
        font-size: 14pt;
        margin-bottom: 10px;
        color: black !important;
    }
    
    .score-display {
        text-align: center;
        margin: 15px 0;
    }
    
    .score-text {
        font-size: 24pt !important;
        font-weight: bold;
        color: black !important;
    }
    
    .chart-container {
        height: 200px !important;
        margin: 15px 0;
    }
    
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .loading {
        display: none !important;
    }
    
    /* Ensure text is readable */
    * {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
    
    /* Page breaks */
    .result-card:nth-child(3) {
        page-break-before: always;
    }
}