/* Playful & Premium Custom CSS Design Tokens & Split-Pane Layout */
:root {
    --bg-color: #ffffff;
    --text-primary: #0f172a; /* Sleek dark slate */
    --text-secondary: #475569; /* Soft slate gray */
    
    /* Playful Accent Palette */
    --accent-primary: #6366f1; /* Electric Indigo */
    --accent-secondary: #06b6d4; /* Playful Cyan */
    --accent-pink: #ec4899; /* Sunset Pink */
    --border-color: rgba(15, 23, 42, 0.06);
    --card-bg: #ffffff;
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Playful Ambient Colorful Background Blobs */
.ambient-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.07; /* Soft, premium background glow */
    animation: float-blobs 16s infinite alternate ease-in-out;
}

.blob-1 {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #3b82f6 100%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-pink) 100%);
    bottom: -150px;
    right: -100px;
    animation-delay: -8s;
}

@keyframes float-blobs {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 40px) scale(1.15);
    }
}

/* 1/3 and 2/3 Split Grid Layout */
.container {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.1fr 2fr; /* Split-pane 1/3 and 2/3 ratio */
    gap: 5.5rem;
    align-items: start;
    flex-grow: 1; /* Pushes the global footer to the absolute bottom of the viewport */
}

/* Left Sidebar (Sticky Profile) */
.sidebar-column {
    position: sticky;
    top: 6rem;
    height: auto;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center; /* PERFECTLY CENTERED horizontally on desktop */
    text-align: center; /* Centered biography reading alignment */
}

/* Playful Dynamic Profile Image Border Wrapper */
.profile-photo-wrapper {
    position: relative;
    padding: 5px; /* Border thickness */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary), var(--accent-pink), var(--accent-secondary));
    background-size: 300% 300%;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
    animation: gradient-flow 6s ease infinite;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-photo-wrapper:hover {
    transform: scale(1.05);
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #ffffff; /* Separation ring */
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-sans);
    color: var(--text-primary);
    margin-top: 0.25rem;
    letter-spacing: -0.02em;
}

.profile-bio {
    font-family: var(--font-sans);
    font-size: 0.9rem; /* Smaller, ultra-neat book-like editorial scale */
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 400;
}

.profile-bio strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Bio Links Styled as Clean Bold Keywords */
.profile-bio a {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.profile-bio a:hover {
    opacity: 0.75; /* Elegant visual cue on hover */
}

/* Playful Contact Email Button Under Description */
.profile-contact {
    margin-top: 0.5rem;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-pink) 100%);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.3);
}

/* Right Column (Scrollable Feed) */
.feed-column {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

/* Journal / Blog Feed */
.journal-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-label {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.article-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.015);
}

.article-row:hover {
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.08), 
                0 4px 12px rgba(6, 182, 212, 0.03);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Playful Pill Tags */
.category-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-weight: 700;
    width: fit-content;
}

.tag-ai {
    background-color: rgba(6, 182, 212, 0.07);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.12);
}

.tag-leadership {
    background-color: rgba(168, 85, 247, 0.07);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.12);
}

