/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --color-bg-dark: #0a0a0f;
    --color-bg-light: #f8f9fa;
    --color-text-light: #ffffff;
    --color-text-dark: #1a1a2e;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-accent-1: #6366f1;
    --color-accent-2: #8b5cf6;
    --color-accent-3: #06b6d4;
    --color-gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --color-gradient-2: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --color-gradient-3: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Progress Bar
   ======================================== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--color-gradient-1);
    width: 0%;
    transition: width 0.1s ease;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: var(--transition-smooth);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 3rem;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

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

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

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

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

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

/* ========================================
   Sections Base
   ======================================== */
.section {
    min-height: 100vh;
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-accent-1);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

.section-title.dark {
    color: var(--color-text-dark);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: var(--color-gradient-3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* ========================================
   Section Themes
   ======================================== */
.section-dark {
    background: var(--color-bg-dark);
}

.section-light {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-gradient {
    background: var(--color-gradient-2);
}

.section-gradient-reverse {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

/* ========================================
   Highlights
   ======================================== */
.highlight {
    position: relative;
    display: inline;
    background: linear-gradient(180deg, transparent 60%, rgba(99, 102, 241, 0.4) 60%);
}

.highlight-alt {
    color: var(--color-accent-3);
}

.highlight-dark {
    position: relative;
    display: inline;
    background: linear-gradient(180deg, transparent 60%, rgba(99, 102, 241, 0.3) 60%);
}

/* ========================================
   Story Cards
   ======================================== */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.story-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.story-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.story-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.story-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========================================
   Quote Block
   ======================================== */
.quote-block {
    text-align: center;
    padding: 3rem;
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--color-accent-1);
    border-radius: 0 20px 20px 0;
}

.quote-block blockquote {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
}

.quote-block strong {
    color: var(--color-accent-1);
}

/* ========================================
   Turning Point Section
   ======================================== */
.turning-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.turning-question {
    position: relative;
}

.big-quote {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-accent-1);
    opacity: 0.3;
    position: absolute;
    top: -3rem;
    left: -1rem;
    line-height: 1;
}

.turning-question p {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.experiment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experiment-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.experiment-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.experiment-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent-3);
    min-width: 50px;
}

.experiment-text h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 100px;
    font-weight: 600;
}

.location-icon {
    font-size: 1.2rem;
}

/* ========================================
   Discovery Timeline
   ======================================== */
.discovery-timeline {
    position: relative;
    padding-left: 3rem;
}

.discovery-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent-1), var(--color-accent-3));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 2.5rem 0;
}

.timeline-marker {
    position: absolute;
    left: -3.7rem;
    top: 2.5rem;
    width: 60px;
    height: 60px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-left: 2rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.timeline-content p {
    color: #666;
    line-height: 1.8;
}

.timeline-content strong {
    color: var(--color-accent-1);
}

/* ========================================
   After Section
   ======================================== */
.after-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.identity-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    padding: 3rem 4rem;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-glow);
}

.identity-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.identity-card h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: var(--color-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.identity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.identity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.identity-item em {
    color: var(--color-text-muted);
    font-style: normal;
}

.now-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.now-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.now-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.now-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.now-item p {
    color: var(--color-text-muted);
}

.goal-statement {
    text-align: center;
    padding: 3rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    max-width: 600px;
}

.goal-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}

/* ========================================
   Insight Section
   ======================================== */
