/* =========================================================
   Saad — Homepage (React build)
   Modern dark theme + seamless animation system.
   ========================================================= */

:root {
  --bg:        #07080d;
  --bg-soft:   #0d1019;
  --surface:   #121622;
  --surface-2: #181f30;
  --surface-3: #1f2840;
  --border:    #232b3d;
  --border-2:  #2b3550;

  --fg:        #edf1f8;
  --fg-soft:   #b5bdcc;
  --fg-mute:   #7b8597;
  --fg-dim:    #5a6378;

  --blue:    #6e8eff;
  --teal:    #5eead4;
  --violet:  #c4b5fd;
  --pink:    #ff9bd1;
  --green:   #34d399;
  --yellow:  #f5c451;
  --red:     #ff7373;

  --grad: linear-gradient(120deg, #6e8eff 0%, #5eead4 55%, #c4b5fd 100%);
  --grad-soft: linear-gradient(135deg, rgba(110,142,255,0.18), rgba(94,234,212,0.10) 50%, rgba(196,181,253,0.12));

  --mono: 'JetBrains Mono', 'Fira Code', Consolas, ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --shadow:    0 8px 30px rgba(0,0,0,0.25);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.55);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --t-fast: 0.18s;
  --t:      0.35s;
  --t-slow: 0.7s;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1180px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: #a8b8ff; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* =========================================================
   Animated background orbs
   ========================================================= */
.orbs {
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  background: #6e8eff;
  top: -10%; left: -10%;
  animation: orbDrift1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 460px; height: 460px;
  background: #5eead4;
  top: 30%; right: -10%;
  animation: orbDrift2 28s ease-in-out infinite alternate;
}
.orb-3 {
  width: 380px; height: 380px;
  background: #c4b5fd;
  bottom: -10%; left: 30%;
  animation: orbDrift3 26s ease-in-out infinite alternate;
}
@keyframes orbDrift1 { to { transform: translate(120px, 80px) scale(1.1); } }
@keyframes orbDrift2 { to { transform: translate(-90px, 130px) scale(0.95); } }
@keyframes orbDrift3 { to { transform: translate(80px, -100px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

/* =========================================================
   Reveal — scroll-triggered fade + slide
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--easing), transform var(--t-slow) var(--easing);
  will-change: opacity, transform;
}
.reveal.inView {
  opacity: 1;
  transform: none;
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--easing), transform var(--t-slow) var(--easing);
}
.stagger.inView > * {
  opacity: 1;
  transform: none;
}
.stagger.inView > *:nth-child(1) { transition-delay: 50ms; }
.stagger.inView > *:nth-child(2) { transition-delay: 130ms; }
.stagger.inView > *:nth-child(3) { transition-delay: 210ms; }
.stagger.inView > *:nth-child(4) { transition-delay: 290ms; }
.stagger.inView > *:nth-child(5) { transition-delay: 370ms; }
.stagger.inView > *:nth-child(6) { transition-delay: 450ms; }
.stagger.inView > *:nth-child(7) { transition-delay: 520ms; }
.stagger.inView > *:nth-child(8) { transition-delay: 590ms; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,8,13,0.65);
  border-bottom: 1px solid rgba(35,43,61,0.6);
  transition: padding var(--t) var(--easing);
}
.nav.scrolled { padding: 2px 0; background: rgba(7,8,13,0.85); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 700; font-size: 15px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #07080d;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: transform var(--t) var(--easing);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }

/* Headshot avatar — replaces the MS gradient mark */
.logo-photo {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad) border-box;
  transition: transform var(--t) var(--easing);
}
.logo:hover .logo-photo { transform: scale(1.06); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast) ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transition: right var(--t) var(--easing);
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--fg); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--fg);
  color: #07080d;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform var(--t) var(--easing), background var(--t) ease;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 28px 72px;
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-soft);
  background: rgba(94,234,212,0.07);
  border: 1px solid rgba(94,234,212,0.20);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
}
.led {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52,211,153,0.7);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; box-shadow: 0 0 2px rgba(52,211,153,0.3); } }

