/* =====================================================================
   AIRTON GODOY · PORTFÓLIO AVANÇADO — Design System
   Autor: Airton Godoy | Engenharia de front-end premium, self-contained
   ===================================================================== */

/* ---------- TOKENS BASE ---------- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;

  /* Cores default (tema dark) */
  --bg: #05060f;
  --bg-2: #090b1a;
  --surface: rgba(20, 24, 48, 0.55);
  --surface-solid: #0d1024;
  --surface-hover: rgba(30, 36, 70, 0.7);
  --border: rgba(140, 160, 255, 0.14);
  --border-strong: rgba(140, 160, 255, 0.3);

  --text: #eef1ff;
  --text-soft: #a6adcf;
  --text-dim: #6b7299;

  --accent: #6d8bff;
  --accent-2: #b96bff;
  --accent-3: #38e8c9;
  --accent-soft: rgba(109, 139, 255, 0.16);

  --glow: 0 0 40px rgba(109, 139, 255, 0.35);
  --shadow: 0 24px 60px rgba(2, 4, 15, 0.6);
  --shadow-sm: 0 8px 24px rgba(2, 4, 15, 0.4);

  --aurora-1: #6d8bff;
  --aurora-2: #b96bff;
  --aurora-3: #38e8c9;

  color-scheme: dark;
}

/* ---------- TEMAS ---------- */
html[data-theme="dark"] {
  --bg: #05060f; --bg-2: #090b1a;
  --surface: rgba(20, 24, 48, 0.55); --surface-solid: #0d1024;
  --surface-hover: rgba(30, 36, 70, 0.7);
  --border: rgba(140, 160, 255, 0.14); --border-strong: rgba(140, 160, 255, 0.3);
  --text: #eef1ff; --text-soft: #a6adcf; --text-dim: #6b7299;
  --accent: #6d8bff; --accent-2: #b96bff; --accent-3: #38e8c9;
  --accent-soft: rgba(109, 139, 255, 0.16);
  --glow: 0 0 40px rgba(109, 139, 255, 0.35);
  --shadow: 0 24px 60px rgba(2, 4, 15, 0.6);
  --aurora-1: #6d8bff; --aurora-2: #b96bff; --aurora-3: #38e8c9;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #eef1fb; --bg-2: #e3e8f7;
  --surface: rgba(255, 255, 255, 0.72); --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.92);
  --border: rgba(30, 45, 120, 0.12); --border-strong: rgba(47, 91, 255, 0.35);
  --text: #10152e; --text-soft: #454c6e; --text-dim: #7a80a0;
  --accent: #2f5bff; --accent-2: #7a4bff; --accent-3: #0bb89b;
  --accent-soft: rgba(47, 91, 255, 0.12);
  --glow: 0 0 40px rgba(47, 91, 255, 0.22);
  --shadow: 0 24px 60px rgba(30, 45, 120, 0.16);
  --shadow-sm: 0 8px 24px rgba(30, 45, 120, 0.1);
  --aurora-1: #6d8bff; --aurora-2: #b96bff; --aurora-3: #38e8c9;
  color-scheme: light;
}

html[data-theme="blue"] {
  --bg: #030a1f; --bg-2: #06122f;
  --surface: rgba(15, 33, 70, 0.55); --surface-solid: #0a1a3a;
  --surface-hover: rgba(22, 48, 100, 0.7);
  --border: rgba(95, 168, 255, 0.18); --border-strong: rgba(95, 168, 255, 0.4);
  --text: #eaf3ff; --text-soft: #a9c3e8; --text-dim: #6e88b5;
  --accent: #4aa8ff; --accent-2: #7ad0ff; --accent-3: #3affd0;
  --accent-soft: rgba(74, 168, 255, 0.16);
  --glow: 0 0 44px rgba(74, 168, 255, 0.4);
  --shadow: 0 24px 60px rgba(2, 10, 30, 0.7);
  --aurora-1: #4aa8ff; --aurora-2: #2f7bff; --aurora-3: #3affd0;
  color-scheme: dark;
}

