/* ... (Previous header/nav/hero styles remain mostly same, adding new section styles below) ... */

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-purple: #a855f7;
    --gray-text: #666;
    --light-gray: #f5f5f5;
    --border-color: #e5e5e5;
    --font-main: 'Work Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    font-family: var(--font-mono);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 4rem;
    /* For footer space */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--gray-text);
    font-size: 0.95rem;
    font-weight: 400;
}

nav a.active {
    color: var(--accent-purple);
    font-weight: 700;
}

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

.lang-switch {
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 700;
}

.lang-switch span.active {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 4rem auto 2rem;
}

.profile-image-container {
    flex: 0 0 300px;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
}

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

.profile-content {
    flex: 1;
}

.profile-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.profile-content h1 .flag {
    font-size: 2rem;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
}

.profile-content p {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.8;
}

.highlight-link {
    color: var(--accent-purple);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Newsletter Section */
.newsletter {
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.newsletter-box {
    border: 1px solid var(--text-color);
    padding: 3rem;
    background-color: var(--light-gray);
}

.newsletter-box h2 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.check {
    font-weight: bold;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-right: none;
}

.newsletter-form button {
    background: var(--text-color);
    color: #fff;
    border: 1px solid var(--text-color);
    padding: 0 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 700;
}

.spam-notice {
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* About Section */
.about {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 800px;
}

.founder-note {
    color: var(--accent-purple);
    font-weight: 700;
}

.highlight-text {
    color: var(--accent-purple);
}

.ai-banner {
    background: #f9f9f9;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    margin: 4rem 0;
}

.banner-track {
    display: inline-flex;
    gap: 2rem;
    animation: scroll 20s linear infinite;
}

.banner-track span {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Journal Section */
.journal {
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.journal h2 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.journal-entry {
    margin-bottom: 4rem;
}

.journal-entry h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.journal-entry .date {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.excerpt-highlight {
    color: var(--accent-purple);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.excerpt {
    margin-bottom: 1rem;
    max-width: 800px;
}

.read-more {
    font-weight: 700;
    color: var(--text-color);
    text-decoration: underline;
    font-size: 0.9rem;
}

.view-all-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-color);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    margin-top: 1rem;
}

/* Mural Section */
.mural {
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.mural h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.mural>p {
    color: var(--gray-text);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.mural-box {
    border: 1px solid var(--text-color);
    padding: 2rem;
    margin-bottom: 4rem;
}

.mural-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mural-box input,
.mural-box textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 0.8rem;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    resize: none;
}

.mural-box textarea {
    height: 100px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.7rem;
    color: #ccc;
}

.mural-box button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.mural-box button:hover {
    background: var(--accent-purple);
}

.mural-empty-state {
    text-align: center;
    color: #ddd;
    margin-bottom: 2rem;
}

.icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.contact h2 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-group {
    margin-bottom: 3rem;
}

.contact-group h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-links a,
.email-link {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 700;
}

.label {
    width: 30px;
    display: inline-block;
    color: var(--gray-text);
}

/* Mural Messages List */
.messages-container {
    max-width: 1000px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mural-message-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.msg-name {
    font-weight: 700;
    color: var(--text-color);
}

.msg-date {
    color: var(--gray-text);
}

.msg-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Footer */
footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icons a {
    color: #ccc;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: var(--text-color);
}

/* Projects Page */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    margin-bottom: 4rem;
    margin-top: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-intro {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.tag {
    background: #f0e6fa;
    color: var(--accent-purple);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link {
    color: #ccc;
    text-decoration: underline;
    font-size: 0.9rem;
    word-break: break-all;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-detail p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.project-status .detail-label {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    display: inline-block;
}

.status-dot.active {
    background: #22c55e;
}

/* Single Article */
.single-article {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.single-article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.highlight-text-large {
    font-size: 1.3rem;
    color: var(--accent-purple);
    font-style: italic;
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent-purple);
    padding-left: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-color);
}

/* On The Road Page */
.on-the-road-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 4rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-container {
    position: relative;
    width: 100%;
    background: #fdfdfd;
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.world-map {
    width: 100%;
    height: auto;
    opacity: 0.1;
    /* Very light gray map as per screenshot */
    filter: grayscale(100%);
    pointer-events: none;
}

.pin {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.pin-dot {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-purple);
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.pin-pulse {
    display: block;
    width: 300%;
    height: 300%;
    background: var(--accent-purple);
    border-radius: 50%;
    position: absolute;
    top: -100%;
    left: -100%;
    opacity: 0.5;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.coming-soon-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

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

.coming-soon-text {
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--gray-text);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .on-the-road-container {
        padding: 0 1.5rem;
    }

    .map-container {
        min-height: 300px;
    }

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

@media (max-width: 768px) {
    header {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }

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

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

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .newsletter-box,
    .mural-box {
        padding: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input {
        border-right: 1px solid var(--text-color);
    }

    .newsletter-form button {
        padding: 1rem;
    }

    .article-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .back-home-btn {
        position: static;
        margin-top: 1rem;
    }
}

/* Article Page Specifics */
.article-page-container {
    max-width: 1400px;
    margin: 4rem auto 6rem;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 6rem;
    align-items: start;
}

.article-sidebar {
    position: sticky;
    top: 2rem;
}

.article-sidebar h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.article-list {
    list-style: none;
    margin-bottom: 3rem;
}

.article-list li {
    margin-bottom: 1rem;
}

.article-list a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 0;
}

.article-list li.active a {
    border: 1px solid var(--text-color);
    padding: 1rem;
    font-weight: 700;
}

.article-list .title {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.article-list .date {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-text);
    font-weight: 400;
}

.back-home-btn {
    display: block;
    border: 1px solid var(--text-color);
    padding: 0.8rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.full-article h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.full-article .subtitle {
    font-size: 1.5rem;
    color: var(--accent-purple);
    font-style: italic;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.article-date {
    color: #ccc;
    font-family: var(--font-mono);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.article-body ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.link-block {
    margin: 2rem 0;
    padding-left: 0;
}

.link-block a {
    color: var(--text-color);
    text-decoration: underline;
    word-break: break-all;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-style: italic;
    margin-top: 3rem;
}

/* Table and Callout styles for Archives */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.article-body th,
.article-body td {
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: left;
}

.article-body th {
    background-color: var(--light-gray);
    font-weight: 700;
}

.article-body aside {
    background-color: #fef9c3;
    border-left: 4px solid #facc15;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #854d0e;
}

.article-body aside p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .article-body table {
        display: block;
        overflow-x: auto;
    }
}

/* Mobile Adjustments for Article Pages - Fix for text visibility */
/* Mobile Adjustments for Article Pages - Fix for text visibility */
@media (max-width: 1024px) {
    .article-page-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 1.5rem !important;
        grid-template-columns: none !important;
        gap: 2rem !important;
    }

    /* Sidebar stays at Top (Default Order) */
    .article-sidebar {
        position: relative !important;
        width: 100% !important;
        margin-bottom: 2rem !important;
        margin-top: 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        border-top: none !important;
        padding-bottom: 2rem;
        padding-top: 0;
        z-index: 10;
        /* No 'order' property needed, source order applies */
    }

    /* Article follows Sidebar */
    .full-article {
        width: 100% !important;
        position: relative;
        z-index: 5;
    }

    .full-article h1 {
        font-size: 2rem !important;
        word-break: break-word;
        line-height: 1.2;
    }
}