:root {
    --bg-color: #0d0d0d;
    --card-bg: #161616;
    --text-main: #e0e0e0;
    --text-dim: #888888;
    --accent: #00ff41; 
    --border: #252525;
    --header-steel: #0a1016;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    position: relative;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 50% -20%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 58%),
        radial-gradient(90% 120% at 85% 40%, rgba(0, 180, 255, 0.13), rgba(0, 0, 0, 0) 65%),
        linear-gradient(160deg, #03070c 0%, var(--header-steel) 52%, #060b10 100%);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            -14deg,
            rgba(170, 210, 230, 0.09) 0px,
            rgba(170, 210, 230, 0.09) 1px,
            rgba(8, 18, 28, 0) 4px,
            rgba(8, 18, 28, 0) 7px
        );
    opacity: 0.42;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 42%, rgba(0, 255, 65, 0.18), rgba(0, 255, 65, 0) 21%),
        radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0) 30%);
    opacity: 0.6;
}

header .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 15px; }
.brand-link { text-decoration: none; color: inherit; }
.logo-img { height: 40px; width: auto; filter: invert(1); transition: 0.3s ease; }
.brand:hover .logo-img { transform: scale(1.1); }
h1 { font-size: 1.2rem; margin: 0; letter-spacing: -1px; }

nav a {
    color: #a9b7c3;
    text-decoration: none;
    margin-left: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
    border-color: rgba(0, 255, 65, 0.45);
    background-color: rgba(0, 255, 65, 0.08);
    box-shadow: inset 0 0 8px rgba(0, 255, 65, 0.2), 0 0 12px rgba(0, 255, 65, 0.35);
    transform: translateY(-1px);
    outline: none;
}

.post-nav {
    position: relative;
    margin-top: 24px;
    margin-bottom: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background:
        radial-gradient(160% 160% at 70% -30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 45%),
        repeating-linear-gradient(
            -14deg,
            rgba(170, 210, 230, 0.08) 0px,
            rgba(170, 210, 230, 0.08) 1px,
            rgba(8, 18, 28, 0) 4px,
            rgba(8, 18, 28, 0) 7px
        ),
        linear-gradient(160deg, #03070c 0%, var(--header-steel) 56%, #060b10 100%);
}



/* --- Hero Section & Glitch Effect --- */
.hero { padding: 60px 0; }
.hero-content { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.typewriter { color: var(--accent); font-weight: bold; }
.loading-dots { display: inline-flex; gap: 2px; margin-left: 2px; }
.loading-dots .dot {
    opacity: 0.25;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.25);
    animation: dot-seq 1s infinite;
}
.loading-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dots .dot:nth-child(3) { animation-delay: 0.4s; }
.hero-desc { color: var(--text-dim); max-width: 600px; }

.hero-visual {
    flex: 0 0 320px;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-img {
    width: 100%; height: 100%; object-fit: cover;
    mix-blend-mode: screen;
    animation: hero-flicker 4s infinite;
}

.hero-visual::before, .hero-visual::after {
    content: ""; position: absolute; inset: 0;
    background-image: url('assets/hero-image.png');
    background-size: cover; background-position: center;
    pointer-events: none; opacity: 0.8; mix-blend-mode: screen;
}
.hero-visual::before { animation: glitch-1 2.6s infinite linear; }
.hero-visual::after { animation: glitch-2 3s infinite linear; }

.how-to-view .hero-visual {
    background: #000;
}

/* --- Log Entries & Ubiquitous Thumbnails --- */
.log-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 100px; }

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    transition: 0.2s;
}

.log-entry:hover { border-left-color: var(--accent); background: #1a1a1a; }
.log-info { flex: 1; }
.log-media {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.log-thumb {
    position: relative;
    flex: 0 0 220px; /* Downsized width */
    height: 120px;   /* Downsized height */
    background: #000;
    overflow: hidden;
    border: 1px solid var(--border);
}

.log-thumb::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255,0,0,0.03), rgba(0,255,0,0.01), rgba(0,0,255,0.03));
    background-size: 100% 2px, 3px 100%;
    z-index: 2; pointer-events: none;
}

.log-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.7; filter: grayscale(100%) brightness(0.8);
    transition: 0.3s;
}
.log-thumb img.thumb-contain {
    object-fit: contain;
    background: #000;
}
.log-entry:hover .log-thumb img { opacity: 1; filter: grayscale(0%) brightness(1); }

/* --- Global Typography & Footer --- */
.meta { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 10px; }
.btn-link { display: inline-block; margin-top: 15px; color: var(--accent); text-decoration: none; font-size: 0.8rem; }