.tag-tech {
    background-color: rgba(249, 115, 22, 0.07);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.tag-general {
    background-color: rgba(99, 102, 241, 0.07);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.article-row:hover .article-title {
    color: var(--accent-primary);
}

.article-summary {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Article Modal / Reader View */
.reader-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 100;
    overflow-y: auto;
    padding: 6rem 2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reader-view.active {
    display: flex;
    opacity: 1;
}

.reader-container {
    width: 100%;
    max-width: 720px; /* Highly optimized reading width */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.reader-close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #ffffff;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.reader-close-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.1);
}

.reader-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reader-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.reader-content {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reader-content p {
    margin-bottom: 0.5rem;
}

.reader-content h3 {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    font-weight: 700;
}

.reader-content h4 {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1.25rem;
    font-weight: 700;
}

.reader-content ul, .reader-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reader-content li {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.75;
    color: #334155;
}

/* Custom premium styling for unordered list bullets using indigo color */
.reader-content ul {
    list-style: none; /* remove default */
    padding-left: 1.25rem;
}

.reader-content ul li {
    position: relative;
}

.reader-content ul li::before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
}

.reader-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.reader-content em {
    font-style: italic;
}

/* Premium styling for links in reader */
.reader-content a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.reader-content a:hover {
    color: var(--accent-pink);
    border-bottom-color: var(--accent-pink);
}

/* Premium blockquotes */
.reader-content blockquote {
    border-left: 4px solid var(--accent-secondary);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: #f8fafc;
    border-radius: 0 4px 4px 0;
}

/* Global Page Footer Section */
.global-footer {
    width: 100%;
    max-width: 1120px;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
    margin-top: 6rem; /* Comfortable separation from the two-column grid */
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Progress bar for reading */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary), var(--accent-pink));
    width: 0%;
    z-index: 101;
    transition: width 0.1s ease;
}

/* Responsive Split-Pane Constraints */
@media (max-width: 960px) {
    body {
        padding: 4rem 1.25rem;
    }

    .container {
        grid-template-columns: 1fr; /* Single column stack */
        gap: 4.5rem;
    }

    .separator-flow-wrapper {
        position: relative;
        top: 0;
        height: auto;
        width: 100%;
        align-self: center;
        z-index: 1;
    }

    .column-separator {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        top: 0;
        margin: 1.5rem auto;
        float: none;
        width: 100%;
        height: auto;
        align-self: center;
        margin-left: 0;
        gap: 1.5rem;
    }

    .column-separator .separator-line {
        height: 1px;
        width: auto;
        background: var(--border-color);
        flex-grow: 1;
    }

    .column-separator .separator-text-wrapper {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .column-separator .separator-text {
        transform: none;
        position: static;
        font-size: 1.1rem;
        letter-spacing: 0.25em;
    }

    .sidebar-column {
        position: relative;
        top: 0;
    }

    .profile-section {
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .profile-bio {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .feed-column {
        gap: 3.5rem;
    }

    .reader-view {
        padding: 4rem 1.5rem;
    }

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

    .reader-close-btn {
        top: auto;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
    }

    .global-footer {
        margin-top: 4rem;
        padding-top: 2rem;
    }
}

/* Playful Stickers Component */
.stickers-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
    align-items: center;
}

.stickers-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    width: 100%;
}

.sticker {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.sticker:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08) !important;
    z-index: 10;
}

/* Monospace Gray-Paper Work Stickers */
.work-sticker {
    font-family: var(--font-mono);
    font-size: 0.88rem; /* Increased from 0.75rem for perfect visual balance */
    font-weight: 600;
    color: #475569;
    background: #f1f5f9; /* Realistic grey-paper */
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    box-shadow: 1px 2px 4px rgba(15, 23, 42, 0.03);
}

/* Cozy Handwritten Personal Stickers */
.personal-sticker {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px 4px 12px 12px;
    box-shadow: 2px 3px 6px rgba(15, 23, 42, 0.04);
}

.sticker:nth-child(1) { transform: rotate(-2deg); }
.sticker:nth-child(2) { transform: rotate(3deg); }
.sticker:nth-child(3) { transform: rotate(-1.5deg); }
.sticker:nth-child(4) { transform: rotate(2deg); }
.sticker:nth-child(5) { transform: rotate(-3deg); }
.sticker:nth-child(6) { transform: rotate(1.5deg); }
.sticker:nth-child(7) { transform: rotate(-1deg); }
.sticker:nth-child(8) { transform: rotate(2.5deg); }
.sticker:nth-child(9) { transform: rotate(-2.5deg); }

.sticker-cream {
    background-color: #fffbeb; /* Soft pastel cream */
    color: #b45309; /* Cozy amber text */
    border: 1px solid #fef3c7;
}

.sticker-sage {
    background-color: #f0fdf4; /* Soft pastel sage */
    color: #15803d; /* Cozy green text */
    border: 1px solid #dcfce7;
}

.sticker-sky {
    background-color: #f0f9ff; /* Soft pastel sky */
    color: #0369a1; /* Cozy sky blue text */
    border: 1px solid #e0f2fe;
}

/* Zero-Height Flow Pinner for Separator */
.separator-flow-wrapper {
    position: sticky;
    top: 6rem;
    height: 0;
    overflow: visible;
    align-self: start;
    z-index: 10;
}

/* Rotated Vertical Book-Spine Column Separator */
.column-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 680px; /* Increased to fit the scaled up rotated brand name */
    user-select: none;
    pointer-events: none;
    width: 0; /* Mathematical zero-width layout helper */
    overflow: visible; /* Allows rotated brand text to pop out */
    margin-left: -2.75rem; /* Puts the spine exactly centered inside the 5.5rem gap */
}

.separator-line {
    width: 1px;
    background: var(--border-color);
    flex-grow: 1;
}

.separator-text-wrapper {
    height: 320px; /* Increased from 150px to house the 2x rotated text length */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.separator-text {
    font-family: var(--font-mono);
    font-size: 1.7rem; /* Doubled from 0.85rem as requested! */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    transform: rotate(-90deg);
    white-space: nowrap;
    position: absolute;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Logbook Callout Styling */
.logbook-section {
    margin-top: 3rem;
    padding: 2.25rem;
    background-color: #f8fafc; /* Warm, ultra-light slate background */
    border-left: 4px solid var(--accent-primary); /* Royal Indigo brand accent spine */
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.01);
}

.logbook-section h3 {
    margin-top: 0 !important;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.logbook-section p {
    font-family: var(--font-serif);
    font-size: 1.08rem !important; /* Elegant slightly wider editorial serif */
    line-height: 1.75;
}

.logbook-section h4 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
