/* ======================
   Design tokens & fonts
   ====================== */


:root {
  /* Brand Colors */
  --background-color: #2d3f38;
  --primary-color: #5da88e;
  --paragraph-color: #406256;
  --link-color: #0D5239;
  --secondary-background: rgba(13, 82, 57, 0.0625);
  --border-color: rgba(13, 82, 57, 0.3125);
  --placeholder-background: #EAEAEA;
  --placeholder-text: #D9534F;
  --footer-background: #0D5239;
  --footer-background-alt: #0E523A;

  /* Text Colors */
  --text-white: #FFFFFF;
  --text-white-50: rgba(255, 255, 255, 0.5);
  --text-white-70: rgba(255, 255, 255, 0.7);
  --text-white-80: rgba(255, 255, 255, 0.8);

  /* Background Colors */
  --bg-white-03: rgba(255, 255, 255, 0.03);
  --bg-white-05: rgba(255, 255, 255, 0.05);
  --bg-white-06: rgba(255, 255, 255, 0.06);
  --bg-white-08: rgba(255, 255, 255, 0.08);
  --bg-white-10: rgba(255, 255, 255, 0.1);
  --bg-white-15: rgba(255, 255, 255, 0.15);

  /* Border Colors */
  --border-white-15: rgba(255, 255, 255, 0.15);
  --border-white-20: rgba(255, 255, 255, 0.2);
  --border-white-25: rgba(255, 255, 255, 0.25);
  --border-white-30: rgba(255, 255, 255, 0.3);
  --border-white-40: rgba(255, 255, 255, 0.4);
  --border-white-50: rgba(255, 255, 255, 0.5);

  /* Shadow Colors */
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --shadow-dark-20: rgba(0, 0, 0, 0.2);
  --shadow-dark-30: rgba(0, 0, 0, 0.3);

  /* Spacing Scale (8-point grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Container Widths */
  --container-sm: 800px;
  --container-md: 1000px;
  --container-lg: 1200px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Border Widths */
  --border-thin: 1px;
  --border-medium: 2px;

  /* Typography Scale */
  --font-xs: 10px;
  --font-sm: 12px;
  --font-base: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 24px;
  --font-2xl: 32px;
  --font-3xl: 48px;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* Font Families */
  --font-heading: 'JetBrains Mono', monospace;
  --font-body: 'Figtree', sans-serif;

  /* Icon Sizes */
  --icon-sm: 20px;
  --icon-md: 24px;
  --icon-lg: 48px;
  --icon-xl: 56px;

  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-cubic: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}