/* View toggle pills */
.view-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 26px;
  position: relative;
  font-family: var(--mono);
  font-size: 12.5px;
}
.vt-pill {
  position: relative;
  background: transparent;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--fg-soft);
  font-family: inherit; font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.3px;
  z-index: 1;
  transition: color var(--t-fast) ease;
}
.vt-pill:hover { color: var(--fg); }
.vt-pill.active { color: #07080d; font-weight: 700; }
.vt-indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  background: var(--grad);
  border-radius: 999px;
  transition: left var(--t) var(--easing), width var(--t) var(--easing);
  z-index: 0;
}

/* Hero title — gradient & reveal */
.hero-title {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  position: relative;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: titleRise 1s var(--easing) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 100ms; }
.hero-title .line:nth-child(2) span { animation-delay: 250ms; }
@keyframes titleRise { to { transform: none; } }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-sub strong { color: var(--fg); }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform var(--t) var(--easing), background var(--t) ease, border-color var(--t) ease;
  will-change: transform;
}
.btn-primary {
  background: var(--grad);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #07080d;
  transition: background-position 0.8s var(--easing), transform var(--t) var(--easing);
}
.btn-primary:hover { background-position: 100% 50%; transform: translateY(-2px); color: #07080d; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--surface); color: var(--fg); border-color: var(--blue); }
.arrow { transition: transform var(--t) var(--easing); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px 36px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 2px; }
.meta-k { color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.6px; font-size: 11px; }
.meta-v { color: var(--fg); }

/* Hero illustration card (code window) */
.code-window {
  background: linear-gradient(180deg, #0e1320 0%, #07080d 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--easing);
  will-change: transform;
}
.code-window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.code-window-bar .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.code-window-bar .dot.red    { background: #ff5f56; }
.code-window-bar .dot.yellow { background: #ffbd2e; }
.code-window-bar .dot.green  { background: #27c93f; }
.code-window-title { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }
.code-window-body {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 22px 24px;
  color: var(--fg);
  overflow-x: auto;
  white-space: pre;
}
.code-window-body code { font-family: inherit; color: inherit; }
.k    { color: #ff7b9c; }
.s    { color: #a6d8ff; }
.n    { color: #ffb86c; }
.c    { color: #ffd580; }
.cls  { color: #ffd580; }
.fn   { color: #c4a8ff; }
.v    { color: #edf1f8; }
.comment { color: #6a7585; font-style: italic; }
.b    { color: #7dd3fc; }
.d    { color: #f5c451; }
.m    { color: #ffa657; }

/* View cross-fade for hero content */
.view-fade {
  animation: viewFade 0.5s var(--easing);
}
@keyframes viewFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px 28px 84px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: transform var(--t) var(--easing), border-color var(--t) ease, background var(--t) ease;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: -1px;
  background: var(--grad);
  border-radius: inherit;
  opacity: 0; transition: opacity var(--t) ease;
  z-index: -1;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: var(--surface);
}
.stat:hover::before { opacity: 0.6; }
.stat-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
  line-height: 1;
}
.stat-lbl { font-size: 13.5px; color: var(--fg-soft); line-height: 1.45; }

/* =========================================================
   SECTIONS — heads
   ========================================================= */
.section {
  padding: 96px 28px;
  scroll-margin-top: 80px;
  position: relative;
}
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.about-copy p {
  font-size: 16px;
  color: var(--fg-soft);
  margin: 0 0 14px;
}
.about-copy strong { color: var(--fg); }

.about-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(110,142,255,0.10);
  border: 1px solid rgba(110,142,255,0.25);
  color: var(--fg);
  transition: transform var(--t-fast) ease, background var(--t-fast) ease;
}
.tag:hover { transform: translateY(-1px); background: rgba(110,142,255,0.18); }

.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.aside-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.aside-card-head {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}
.aside-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; }
.aside-card dt { font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute); padding-top: 2px; }
.aside-card dd { margin: 0; font-size: 13.5px; color: var(--fg); }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  list-style: none;
  margin: 0; padding: 0 0 0 18px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute; top: 10px; bottom: 10px; left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--teal) 50%, var(--violet));
  border-radius: 2px;
  opacity: 0.4;
}
.t-item { position: relative; padding: 0 0 28px 36px; }
.t-marker {
  position: absolute; left: -3px; top: 24px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(110,142,255,0.18), 0 0 0 1px var(--bg);
  transition: box-shadow var(--t) ease;
}
.t-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: border-color var(--t) ease, transform var(--t) var(--easing);
}
.t-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.t-card:hover ~ .t-marker,
.t-item:has(.t-card:hover) .t-marker {
  box-shadow: 0 0 0 8px rgba(110,142,255,0.22), 0 0 0 1px var(--bg);
}
.t-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.t-head h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.t-when { font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute); }
.t-company { font-family: var(--mono); font-size: 13px; color: var(--teal); margin-bottom: 12px; }
.t-points { margin: 0; padding-left: 20px; color: var(--fg-soft); font-size: 14.5px; }
.t-points li { margin: 4px 0; }
.t-points em { color: var(--blue); font-style: normal; }
.t-points strong { color: var(--fg); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  overflow: hidden;
  transition: border-color var(--t) ease, transform var(--t) var(--easing), background var(--t) ease;
}
.project::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(110,142,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity var(--t) ease;
  pointer-events: none;
}
.project:hover { border-color: var(--blue); transform: translateY(-3px); background: var(--surface-2); }
.project:hover::before { opacity: 1; }
.project.featured {
  grid-column: span 2;
  background: linear-gradient(160deg, rgba(110,142,255,0.06), rgba(94,234,212,0.04)), var(--surface);
}
.project-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--fg-mute); margin-bottom: 10px; }
.project-kind { color: var(--teal); }
.project-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.project-desc { margin: 0 0 14px; color: var(--fg-soft); font-size: 14.5px; }
.project-bullets { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.project-bullets li {
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-soft);
  padding-left: 18px; position: relative;
}
.project-bullets li::before { content: "▸"; color: var(--teal); position: absolute; left: 2px; top: 0; }
.project-bullets strong { color: var(--fg); }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-impl {
  margin-top: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.mini-code { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--fg); white-space: pre; overflow-x: auto; }
.project-cta { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color var(--t) ease, transform var(--t) var(--easing);
}
.skill-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.skill-card h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--teal);
}
.skill-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.skill-card li { display: flex; align-items: center; gap: 12px; }
.bar {
  flex: 0 0 92px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 999px;
  transition: width 1.4s var(--easing);
}
.skill-card.inView .bar > span { width: var(--w, 60%); }
.bar-lbl { font-size: 13.5px; color: var(--fg); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(160deg, rgba(110,142,255,0.10), rgba(94,234,212,0.06)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.contact-box::after {
  content: "";
  position: absolute; bottom: -60%; right: -40%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,181,253,0.18), transparent 60%);
  pointer-events: none;
}
.contact-left p { color: var(--fg-soft); margin: 12px 0 22px; max-width: 50ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(7,8,13,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color var(--t) ease, transform var(--t) var(--easing);
}
.contact-list li:hover { border-color: var(--blue); transform: translateX(4px); }
.contact-k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-v { font-size: 14.5px; color: var(--fg); }
a.contact-v:hover { color: var(--blue); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 18px;
  align-items: center; flex-wrap: wrap;
}
.footer-copy { font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-family: var(--mono); font-size: 12.5px; color: var(--fg-soft); }
.footer-links a:hover { color: var(--blue); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding: 68px 28px 40px; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding-bottom: 56px; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-title { font-size: 40px; }
  .hero-meta { grid-template-columns: 1fr; gap: 10px; }
  .skills-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 28px; }
  .section { padding: 64px 28px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1f2738; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2b3650; }

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

/* Focus rings */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 999px;
}
