/* ============================================================
   future.css — the 2077 layer. Same person, seen from the future.
   The amber phosphor survives the wipe as the brand constant;
   everything else goes deep-indigo glass with ice-cyan live data.
   ============================================================ */

#future-root {
  --f-bg: #060913;
  --f-panel: rgba(14, 20, 36, 0.72);
  --f-line: rgba(125, 211, 252, 0.14);
  --f-amber: #ffb454;
  --f-cyan: #7dd3fc;
  --f-text: #e7ecf5;
  --f-dim: #8a94ad;
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  position: fixed; inset: 0; z-index: 70;
  background: var(--f-bg);
  color: var(--f-text);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.65;
}

.f-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: auto; }

/* ambient: two soft radial glows + fine grid, fixed to the layer */
.f-ambient {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(720px 480px at 82% -8%, rgba(255, 180, 84, .13), transparent 60%),
    radial-gradient(820px 540px at -10% 42%, rgba(125, 211, 252, .09), transparent 60%),
    linear-gradient(rgba(125, 211, 252, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.f-wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }

#future-root ::selection { background: var(--f-cyan); color: var(--f-bg); }
#future-root a { color: var(--f-cyan); text-decoration: none; }
#future-root a:hover { color: var(--f-text); }
/* component color rules need the id prefix to out-rank the generic link rule */
#future-root .f-nav nav a { color: var(--f-dim); }
#future-root .f-nav nav a:hover { color: var(--f-cyan); }
#future-root .f-nav nav a.active { color: var(--f-amber); }
#future-root .f-card { color: var(--f-text); }
#future-root .f-btn { color: var(--f-text); }
#future-root .f-btn:hover { color: var(--f-text); }
#future-root .f-btn-hot, #future-root .f-btn-hot:hover { color: #1a1206; }
#future-root .f-mail { color: var(--f-text); }
#future-root .f-mail:hover { color: var(--f-amber); }

/* ---------- nav ---------- */
.f-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.6rem;
  padding: .9rem clamp(1.2rem, 4vw, 2.5rem);
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--f-line);
  font-family: var(--f-display);
}
.f-logo { font-weight: 700; letter-spacing: .08em; color: var(--f-amber); font-size: 14px; }
.f-nav nav { display: flex; gap: 1.2rem; margin-left: auto; flex-wrap: wrap; }
.f-nav nav a { color: var(--f-dim); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.f-nav nav a:hover { color: var(--f-cyan); }
.f-back {
  border: 1px solid var(--f-line); border-radius: 99px;
  background: none; color: var(--f-dim);
  font-family: var(--f-mono); font-size: 12px;
  padding: .25rem .8rem; cursor: pointer; white-space: nowrap;
}
.f-back:hover { color: var(--f-amber); border-color: var(--f-amber); }

/* ---------- sections ---------- */
.f-section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--f-line); }

/* multipage: mirror the terminal router — one section on screen at a time.
   :not() keeps the specificity above any per-section display rule */
#future-root .f-wrap > section:not(.f-page-active) { display: none; }
#future-root .f-wrap > section.f-page-active { border-bottom: none; min-height: calc(100svh - 12rem); }
#future-root .f-wrap > .f-hero.f-page-active { min-height: calc(100svh - 10rem); }
.f-eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--f-cyan); margin-bottom: 1rem;
}
.f-eyebrow::before { content: "▮ "; color: var(--f-amber); }
.f-h2 {
  font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; letter-spacing: -.01em; margin-bottom: 2rem; line-height: 1.15;
}

/* ---------- hero ---------- */
/* grid mirrors the terminal hero (same columns, gap, height) so the portrait
   occupies the same screen rect and stays put during the divider wipe */
