@charset "UTF-8";

/* ═══════════════════════════════════════════════════════
   RAÚL SALAS SAHUQUILLO — PORTFOLIO DESIGN SYSTEM
   Monochrome brutalist × Space interactive
   ═══════════════════════════════════════════════════════ */

:root {
  /* MONOCHROME SCALE */
  --void:       #030303;
  --obsidian:   #080808;
  --carbon:     #111111;
  --graphite:   #1A1A1A;
  --iron:       #2A2A2A;
  --ash:        #3A3A3A;
  --smoke:      #555555;
  --silver:     #999999;
  --fog:        #BBBBBB;
  --bone:       #E0E0E0;
  --ghost:      #F5F5F5;
  --pure:       #FFFFFF;

  /* FUNCTIONAL ACCENTS — used sparingly */
  --signal:     #E8E8E8;
  --signal-dim: rgba(232, 232, 232, 0.08);
  --error:      #FF3333;
  --warn:       #FF9900;
  --ok:         #33FF99;

  /* TYPOGRAPHY */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* CRT Scanlines Overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 99999;
  pointer-events: none;
  opacity: 0.15;
}

@media (hover: hover) {
  body { cursor: none; }
  a, button, input, textarea, .project-card, .spec-card, .repo-card, .repo-tab-btn, .tree-item, .tree-folder-header, .code-copy-btn, .svg-preview-card, .code-top-back-btn, .code-top-lang, .code-human-badge-mini, .gh-glass-btn, .gh-glass-pill, .gh-repo-card, .code-top-catalog-back, .human-modal-close, .human-badge-btn { cursor: none; }
}

::selection {
  background: var(--pure);
  color: var(--void);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--smoke); }
::-webkit-scrollbar-thumb:hover { background: var(--silver); }

/* ─── TYPOGRAPHY UTILITIES ─── */
.type-display {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--pure);
  font-weight: 400;
}

.type-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 400;
}

.type-body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
  color: var(--bone);
  font-weight: 300;
}

.type-data {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver);
  letter-spacing: 0.1em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--pure);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ─── LAYOUT ─── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 120px);
  position: relative;
  z-index: 10;
}

.section {
  padding: clamp(120px, 16vh, 220px) 0;
  position: relative;
}

/* ─── LOADING SCREEN ─── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-wordmark {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 56px);
  color: var(--pure);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fade-in 0.4s ease 0.1s forwards;
}

.loading-bar-track {
  width: 200px;
  height: 1px;
  background: var(--iron);
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--pure);
  animation: load-bar 1.2s ease 0.3s forwards;
}

@keyframes load-bar { to { width: 100%; } }
@keyframes fade-in { to { opacity: 1; } }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  transition: width 0.05s linear;
}

/* ─── CANVAS ─── */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ─── CUSTOM CURSOR ─── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 12px;
  background: var(--ok);
  border-radius: 0;
  pointer-events: none;
  z-index: 100000;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  box-shadow: 0 0 6px var(--ok);
}

.custom-cursor.hovering {
  width: 4px;
  height: 4px;
  background: var(--ok);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(51, 255, 153, 0.4);
  border-radius: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.custom-cursor-ring.hovering {
  width: 40px;
  height: 40px;
  border-color: var(--ok);
  background: rgba(51, 255, 153, 0.05);
  box-shadow: 0 0 8px rgba(51, 255, 153, 0.3);
}

/* ─── NAV ─── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.3);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.main-nav.nav--scrolled {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--iron);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pure);
  flex-shrink: 0;
  margin-right: auto;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-logo-sep { color: var(--smoke); }
.nav-logo-domain { color: var(--silver); font-weight: 300; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 4px 0 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--silver);
  transition: color 0.2s;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--pure);
  transition: height 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pure);
}

.nav-link:hover::before,
.nav-link.active::before {
  height: 16px;
}

.nav-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  border: 1px solid var(--iron);
  padding: 4px 10px;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-lang:hover {
  color: var(--pure);
  border-color: var(--pure);
  background: var(--pure);
  color: var(--void);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(51, 255, 153, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(51, 255, 153, 0); }
}

.nav-status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  z-index: 400;
}

.toggle-bar {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--pure);
  transition: all 0.3s;
  margin: 6px 0;
}

/* ─── HERO ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  z-index: 10;
}

.hero-overline {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.overline-sep { color: var(--iron); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 16vw, 200px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--pure);
  margin: 0 0 24px 0;
  display: flex;
  flex-wrap: wrap;
}

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.12em;
  padding-top: 0.22em;
  margin-top: -0.22em;
}

.word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.word-inner.revealed {
  transform: translateY(0);
}

/* Marquee de roles */
.hero-roles {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
  padding: 14px 0;
  margin: 32px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.roles-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
}

.roles-track span {
  margin-right: 24px;
  display: inline-block;
}

.role-sep {
  color: var(--smoke);
  margin-right: 24px;
  display: inline-block;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-descriptor {
  max-width: 650px;
  margin-bottom: 40px;
  color: var(--fog);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.hero-descriptor code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--ok);
  background: rgba(51, 255, 153, 0.08);
  padding: 1px 6px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--iron);
  color: var(--silver);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
  font-size: 16px;
}

