/* =====================
    ART DIRECTION COMMENT
    Art direction: systems programmer / embedded dev → precise, minimal, technical
    Palette: dark-primary, green terminal accent (CLI aesthetic)
    Typography: Zodiak (display) + Cabinet Grotesk (body) + JetBrains Mono (code)
    Density: spacious sections, tight code blocks
===================== */

/* Import the typewriter font at the VERY TOP of style.css */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

/* ========================================================
   1. TYPEWRITER FONT FOR ALL HEADINGS AND DESCRIPTIONS 
======================================================== */
h1, h2, h3, h4, h5, h6, 
p, 
.section-title, 
.hero-title, 
.hero-desc, 
.about-text p, 
.timeline-desc,
.timeline-role {
    font-family: 'Courier Prime', 'Courier New', monospace !important;
}

/* ========================================================
   2. STANDARD MONOSPACE FOR PROJECTS SECTION
======================================================== */
.project-card, 
.project-card h3, 
.project-card p,
.project-type {
    font-family: var(--font-mono) !important;
}

/* ========================================================
   3. STANDARD MONOSPACE FOR CONTACT SECTION
======================================================== */
#contact, 
#contact .section-title,
.contact-card, 
.contact-card p,
.contact-link-label {
    font-family: var(--font-mono) !important;
}

/* ========================================================
   4. TYPEWRITER FONT FOR ABOUT FACTS (Beside About Me)
======================================================== */
.fact-content label,
.fact-content span {
    font-family: var(--font-mono) !important;
}

/* ========================================================
   5. MONOSPACE FONT FOR SKILL CARD TITLES ("My Toolbox")
======================================================== */
.skill-card-title,
.skill-tags .tag {
    font-family: var(--font-mono) !important;
}

/* ========================================================
   6. PUBLICATIONS / TIMELINE SECTION UNIFICATION
======================================================== */
/* Make the authors list and links use the typewriter font */
#publications,
#publications h2,
#publications p,
#publications span,
#publications div,
#publications a {
    font-family: 'Courier Prime', 'Courier New', monospace !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

:root, [data-theme="dark"] {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  --color-bg:              #0e0f0c;
  --color-surface:         #131410;
  --color-surface-2:       #171815;
  --color-surface-offset:  #1c1e1a;
  --color-surface-dynamic: #252721;
  --color-divider:         #2b2d27;
  --color-border:          #33352e;

  --color-text:         #e2e0db;
  --color-text-muted:   #8a8a82;
  --color-text-faint:   #4a4a43;
  --color-text-inverse: #0e0f0c;

  /* Terminal green accent */
  --color-primary:          #4ade80;
  --color-primary-hover:    #22c55e;
  --color-primary-active:   #16a34a;
  --color-primary-highlight: #1a2e1c;

  --color-secondary:       #60a5fa;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="light"] {
  --color-bg:              #f5f5f0;
  --color-surface:         #f9f9f5;
  --color-surface-2:       #fbfbf8;
  --color-surface-offset:  #f0f0ea;
  --color-surface-dynamic: #e8e8e1;
  --color-divider:         #dcdcd4;
  --color-border:          #d0d0c8;

  --color-text:         #1a1c17;
  --color-text-muted:   #6b6b62;
  --color-text-faint:   #a8a8a0;
  --color-text-inverse: #f5f5f0;

  --color-primary:          #16a34a;
  --color-primary-hover:    #15803d;
  --color-primary-active:   #166534;
  --color-primary-highlight: #dcfce7;

  --color-secondary: #2563eb;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 100 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 100 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 100 / 0.12);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li { text-wrap: pretty; }

::selection { background: oklch(from var(--color-primary) l c h / 0.2); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, [role="button"] { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive); }
button { cursor: pointer; background: none; border: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- SCROLL REVEALS ---- */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes fade-in { to { opacity: 1; } }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--wide { max-width: var(--content-wide); }

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.nav-logo-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--color-text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  line-height: 1;
  display: flex;
  align-items: center;
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface-offset); }

/* ---- HERO ---- */
.hero {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0 clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, oklch(from var(--color-primary) l c h / 0.05), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.hero-title .accent { color: var(--color-primary); }
.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  line-height: 1.65;
  font-family: var(--font-body);
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-ghost {
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.15);
}
.btn-ghost:hover { background: var(--color-surface-offset); border-color: oklch(from var(--color-text) l c h / 0.25); }

/* Terminal widget */
.hero-terminal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.terminal-body {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.8;
}
.t-prompt { color: var(--color-primary); }
.t-cmd    { color: var(--color-text); }
.t-out    { color: var(--color-text-muted); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--color-primary);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- SECTION COMMON ---- */
section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.section-divider {
  border: none;
  border-top: 1px solid var(--color-divider);
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 55ch;
  font-size: var(--text-base);
  line-height: 1.7;
}
.about-text p strong { color: var(--color-text); font-weight: 600; }
.about-facts {
  display: grid;
  gap: var(--space-4);
}
.fact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
}
.fact-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fact-content label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
}
.fact-content span {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* ---- SKILLS ---- */
.skills-bg {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
}
.skill-card {
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.skill-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.4);
  box-shadow: var(--shadow-md);
}
.skill-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.skill-icon {
  width: 36px; height: 36px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.skill-card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--color-text);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.project-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.project-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.project-type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-link-icon {
  color: var(--color-text-faint);
  transition: color var(--transition-interactive);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.project-link-icon:hover { color: var(--color-primary); }
.project-card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.2;
}
.project-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 100%;
  flex: 1;
}
.project-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

