/* ============================================================
   Senne Visser — Portfolio
   Design system: dark terminal / phosphor-lime, playful
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #090c10;
  --bg-1:      #0d1218;
  --bg-2:      #111922;
  --bg-3:      #16212c;
  --line:      #1f2c38;
  --line-soft: #182531;

  /* ink */
  --text:      #e9eff5;
  --muted:     #8696a4;
  --faint:     #586573;

  /* accents */
  --lime:      #b8f24a;   /* primary signal */
  --lime-dim:  #7fa830;
  --aqua:      #58d6e6;   /* water / links */
  --aqua-dim:  #2c8b97;
  --coral:     #ff8a5c;   /* rare playful pop */

  /* glow */
  --glow-lime: 0 0 0 1px rgba(184,242,74,.25), 0 0 24px -4px rgba(184,242,74,.35);
  --glow-aqua: 0 0 0 1px rgba(88,214,230,.22), 0 0 22px -6px rgba(88,214,230,.30);

  /* type */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;

  --maxw: 1080px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle terminal grid + scanline texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(88,214,230,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,214,230,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px);
  opacity: .35;
  mix-blend-mode: multiply;
}

a { color: var(--aqua); text-decoration: none; }

::selection { background: rgba(184,242,74,.28); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #233241; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

section { padding: clamp(64px, 10vh, 120px) 0; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
}
.eyebrow .n { color: var(--faint); }

h2.title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.section-lede { color: var(--muted); max-width: 56ch; margin: 0 0 44px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(9,12,16,.92), rgba(9,12,16,.55) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand .dot { color: var(--lime); }
.brand .blink { color: var(--lime); animation: blink 1.1s steps(1) infinite; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--lime); background: rgba(184,242,74,.07); }
.nav-links a .hash { color: var(--faint); }
@media (max-width: 680px) { .nav-links { display: none; } }

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

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(96px, 16vh, 150px); padding-bottom: clamp(40px, 7vh, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.hero-intro .hello {
  font-family: var(--mono);
  color: var(--lime);
  font-size: 14px;
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 78px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0 0 10px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--lime) 0%, var(--aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .role {
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--muted);
  margin: 0 0 26px;
}
.hero .role b { color: var(--text); font-weight: 600; }
.hero .blurb { color: var(--muted); max-width: 46ch; margin: 0 0 30px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .15s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: #0a0e08; border-color: var(--lime); font-weight: 700; }
.btn-primary:hover { box-shadow: var(--glow-lime); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); box-shadow: var(--glow-aqua); }
.btn svg { width: 16px; height: 16px; }

/* terminal window (hero right) */
.term {
  background: linear-gradient(180deg, #0c1219, #0a0f15);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #0e151c;
  border-bottom: 1px solid var(--line-soft);
}
.term-bar .lights { display: flex; gap: 7px; }
.term-bar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar .lights i:nth-child(1) { background: #ff5f57; }
.term-bar .lights i:nth-child(2) { background: #febc2e; }
.term-bar .lights i:nth-child(3) { background: #28c840; }
.term-bar .ttitle { color: var(--faint); font-size: 12.5px; margin-left: 8px; }
.term-bar .ttitle b { color: var(--muted); font-weight: 500; }

.term-body {
  padding: 16px 16px 14px;
  font-size: 13.5px;
  line-height: 1.7;
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
}
.term-body .line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--lime); }
.term-user { color: var(--aqua); }
.term-path { color: var(--faint); }
.term-out { color: var(--muted); }
.term-out .hl { color: var(--text); }
.term-out .lime { color: var(--lime); }
.term-out .aqua { color: var(--aqua); }
.term-err { color: var(--coral); }
.term-comment { color: var(--faint); }

.term-input-row { display: flex; gap: 8px; align-items: baseline; }
.term-input-row .ps { color: var(--lime); white-space: nowrap; }
#term-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  flex: 1;
  caret-color: var(--lime);
}
.cursor-blk {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--lime);
  transform: translateY(2px);
  animation: blink 1.05s steps(1) infinite;
}
.term-hint { color: var(--faint); font-size: 12px; margin-top: 4px; }
.term-hint b { color: var(--muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.03); }
.photo-frame .scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(9,12,16,.55) 100%);
}
.photo-frame .tag {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--lime);
  background: rgba(9,12,16,.7); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 8px; backdrop-filter: blur(4px);
}
.photo-frame .corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--lime); }
.photo-frame .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.photo-frame .corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.photo-frame .corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.photo-frame .corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.about-body p { color: var(--muted); margin: 0 0 18px; }
.about-body p b { color: var(--text); font-weight: 600; }
.about-body .lime { color: var(--lime); }

