@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0c0f14;
  --bg-elevated: #141922;
  --bg-soft: #1a2130;
  --border: #2a3344;
  --text: #e8ecf2;
  --muted: #93a0b5;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.12);
  --accent-strong: #2dd4bf;
  --danger-soft: #f87171;
  --radius: 4px;
  --max: 1080px;
  --nav-h: 4rem;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 191, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 120, 180, 0.1), transparent 50%),
    linear-gradient(180deg, #0c0f14 0%, #0a0d12 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #99f6e4;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #042f2e;
  padding: 0.5rem 0.75rem;
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12, 15, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0.2rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.lang-switch {
  font-family: var(--mono);
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  color: var(--accent) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  margin-left: 0.35rem;
  background: transparent;
  cursor: pointer;
}

.lang-switch:hover {
  background: var(--accent-dim);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
}

.cursor-toggle[aria-pressed="false"] {
  color: var(--muted) !important;
  border-color: var(--border);
}

.cursor-toggle[data-mode="rh"] {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.45);
}

/* TUX / Red Hat cursors (paths relative to CSS file) */
html.tux-cursor,
html.tux-cursor * {
  cursor: url("../assets/tux-cursor.svg") 6 2, auto !important;
}

html.tux-cursor a,
html.tux-cursor button,
html.tux-cursor .btn,
html.tux-cursor .lang-switch,
html.tux-cursor .nav-toggle {
  cursor: url("../assets/tux-cursor.svg") 6 2, pointer !important;
}

html.rh-cursor,
html.rh-cursor * {
  cursor: url("../assets/redhat-cursor.svg") 10 6, url("../assets/redhat-cursor.png") 10 6, auto !important;
}

html.rh-cursor a,
html.rh-cursor button,
html.rh-cursor .btn,
html.rh-cursor .lang-switch,
html.rh-cursor .nav-toggle {
  cursor: url("../assets/redhat-cursor.svg") 10 6, url("../assets/redhat-cursor.png") 10 6, pointer !important;
}

/* Page transitions */
body.page-leaving {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

main > * {
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > *:nth-child(2) { animation-delay: 0.05s; }
main > *:nth-child(3) { animation-delay: 0.1s; }
main > *:nth-child(4) { animation-delay: 0.15s; }
main > *:nth-child(5) { animation-delay: 0.2s; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-leaving,
  main > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero-terminal {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 5rem);
  padding-bottom: 2rem;
}

.term {
  background: #070a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: #121820;
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #4b5563;
}

.term-dot.red { background: #f87171; }
.term-dot.yellow { background: #fbbf24; }
.term-dot.green { background: #34d399; }

.term-title {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.term-body {
  padding: 1rem 1.1rem 1.25rem;
  min-height: 18rem;
  max-height: 26rem;
  overflow-y: auto;
  color: #d1fae5;
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: text;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.35em;
}

.term-line.is-out {
  color: var(--accent);
}

.term-line.is-warn {
  color: #fbbf24;
}

.term-line.is-muted {
  color: var(--muted);
}

.term-line.is-broadcast {
  color: #fde68a;
  font-weight: 500;
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.term-prompt {
  color: #86efac;
  flex-shrink: 0;
}

.term-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #d1fae5;
  font: inherit;
  caret-color: var(--accent);
  padding: 0;
}

.term-hint {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font);
}

@media (max-width: 860px) {
  .hero-terminal {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.hero h1,
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #042f2e;
  font-weight: 500;
}

.btn-primary:hover {
  background: #99f6e4;
  color: #042f2e;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.hero-photo {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  aspect-ratio: 4 / 5;
}

.hero-photo-base,
.hero-photo-skills {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.hero-photo-base {
  transition: opacity 0.65s ease, filter 0.65s ease, transform 0.65s ease;
}

.hero-photo-skills {
  position: absolute;
  inset: 0;
  z-index: 2;
  object-position: center center;
  transform: translateX(105%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-photo:hover .hero-photo-skills,
.hero-photo:focus-within .hero-photo-skills {
  transform: translateX(0);
}

.hero-photo:hover .hero-photo-base,
.hero-photo:focus-within .hero-photo-base {
  opacity: 0.2;
  filter: grayscale(0.35) blur(1.5px);
  transform: scale(1.03);
}

.hero-photo::after {
  content: "RHCSA · Medior · Homelab";
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(12, 15, 20, 0.85);
  border: 1px solid var(--border);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  transition: opacity 0.35s ease;
}

.hero-photo:hover::after {
  content: "Vaardigheden";
}

html[lang="en"] .hero-photo:hover::after {
  content: "Skills";
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-skills,
  .hero-photo-base {
    transition: none;
  }
}

.page-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.section-block + .section-block {
  margin-top: 2.5rem;
}

.section-block h2 {
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.section-block p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.job {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.job h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.job .org {
  color: var(--text);
  font-weight: 500;
}

.job ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.job li + li {
  margin-top: 0.35rem;
}

.roles {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.role {
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
}

.role strong {
  display: block;
  font-size: 0.98rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.skill-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.skill-card li + li {
  margin-top: 0.3rem;
}

.featured {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 2rem;
}

.featured h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.featured p {
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.featured p:last-child {
  margin-bottom: 0;
}

.featured ul {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.featured li + li {
  margin-top: 0.35rem;
}

.skill-level {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: var(--radius);
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.65rem;
}

.skill-level.is-growing {
  color: var(--muted);
  background: rgba(147, 160, 181, 0.12);
  border-color: var(--border);
}

.stack-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .stack-two {
    grid-template-columns: 1fr;
  }
}

.project-grid {
  display: grid;
  gap: 1.15rem;
}

.project {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.project h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.project p {
  margin: 0;
  color: var(--muted);
}

.project .links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-list span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-list a:hover {
  color: var(--accent);
}

.about-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #080a0e;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-inner a:hover {
  color: #99f6e4;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero-terminal {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo {
    order: -1;
    max-width: 320px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 200px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 15, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }

  .lang-switch {
    margin: 0.75rem 0 0;
    align-self: flex-start;
  }
}