.log-header {
    position: relative;
    padding: 22px 22px 14px;
    margin-bottom: 0;
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 100% at 50% -15%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%),
        radial-gradient(80% 90% at 8% 65%, rgba(0, 255, 65, 0.14), rgba(0, 255, 65, 0) 35%),
        repeating-linear-gradient(
            -14deg,
            rgba(170, 210, 230, 0.08) 0px,
            rgba(170, 210, 230, 0.08) 1px,
            rgba(8, 18, 28, 0) 4px,
            rgba(8, 18, 28, 0) 7px
        ),
        linear-gradient(160deg, #03070c 0%, var(--header-steel) 56%, #060b10 100%);
}

.log-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.8), rgba(0, 229, 255, 0.28));
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.log-header .meta {
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.7px;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: #7f8a94;
    opacity: 0.9;
}

.log-header h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    letter-spacing: -0.4px;
}

.log-header hr {
    margin: 12px 0 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.5), rgba(130, 150, 165, 0.35) 48%, rgba(130, 150, 165, 0.14));
}

footer {
    position: relative;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-dim);
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 50% 130%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%),
        radial-gradient(80% 100% at 12% 40%, rgba(0, 180, 255, 0.09), rgba(0, 0, 0, 0) 65%),
        linear-gradient(160deg, #03070c 0%, var(--header-steel) 52%, #060b10 100%);
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            -14deg,
            rgba(170, 210, 230, 0.08) 0px,
            rgba(170, 210, 230, 0.08) 1px,
            rgba(8, 18, 28, 0) 4px,
            rgba(8, 18, 28, 0) 7px
        );
    opacity: 0.35;
}

footer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 85% 48%, rgba(0, 255, 65, 0.12), rgba(0, 255, 65, 0) 24%);
    opacity: 0.55;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-legal {
    display: grid;
    gap: 6px;
}

.footer-legal p {
    margin: 0;
}

.footer-legal p:last-child {
    color: #9ba5ae;
    font-size: 0.68rem;
}

/* --- Interaction Controls --- */
.engagement-bar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
}

.eng-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    flex: 0 0 auto;
    text-shadow: 0 0 7px rgba(0, 255, 65, 0.45);
    box-shadow: inset 0 0 8px rgba(0, 255, 65, 0.15), 0 0 10px rgba(0, 255, 65, 0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.eng-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: repeating-linear-gradient(
        180deg,
        rgba(0, 255, 65, 0) 0px,
        rgba(0, 255, 65, 0.18) 1px,
        rgba(0, 255, 65, 0) 2px
    );
}

.eng-btn:hover {
    background-color: rgba(0, 255, 65, 0.08);
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.25), 0 0 14px rgba(0, 255, 65, 0.45);
    transform: translateY(-1px);
}

.eng-btn:hover::before {
    opacity: 1;
}

.eng-btn-pulse {
    animation: glitch-pulse 0.32s linear;
}

.post-engagement {
    margin: 0 0 24px;
    padding: 12px 14px 14px;
    border: 1px solid var(--border);
    border-top: none;
    background: linear-gradient(180deg, rgba(9, 17, 26, 0.85), rgba(7, 12, 18, 0.72));
    justify-content: flex-end;
}

.comments-panel {
    margin-top: 34px;
    padding: 18px;
    border: 1px solid var(--border);
    background: #101010;
}

.comments-panel h3 {
    margin-top: 0;
    color: var(--accent);
}

.comment-form {
    display: grid;
    gap: 12px;
}

.comment-form label {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: grid;
    gap: 6px;
}

.captcha-prompt {
    color: var(--accent);
    font-size: 0.72rem;
}

.comment-form input,
.comment-form textarea {
    background: #0a0a0a;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 10px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: 1px solid rgba(0, 255, 65, 0.6);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.25);
}

.comment-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.comment-item {
    border: 1px solid var(--border);
    background: #0a0a0a;
    padding: 10px;
}

.comment-meta {
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 7px;
}

.comment-body {
    margin: 0;
}

