/* ============================
   INVESTMENT GURUS WEBSITE
   Modern & Elegant Design
   ============================ */

/* --- CSS Variables (Dark Mode - Default) --- */
:root {
    --primary: #c9a84c;
    --primary-dark: #a88a3a;
    --primary-light: #e8d59a;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --bg-section: #0e0e16;
    --text-primary: #f0ece2;
    --text-secondary: #9a9ab0;
    --text-muted: #5a5a72;
    --border: #1e1e30;
    --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #f0d78c 50%, #c9a84c 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #0e0e16 100%);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 50px rgba(201, 168, 76, 0.15);
    --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.1);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --code-bg: #0d0d15;
    --img-brightness: 1;
}

/* --- Light Mode --- */
:root.light-mode {
    --primary: #9a7b2d;
    --primary-dark: #7a6020;
    --primary-light: #c9a84c;
    --bg-dark: #f5f3ef;
    --bg-card: #ffffff;
    --bg-card-hover: #f0ede6;
    --bg-section: #faf8f4;
    --text-primary: #1a1a2e;
    --text-secondary: #555566;
    --text-muted: #8888a0;
    --border: #e0ddd4;
    --gradient-gold: linear-gradient(135deg, #9a7b2d 0%, #c9a84c 50%, #9a7b2d 100%);
    --gradient-dark: linear-gradient(180deg, #f5f3ef 0%, #faf8f4 100%);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 6px 30px rgba(154, 123, 45, 0.12);
    --shadow-glow: 0 0 30px rgba(154, 123, 45, 0.06);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --code-bg: #f0ede6;
    --img-brightness: 1.05;
}

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

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Particles Background --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative;
    background: radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.5s forwards;
}

.highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.3);
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    opacity: 0;
    animation: fadeUp 0.8s 1.1s forwards;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUpCenter 0.8s 1.3s forwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.scroll-indicator p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpCenter {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Gurus Section --- */
.gurus-section {
    padding: 100px 40px 120px;
    position: relative;
    background: var(--bg-section);
    overflow: hidden;
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Noto Sans KR', sans-serif;
}

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

.filter-btn.active {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-color: transparent;
    font-weight: 700;
}

/* --- Gurus Grid --- */
.gurus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Guru Card --- */
.guru-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.guru-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.guru-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}

.guru-card.hidden {
    display: none;
}

.card-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
    filter: grayscale(20%);
}

.guru-card:hover .card-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.9));
    display: flex;
    justify-content: flex-end;
}

.card-tag {
    padding: 5px 14px;
    background: rgba(201, 168, 76, 0.2);
    color: var(--primary);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: 28px;
}

.card-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.card-name-en {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.card-divider {
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
    margin-bottom: 16px;
}

.card-quote {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 2px solid var(--primary);
}

.card-philosophy h4 {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-philosophy ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-philosophy li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.card-philosophy li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.7rem;
}

.card-btn {
    margin-top: 20px;
    background: none;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Noto Sans KR', sans-serif;
    width: 100%;
}

.card-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* --- Philosophy Section --- */
.philosophy-section {
    padding: 100px 40px 140px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
    overflow: hidden;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary) 10%,
        var(--primary) 90%,
        transparent
    );
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.timeline-item.left .timeline-dot {
    right: -9px;
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.5), 0 0 0 6px rgba(201, 168, 76, 0.15);
    transform: scale(1.3);
}

/* Timeline card */
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 16px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transform: rotate(45deg);
    transition: var(--transition);
}

.timeline-item.left .timeline-card::before {
    right: -9px;
    border-left: none;
    border-bottom: none;
}

.timeline-item.right .timeline-card::before {
    left: -9px;
    border-right: none;
    border-top: none;
}

.timeline-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 8px 40px rgba(201, 168, 76, 0.1);
    transform: translateY(-4px);
}

.timeline-card:hover::before {
    border-color: rgba(201, 168, 76, 0.3);
}

/* Timeline number */
.timeline-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 8px;
}

