/* about.css — page styles for about.html (CRT-wrapped) */

/* soften the CRT vignette so full-width sections stay readable */
.vignette {
  box-shadow: inset 0 0 130px rgba(0,0,0,0.9);
  background: radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.6) 100%);
}

/* ── scroll-snap inside CRT content area ── */
.crt-content {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vh, 48px) clamp(8px, 2vw, 24px);
  overflow-y: auto;
}
#sec-term { justify-content: center; align-items: center; }

/* ── section titles ── */
.sec-title {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 6px;
  text-shadow: 0 0 10px var(--crt-glow);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--crt-dim);
  margin-bottom: clamp(18px, 3vh, 32px);
  flex-shrink: 0;
}
.sec-hint {
  color: rgba(51,255,51,0.45);
  font-size: 12px;
  letter-spacing: 1px;
  margin: -12px 0 16px;
  flex-shrink: 0;
}

/* ── termynal ── */
#termynal {
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--crt-dim);
  border-radius: 8px;
  padding: 0 0 22px;
  max-width: 880px;
  width: 100%;
  min-height: 400px;
  color: var(--crt-color);
  font-size: clamp(14px, 1.5vw, 16.5px);
  line-height: 2;
  box-shadow: 0 0 24px rgba(0,0,0,0.7), 0 0 10px var(--crt-glow);
  overflow: hidden;
}
.term-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(51,255,51,0.07);
  border-bottom: 1px solid var(--crt-dim);
  padding: 9px 14px;
  margin-bottom: 20px;
}
.term-chrome-btns { display: flex; gap: 6px; }
.term-chrome-btns i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--crt-color);
  box-shadow: 0 0 4px var(--crt-glow);
}
.term-chrome-btns i:first-child { background: var(--crt-color); }
.term-chrome-title {
  color: var(--crt-dim);
  font-size: 11px;
  letter-spacing: 1px;
}
#termynal [data-ty] {
  display: block;
  color: var(--crt-color);
  padding: 0 clamp(20px, 3vw, 36px);
}
#termynal [data-ty="input"] { text-shadow: 0 0 5px var(--crt-glow); }
.ty-active::after {
  content: '\2588';
  color: var(--crt-color);
  text-shadow: 0 0 6px var(--crt-glow);
  animation: ty-blink 1s step-end infinite;
}
#termynal [data-ty]:not([data-ty="input"]):not([data-ty="progress"]) {
  color: var(--crt-dim);
  padding-left: calc(clamp(20px, 3vw, 36px) + 4px);
}
@keyframes ty-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── nav dots ── */
#nav-dots {
  position: sticky;
  top: 20px;
  float: right;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
  margin-left: 14px;
  margin-right: -2px;
}
.nav-dot {
  display: block;
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1px solid var(--crt-dim);
  transform: rotate(45deg);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
  text-decoration: none;
}
.nav-dot:hover { border-color: var(--crt-color); }
.nav-dot.active {
  background: var(--crt-color);
  border-color: var(--crt-color);
  box-shadow: 0 0 8px var(--crt-glow);
  transform: rotate(45deg) scale(1.25);
}

/* ── skill tree ── */
#skill-tree {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--crt-dim);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

/* ── timeline ── */
.timeline {
  position: relative;
  width: 100%;
  margin: 0;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  column-gap: 28px;
  padding: 22px 26px 22px 34px;
  margin-bottom: 18px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(51,255,51,0.10);
  border-left: 2px solid var(--crt-dim);
  border-radius: 0 6px 6px 0;
  transition: border-color .15s, background .15s;
}
.tl-item:hover {
  background: rgba(0,0,0,0.45);
  border-color: rgba(51,255,51,0.25);
  border-left-color: var(--crt-color);
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 32px;
  width: 10px;
  height: 10px;
  background: var(--crt-color);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--crt-glow);
  transition: box-shadow .15s, background .15s;
}
.tl-item:hover::before {
  background: #bfffbf;
  box-shadow: 0 0 16px var(--crt-glow);
}
.tl-date {
  grid-row: 1 / span 2;
  grid-column: 1;
  font-size: 12.5px;
  color: rgba(51,255,51,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: right;
  padding-top: 4px;
  white-space: nowrap;
}
.tl-title {
  grid-column: 2;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  text-shadow: 0 0 7px var(--crt-glow);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.tl-desc {
  grid-column: 2;
  font-size: clamp(12px, 1.3vw, 13.5px);
  opacity: 0.8;
  line-height: 1.75;
}
.tl-desc strong {
  color: var(--crt-color);
  text-shadow: 0 0 5px var(--crt-glow);
}
.tl-desc ul {
  padding-left: 2px;
  margin-top: 8px;
  list-style: none;
}
.tl-desc ul li {
  font-size: inherit;
  margin-bottom: 4px;
  padding-left: 18px;
  position: relative;
}
.tl-desc ul li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--crt-color);
  text-shadow: 0 0 5px var(--crt-glow);
}

/* ── language cards ── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  max-width: 1150px;
  align-self: center;
}
.lang-card {
  background: rgba(0,0,0,0.40);
  border: 1px solid var(--crt-dim);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2vw, 24px);
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lang-card:hover {
  border-color: var(--crt-color) !important;
  box-shadow: 0 0 18px var(--crt-glow);
  transform: translateY(-3px);
}
.lang-card img {
  height: clamp(48px, 5.5vw, 64px);
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 6px var(--crt-glow));
  background: rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 8px;
}
/* dark badge-style icons vanish on the CRT — brighten them */
.lang-card img[alt="Bash"] { filter: brightness(2.4) drop-shadow(0 0 6px var(--crt-glow)); }
.lang-card img[alt="Rust"] { filter: brightness(1.6) drop-shadow(0 0 6px var(--crt-glow)); }
.lang-card h3 {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 6px var(--crt-glow);
  margin-bottom: 10px;
}
.lang-card p {
  font-size: clamp(11px, 1.2vw, 12.5px);
  opacity: 0.7;
  line-height: 1.65;
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .crt-content { scroll-behavior: auto; scroll-snap-type: none; }
  .snap { scroll-snap-align: none; height: auto; min-height: auto; }
  .lang-card:hover { transform: none; }
}

/* ── tablet ── */
@media (max-width: 1100px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── mobile ── */
@media (max-width: 768px) {
  #nav-dots { display: none; }
  .snap { height: auto; min-height: auto; scroll-snap-align: none; padding: 28px 0; }
  .crt-content { scroll-snap-type: none; }
  .lang-grid { grid-template-columns: 1fr; }
  #termynal { min-height: 300px; }
  /* The skill-tree sigma canvas needs an explicit height:
     on desktop the parent .snap is height:100% inside a
     scroll-snap viewport, so flex:1 fills the remaining
     space. On mobile scroll-snap is disabled and .snap
     collapses to height:auto, which would leave #skill-tree
     at 0px (and the sigma canvases invisible). */
  #sec-skills { min-height: 70vh; }
  #skill-tree { flex: none; height: 60vh; min-height: 360px; }
  .tl-item {
    grid-template-columns: 1fr;
    row-gap: 4px;
    padding: 16px 18px 16px 24px;
  }
  .tl-date { grid-row: auto; grid-column: 1; text-align: left; white-space: normal; }
  .tl-title, .tl-desc { grid-column: 1; }
  .tl-item::before { top: 24px; }
}