.comment-empty {
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* --- Animations --- */
@keyframes glitch-1 {
    0% { transform: translate(0,0); clip-path: inset(0 0 0 0); }
    8% { transform: translate(-6px,-2px); clip-path: inset(12% 0 74% 0); }
    18% { transform: translate(0,0); clip-path: inset(42% 0 38% 0); }
    100% { transform: translate(0,0); }
}
@keyframes glitch-2 {
    0% { transform: translate(0,0); }
    12% { transform: translate(6px,2px); clip-path: inset(30% 0 50% 0); }
    54% { transform: translate(3px,-1px); clip-path: inset(10% 0 70% 0); }
    100% { transform: translate(0,0); }
}
@keyframes hero-flicker { 0%,100% { opacity: 1; } 50% { opacity: 0.96; } }
@keyframes glitch-pulse {
    0% { transform: translateY(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 0); }
    100% { transform: translateY(0); }
}
@keyframes dot-seq {
    0%, 20% {
        opacity: 0.25;
        text-shadow: 0 0 4px rgba(0, 255, 65, 0.25);
    }
    40%, 70% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.85);
    }
    100% {
        opacity: 0.25;
        text-shadow: 0 0 4px rgba(0, 255, 65, 0.25);
    }
}

/* Responsive Stack */
@media (max-width: 800px) {
    .hero-content { flex-direction: column-reverse; }
    .log-entry { flex-direction: column-reverse; align-items: flex-start; }
    .log-media { width: 100%; flex: 0 0 auto; }
    .log-thumb { width: 100%; flex: 0 0 180px; }
    .engagement-bar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .eng-btn {
        font-size: 0.66rem;
        padding: 5px 6px;
    }
    .log-header { padding: 18px 14px 12px; }
    .post-engagement { padding: 10px 10px 12px; }
}

/* Status Dot - Green power indicator */
.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent), 0 0 25px rgba(0, 255, 65, 0.4);
    display: inline-block;
    margin-right: 8px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 15px var(--accent), 0 0 25px rgba(0, 255, 65, 0.4);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 20px var(--accent), 0 0 35px rgba(0, 255, 65, 0.6);
    }
}
/* --- Post-Specific Imagery --- */
.post-hero-visual, .post-inline-visual {
    margin: 24px auto;
    max-width: 860px;
    position: relative;
    border: 1px solid var(--border);
    background: #000;
    display: flex;
    gap: 20px;
}

.hero-image-group {
    flex: 1;
    position: relative;
}

.post-hero-visual img, .post-inline-visual img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    filter: contrast(1.1) brightness(0.9);
}

/* Captions for Technical Data */
.img-caption {
    display: block;
    padding: 10px;
    background: var(--card-bg);
    color: var(--accent);
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Apply scanlines to post images but keep them subtle */
.post-hero-visual::after, .post-inline-visual::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}
.miata-centermount-visual {
    display: block;
    max-width: 760px;
}
.miata-centermount-visual img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}
.miata-centermount-visual .img-caption {
    display: block;
}

.log-content {
    padding: 10px;
}
:root {
  --terminal-bg: #121212;
  --electric-blue: #00e5ff;
  --terminal-green: #4af626;
  --font-mono: 'JetBrains Mono', monospace;
}

.timeline-container {
  background: var(--terminal-bg);
  padding: 20px;
  font-family: var(--font-mono);
  color: #fff;
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--electric-blue); /* The "Bus" line */
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

/* The node connector dots */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--terminal-bg);
  border: 2px solid var(--terminal-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--terminal-green);
}

.date {
  font-weight: bold;
  color: var(--terminal-green);
  font-size: 0.9rem;
}

.content h3 {
  margin: 5px 0;
  color: var(--electric-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* --- TIMELINE SYSTEM OVERRIDE --- */

.timeline-container {
  /* This margin should match the indent of your 'MISSION_STATEMENT' paragraph */
  margin-left: 0px; 
  padding-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #00e5ff; /* Electric Blue Bus Line */
}

.timeline-item {
  position: relative;
  padding-left: 25px; /* Space between the blue line and your text */
  margin-bottom: 40px;
}

/* Terminal Node Circles */
.timeline-item::before {
  content: "";
  position: absolute;
  /* Centers circle exactly on the 2px line */
  left: -7px; 
  top: 4px;
  width: 12px;
  height: 12px;
  background: #121212; /* Matches your background */
  border: 2px solid #4af626; /* Terminal Green */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 246, 38, 0.6);
  z-index: 1;
}

.date {
  font-size: 0.85rem;
  color: #4af626; /* Terminal Green */
  margin-bottom: 4px;
}

.content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #00e5ff; /* Electric Blue */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.content p {
  margin: 8px 0 0 0;
  font-size: 0.95rem;
  color: #cccccc; /* Slightly dimmed text for readability */
  line-height: 1.4;
}
/* Aligning the Section Header with the Mission Statement */
.section-header {
  margin-left: -10px; /* Matches the timeline-container indent */
  margin-bottom: 20px;
  color: #fff; /* White to match your current screenshot style */
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Optional: Add a terminal-style prefix like '>>>' if you want more flair */
.section-header::before {
  content: ">>> ";
  color: #4af626; /* Terminal Green */
}