.social-link:hover {
  border-color: var(--pure);
  color: var(--pure);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--smoke), transparent);
  animation: line-drop 2s ease-in-out infinite;
}

@keyframes line-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--pure);
  color: var(--void);
  border-color: var(--pure);
}

.btn-primary:hover {
  background: transparent;
  color: var(--pure);
}

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

.btn-ghost:hover {
  border-color: var(--pure);
  color: var(--pure);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── STATS BAR ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
  max-width: 1400px;
  margin: clamp(40px, 6vh, 80px) auto;
  position: relative;
  z-index: 10;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 48px clamp(16px, 3vw, 40px);
  border-right: 1px solid var(--iron);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  color: var(--ok);
  text-shadow: 0 0 10px rgba(51, 255, 153, 0.3);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ─── SECTION HEADERS ─── */
.section-header {
  margin-bottom: clamp(64px, 8vh, 96px);
  position: relative;
}

.section-overline {
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--pure);
  position: relative;
}

.section-title-ghost {
  position: absolute;
  top: -0.3em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(160px, 25vw, 350px);
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  text-transform: uppercase;
}

/* ─── ABOUT SECTION ─── */
.about-section {
  z-index: 10;
  position: relative;
}

.intro-text {
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.4;
  color: var(--pure);
  font-weight: 300;
  max-width: 900px;
  margin-bottom: 40px;
}

.about-detail {
  color: var(--fog);
  max-width: 800px;
  margin-bottom: 48px;
  line-height: 1.8;
  font-size: clamp(15px, 1.8vw, 17px);
}

.about-detail strong {
  color: var(--pure);
  font-weight: 600;
}

.about-detail em {
  color: var(--silver);
  font-style: italic;
}

.terminal-quote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver);
  border: 1px solid var(--iron);
  background: rgba(3, 3, 3, 0.85);
  padding: 24px 30px;
  margin-bottom: 48px;
  line-height: 1.8;
  max-width: 600px;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.terminal-quote::after {
  content: " ▒";
  color: var(--ok);
  animation: prompt-blink 0.8s steps(2, start) infinite;
}

@keyframes prompt-blink {
  to { visibility: hidden; }
}

.terminal-quote .prompt {
  color: var(--ok);
  text-shadow: 0 0 4px rgba(51, 255, 153, 0.4);
}

.terminal-quote .cmd {
  color: var(--pure);
}

.terminal-quote .output {
  color: var(--fog);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.spec-card {
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--iron);
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.spec-card:hover {
  border-color: var(--ok);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(51, 255, 153, 0.12);
}

.spec-icon {
  font-size: 28px;
  color: var(--pure);
  margin-bottom: 24px;
  display: block;
}

.spec-card h4 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.spec-card p {
  color: var(--silver);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── PROJECTS SECTION ─── */
.projects-section {
  z-index: 10;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

a.project-card,
.project-card {
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--iron);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
}

.project-card--wide {
  grid-column: 1 / -1;
}

.project-card--wide .project-description {
  max-width: 820px;
}

.project-link {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.2s;
}

.project-card:hover .project-link {
  color: var(--pure);
}

.project-link i {
  font-size: 14px;
  transition: transform 0.2s;
}

.project-card:hover .project-link i {
  transform: translateX(3px);
}

.project-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-actions a.project-link {
  margin-top: 0;
  padding-top: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.2s;
}

.project-actions a.project-link:hover,
.project-card:hover .project-actions a.project-link {
  color: var(--pure);
}

.project-actions a.project-link i {
  font-size: 14px;
  transition: transform 0.2s;
}

.project-card:hover .project-actions a.project-link i,
.project-actions a.project-link:hover i {
  transform: translateX(3px);
}

.project-extra-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--iron);
  padding: 6px 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}

.project-btn:hover {
  color: var(--pure);
  border-color: var(--pure);
  background: rgba(255, 255, 255, 0.08);
}

.project-btn-primary {
  color: var(--void);
  background: var(--pure);
  border-color: var(--pure);
}

.project-btn-primary:hover {
  background: transparent;
  color: var(--pure);
}

.project-btn-hf {
  color: var(--silver);
  border-color: var(--iron);
}

.project-btn-hf:hover {
  border-color: #FFD21E;
  color: #FFD21E;
  background: rgba(255, 210, 30, 0.08);
}

.project-btn-hf svg {
  transition: transform 0.2s ease;
}

.project-btn-hf:hover svg {
  transform: scale(1.15);
}

.project-card::before {
  content: attr(data-index);
  position: absolute;
  top: -0.15em;
  right: 0.05em;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 160px);
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.project-card:hover {
  border-color: var(--ok);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(51, 255, 153, 0.15);
}

.project-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 16px;
}

.project-title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.project-divider {
  width: 40px;
  height: 1px;
  background: var(--iron);
  margin: 16px 0 20px;
  transition: width 0.4s ease, background 0.4s ease;
}

.project-card:hover .project-divider {
  width: 80px;
  background: var(--smoke);
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--iron);
  color: var(--silver);
  transition: all 0.2s ease;
}