.timeline-card:hover .timeline-number {
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.timeline-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Timeline quote with avatar */
.timeline-quote {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(201, 168, 76, 0.04);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    margin-bottom: 16px;
}

.timeline-item.left .timeline-quote {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 3px solid var(--primary);
    text-align: left;
}

.timeline-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.timeline-quoter {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.timeline-quote p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* Timeline tags */
.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-item.left .timeline-tags {
    justify-content: flex-end;
}

.timeline-tags span {
    padding: 4px 12px;
    background: rgba(201, 168, 76, 0.08);
    color: var(--primary);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.timeline-card:hover .timeline-tags span {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.3);
}

/* --- Footer --- */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 60px 40px 30px;
    overflow: hidden;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col li {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-col a {
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: sticky;
    top: 16px;
    float: right;
    margin-right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.modal-content {
    padding: 40px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.modal-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.modal-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.modal-info .modal-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    padding: 24px;
    border-left: 3px solid var(--primary);
    background: rgba(201, 168, 76, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 30px;
    line-height: 1.8;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.modal-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-section li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.modal-section li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.6rem;
    top: 4px;
}

/* --- Investment Examples in Modal --- */
.examples-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.example-card {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(201, 168, 76, 0.02));
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
    transform: translateX(4px);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.example-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.example-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.example-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
}

.example-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.result-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.result-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

/* --- Chat Section --- */
.chat-section {
    margin-top: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.6);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
    border-bottom: 1px solid var(--border);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-icon {
    font-size: 1.3rem;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.chat-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    padding: 3px 10px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-messages {
    height: 360px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    gap: 16px;
}

.chat-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.chat-welcome p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.chat-message {
    display: flex;
    max-width: 85%;
    animation: chatFadeIn 0.3s ease;
}

.chat-message.chat-user {
    align-self: flex-end;
}

.chat-message.chat-assistant {
    align-self: flex-start;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.chat-user .chat-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0a0f;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-assistant .chat-bubble {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* Modal thinking block */
.modal-thinking-block {
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid rgba(180, 160, 120, 0.25);
    background: rgba(180, 160, 120, 0.06);
    overflow: hidden;
}

.modal-thinking-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.78rem;
}

.modal-thinking-header:hover {
    background: rgba(180, 160, 120, 0.1);
}

.modal-thinking-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
}

.modal-thinking-status {
    margin-left: auto;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.modal-thinking-status.thinking-active {
    color: var(--primary);
    animation: modalThinkingPulse 1.5s ease-in-out infinite;
}

.modal-thinking-status.thinking-done {
    color: var(--text-muted);
}

@keyframes modalThinkingPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.modal-thinking-toggle {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.modal-thinking-block.expanded .modal-thinking-toggle {
    transform: rotate(90deg);
}

.modal-thinking-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: keep-all;
}

.modal-thinking-block.expanded .modal-thinking-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 12px 10px 12px;
    border-top: 1px solid rgba(180, 160, 120, 0.15);
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.4);
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0a0f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.chat-send-btn.sending {
    animation: pulse 1.5s infinite;
}

.chat-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.chat-typing span {
    font-size: 1.5rem;
    color: var(--primary);
    animation: typingDot 1.4s infinite;
    line-height: 1;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-error {
    color: #ff6b6b;
    font-size: 0.85rem;
}

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

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

/* --- Nav Chat Link --- */
.nav-chat-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0a0f !important;
    padding: 6px 16px !important;
    border-radius: 20px;
    font-weight: 700 !important;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-chat-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
    color: #0a0a0f !important;
}

/* --- Chat Fullpage Link --- */
.chat-fullpage-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
    border-top: 1px solid var(--border);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.chat-fullpage-link:hover {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.08));
    color: var(--primary-light);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* --- Light Mode Overrides --- */
:root.light-mode body {
    -webkit-font-smoothing: auto;
}

:root.light-mode .navbar {
    background: rgba(245, 243, 239, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

:root.light-mode .navbar.scrolled {
    background: rgba(245, 243, 239, 0.95);
}

:root.light-mode .hero {
    background: linear-gradient(135deg, #f5f3ef 0%, #ede8de 50%, #f5f3ef 100%);
}

:root.light-mode .hero::before {
    opacity: 0.03;
}

:root.light-mode .hero-btn {
    box-shadow: 0 2px 12px rgba(154, 123, 45, 0.2);
}

:root.light-mode .card-image-wrapper::after {
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
}

:root.light-mode .guru-card {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

:root.light-mode .guru-card:hover {
    box-shadow: 0 4px 20px rgba(154, 123, 45, 0.12);
    border-color: rgba(154, 123, 45, 0.2);
}

:root.light-mode .filter-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

:root.light-mode .filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(154, 123, 45, 0.08);
}

:root.light-mode .filter-btn.active {
    background: var(--gradient-gold);
    color: #1a1a2e;
    border-color: transparent;
    font-weight: 700;
    text-shadow: none;
}

:root.light-mode .timeline::before {
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

:root.light-mode .timeline-dot {
    background: var(--bg-card);
}

:root.light-mode .modal-overlay {
    background: var(--overlay-bg);
}

:root.light-mode .modal {
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.12);
}

:root.light-mode .modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

:root.light-mode .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

:root.light-mode .principle-tag {
    background: rgba(154, 123, 45, 0.06);
    border-color: rgba(154, 123, 45, 0.15);
}

:root.light-mode .stat-number {
    -webkit-text-fill-color: var(--primary);
}

:root.light-mode .particle {
    background: rgba(154, 123, 45, 0.06);
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    font-size: 20px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

:root.light-mode .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

:root.light-mode .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .gurus-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    }

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

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .gurus-section {
        padding: 60px 16px 80px;
    }

    .gurus-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-image-wrapper {
        height: 260px;
    }

    .card-content {
        padding: 20px;
    }

    .card-quote {
        word-break: keep-all;
    }

    /* Timeline mobile */
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 40px 50px;
        text-align: left !important;
    }

    .timeline-item.left {
        left: 0;
        padding-right: 0;
        padding-left: 50px;
    }

    .timeline-item.right {
        left: 0;
        padding-left: 50px;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 11px;
        right: auto;
    }

    .timeline-item.left .timeline-card::before,
    .timeline-item.right .timeline-card::before {
        left: -9px;
        right: auto;
        border-right: none;
        border-top: none;
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .timeline-card {
        padding: 24px 20px;
    }

    .timeline-item.left .timeline-quote {
        flex-direction: row;
        border-left: 3px solid var(--primary);
        border-right: none;
    }

    .timeline-item.left .timeline-tags {
        justify-content: flex-start;
    }

    .timeline-quote {
        padding: 12px;
        gap: 10px;
    }

    .philosophy-section {
        padding: 60px 16px 80px;
    }

    .footer {
        padding: 40px 16px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-bar {
        gap: 8px;
        padding: 0 4px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .modal {
        margin: 10px;
        max-height: 90vh;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-info h2 {
        font-size: 1.4rem;
    }

    .modal-quote {
        padding: 16px;
        font-size: 0.95rem;
    }

    .example-card {
        padding: 16px;
    }

    .example-header h4 {
        font-size: 0.9rem;
    }

    .example-desc {
        font-size: 0.82rem;
    }

    .example-result {
        flex-direction: column;
        gap: 6px;
    }

    .section-header {
        padding: 0 4px;
    }

    /* Chat mobile */
    .chat-messages {
        height: 280px;
        padding: 16px;
    }

    .chat-message {
        max-width: 90%;
    }

    .chat-bubble {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .chat-input-area {
        padding: 12px 16px;
    }

    .chat-input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .chat-send-btn {
        width: 40px;
        height: 40px;
    }

    .chat-welcome p {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .scroll-indicator {
        display: none;
    }

    .gurus-section {
        padding: 50px 12px 60px;
    }

    .philosophy-section {
        padding: 50px 12px 60px;
    }

    .timeline-item {
        padding: 0 0 30px 44px;
    }

    .timeline-item.left {
        padding-left: 44px;
    }

    .timeline-item.right {
        padding-left: 44px;
    }

    .timeline-card {
        padding: 20px 16px;
    }

    .timeline-number {
        font-size: 2.2rem;
    }

    .footer {
        padding: 30px 12px 16px;
    }
}
