/* ========== Base ========== */
* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #070b10;
  color: #e9eef6;
}

.mono{
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

a{ color: inherit; text-decoration: none; }

/* ========== Background ========== */
.bg{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(69, 125, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 80% 30%, rgba(120, 255, 180, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 80%, rgba(255, 120, 200, 0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ========== Layout ========== */
.stage{
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.shell{
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

/* ========== Left column ========== */
.left{
  background: rgba(10, 14, 22, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.avatar{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity{ padding: 14px 2px 4px; }

.name{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.alias{
  margin: 6px 0 0;
  color: rgba(233, 238, 246, 0.7);
  font-size: 0.95rem;
}

.handle{ color: rgba(233, 238, 246, 0.9); }

.social{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}

.iconbtn{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.iconbtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.iconbtn:active{
  transform: translateY(0px) scale(0.98);
}

.iconbtn svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.9;
}

/* ========== Right column ========== */
.right{
  background: rgba(10, 14, 22, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;

  /* FIXED layout height (desktop). Only .scroll should scroll. */
  height: 680px;
}

.top{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 14, 22, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 16px;
}

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

/* Hover + active + pressed effects */
.nav__link{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(233, 238, 246, 0.92);
  font-size: 0.95rem;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 120ms ease,
    box-shadow 140ms ease;
  user-select: none;
}

.nav__link:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.nav__link:active{
  transform: translateY(0px) scale(0.98);
  box-shadow: none;
}

.nav__link.is-active{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.26);
}

/* Scroll area */
.scroll{
  flex: 1;
  overflow: auto;
  padding: 18px 18px 14px;
}

/* ========== Whoami + Bottom pinning ========== */
.whoami{
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Terminal typing line */
.terminal-line{
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(233, 238, 246, 0.82);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

/* Blinking cursor */
.cursor{
  width: 10px;
  height: 1.2em;
  display: inline-block;
  border-radius: 2px;
  background: rgba(233, 238, 246, 0.85);
  transform: translateY(1px);
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink{
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Reveal animation for content after typing */
.reveal{
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}

.whoami__text{
  margin: 0;
  color: rgba(233, 238, 246, 0.82);
  line-height: 1.65;
  max-width: 78ch;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(233, 238, 246, 0.82);
  line-height: 1.7;
}
.list li{ margin: 4px 0; }

/* Push Contact + Footer to the bottom */
.contact{
  margin-top: auto;
  padding-top: 10px;
}

.contact__title{
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.contact__text{
  margin: 0;
  color: rgba(233, 238, 246, 0.78);
}

.link{
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.95;
}

.footer{
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.muted{ color: rgba(233, 238, 246, 0.6); }

/* ========== Responsive ========== */
@media (max-width: 920px){
  .shell{
    grid-template-columns: 1fr;
  }
  .right{
    height: auto; /* allow natural height on mobile */
  }
}