.project-card:hover .badge {
  border-color: rgba(51, 255, 153, 0.3);
  color: var(--ok);
}

.project-description {
  color: var(--silver);
  font-size: 15px;
  line-height: 1.7;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.project-status {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.active { background: var(--ok); }
.status-dot.dev { background: var(--warn); }
.status-dot.concept { background: var(--smoke); }

/* ─── SKILLS SECTION ─── */
.skills-section {
  z-index: 10;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.skill-group {
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--iron);
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

.skill-group:hover {
  border-color: var(--ash);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 24px;
  font-weight: 400;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--iron);
  color: var(--silver);
  background: transparent;
  transition: all 0.2s ease;
}

.skill-pill:hover {
  background: var(--pure);
  color: var(--void);
  border-color: var(--pure);
}

.skill-pill.learning {
  border-style: dashed;
  color: var(--smoke);
}

.skill-pill.learning:hover {
  background: var(--ash);
  color: var(--bone);
  border-style: solid;
  border-color: var(--ash);
}

/* ─── CONTACT SECTION ─── */
.contact-section {
  z-index: 10;
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  color: var(--pure);
  text-transform: uppercase;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--bone);
  word-break: break-all;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--pure);
}

.contact-desc {
  color: var(--silver);
  max-width: 400px;
  line-height: 1.7;
}

.contact-social-icons {
  display: flex;
  gap: 16px;
}

.contact-social-icons .social-link {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  border: 1px solid var(--iron);
  background: rgba(3, 3, 3, 0.6);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--pure);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input::placeholder {
  color: var(--ash);
}

.form-input:focus {
  border-color: var(--pure);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 40px;
  background: var(--pure);
  color: var(--void);
  border: 1px solid var(--pure);
  transition: all 0.3s ease;
  outline: none;
}

.form-submit:hover {
  background: transparent;
  color: var(--pure);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: none;
  border-radius: 4px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  animation: fadeInStatus 0.3s ease;
}

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

.form-status.success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(51, 255, 153, 0.08);
  border: 1px solid var(--ok);
  color: var(--ok);
}

.form-status.error {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 51, 51, 0.08);
  border: 1px solid var(--error);
  color: var(--error);
}

/* ─── FOOTER ─── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--iron);
  padding: 80px 0 40px;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 100px);
  line-height: 0.95;
  color: var(--pure);
  text-transform: uppercase;
  padding-top: 0.1em;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--smoke);
  text-transform: uppercase;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ok);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 8px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-link:hover { color: var(--pure); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--iron);
  padding-top: 32px;
  gap: 24px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--smoke);
  text-transform: uppercase;
}

.built-with {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── MADE IN HUMAN BADGE & MODAL ─── */
.human-badge-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--iron);
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
}

.human-badge-btn:hover {
  background: rgba(248, 241, 225, 0.08);
  border-color: rgba(248, 241, 225, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(248, 241, 225, 0.12);
}

.human-badge-btn:focus-visible {
  outline: 2px solid #F8F1E1;
  outline-offset: 3px;
}

.human-badge-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.human-badge-btn:hover .human-badge-img {
  transform: scale(1.04);
}

/* Modal Backdrop & Dialog */
.human-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99980;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.human-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.human-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 99985;
  background: rgba(12, 12, 12, 0.96);
  color: var(--bone);
  border: 1px solid rgba(248, 241, 225, 0.2);
  border-radius: 12px;
  padding: 0;
  max-width: 660px;
  width: min(92vw, 660px);
  height: fit-content;
  max-height: 90vh;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(248, 241, 225, 0.04);
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: none;
}

.human-modal[open],
.human-modal.active {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.human-modal::backdrop {
  display: none;
}

.human-modal-inner {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.human-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.human-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.human-modal-avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.human-modal-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #F8F1E1;
  text-transform: uppercase;
  font-weight: 500;
}

.human-modal-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--iron);
  color: var(--silver);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.human-modal-close:hover {
  color: var(--pure);
  border-color: #F8F1E1;
  background: rgba(248, 241, 225, 0.1);
  transform: rotate(90deg);
}

.human-modal-body {
  display: flex;
  flex-direction: column;
}

.human-modal-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 36px);
  line-height: 1.08;
  color: #F8F1E1;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.human-modal-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(248, 241, 225, 0.35), rgba(248, 241, 225, 0.05));
  margin-bottom: 22px;
}

.human-modal-paragraph {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--bone);
  margin-bottom: 16px;
}

.human-modal-paragraph strong {
  color: #FFFFFF;
  font-weight: 600;
}

.human-modal-certificate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px 20px;
  background: rgba(248, 241, 225, 0.04);
  border: 1px solid rgba(248, 241, 225, 0.18);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #F8F1E1;
  line-height: 1.5;
}

.certificate-icon {
  color: var(--ok);
  font-size: 20px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .human-modal-inner {
    padding: 24px 20px;
  }
  .human-modal-avatar {
    width: 32px;
    height: 32px;
  }
  .human-modal-certificate {
    font-size: 12px;
    padding: 12px 14px;
    gap: 10px;
  }
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