.fact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.fact-list li {
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
}
.fact-list li .k { color: var(--lime); min-width: 96px; }
.fact-list li .v { color: var(--text); }

/* ============================================================
   SKILLS — neofetch card + chips
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .skills-grid { grid-template-columns: 1fr; } }

.neofetch {
  font-family: var(--mono);
  font-size: 13px;
  background: linear-gradient(180deg, #0c1219, #0a0f15);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.8);
}
.neofetch .ascii { color: var(--lime); font-size: 11px; line-height: 1.15; white-space: pre; align-self: center; }
.neofetch .nf-info { line-height: 1.75; }
.neofetch .nf-info .who { color: var(--aqua); }
.neofetch .nf-info .who b { color: var(--lime); }
.neofetch .nf-info .rule { color: var(--line); margin: 3px 0; }
.neofetch .nf-info .row .k { color: var(--lime); display: inline-block; min-width: 74px; }
.neofetch .nf-info .row .v { color: var(--text); }
.neofetch .nf-colors { margin-top: 10px; display: flex; gap: 4px; }
.neofetch .nf-colors i { width: 16px; height: 11px; display: block; border-radius: 2px; }
@media (max-width: 480px) { .neofetch { grid-template-columns: 1fr; } .neofetch .ascii { display: none; } }

.stack-block + .stack-block { margin-top: 24px; }
.stack-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono); font-size: 13px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-1);
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, border-color .2s, color .2s, box-shadow .25s;
  cursor: default;
}
.chip .lv { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.chip:hover { transform: translateY(-3px); border-color: var(--lime); color: var(--lime); box-shadow: var(--glow-lime); }
.chip.aqua .lv { background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }
.chip.aqua:hover { border-color: var(--aqua); color: var(--aqua); box-shadow: var(--glow-aqua); }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 760px) { .proj-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-1), #0a0f15);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  overflow: hidden;
  transition: transform .2s, border-color .25s, box-shadow .3s;
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
}
a.card { cursor: pointer; }
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 180px at var(--mx,50%) var(--my,0%), rgba(184,242,74,.10), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(184,242,74,.4); box-shadow: 0 22px 50px -28px rgba(0,0,0,.9); }
.card:hover::before { opacity: 1; }
.card .ctop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card .cidx { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card .cstat {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line);
}
.card .cstat.live { color: var(--lime); border-color: rgba(184,242,74,.4); }
.card .cstat.wip { color: var(--coral); border-color: rgba(255,138,92,.4); }
.card .cstat.exp { color: var(--aqua); border-color: rgba(88,214,230,.4); }
.card .cstat.priv { color: var(--muted); border-color: var(--line); }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.card h3 .ic { color: var(--lime); display: inline-flex; }
.card h3 .ic svg { width: 18px; height: 18px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.card .tags span { font-family: var(--mono); font-size: 11.5px; color: var(--faint); border: 1px solid var(--line-soft); padding: 3px 8px; border-radius: 6px; }
.card .clink {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 7px; transition: color .2s;
}
.card .clink svg { width: 14px; height: 14px; }
a.card:hover .clink { color: var(--lime); }
.card .clink.locked { color: var(--faint); }

.proj-foot {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px;
}
.proj-foot a { color: var(--lime); font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: linear-gradient(180deg, var(--bg-1), #0a0f15);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(184,242,74,.12), transparent 70%);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: transform .15s, border-color .2s, box-shadow .25s;
  cursor: pointer;
}
.contact-item:hover { transform: translateY(-3px); border-color: var(--aqua); box-shadow: var(--glow-aqua); }
.contact-item .cic {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--lime);
  background: var(--bg-2);
}
.contact-item .cic svg { width: 19px; height: 19px; }
.contact-item .cmeta { min-width: 0; }
.contact-item .cmeta .lab { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-item .cmeta .val { display: block; color: var(--text); font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copied-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--lime); color: #0a0e08; font-family: var(--mono); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 500; box-shadow: 0 12px 30px -10px rgba(184,242,74,.5);
}
.copied-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 60px;
  text-align: center;
}
.footer p { font-family: var(--mono); font-size: 13px; color: var(--faint); margin: 0; }
.footer .lime { color: var(--lime); }
.footer .up {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; transition: all .2s;
}
.footer .up:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
