/* ==========================================================================
   eweka.dev — Clean Minimal Pixel Aesthetic
   Font: IBM VGA 8x16 (authentic Linux console)
   ========================================================================== */

@font-face {
  font-family: "IBMVGA8";
  src: url("../assets/fonts/Web437_IBM_VGA_8x16.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --bg: #000000;
  --bg-100: #101010;
  --bg-200: #1a1a1a;
  --fg: #ffffff;
  --fg-2: #d4d4d8;
  --fg-3: #a1a1aa;
  --fg-4: #71717a;
  --fg-5: #52525b;
  --accent: #852bca;
  --accent-l: #bc7aff;
  --cyan: #67e8f9;
  --green: #06b600;
  --font: "IBMVGA8", "VT323", monospace;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #222;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.12s;
}

a:hover {
  color: var(--accent-l);
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  opacity: 0.45;
  display: block;
  position: absolute;
  inset: 0;
  transition: opacity 1s ease-in-out;
}

.bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 40%,
      rgba(0, 0, 0, 0.5) 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.82);
  border-left: 1px solid var(--bg-100);
  border-right: 1px solid var(--bg-100);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.banner {
  padding: 20px 14px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
}

.banner::-webkit-scrollbar {
  display: none;
}

.ascii {
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.15;
  display: inline-block;
  white-space: pre;
  user-select: none;
  text-align: left;
  transition: filter 0.4s ease;
}

.ascii:hover {
  filter: hue-rotate(30deg);
}

.a1 {
  color: var(--accent-l);
}

.a2 {
  color: #a06ee0;
}

.a3 {
  color: var(--accent-l);
}

.a4 {
  color: #a06ee0;
}

.a5 {
  color: var(--accent-l);
}

.a6 {
  color: var(--accent);
}

@media (min-width: 640px) {
  .ascii {
    font-size: 15px;
  }
}

.banner-sub {
  color: var(--fg-4);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.banner-sub .bracket,
.b {
  color: var(--fg-5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--bg-100);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  color: var(--fg-3);
  font-size: 15px;
  user-select: none;
  transition: color 0.12s;
}

.nav-link .b {
  color: var(--fg-5);
  transition: color 0.12s;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover .b {
  color: var(--accent-l);
}

.nav-link.active {
  color: #fff;
}

.nav-link.active .b {
  color: var(--accent);
  font-weight: bold;
}

.nav-right {
  font-size: 14px;
  color: var(--fg-4);
}

.nav-clock .b {
  color: var(--fg-5);
}

#clock {
  color: var(--fg-2);
}

.divider {
  color: var(--bg-200);
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.content {
  flex-grow: 1;
  padding: 22px 22px 40px;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  margin-bottom: 28px;
}

h1 {
  font-size: 16px;
  font-weight: normal;
  color: #fff;
  margin-bottom: 10px;
}

h2 {
  font-size: 15px;
  font-weight: normal;
  color: #fff;
  margin-bottom: 10px;
  margin-top: 0;
}

p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.hl {
  color: var(--accent-l);
}

.hl-c {
  color: var(--cyan);
}

.hl-g {
  color: var(--green);
}

.contact-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.char-gif {
  max-height: 150px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.grid-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
}

.key {
  color: var(--fg-4);
  min-width: 120px;
  flex-shrink: 0;
}

.val {
  color: var(--fg-2);
}

.val a {
  color: var(--accent-l);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.val a:hover {
  color: #fff;
}

.console {
  font-size: 15px;
  line-height: 1.55;
}

.console-mini {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--bg-200);
  padding: 10px 14px;
  margin-bottom: 8px;
}

.console-head {
  color: #fff;
  margin-bottom: 2px;
}

.console-sub {
  color: var(--fg-4);
  margin-bottom: 14px;
}

.console-cat {
  color: #fff;
  font-weight: normal;
  font-size: 15px;
  margin: 16px 0 6px;
}

.console-sep {
  border-top: 1px dashed var(--bg-200);
  margin: 20px 0;
}

.crow {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  padding: 1px 0;
  transition: background 0.08s;
}

.crow:hover {
  background: rgba(255, 255, 255, 0.03);
}

.c-ok {
  color: var(--green);
  white-space: nowrap;
}

.c-t {
  color: var(--fg-4);
  white-space: nowrap;
}

.c-n {
  color: #fff;
}

.c-n.hl {
  color: var(--accent-l);
}

.c-l {
  color: var(--accent-l);
  white-space: nowrap;
}

.c-l.cyan {
  color: var(--cyan);
}

.specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.spec {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.skey {
  color: var(--fg-4);
  min-width: 90px;
}

.sval {
  color: var(--fg-2);
}

.plist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pcard {
  border-left: 2px solid var(--bg-200);
  padding-left: 14px;
  transition: border-color 0.15s;
}

.pcard:hover {
  border-left-color: var(--accent-l);
}

.phead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.pname {
  color: #fff;
  font-size: 15px;
}

.ptags {
  color: var(--fg-4);
  font-size: 13px;
}

.pdesc {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 6px;
}

.plinks {
  font-size: 14px;
}

.plinks a {
  color: var(--accent-l);
}

.plinks a:hover {
  color: #fff;
}

.small-hint {
  font-size: 13px;
  color: var(--fg-4);
}

.small-hint a {
  color: var(--accent-l);
}

.small-hint a:hover {
  color: #fff;
}

.foot {
  padding: 14px 22px;
  border-top: 1px solid var(--bg-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-5);
}

.foot a {
  color: var(--fg-4);
  margin-left: 6px;
}

.foot a:hover {
  color: var(--accent-l);
}

.bg-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  color: var(--fg-5);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  padding: 6px 12px;
  transition: all 0.25s ease;
}

.bg-switcher:hover {
  color: #fff;
}

.bg-switcher .bracket {
  color: var(--fg-5);
  transition: color 0.25s ease;
  opacity: 0.5;
}

.bg-switcher:hover .bracket {
  color: var(--accent-l);
  opacity: 1;
}

@media (max-width: 640px) {
  .page {
    border: none;
  }

  .content {
    padding: 16px 14px 30px;
  }

  .nav {
    padding: 8px 14px;
  }

  .key,
  .skey {
    min-width: 95px;
  }

  .banner {
    padding: 14px 8px 6px;
  }

  .char-gif {
    max-height: 120px;
  }

  .bg-switcher {
    bottom: 10px;
    right: 10px;
    font-size: 13px;
    padding: 4px 8px;
  }
}