/* ---- EXPERIENCE ---- */
.experience-bg {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.timeline {
  margin-top: var(--space-10);
  position: relative;
  padding-left: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 1px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) - 4px);
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.timeline-role {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}
.timeline-company {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-family: var(--font-mono);
}
.timeline-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  margin-left: auto;
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 65ch;
}
.timeline-items-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}
.timeline-items-list li {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.timeline-items-list li::before {
  content: '—';
  color: var(--color-primary);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* The Speeding Car Animation */
.car-speed {
  display: inline-block;
  margin-left: 35px;
  animation: vroom 4s infinite ease-in-out;
}
@keyframes vroom {
  0%, 100% { transform: translateX(0) skewX(0); }
  /* Pull back slightly to wind up... */
  10%, 20% { transform: translateX(20px) skewX(0); }
  /* Zoom forward and lean into the speed! */
  30%, 50% { transform: translateX(-85px) skewX(15deg); }
  /* Settle into the new position before resetting */
  60%, 80% { transform: translateX(-85px) skewX(0); }
}

/* The Toppling Text Animation */
.topple-text {
  display: inline-block;
  /* Make it pivot from the bottom left corner like it's falling over */
  transform-origin: bottom left; 
  animation: smash 4s infinite ease-in-out;
}
@keyframes smash {
  /* Stands perfectly still while the car winds up */
  0%, 25% { 
    transform: rotate(0deg) translate(0, 0); 
  }
  
  /* IMPACT! Gets knocked over to the left and slightly pushed down */
  28%, 80% { 
    transform: rotate(-8deg) translate(-10px, 5px); 
  }
  
  /* Pops back up as the car resets */
  90%, 100% { 
    transform: rotate(0deg) translate(0, 0); 
  }
}

/* True Blinking RGB LED Emoji */
.rgb-led {
display: inline-block;
animation: true-blink 3s infinite;

font-size: 0.75em;
line-height: 0;
vertical-align: baseline;
}
@keyframes true-blink {
/* RED ON */
0%, 15% { 
opacity: 1; 
filter: drop-shadow(0 0 12px #ff4444) brightness(1.2); 
}
/* OFF (Dim & Grey) */
16%, 32% { 
opacity: 0.4; 
filter: grayscale(100%); 
}

/* GREEN ON */
33%, 48% { 
opacity: 1; 
filter: drop-shadow(0 0 12px #44ff44) brightness(1.2); 
}
/* OFF (Dim & Grey) */
49%, 65% { 
opacity: 0.4; 
filter: grayscale(100%); 
}

/* BLUE ON */
66%, 81% { 
opacity: 1; 
filter: drop-shadow(0 0 12px #44aaff) brightness(1.2); 
}
/* OFF (Dim & Grey) */
82%, 100% { 
opacity: 0.4; 
filter: grayscale(100%); 
}
}

/* Robotic movement for the About section */
.robot-move {
  display: inline-block; /* Required to use transform on a span */
  font-size: 0.85em;
  line-height: 0;
  vertical-align: baseline;

  /* The cubic-bezier curve creates that mechanical "servo overshoot" effect */
  animation: servo-snap 4s infinite cubic-bezier(0.5, -0.5, 0.5, 1.5);
}
@keyframes servo-snap {
  /* Bottom center (baseline) */
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
  }
  
  /* Floats up and drifts to the left */
  25% { 
    transform: translate(-8px, 0px) rotate(-12deg); 
  }
  
  /* Dips back down to the center */
  50% { 
    transform: translate(0, 0) rotate(0deg); 
  }
  
  /* Floats up and drifts to the right */
  75% { 
    transform: translate(8px, 0px) rotate(12deg); 
  }
}

/* The Typing Laptop Animation */
.typing-laptop {
  display: inline-block;
  animation: type-bounce 2s infinite ease-in-out;
  font-size: 0.85em;
  line-height: 0;
  vertical-align: baseline;
}

@keyframes type-bounce {
  0%, 100% { transform: translateY(0) scaleY(1); }
  
  /* Quick, snappy down-press like hitting the Enter key */
  85% { transform: translateY(0) scaleY(1); }
  90% { transform: translateY(3px) scaleY(0.9); }
  95% { transform: translateY(-4px) scaleY(1.05); } /* Pop back up */
}


/* ---- CONTACT ---- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-interactive);
}
.contact-link:hover {
  color: var(--color-text);
  border-color: oklch(from var(--color-primary) l c h / 0.4);
  background: var(--color-surface-2);
}
.contact-link-icon {
  width: 36px; height: 36px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-link-label { flex: 1; font-weight: 500; }
.contact-link-arrow { color: var(--color-text-faint); margin-left: auto; }

.contact-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.contact-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 45ch;
  margin-bottom: var(--space-6);
}
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.contact-availability::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

/* ---- FOOTER ---- */
footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
}
.footer-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-links {
  display: flex;
  gap: var(--space-4);
}
.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-text-muted); }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-10); }
      .contact-inner { grid-template-columns: 1fr; gap: var(--space-8); }
      .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
}
@media (max-width: 480px) {
      .container { padding-inline: var(--space-4); }
      .hero-inner { padding-inline: var(--space-4); }
      .nav-inner  { padding-inline: var(--space-4); }
}

/* Floating 'Return to Terminal' Button */
.floating-term-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  
  /* Changed from 50% to 12px for that modern 'app icon' square shape */
  border-radius: 12px; 
  
  /* Classic Terminal Colors */
  background: #111111; 
  color: #ffffff;      
  border: 1px solid #333333; 
  
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Hidden state */
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When the button is active/visible */
.floating-term-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-term-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  border-color: #555555;
  /* Hacker green on hover! */
  color: #44ff44; 
}