html[data-theme="olive"] {
  --bg: #eaf6ee; --bg-2: #dcefe2;
  --surface: rgba(255, 255, 255, 0.72); --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.92);
  --border: rgba(20, 90, 55, 0.14); --border-strong: rgba(20, 150, 90, 0.4);
  --text: #10251b; --text-soft: #3f5a4e; --text-dim: #6f8a7c;
  --accent: #12a45e; --accent-2: #37c98a; --accent-3: #0bb8a8;
  --accent-soft: rgba(18, 164, 94, 0.12);
  --glow: 0 0 40px rgba(18, 164, 94, 0.25);
  --shadow: 0 24px 60px rgba(15, 60, 40, 0.16);
  --shadow-sm: 0 8px 24px rgba(15, 60, 40, 0.1);
  --aurora-1: #12a45e; --aurora-2: #37c98a; --aurora-3: #0bb8a8;
  color-scheme: light;
}

html[data-theme="matrix"] {
  --bg: #030805; --bg-2: #04120a;
  --surface: rgba(10, 30, 18, 0.6); --surface-solid: #071a0f;
  --surface-hover: rgba(16, 46, 28, 0.75);
  --border: rgba(60, 255, 140, 0.18); --border-strong: rgba(60, 255, 140, 0.42);
  --text: #d6ffe6; --text-soft: #7fdca0; --text-dim: #4f9a6c;
  --accent: #2bff88; --accent-2: #64ffb0; --accent-3: #9dff5c;
  --accent-soft: rgba(43, 255, 136, 0.14);
  --glow: 0 0 44px rgba(43, 255, 136, 0.4);
  --shadow: 0 24px 60px rgba(0, 15, 6, 0.75);
  --aurora-1: #2bff88; --aurora-2: #14c76a; --aurora-3: #9dff5c;
  color-scheme: dark;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- AURORA BACKGROUND ---------- */
.aurora {
  position: fixed;
  inset: -20% -10%;
  z-index: -3;
  filter: blur(100px) saturate(110%);
  opacity: 0.38;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora .a1 { width: 46vw; height: 46vw; left: -6vw; top: -8vw;
  background: radial-gradient(circle, var(--aurora-1), transparent 65%);
  animation: drift1 60s var(--ease) infinite alternate; }
.aurora .a2 { width: 40vw; height: 40vw; right: -8vw; top: 6vw;
  background: radial-gradient(circle, var(--aurora-2), transparent 65%);
  animation: drift2 70s var(--ease) infinite alternate; }
.aurora .a3 { width: 38vw; height: 38vw; left: 30vw; bottom: -14vw;
  background: radial-gradient(circle, var(--aurora-3), transparent 65%);
  animation: drift3 65s var(--ease) infinite alternate; }
html[data-theme="light"] .aurora,
html[data-theme="olive"] .aurora { opacity: 0.22; }

@keyframes drift1 { to { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-6vw, 8vw) scale(1.1); } }
@keyframes drift3 { to { transform: translate(4vw, -6vw) scale(1.2); } }

.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 60; box-shadow: var(--glow);
  transition: width 0.1s linear;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg), transparent 30%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-mono);
  font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 0.95rem; }
.brand-text span { font-size: 0.68rem; color: var(--text-dim); font-family: var(--font-mono); }

.nav { display: flex; gap: 1.2rem; font-size: 0.9rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-soft); position: relative; padding-bottom: 3px; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 0.6rem; }

.theme-switcher { display: flex; gap: 0.2rem; padding: 0.25rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.theme-switcher button {
  width: 30px; height: 30px; border-radius: 99px; border: none; cursor: pointer;
  font-size: 0.95rem; background: transparent; display: grid; place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.theme-switcher button:hover { transform: translateY(-2px) scale(1.1); background: var(--accent-soft); }
.theme-switcher button.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--border-strong); }

.lang-toggle {
  display: flex; align-items: center; gap: 0.3rem; font-family: var(--font-mono);
  font-size: 0.78rem; padding: 0.35rem 0.6rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.lang-toggle b { color: var(--accent); }

.cmdk-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono);
  font-size: 0.72rem; padding: 0.4rem 0.6rem; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.cmdk-btn:hover { color: var(--text); border-color: var(--border-strong); }
.cmdk-btn kbd {
  font-family: var(--font-mono); font-size: 0.68rem; padding: 1px 5px; border-radius: 5px;
  background: var(--accent-soft); border: 1px solid var(--border);
}

