/* styles.css — updated: flatter background + slightly zoomed-in layout + scroll reveal */

:root{
  --bg: #070a08;
  --fg: #d7e6db;
  --muted: #93a69a;
  --accent: #63f2a1;
  --warn: #f2d063;

  --border: rgba(99,242,161,.18);
  --border-soft: rgba(215,230,219,.12);
  --shadow: rgba(0,0,0,.45);

  --radius: 14px;
  --radius-card: 16px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

body{
  margin: 0;
  background: var(--bg);              /* removed gradients */
  color: var(--fg);
  font-family: var(--mono);
  line-height: 1.5;
  display: grid;
  place-items: center;
  padding: 18px;                      /* slightly tighter for “zoomed in” feel */
}

/* Zoom-in feel:
   - narrower max width
   - slightly larger base type
   - less empty space around the terminal
*/
.wrap{
  width: min(820px, 100%);            /* was 920px */
  transform: scale(1.04);             /* subtle zoom */
  transform-origin: top center;
}

/* Terminal chrome */
.term{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px var(--shadow);
  background: rgba(7,10,8,.96);       /* flatter, less “glassy” */
}

.bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
  gap: 12px;
}

.dots{ display: flex; gap: 8px; }
.dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(215,230,219,.18);
  border: 1px solid rgba(215,230,219,.18);
}

.title{
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kbd-hint{
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.kbd-hint kbd{
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid rgba(215,230,219,.22);
  border-bottom-color: rgba(215,230,219,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--fg);
}

/* Shared body padding */
.body{ padding: 20px; }
.shell{ padding: 18px 20px 22px; }

/* Terminal text bits */
.line{ margin: 0 0 10px 0; }
.prompt{ color: var(--accent); }
.path{ color: var(--warn); }
.cmd{ color: var(--fg); }
.muted{ color: var(--muted); }

/* Index cards */
.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
  .kbd-hint{ display: none; }
  .wrap{ transform: none; }           /* avoid weird scaling on small screens */
}

.card{
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.015);
  border-radius: var(--radius-card);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  outline: none;
}
.card:hover, .card:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(99,242,161,.32);
  background: rgba(99,242,161,.035);
}
.card h2{
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chiprow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip{
  font-size: 12px;
  color: var(--fg);
  border: 1px solid rgba(215,230,219,.16);
  background: rgba(255,255,255,.015);
  padding: 4px 8px;
  border-radius: 999px;
}

/* Footer */
.footer{
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.footer a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(215,230,219,.22);
}
.footer a:hover{
  color: var(--fg);
  border-bottom-color: rgba(99,242,161,.45);
}

/* Dev/Security shared layout */
.topnav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.navlinks{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.navlinks a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(215,230,219,.22);
}
.navlinks a:hover{
  color: var(--fg);
  border-bottom-color: rgba(99,242,161,.45);
}

.badge{
  font-size: 12px;
  color: var(--fg);
  border: 1px solid rgba(215,230,219,.16);
  background: rgba(255,255,255,.015);
  padding: 4px 10px;
  border-radius: 999px;
}

.section{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(99,242,161,.12);
}

.cmdline{ margin: 0 0 10px 0; color: var(--fg); }
.output{ color: var(--fg); font-size: 13px; }

.cols{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
@media (max-width: 860px){
  .cols{ grid-template-columns: 1fr; }
}

.box{
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.015);
  border-radius: var(--radius-card);
  padding: 14px;
}

.list{ margin: 0; padding-left: 18px; }
.list li{ margin: 6px 0; }

.project{ display: grid; gap: 6px; margin-bottom: 12px; }
.project:last-child{ margin-bottom: 0; }

.proj-title{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.proj-title strong{ font-size: 14px; }
.proj-meta{ font-size: 12px; color: var(--muted); }

.links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
}
.links a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(215,230,219,.22);
}
.links a:hover{
  color: var(--fg);
  border-bottom-color: rgba(99,242,161,.45);
}

/* Scroll reveal (CSS side) */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* Accessibility utility */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