@font-face {
  font-family: 'Figtree';
  src: url('/fonts/Figtree-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ABCMonumentGrotesk';
  src: url('./fonts/ABCMonumentGroteskSemi-Mono-Regular-Trial.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'ABCMonumentGrotesk';
  src: url('./fonts/ABCMonumentGroteskSemi-Mono-Bold-Trial.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'ABCMonumentGrotesk';
  src: url('./fonts/ABCMonumentGroteskSemi-Mono-Black-Trial.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

/* ======================
   Base
   ====================== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-color);
  background-image:
    url('images/lines.svg'),
    url('images/noise.svg'),
    url('images/Ellipse 1.svg');
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: center top, center top, center 0;
  background-size: 100% auto, 200px 200px, 400vw 200vh;
  background-attachment: scroll, scroll, scroll;
  background-blend-mode: normal, soft-light, normal;
  font-family: 'jetbrains mono', monospace;
  margin: 0;
  padding: 0;
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: auto;
  padding: 48px 0;
}

.header {
  text-align: left;
  max-width: var(--container-sm);
  margin: auto;
  padding: var(--space-lg);
  height: none;
  align-content: center;
}

.main-header {
  text-align: left;
  max-width: var(--container-sm);
  margin: auto;
  padding: var(--space-lg);
  min-height: 50vh;
  align-content: center;
}

.main-header h1 {
  color: var(--text-white);
}

.main-header p {
  color: var(--text-white-70);
}

.main-header strong {
  color: var(--text-white);
}

.main-header a {
  color: var(--text-white);
}

.main-header .btn-primary {
  background: var(--text-white);
  color: var(--link-color);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.main-header .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--border-white-30);
}

.main-header .btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: var(--border-medium) solid var(--text-white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-header .btn-secondary:hover {
  background: var(--bg-white-10);
  transform: scale(1.05);
}

h1 {
  font-size: 48px;
  font-weight: 600;
  margin: 16px 0;
  color: var(--text-white);
}

#typing-text::after {
  content: '|';
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

#typing-text.done::after {
  display: none;
}

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

.header p {
  font-size: 16px;
  font-weight: normal;
  line-height: 24px;
  margin: 16px 0;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 16px;
  color: var(--text-white);
  }

h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--text-white);
}

h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  margin: 8px 0 4px;
  color: var(--text-white);
}

p {
  font-size: 16px;
  font-family: 'Figtree', sans-serif;
  font-weight: normal;
  line-height: 24px;
  margin: 4px 0 0;
  color: var(--text-white-70);
}

a {
  font-family: 'Figtree', sans-serif;
  color: var(--text-white-70);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-underline-offset 0.2s ease, color 0.2s ease;
}

a:hover {
  text-underline-offset: 6px;
  color: var(--text-white);
}

a:focus-visible {
  outline: var(--border-medium) solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 2px;
}

ul, li {
  font-size: 16px;
  font-weight: normal;
  line-height: 24px;
  margin: 4px 0 0;
  color: var(--text-white-70);
  font-family: 'Figtree', sans-serif;
}

/* ======================
   Buttons
   ====================== */

.buttons {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  justify-content: flex-start;
  padding-top: 16px;
}

.btn-primary {
  font-family: 'jetbrains mono', monospace;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-full);
}

.btn-secondary {
  font-family: 'jetbrains mono', monospace;
  background: var(--secondary-background);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-full);
}

.btn-tertiary {
  font-family: 'jetbrains mono', monospace;
  background: none;
  color: var(--primary-color);
  border: none;
  padding-block: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  align-content: center;
  text-decoration: none;
  max-width: fit-content;
}

.back-icon {
  width: 20px;
  height: 20px;
  stroke: var(--primary-color);
  stroke-width: 2;
}

/* Focus states for accessibility */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-tertiary:focus-visible {
  outline: var(--border-medium) solid var(--primary-color);
  outline-offset: 2px;
}

.main-header .btn-primary:focus-visible {
  outline-color: var(--text-white);
}

/* ======================
   Sections & imagery
   ====================== */

.image-wrapper {
  padding: 4px;
  max-width: var(--container-sm);
  margin: auto;
}

.full-width-image {
  width: 100%;
  max-width: var(--container-sm);
  display: block;
  margin: 20px auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section-header {
  padding: var(--space-lg);
  max-width: var(--container-sm);
  margin: auto;
  margin-top: 32px;
}

.home-page .section-header {
  text-align: center;
}
.section-header p {
  font-size: 16px;
  font-weight: normal;
  line-height: 24px;
  margin-bottom: 16px;
}

/* ======================
   Stats
   ====================== */

/* .stats-wrapper {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: var(--space-lg);
  box-sizing: border-box;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0;
  box-sizing: border-box;
}

.stat-card {
  background: var(--bg-white-03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--link-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  background: var(--bg-white-06);
  border-color: var(--border-white-20);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-dark-30);
}

.stat-card:hover::before {
  opacity: 1;
}

.stats-icon {
  width: 3.5rem;
  height: 3.5rem;
  stroke: var(--primary-color);
  stroke-width: 1.5;
  display: inline-block;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover .stats-icon {
  stroke: var(--link-color);
  transform: scale(1.1);
}

.stat-number {
  font-family: 'jetbrains mono', monospace;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-white);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.stat-caption {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-white-70);
  margin: 0.75rem 0 0;
  max-width: 100%;
} */

/* ======================
   Skills Section
   ====================== */

.skills-section {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 16px 32px;
}

.skills-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.skill-tab {
  font-family: 'jetbrains mono', monospace;
  background: transparent;
  color: var(--text-white-50);
  border: 2px solid var(--border-color);
  padding: var(--space-sm) var(--space-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.skill-tab:hover {
  color: var(--text-white-80);
  border-color: var(--border-white-30);
}

.skill-tab.active {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

.skill-tab:focus-visible {
  outline: var(--border-medium) solid var(--primary-color);
  outline-offset: 2px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.skill-card {
  background: var(--bg-white-05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-dark-20);
}

.skill-card.dimmed {
  opacity: 0.25;
}

.skill-card.dimmed:hover {
  opacity: 0.5;
}

.skill-card .skill-icon {
  width: 24px;
  height: 24px;
  stroke: var(--primary-color);
  stroke-width: 1.5;
  margin-bottom: 8px;
}

.skill-card .skill-name {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: var(--text-white-80);
  margin: 0;
  white-space: nowrap;
}

/* ======================
   Tools Marquee
   ====================== */

.tools-marquee {
  width: 100%;
  overflow: hidden;
  padding: 32px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tools-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 60s linear infinite;
}

.tools-marquee:hover .tools-track {
  animation-play-state: paused;
}

.tool-item {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tool-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

.tool-item img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.tool-item:hover img {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ======================
   Project cards (grid)
   ====================== */

.projects {
  text-align: center;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  max-width: var(--container-sm);
  margin: auto;
  padding: var(--space-lg);
  perspective: 1000px;
}

.project-card {
  background: var(--bg-white-10);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 2px solid var(--border-color);
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}
.project-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-card .image-container {
  width: 100%;
  height: 200px;
  background: var(--placeholder-background);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.project-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.tags {
  display: flex;
  gap: var(--space-sm);
  margin-top: 8px;
  flex-wrap: wrap;
}
.tags span {
  display: inline-block;
  background: var(--bg-white-15);
  border: var(--border-thin) solid var(--border-white-50);
  color: var(--text-white);
  padding: 4px 8px;
  font-size: 10px;
  line-height: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ======================
   Project rows (lists)
   ====================== */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--container-sm);
  margin: auto;
  padding: var(--space-lg);
}

.project-row {
  display: flex;
  align-items: center;           /* text + chevron aligned */
  justify-content: space-between;/* push chevron right */
  background: var(--bg-white-05);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.project-row:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transform: scale(1.02);
}

.project-row-content {
  display: flex;
  flex-direction: column;
  flex: 1;                       /* prevents chevron wrap */
}

.project-row-image {
  width: 80px;
  height: 80px;
  background: var(--placeholder-background);
  color: var(--placeholder-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: bold;
  margin-right: 16px;
  flex-shrink: 0;
}

.chevron-icon {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  stroke-width: 2;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  pointer-events: none;          /* row gets the click */
}
.project-row:hover .chevron-icon {
  transform: translateX(4px);
}

/* ======================
   Footer
   ====================== */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: inherit;
  margin: auto;
  overflow: hidden;
}
.footer-svg {
  width: 100%;
  height: 200px;
  background: url('images/topo-map-footer.svg') repeat;
}
.footer-content {
  background: var(--footer-background-alt);
  width: 100%;
  text-align: center;
  color: var(--text-white-50);
  padding: var(--space-lg);
  font-size: 18px;
}

/* ======================
   Responsive
   ====================== */

@media (max-width: 600px) {
  .section-header {
    padding: var(--space-lg) var(--space-md);
  }

  /* .stats-wrapper {
    padding: var(--space-lg) var(--space-md);
  }

  .stats-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .stat-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  } */
}

@media (orientation: portrait) {
  body {
    background-size: 100% auto, 200px 200px, 400vh 200vh;
  }
}
