/* About Page 3D Styles - Theme Adaptive */

:root {
    /* Light Mode Variables (Default) */
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Bright frosted glass */
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #475569;
    /* Slate 600 */
    --heading-color: #0f172a;
    /* Slate 900 */
    --heading-shadow: none;
    --blockquote-bg: rgba(0, 0, 0, 0.03);
    --blockquote-text: #334155;
    --hr-color: rgba(0, 0, 0, 0.1);
}

body.dark {
    /* Dark Mode Variables (Override) */
    --glass-bg: rgba(10, 10, 15, 0.85);
    /* Dark frosted glass */
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 4px 60px rgba(0, 0, 0, 0.6);
    --text-main: #f1f5f9;
    /* Slate 100 */
    --text-muted: #cbd5e1;
    /* Slate 300 */
    --heading-color: #ffffff;
    --heading-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --blockquote-bg: rgba(255, 255, 255, 0.03);
    --blockquote-text: #e2e8f0;
    --hr-color: rgba(255, 255, 255, 0.2);
}

/* Background canvas fixed */
#three-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* Deep space gradient is consistent for both modes to keep "Universe" feel, 
       but panel will adapt on top of it. */
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

/* Override body background when on About page (which has #three-canvas-container) */
body:has(#three-canvas-container) {
    background: transparent !important;
}

/* Fallback for browsers without :has() support */
.about-page-body {
    background: transparent !important;
}

/* Main Layout */
.about-article {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 20px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    transition: color 0.3s ease;
    box-sizing: border-box;
    /* Fix width calc */
}

/* Glass Panel Container */
.glass-panel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* Force Center */
    box-sizing: border-box;
    /* Fix padding issue */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: var(--glass-shadow);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* Typography & Layout */
.about-header {
    margin-bottom: 60px;
    text-align: left;
    border-bottom: 1px solid var(--hr-color);
    padding-bottom: 40px;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: var(--heading-shadow);
}

.about-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Content Blocks */
.about-content {
    text-align: left;
}

.about-content h1,
.about-content h2,
.about-content h3 {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    font-weight: 600;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.about-content ul {
    padding-left: 20px;
    margin-bottom: 2rem;
}

.about-content li {
    margin-bottom: 0.8rem;
    color: var(--text-main);
    list-style-type: square;
}

.about-content blockquote {
    border-left: 4px solid #60a5fa;
    padding: 1.5rem 2rem;
    background: var(--blockquote-bg);
    margin: 3rem 0;
    font-style: italic;
    color: var(--blockquote-text);
    border-radius: 0 8px 8px 0;
}

.about-content hr {
    border: 0;
    border-top: 1px solid var(--hr-color);
    margin: 4rem 0;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

h2.scroll-reveal {
    transform: translateX(-30px);
}

h2.scroll-reveal.visible {
    transform: translateX(0);
}

p.scroll-reveal {
    transform: translateY(30px);
}

blockquote.scroll-reveal.visible {
    transform: translateX(0);
}


@media (max-width: 768px) {

    /* Mobile: Wide Glass Slate */
    .about-article {
        padding: 80px 12px;
        /* Less outer padding */
    }

    .glass-panel {
        padding: 40px 24px;
        /* Optimized inner spacing */
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        /* Slightly softer corners */
        backdrop-filter: blur(25px);
        /* Stronger blur for legibility */
        -webkit-backdrop-filter: blur(25px);
    }

    .about-title {
        font-size: 2.2rem;
        word-break: keep-all;
        /* Prevent awkward breaks in Korean */
    }

    .about-content p {
        font-size: 1.05rem;
        /* readable size */
        text-align: justify;
        /* Clean blocks */
        text-justify: inter-word;
    }
}