.insight-table {
    margin: 3rem auto;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.insight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.insight-row.header {
    background: rgba(99, 102, 241, 0.3);
}

.insight-cell {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.insight-row.header .insight-cell {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.insight-cell.old {
    color: var(--color-text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.insight-cell.new {
    color: var(--color-accent-3);
    font-weight: 600;
}

.final-message {
    text-align: center;
    padding: 4rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 30px;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-message p {
    font-size: 1.4rem;
    line-height: 1.8;
}

.final-message strong {
    display: block;
    margin-top: 1rem;
    font-size: 1.6rem;
    background: var(--color-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-bg-dark);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   Animations
   ======================================== */
.fade-in,
.slide-in-left,
.slide-in-right,
.slide-in-up,
.scale-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    transform: translateY(20px);
}

.slide-in-left {
    transform: translateX(-60px);
}

.slide-in-right {
    transform: translateX(60px);
}

.slide-in-up {
    transform: translateY(60px);
}

.scale-in {
    transform: scale(0.9);
}

.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible,
.slide-in-up.visible,
.scale-in.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .turning-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .insight-row {
        grid-template-columns: 1fr;
    }

    .insight-cell {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 5rem 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-card {
        padding: 1.5rem;
    }

    .identity-card {
        padding: 2rem;
    }

    .timeline-content {
        margin-left: 1rem;
        padding: 1.5rem;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        left: -3.2rem;
    }

    .discovery-timeline {
        padding-left: 2.5rem;
    }
}

/* ========================================
   Hero Image & Event Badge
   ======================================== */
.hero {
    background:
        var(--color-gradient-3),
        url('./images/hero-bg.png') center/cover no-repeat;
    position: relative;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 15, 0.7) 0%,
            rgba(10, 10, 15, 0.5) 50%,
            rgba(10, 10, 15, 0.9) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    color: var(--color-accent-3);
}

.event-icon {
    font-size: 1.2rem;
}

/* ========================================
   CTA Buttons
   ======================================== */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: var(--color-gradient-1);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ========================================
   Presenter Section
   ======================================== */
.presenter-section {
    background: var(--color-bg-dark);
    min-height: auto;
    padding: 6rem 2rem;
}

.presenter-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.presenter-role {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent-1);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.presenter-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--color-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.presenter-desc {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 100px;
    color: var(--color-accent-1);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.presenter-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-visual {
    text-align: center;
    padding: 2rem;
}

.quote-visual .quote-mark {
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-accent-1);
    opacity: 0.5;
    line-height: 1;
}

.quote-visual p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ========================================
   Footer Enhancement
   ======================================== */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Responsive Updates
   ======================================== */
@media (max-width: 768px) {
    .presenter-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
   Section Image Placeholders
   ======================================== */
.section-image {
    margin-top: 3rem;
    width: 100%;
}

.image-placeholder {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-content {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.placeholder-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-section {
    background: var(--color-bg-dark);
    padding: 6rem 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.gallery-wide {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
}

.gallery-placeholder {
    display: flex;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
}

.gallery-placeholder .placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.gallery-placeholder .placeholder-num {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gallery-note p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.gallery-note code {
    background: rgba(99, 102, 241, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Gallery Responsive */
@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.gallery-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.gallery-wide {
        grid-column: span 1;
        aspect-ratio: 16 / 9;
    }
}

/* ========================================
   워케이션 촉매 흐름도 (Catalyst Flow)
   ======================================== */
.catalyst-flow {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.flow-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--color-accent-3);
}

.flow-diagram {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
}

.flow-column {
    flex: 1;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
}

.flow-input {
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.flow-process {
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.flow-output {
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
}

.flow-header {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: var(--transition-smooth);
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.flow-item.highlight-item {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.flow-item.highlight-item strong {
    color: var(--color-accent-3);
}

.flow-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-accent-1);
    font-weight: bold;
    padding: 0 0.5rem;
}

/* ========================================
   성과 지표 (Results Showcase)
   ======================================== */
.results-showcase {
    margin-bottom: 4rem;
}

.result-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.result-before,
.result-after {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-before {
    color: rgba(255, 255, 255, 0.4);
}

.result-after {
    color: var(--color-accent-3);
}

.result-metric {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0.5rem 0;
    text-decoration: line-through;
    opacity: 0.6;
}

.result-arrow {
    font-size: 1.5rem;
    color: var(--color-accent-1);
    margin: 0.5rem 0;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Identity subtitle */
.identity-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Goal subtext */
.goal-subtext {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* ========================================
   Catalyst Flow Responsive
   ======================================== */
@media (max-width: 968px) {
    .flow-diagram {
        flex-direction: column;
        align-items: center;
    }

    .flow-column {
        max-width: 100%;
        width: 100%;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 1rem 0;
    }

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

@media (max-width: 640px) {
    .catalyst-flow {
        padding: 1.5rem;
    }

    .flow-title {
        font-size: 1.1rem;
    }

    .flow-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .result-card {
        padding: 1.5rem;
    }
}

/* ========================================
   1인 사업가 여정 갤러리 (Journey Gallery)
   ======================================== */
.gallery-journey {
    background: linear-gradient(180deg, #0a0a0f 0%, #16213e 50%, #0a0a0f 100%);
}

.gallery-category {
    margin-bottom: 4rem;
}

.gallery-category:last-of-type {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-icon {
    font-size: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-1);
}

.gallery-grid-small {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-grid-small .gallery-item {
    aspect-ratio: 4 / 3;
}

/* Journey Gallery Responsive */
@media (max-width: 968px) {
    .gallery-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-header {
        flex-wrap: wrap;
    }

    .category-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .gallery-grid-small {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 1.2rem;
    }

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

/* Chapter 05: Membership Section */
#membership {
    background-color: #f8f9fa;
    /* Light background */
    color: #333;
}

.membership-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.intro-description strong {
    color: #2563eb;
    font-weight: 700;
}

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

.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Role Definition */
.role-definition {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.role-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.role-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 1rem;
}

.role-header h3 {
    font-size: 2rem;
    margin: 0;
    color: white;
}

.role-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .role-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.quote-visual-small {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}

.quote-visual-small .quote-mark {
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 1rem;
    color: rgba(59, 130, 246, 0.5);
    font-family: serif;
}

.quote-visual-small p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.check-icon {
    color: #4ade80;
    /* Green check */
    margin-right: 1rem;
    font-weight: bold;
}

.final-goal {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.final-goal p {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.final-goal strong {
    color: #2563eb;
}

.goal-sub {
    font-size: 1rem;
    color: #888;
    display: block;
}

/* Presentation Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: white;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background-color: #f8fafc;
    color: #334155;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: white;
}

/* Improved Modal Typography */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
    background-color: white;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.75;
    color: #374151;
    /* Gray-700 */
    font-size: 1.05rem;
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
    color: #111827;
    /* Gray-900 */
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.modal-body h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.modal-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: #1f2937;
    /* Gray-800 */
}

.modal-body h3 {
    font-size: 1.25rem;
    color: #374151;
}

.modal-body p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #374151;
    word-break: keep-all;
}

.modal-body ul,
.modal-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #374151;
    position: relative;
}

.modal-body blockquote {
    background-color: #f3f4f6;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: normal;
}

.modal-body strong {
    color: #2563eb;
    /* Blue-600 */
    font-weight: 700;
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}