﻿/* --- System Themes & Variables --- */
:root {
  --bg-base: #0a0e14;
  --bg-panel: rgba(16, 23, 34, 0.7);
  --border-color: rgba(0, 242, 254, 0.2);
  --border-color-active: rgba(0, 242, 254, 0.8);
  --neon-cyan: #00f2fe;
  --neon-amber: #ffb300;
  --text-primary: #e2e8f0;
  --text-muted: #64748b;
  --font-mono: 'Fira Code', 'JetBrains Mono', 'Source Code Pro', monospace;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
}
/* --- Base Framework Elements --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Background grid schematic lines */
.blueprint-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}
.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px;
}
.portfolio-container strong {
  color: #fff;
  /* Forces bold text to be crisp, pure white */
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  /* Gives it a subtle, high-tech glow */
}
@media (min-width: 768px) {
  .portfolio-container {
    padding: 20px;
  }
}
/* --- Navigation & Brand Header --- */
.blueprint-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 10px;
  font-family: var(--font-mono);
}
@media (min-width: 768px) {
  .blueprint-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.monospaced {
  font-family: var(--font-mono);
}
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--neon-cyan);
  border-radius: 50%;
  margin-right: 8px;
}
.pulsing {
  animation: pulse 2s infinite alternate;
}
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4);
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 8px 2px rgba(0, 242, 254, 0.8);
  }
}
.blueprint-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
@media (min-width: 768px) {
  .blueprint-nav {
    gap: 20px;
  }
}
.blueprint-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.blueprint-nav a:hover {
  color: var(--neon-cyan);
}
.blueprint-nav .btn-download {
  color: var(--neon-amber);
  font-weight: bold;
}
/* --- Containers / Layout Architecture --- */
.section-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  margin-top: 25px;
  backdrop-filter: blur(4px);
}
@media (min-width: 768px) {
  .section-panel {
    margin-top: 40px;
  }
}
.panel-header {
  background: rgba(0, 242, 254, 0.04);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 15px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}