.menu-toggle {
  display: none; width: 34px; height: 30px; border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.menu-toggle span { display: block; height: 2.5px; border-radius: 99px; background: var(--text); transition: 0.25s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- LAYOUT ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 4rem; }
.section { margin-top: 6rem; scroll-margin-top: 90px; }
.section-head { margin-bottom: 2.2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.7rem;
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--accent); border-radius: 99px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 0.4rem; letter-spacing: -0.02em; line-height: 1.1; }
.section-head p { margin: 0; color: var(--text-soft); max-width: 60ch; }

.gradient-text {
  background: linear-gradient(110deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- HERO ---------- */
.hero { padding-top: 3.5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem;
  padding: 0.4rem 0.9rem; border-radius: 99px; margin-bottom: 1.4rem;
  background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.03; margin: 0 0 0.6rem; letter-spacing: -0.03em; }
.hero .role { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--accent); font-weight: 600; margin: 0 0 1rem; min-height: 1.5em; font-family: var(--font-mono); }
.hero .role .cursor { display: inline-block; width: 2px; background: var(--accent); margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .summary { color: var(--text-soft); font-size: 1.02rem; max-width: 54ch; margin: 0 0 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: inherit; font-size: 0.92rem;
  font-weight: 600; padding: 0.8rem 1.5rem; border-radius: 99px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 14px 34px color-mix(in srgb, var(--accent), transparent 55%); }
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px color-mix(in srgb, var(--accent), transparent 40%); }
.btn.ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { transform: translateY(-3px); background: var(--surface-hover); }
.btn.full { width: 100%; justify-content: center; }

.hero-social { display: flex; gap: 0.6rem; }
.hero-social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: transform 0.2s var(--ease), color 0.2s, border-color 0.2s;
}
.hero-social a:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--border-strong); }
.hero-social svg { width: 20px; height: 20px; }

/* Hero right — photo */
.hero-visual { position: relative; }
.hero-photo-card {
  position: relative; z-index: 2; width: 320px; max-width: 100%; margin: 0 auto; padding: 0.7rem;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.hero-photo-card .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/4.3; background: var(--bg-2); }
.hero-photo-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-meta { padding: 0.7rem 0.4rem 0.2rem; }
.hero-photo-meta b { font-size: 0.95rem; }
.hero-photo-meta span { display: block; font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); }

/* orbit ring behind photo */
.hero-visual::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 420px; height: 420px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid var(--border); z-index: 0;
}

/* ---------- ONDE JÁ ATUEI ---------- */
.clients { margin-top: 3.5rem; text-align: center; }
.clients-label { margin: 0 0 1rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-dim); }
.clients-list {
  list-style: none; margin: 0; padding: 1.3rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 2.6rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.clients-list li { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 700; letter-spacing: -0.01em; color: var(--text-dim); transition: color 0.2s; }
.clients-list li:hover { color: var(--text); }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.stat {
  padding: 1.4rem 1.2rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); backdrop-filter: blur(10px); text-align: center; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; font-family: var(--font-mono);
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.stat .label { font-size: 0.82rem; color: var(--text-soft); margin-top: 0.3rem; }

/* ---------- CARDS / GLASS ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; backdrop-filter: blur(10px); position: relative; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card.hover:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; }
.about-text p { color: var(--text-soft); margin: 0 0 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); }
.about-list h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.about-list ul { list-style: none; padding: 0; margin: 0; }
.about-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.7rem; color: var(--text-soft); font-size: 0.92rem; }
.about-list li::before { content: "▹"; color: var(--accent); }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent); }
.tl-item { position: relative; margin-bottom: 1.2rem; }
.tl-item::before { content: ""; position: absolute; left: -1.63rem; top: 1.4rem; width: 14px; height: 14px; border-radius: 99px;
  background: var(--bg); border: 2.5px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item.now::before { background: var(--accent); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0%{box-shadow:0 0 0 0 var(--accent-soft);} 70%{box-shadow:0 0 0 8px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.2rem; }
.tl-head h3 { margin: 0; font-size: 1.1rem; }
.tl-tag { font-family: var(--font-mono); font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 99px;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--text-soft); }
.tl-tag.now { color: var(--accent); border-color: var(--border-strong); }
.tl-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin: 0 0 0.4rem; }
.tl-item p.desc { color: var(--text-soft); font-size: 0.92rem; margin: 0; }
.tl-stack { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.7rem; }
.tl-stack span { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-dim); }

/* ---------- AI SECTION ---------- */
.ai-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
.ai-panel { background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft), transparent 30%), transparent);
  border: 1px solid var(--border-strong); }
