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

/* CSS 변수 정의 */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #8b5cf6;
    --accent-color: #ff6b6b;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #ff6b6b 100%);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* 기본 바디 스타일 */
body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 섹션 제목 */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 히어로 섹션 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--shadow-glow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-brain {
    width: 300px;
    height: 300px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
    box-shadow: var(--shadow-glow);
}

.ai-brain::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: rotate 15s linear infinite reverse;
    box-shadow: var(--shadow-purple);
}

.ai-brain::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

/* 타임라인 섹션 */
.timeline-section {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-events {
    position: relative;
}

.timeline-event {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

.timeline-event:nth-child(odd) .event-content {
    margin-right: 60%;
    text-align: right;
}

.timeline-event:nth-child(even) .event-content {
    margin-left: 60%;
    text-align: left;
}

.event-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.event-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--bg-dark);
    border-radius: 50%;
}

.event-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.event-content:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.event-date {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.event-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 차트 섹션 */
.chart-section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chart-container:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.chart-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* 전문가 섹션 */
.experts-section {
    padding: 5rem 0;
    background: var(--bg-darker);
}

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

.expert-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.expert-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-purple);
}

.avatar-placeholder {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.expert-name {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.expert-title {
    font-size: 1rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.expert-quote {
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: center;
    position: relative;
    padding: 1rem 0;
}

.expert-quote::before,
.expert-quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.expert-quote::before {
    top: 0;
    left: 0;
}

.expert-quote::after {
    bottom: 0;
    right: 0;
}

/* 미래 예측 섹션 */
.future-section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.scenario-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.tab-button.active {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.scenario-content {
    position: relative;
    min-height: 400px;
}

.scenario-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.scenario-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scenario-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.scenario-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.scenario-card ul {
    list-style: none;
    padding: 0;
}

.scenario-card li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
}

.scenario-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.scenario-card li:last-child {
    border-bottom: none;
}

/* 푸터 */
.footer {
    padding: 2rem 0;
    background: var(--bg-darker);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 네비게이션 바 스타일 */
.main-nav {
    width: 100%;
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,212,255,0.04);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 20px;
}
.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.7rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 1px;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    display: inline-block;
}
.nav-menu a {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover, .nav-menu a:focus {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .ai-brain {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-event:nth-child(odd) .event-content,
    .timeline-event:nth-child(even) .event-content {
        margin: 0 0 0 3rem;
        text-align: left;
    }
    
    .timeline-line {
        left: 1.5rem;
    }
    
    .event-marker {
        left: 1.5rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        min-width: auto;
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .chart-container,
    .expert-card,
    .scenario-card {
        padding: 1.5rem;
    }
}

/* 직업 리스트 스타일 */
.extinct-job-list, .future-job-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}
.job-list {
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,212,255,0.07);
    padding: 2.5rem 2rem;
    max-width: 600px;
    width: 100%;
    margin-bottom: 1.5rem;
    list-style: none;
}
.job-list li {
    font-size: 1.15rem;
    color: var(--text-light);
    padding: 1rem 0 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.job-list li:last-child {
    border-bottom: none;
}
.job-list li::before {
    content: '\25B6';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
}
.job-list-desc {
    color: var(--text-gray);
    font-size: 0.98rem;
    margin-top: 0.5rem;
    text-align: left;
    max-width: 600px;
}