.panel-body {
  padding: 20px;
}
@media (min-width: 768px) {
  .panel-body {
    padding: 40px;
  }
}
.glitch-text {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #fff;
}
@media (min-width: 768px) {
  .glitch-text {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }
}
.lead-text {
  font-size: 1rem;
  color: var(--text-primary);
  max-width: 800px;
}
@media (min-width: 768px) {
  .lead-text {
    font-size: 1.15rem;
  }
}
/* --- Interactive Diagrams (Responsive Canvas Configuration) --- */
.blueprint-layout {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
@media (min-width: 992px) {
  .blueprint-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
  }
}
/* Mobile: Becomes an option list. Desktop: Architectural system visual mapping map */
.diagram-canvas {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 45px 15px 15px 15px;
  position: relative;
}
@media (min-width: 992px) {
  .diagram-canvas {
    min-height: 380px;
    padding: 0;
    display: block;
    /* Native absolute blueprint mappings layout rules active */
  }
}
.diagram-instruction {
  position: absolute;
  top: 15px;
  left: 15px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.diagram-node {
  cursor: pointer;
  background: rgba(16, 23, 34, 0.5);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
@media (min-width: 992px) {
  .diagram-node {
    position: absolute;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    padding: 0;
    display: block;
    text-align: center;
  }
}
.node-dot {
  width: 12px;
  height: 12px;
  background: var(--bg-base);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .node-dot {
    margin: 0 auto 6px;
    width: 14px;
    height: 14px;
  }
}
.node-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.diagram-node:hover,
.diagram-node.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.05);
}
@media (min-width: 992px) {
  .diagram-node:hover,
  .diagram-node.active {
    background: transparent;
  }
}
.diagram-node:hover .node-dot,
.diagram-node.active .node-dot {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  background: var(--neon-cyan);
}
.diagram-node:hover .node-label,
.diagram-node.active .node-label {
  color: #fff;
}
/* Desktop-Only Interconnect Visual Vectors */
.diagram-line {
  display: none;
}
@media (min-width: 992px) {
  .diagram-line {
    display: block;
    position: absolute;
    background: rgba(0, 242, 254, 0.12);
    height: 1px;
    pointer-events: none;
  }
  .diagram-line.horizontal {
    height: 1px;
  }
  .diagram-line.angled-up {
    transform: rotate(-22deg);
    transform-origin: top left;
  }
  .diagram-line.angled-down {
    transform: rotate(22deg);
    transform-origin: top left;
  }
}
/* Logging Component Interface Output */
.log-display {
  padding-top: 10px;
}
@media (min-width: 992px) {
  .log-display {
    border-left: 1px solid var(--border-color);
    padding-left: 30px;
    padding-top: 0;
  }
}
.log-content {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}
.log-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.log-content h3 {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  margin-bottom: 5px;
  font-size: 1.15rem;
}
.log-meta {
  font-size: 0.8rem;
  color: var(--neon-amber);
  font-family: var(--font-mono);
  margin-bottom: 15px;
}
.log-description {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.log-description strong {
  color: #fff;
}
.tag-cloud span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(0, 242, 254, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  margin-right: 6px;
  margin-bottom: 6px;
}
/* --- Telemetry Metrics Core Grid --- */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
@media (min-width: 600px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.metric-card {
  border: 1px dashed var(--border-color);
  padding: 25px 15px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 4px;
}
.metric-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}
/* --- Secure Communications Grid Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
.contact-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-card:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.03);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-amber);
  margin-bottom: 6px;
}
.contact-value {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 0.9rem;
  word-break: break-all;
}
/* Anti-Spam Obfuscation Engine Layout Rules */
.dynamic-obfuscation {
  direction: rtl;
  unicode-bidi: bidi-override;
  text-align: left;
}
/* --- Structural Footer --- */
.blueprint-footer {
  text-align: center;
  margin-top: 50px;
  padding: 25px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
}
.footer-matrix {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--text-primary);
}
.footer-matrix span {
  letter-spacing: 0.5px;
}
/* --- IDE System File Explorer Components Framework --- */
.ide-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 !important;
  /* Allow the headers to touch edge container parameters */
}
@media (min-width: 850px) {
  .ide-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: 550px;
  }
}
.ide-sidebar {
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-color);
  padding: 15px;
}
@media (min-width: 850px) {
  .ide-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    padding: 20px;
  }
}
.ide-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-transform: uppercase;
}
/* File Tree Navigation Interactive States */
.file-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.folder-header {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.folder-contents {
  display: none;
  padding-left: 18px;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
/* Folder Opening Switch Mechanics */
.tree-folder.open .folder-contents {
  display: flex;
}
.file-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-left: 1px solid transparent;
  /* --- APPLY THESE CHANGE BLOCKS TO ENFORCE WRAPPING --- */
  display: flex;
  /* Converts block to flex container for children alignment */
  align-items: flex-start;
  /* Keeps the document icon aligned cleanly with the first text line */
  white-space: normal;
  /* OVERRIDES the old nowrap property to allow text breaking */
  word-break: break-word;
  /* Ensures ultra-long strings/underscores wrap inside boundaries */
  transition: all 0.2s;
}
/* Adds a tiny structural separation margin between the file icon and text string */
.file-icon {
  margin-right: 6px;
  flex-shrink: 0;
  /* Prevents the icon from squeezing flat when text wraps */
}
.file-item:hover {
  color: #fff;
  border-left-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.02);
}
.file-item.active {
  color: var(--neon-amber) !important;
  border-left-color: var(--neon-amber);
  background: rgba(255, 179, 0, 0.04);
}
/* Right Content Box Screen Engine */
.ide-preview {
  padding: 20px;
  background: rgba(0, 0, 0, 0.1);
}
@media (min-width: 850px) {
  .ide-preview {
    padding: 40px;
  }
}
.preview-welcome {
  font-size: 0.9rem;
  border: 1px dashed var(--border-color);
  padding: 30px;
  text-align: center;
}
.neon-amber-text {
  color: var(--neon-amber);
}
/* --- Technical Editorial Reader Subsystem --- */
.article-reader {
  color: var(--text-primary);
  max-width: 100%;
  /* Hardcore Code Inlining Sub-Containers */
}
.article-reader .article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.article-reader h1 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.article-reader h2 {
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: var(--font-sans);
}
.article-reader h3 {
  font-size: 1.1rem;
  color: var(--neon-amber);
  /* Accents sub-sections with technical warning amber */
  margin-top: 25px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  /* Switches to monospace to emphasize code/system mechanics */
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.article-reader h3::before {
  content: ">> ";
  color: var(--neon-cyan);
  margin-right: 6px;
  font-weight: bold;
}
.article-reader p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
}
.article-reader .code-snippet-block {
  background: #05070a;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 25px 0;
  overflow: hidden;
}
.article-reader .snippet-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  padding: 6px 15px;
  color: var(--text-muted);
}
.article-reader .code-snippet-block pre {
  padding: 15px;
  overflow-x: auto;
}
.article-reader .code-snippet-block code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a9b7c6;
  /* Classic IDE slate text accent coloring */
}
/* --- Author Profile Specification Panel --- */
.author-profile-panel {
  margin-top: 50px;
  border-top: 1px dashed var(--border-color);
  padding-top: 30px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
}
.author-meta-tag {
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--bg-base);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-amber);
  letter-spacing: 1px;
}
.author-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 25px 20px;
}
@media (min-width: 600px) {
  .author-card-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
  }
}
/* Technical Avatar Frame Placeholder */
.author-avatar-stub {
  width: 70px;
  /* Increased slightly to look better with a real photograph */
  height: 70px;
  border: 1px solid var(--border-color-active);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  /* Masks corners to fit the border-radius perfectly */
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
  /* Slight blueprint glow */
}
/* Enforces precise headshot clipping bounds */
.author-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prevents squishing, crops tightly like an executive bio profile card */
  filter: grayscale(40%) contrast(110%);
  /* Optional: Blends the image closer to a clean tech look */
  transition: filter 0.3s ease;
}
/* Subtle mouse interaction hint */
.author-profile-panel:hover .author-headshot {
  filter: grayscale(0%) contrast(100%);
}
.avatar-icon {
  font-size: 1.6rem;
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.author-bio-content h4 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.author-bio-content p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 15px !important;
  /* Forces separation override */
}
/* Micro Grid Interaction Vectors */
.author-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.author-node-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.author-node-link:hover {
  border-color: var(--neon-cyan);
  color: #fff;
  background: rgba(0, 242, 254, 0.04);
}
.author-node-link.youtube-accent:hover {
  border-color: #ff4444;
  /* Clean crimson hint for the YouTube callout action button */
  background: rgba(255, 68, 68, 0.04);
}
.link-symbol {
  margin-right: 6px;
  font-size: 0.85rem;
}
/* Centers FontAwesome v3 inline vectors with accompanying text streams */
.contact-label i,
.author-node-link i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  font-size: 1rem;
  /* Adjust if you want them slightly sharper/larger */
}
/* Specific visual override since your author layout already maps out a custom margin parameter */
.link-symbol {
  margin-right: 6px !important;
}
/* --- Blueprint Deployable Artifact Controls --- */
.artifact-links-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px dotted var(--border-color);
  padding-top: 15px;
}
.btn-artifact {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
}
/* Core link color accents */
.btn-artifact.src-link {
  color: var(--neon-cyan);
}
.btn-artifact.demo-link {
  color: var(--neon-amber);
}
.btn-artifact:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}
.btn-artifact.demo-link:hover {
  background: rgba(255, 179, 0, 0.05);
  border-color: var(--neon-amber);
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.2);
}
.btn-artifact i {
  margin-right: 6px;
  font-size: 0.85rem;
}
/* Responsive Hide Rules */
@media (max-width: 849px) {
  .mobile-hide {
    display: none !important;
  }
}
/* --- Flex Responsive Header Bar Wrapper --- */
.article-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Compact Mobile Command Execution Toggle Button */
.mobile-drawer-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-amber);
  background: rgba(255, 179, 0, 0.05);
  border: 1px solid var(--neon-amber);
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.mobile-drawer-toggle:hover {
  background: var(--neon-amber);
  color: #000;
}
@media (min-width: 850px) {
  .mobile-drawer-toggle {
    display: none !important;
    /* Wholly strip action button overlay from deep desktop frames */
  }
}
/* --- Responsive Sidebar Architecture Override --- */
.ide-sidebar {
  background: #0f141c;
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  /* Mobile-First Offscreen Transition Layout Framework */
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  z-index: 99;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}
/* Toggled Visible State on Mobile Devices */
.ide-sidebar.mobile-active {
  display: block;
}
@media (min-width: 850px) {
  .ide-sidebar {
    display: block !important;
    /* Force render structural elements back to primary page layout columns */
    position: static;
    width: auto;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    box-shadow: none;
  }
}
/* --- Document Structural Flow Adjustments --- */
.ide-container {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Stacks sidebar and content linearly in the DOM flow on mobile */
}
@media (min-width: 850px) {
  .ide-container {
    display: grid;
    grid-template-columns: 280px 1fr;
  }
}
.ide-sidebar {
  background: #0f141c;
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  /* --- FIXED FOR MOBILE: Kept inside DOM Flow --- */
  display: none;
  /* Hidden by default until requested */
  position: relative;
  /* Pulls it out of absolute space so it naturally pushes down components */
  top: 0;
  width: 100%;
  z-index: 10;
}
/* Toggled Visible State on Mobile: Seamlessly pushes the article text and footer downward */
.ide-sidebar.mobile-active {
  display: block;
  margin-bottom: 15px;
  /* Adds a safety margin before the article content begins */
}
@media (min-width: 850px) {
  .ide-sidebar {
    display: block !important;
    /* Re-locks into grid column layout on desktop screens */
    position: static;
    width: auto;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    margin-bottom: 0;
  }
}