.ai-features { display: grid; gap: 0.9rem; }
.ai-feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.ai-feature .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--border); font-size: 1.1rem; }
.ai-feature b { display: block; margin-bottom: 0.1rem; }
.ai-feature p { margin: 0; color: var(--text-soft); font-size: 0.88rem; }
.flow { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.flow-node { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.8rem; }
.flow-node .n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 0.75rem; font-weight: 700; }
.flow-arrow { text-align: center; color: var(--accent); font-size: 0.9rem; line-height: 0.5; }

/* ---------- SKILLS ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.skill-card h3 { margin: 0 0 0.9rem; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.skill-card h3 .ic { font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.76rem; padding: 0.32rem 0.7rem; border-radius: 99px; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text-soft); transition: transform 0.2s var(--ease), color 0.2s, border-color 0.2s; cursor: default; }
.chip:hover { transform: translateY(-2px); color: var(--text); border-color: var(--border-strong); }
.chip.hot { border-color: var(--border-strong); color: var(--accent); background: var(--accent-soft); }

/* ---------- EDUCATION ---------- */
.lang-list { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.cert-link { display: inline-block; margin-top: 0.6rem; font-size: 0.84rem; color: var(--accent); text-decoration: none; }
.cert-link:hover { text-decoration: underline; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.edu-card .ic { font-size: 1.4rem; margin-bottom: 0.6rem; }
.edu-card h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.edu-card .inst { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin: 0 0 0.5rem; }
.edu-card p { color: var(--text-soft); font-size: 0.86rem; margin: 0; }
.edu-status { display: inline-block; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.68rem;
  padding: 0.15rem 0.55rem; border-radius: 99px; background: var(--accent-soft); border: 1px solid var(--border); color: var(--text-soft); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.4rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; color: var(--text-soft); font-size: 0.92rem; }
.contact-list a { color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: var(--accent); }
.contact-list .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); border: 1px solid var(--border); }
.contact-cta { display: flex; flex-direction: column; justify-content: center; }
.contact-cta h3 { margin: 0 0 0.5rem; font-size: 1.3rem; letter-spacing: -0.01em; }
.contact-cta p { margin: 0 0 1.4rem; color: var(--text-soft); max-width: 46ch; }
.contact-cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 5rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 0.82rem; }
.footer-inner .made { font-family: var(--font-mono); }

/* ---------- COMMAND PALETTE ---------- */
.cmdk-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center;
  padding-top: 12vh; background: rgba(2, 4, 15, 0.6); backdrop-filter: blur(6px); }
.cmdk-overlay.open { display: flex; animation: fadein 0.2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.cmdk { width: min(560px, 92vw); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.cmdk input { width: 100%; padding: 1rem 1.2rem; border: none; border-bottom: 1px solid var(--border);
  background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 0.95rem; outline: none; }
.cmdk-list { max-height: 320px; overflow-y: auto; padding: 0.4rem; }
.cmdk-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-soft); }
.cmdk-item .ic { width: 26px; text-align: center; }
.cmdk-item.active, .cmdk-item:hover { background: var(--accent-soft); color: var(--text); }
.cmdk-item .hint { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }
.cmdk-empty { padding: 1.5rem; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- BACK TO TOP ---------- */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; cursor: pointer; border: 1px solid var(--border-strong);
  background: var(--surface); backdrop-filter: blur(10px); color: var(--text); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; box-shadow: var(--shadow-sm); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; }
  .hero-visual::before { display: none; }
  .about-grid, .ai-hero, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav {
    position: absolute; top: 60px; right: 1rem; left: 1rem; flex-direction: column; gap: 0.4rem;
    background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
    box-shadow: var(--shadow); transform: scale(0.96); opacity: 0; pointer-events: none; transform-origin: top;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav.open { opacity: 1; transform: scale(1); pointer-events: auto; }
  .menu-toggle { display: flex; margin-left: auto; }
  .cmdk-btn, .brand-text { display: none; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .clients-list { gap: 0.6rem 1.4rem; }
  .theme-switcher button { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .aurora { animation: none; }
}