.f-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; min-height: calc(100svh - 10rem); padding: 5rem 0 3rem; }
.f-name {
  font-family: var(--f-display);
  font-size: clamp(44px, 7.2vw, 92px);
  font-weight: 700; line-height: .98; letter-spacing: -.03em;
  margin: .6rem 0 1rem;
  background: linear-gradient(100deg, var(--f-text) 20%, var(--f-amber) 55%, var(--f-cyan) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.f-role { font-size: clamp(16px, 1.8vw, 20px); color: var(--f-dim); max-width: 46ch; margin-bottom: 2rem; }
.f-role b { color: var(--f-text); font-weight: 600; }
.f-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.f-btn {
  display: inline-block; border-radius: 99px; padding: .6rem 1.4rem;
  font-family: var(--f-display); font-size: 14px; font-weight: 600;
  border: 1px solid var(--f-line); color: var(--f-text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.f-btn:hover { border-color: var(--f-cyan); box-shadow: 0 0 18px rgba(125, 211, 252, .25); transform: translateY(-1px); color: var(--f-text); }
.f-btn-hot { background: var(--f-amber); border-color: var(--f-amber); color: #1a1206; }
.f-btn-hot:hover { box-shadow: 0 0 22px rgba(255, 180, 84, .5); color: #1a1206; }

/* frame fills its hero column, mirroring the terminal portrait window —
   including a title bar of identical height, so the two frames overlap
   exactly during the divider wipe */
.f-holo { position: relative; justify-self: center; width: min(100%, 86vw); transform: translateY(-20px); }
.f-holo-frame {
  border: 1px solid var(--f-line); border-radius: 14px; overflow: hidden;
  background: rgba(10, 15, 28, .7);
}
.f-holo-bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .45rem .8rem;
  border-bottom: 1px solid var(--f-line);
  background: rgba(8, 12, 24, .85);
  font-family: var(--f-mono); font-size: 12px; line-height: 1.65;
  color: var(--f-dim); letter-spacing: .06em;
}
.f-holo-dots { display: flex; gap: .35rem; }
.f-holo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--f-line); }
.f-holo-dots i:first-child { background: var(--f-amber); opacity: .75; }
.f-holo-dots i:nth-child(2) { background: var(--f-cyan); opacity: .75; }
.f-holo-dots i:last-child { background: #7ee2a8; opacity: .75; }
.f-holo img {
  display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 22%;
  filter: grayscale(1) sepia(.35) hue-rotate(-12deg) saturate(1.5) contrast(1.05);
}
.f-holo::before {
  content: ""; position: absolute; inset: -14px; border-radius: 26px;
  border: 1px solid rgba(255, 180, 84, .35);
  mask: linear-gradient(160deg, #000 30%, transparent 55%, #000 85%);
  pointer-events: none;
}
.f-holo::after {
  content: "LIVE // POKHARA · NP"; position: absolute; left: 50%; bottom: -12px;
  transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em;
  color: var(--f-cyan); background: var(--f-bg);
  padding: .2rem .7rem; border: 1px solid var(--f-line); border-radius: 99px;
  white-space: nowrap;
}

/* ---------- glass cards ---------- */
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.f-card {
  background: var(--f-panel);
  border: 1px solid var(--f-line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.f-card:hover { border-color: rgba(255, 180, 84, .4); transform: translateY(-2px); }
.f-card h3 { font-family: var(--f-display); font-size: 17px; font-weight: 600; margin-bottom: .6rem; }
.f-card p { color: var(--f-dim); font-size: 14px; }
.f-tags { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.f-tags span {
  font-family: var(--f-mono); font-size: 11px; color: var(--f-cyan);
  border: 1px solid var(--f-line); border-radius: 99px; padding: .1rem .6rem;
}

/* skills meters */
.f-meter { margin-bottom: .9rem; }
.f-meter-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: .3rem; }
.f-meter-top i { font-style: normal; font-family: var(--f-mono); color: var(--f-dim); font-size: 11.5px; }
.f-meter-track { height: 4px; border-radius: 99px; background: rgba(125, 211, 252, .12); overflow: hidden; }
.f-meter-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--f-amber), var(--f-cyan)); box-shadow: 0 0 8px rgba(255, 180, 84, .5); }

/* ---------- live ops ---------- */
/* HUD wipe when the router swaps pages */
.f-page-enter { animation: fPageIn .42s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes fPageIn {
  0% { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 62% 0); }
  55% { clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: none; }
}

.f-ops { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.2rem; }

/* system core: counter-rotating gears over a tilted reactor ring —
   automation you can watch running */
.f-core { margin-bottom: 1.2rem; overflow: hidden; }
.f-core-stage { position: relative; height: 148px; perspective: 520px; }
.f-ring {
  position: absolute; left: 50%; top: 62%; width: 168px; height: 168px;
  margin: -84px 0 0 -84px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(125, 211, 252, 0) 0 68%, rgba(125, 211, 252, .5) 86%, rgba(255, 180, 84, .95) 100%);
  -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 77%);
  mask: radial-gradient(closest-side, transparent 76%, #000 77%);
  animation: fRingSpin 7s linear infinite;
}
@keyframes fRingSpin {
  from { transform: rotateX(64deg) rotate(0deg); }
  to { transform: rotateX(64deg) rotate(360deg); }
}
.f-gear { position: absolute; filter: drop-shadow(0 0 7px rgba(255, 180, 84, .3)); }
.f-gear-a { width: 86px; height: 86px; left: calc(50% - 66px); top: 10px; color: var(--f-amber); animation: fSpin 16s linear infinite; }
.f-gear-b { width: 58px; height: 58px; left: calc(50% + 12px); top: 44px; color: var(--f-cyan); filter: drop-shadow(0 0 7px rgba(125, 211, 252, .3)); animation: fSpinRev 11s linear infinite; }
@keyframes fSpin { to { transform: rotate(360deg); } }
@keyframes fSpinRev { to { transform: rotate(-360deg); } }
.f-core-tel { display: grid; gap: .3rem; margin-top: .7rem; font-family: var(--f-mono); font-size: 11.5px; }
.f-core-tel p { display: flex; justify-content: space-between; color: var(--f-dim); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.f-core-tel b { color: var(--f-amber); font-weight: 600; }

/* full repo archive: the same live GitHub data as the terminal listing */
.f-archive { margin-top: 2.6rem; }
.f-repo-list { border: 1px solid var(--f-line); border-radius: 12px; overflow: hidden; background: var(--f-panel); }
#future-root .f-repo-row {
  display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr 6.5rem 3.5rem;
  gap: 1rem; align-items: baseline; padding: .55rem 1rem;
  border-bottom: 1px solid var(--f-line); color: var(--f-dim); font-size: 13px;
}
#future-root .f-repo-row:hover { background: rgba(125, 211, 252, .06); color: var(--f-dim); }
.f-repo-name { color: var(--f-text); font-weight: 600; font-family: var(--f-mono); font-size: 12.5px; }
.f-repo-row:hover .f-repo-name { color: var(--f-cyan); }
.f-repo-desc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-repo-lang { text-transform: uppercase; font-size: 10.5px; letter-spacing: .07em; }
.f-repo-star { color: var(--f-amber); text-align: right; }
.f-repo-note { padding: .55rem 1rem; margin: 0; color: var(--f-dim); font-size: 11.5px; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .f-ring, .f-gear-a, .f-gear-b { animation: none; }
  .f-page-enter { animation: none; }
}
.f-ops-feed { min-height: 220px; font-family: var(--f-mono); font-size: 12.5px; }
.f-ops-feed p { color: var(--f-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .22rem 0; border-bottom: 1px dashed rgba(125, 211, 252, .08); }
.f-ops-feed p:last-child { color: var(--f-text); }
.f-ops-feed .f-run { color: var(--f-amber); }
.f-ops-feed .f-ok { color: #7ee2a8; }
.f-stat { text-align: left; padding: 1.2rem 1.4rem; }
.f-stat-num { font-family: var(--f-display); font-size: 42px; font-weight: 700; color: var(--f-amber); line-height: 1.05; }
.f-stat-num i { font-style: normal; font-size: 18px; color: var(--f-dim); }
.f-stat-cap { font-size: 12.5px; color: var(--f-dim); margin-top: .3rem; }
.f-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 8px #7ee2a8; margin-right: .5rem; animation: fpulse 1.6s ease-in-out infinite; }
@keyframes fpulse { 50% { opacity: .35; } }

/* ---------- timeline ---------- */
.f-tl { border-left: 1px solid var(--f-line); padding-left: 2rem; display: flex; flex-direction: column; gap: 2.2rem; }
.f-tl article { position: relative; }
.f-tl article::before {
  content: ""; position: absolute; left: calc(-2rem - 5px); top: .45rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--f-amber); box-shadow: 0 0 10px rgba(255, 180, 84, .8);
}
.f-tl-date { font-family: var(--f-mono); font-size: 12px; color: var(--f-cyan); letter-spacing: .08em; }
.f-tl h3 { font-family: var(--f-display); font-size: 18px; margin: .2rem 0 .5rem; }
.f-tl ul { list-style: none; padding: 0; }
.f-tl li { color: var(--f-dim); font-size: 14px; padding-left: 1.1rem; position: relative; margin-bottom: .25rem; }
.f-tl li::before { content: "◆"; position: absolute; left: 0; font-size: 8px; top: .45em; color: var(--f-amber); }

/* ---------- chat ---------- */
.f-chat { max-width: 760px; background: var(--f-panel); border: 1px solid var(--f-line); border-radius: 16px; backdrop-filter: blur(10px); overflow: hidden; }
.f-chat-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--f-line); font-family: var(--f-mono); font-size: 12px; color: var(--f-dim); }
.f-chat-out { padding: 1.2rem; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: .8rem; }
.f-bubble { max-width: 85%; padding: .7rem 1rem; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.f-bubble.q { align-self: flex-end; background: rgba(255, 180, 84, .14); border: 1px solid rgba(255, 180, 84, .3); border-bottom-right-radius: 4px; }
.f-bubble.a { align-self: flex-start; background: rgba(125, 211, 252, .07); border: 1px solid var(--f-line); border-bottom-left-radius: 4px; color: var(--f-text); }
.f-bubble.think { color: var(--f-dim); font-family: var(--f-mono); animation: fpulse 1.2s ease-in-out infinite; }
.f-chat-ico { width: 16px; height: 16px; margin-left: auto; color: var(--f-cyan); flex: none; }
.f-chat form { display: flex; align-items: center; gap: .6rem; border-top: 1px solid var(--f-line); padding: .8rem 1rem; }
/* blinking prompt caret — invites typing; hands off to the native caret on focus */
.f-chat form::before {
  content: "▍"; color: var(--f-amber); font-family: var(--f-mono); font-size: 14px;
  animation: fblink 1.1s steps(1) infinite;
}
.f-chat form:focus-within::before { animation: none; color: var(--f-dim); content: "❯"; }
@keyframes fblink { 50% { opacity: 0; } }
.f-chat input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--f-text); font-family: var(--f-body); font-size: 14px;
  caret-color: var(--f-amber);
}
.f-chat input::placeholder { color: var(--f-dim); }
/* floating chat bubble — always-visible route to the assistant */
.f-chat-fab {
  position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 20;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--f-amber); border: none; color: #1a1206; cursor: pointer;
  box-shadow: 0 0 22px rgba(255, 180, 84, .45), 0 6px 18px rgba(0, 0, 0, .4);
  transition: transform .2s, box-shadow .2s;
}
.f-chat-fab svg { width: 24px; height: 24px; }
.f-chat-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 30px rgba(255, 180, 84, .65), 0 8px 22px rgba(0, 0, 0, .45); }
.f-chat button {
  background: var(--f-amber); border: none; border-radius: 99px;
  font-family: var(--f-display); font-weight: 600; font-size: 13px;
  padding: .45rem 1.2rem; color: #1a1206; cursor: pointer;
}

/* ---------- contact ---------- */
.f-contact { text-align: center; padding-bottom: 5rem; }
.f-mail {
  display: inline-block; font-family: var(--f-display);
  font-size: clamp(20px, 3vw, 32px); font-weight: 700; color: var(--f-text);
  border-bottom: 2px solid var(--f-amber); padding-bottom: .2rem; margin: 1rem 0 2rem;
}
.f-mail:hover { color: var(--f-amber); }
.f-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }

.f-foot { padding: 2rem 0 3rem; text-align: center; color: var(--f-dim); font-family: var(--f-mono); font-size: 12px; }
.f-foot b { color: var(--f-amber); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .f-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3.5rem; }
  .f-holo { order: -1; }
  .f-ops { grid-template-columns: 1fr; }
  .f-nav nav { display: none; }
  #future-root .f-repo-row { grid-template-columns: minmax(8rem, 1fr) auto; }
  .f-repo-desc, .f-repo-lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .f-live-dot, .f-bubble.think, .f-chat form::before { animation: none; }
  .f-card:hover, .f-btn:hover { transform: none; }
}
