/* =========================================================
   ABSAR HASHIM — Full Stack & Web Application Developer
   Design tokens
   ========================================================= */
:root {
  /* Brand palette — strictly blue + white, neutrals derived for text/surfaces */
  --brand: #0072FE;
  --brand-2: #3d94ff;

  /* Dark theme (default) */
  --ink:        #05070c;
  --surface:    #0d1420;
  --surface-2:  #101a2b;
  --border:     #1c2a3d;
  --border-soft: #141f30;
  --text:       #ffffff;
  --text-muted: #aab4c4;
  --text-faint: #6b7a90;
  --accent:     var(--brand);
  --accent-2:   var(--brand-2);
  --accent-soft: rgba(0, 114, 254, 0.14);
  --success:    var(--brand);
  --shadow-color: rgba(0, 114, 254, 0.40);
  --shadow-sm: 0 10px 26px -8px var(--shadow-color);
  --shadow-md: 0 26px 55px -14px var(--shadow-color);
  --shadow-lg: 0 40px 90px -20px var(--shadow-color);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
}

:root[data-theme="light"] {
  --ink:        #ffffff;
  --surface:    #f4f8ff;
  --surface-2:  #eaf2ff;
  --border:     #d7e5fb;
  --border-soft: #e4edfb;
  --text:       #071224;
  --text-muted: #4b5a70;
  --text-faint: #7c8aa0;
  --accent-soft: rgba(0, 114, 254, 0.10);
  --shadow-color: rgba(0, 114, 254, 0.22);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Live animated background */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
:root[data-theme="light"] #bg-canvas { opacity: 0.4; }
.page-shell { position: relative; z-index: 1; }

/* Fine grid, fading toward the bottom of the viewport */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 35%, transparent 100%);
  opacity: 0.55;
}
:root[data-theme="light"] .bg-grid { opacity: 0.35; }

/* Soft drifting light — one bold, restrained accent behind the whole page */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  will-change: transform;
}
.bg-aurora::before {
  background: radial-gradient(circle, var(--brand) 0%, transparent 68%);
  top: -18%;
  left: -12%;
  animation: auroraDriftA 24s ease-in-out infinite;
}
.bg-aurora::after {
  background: radial-gradient(circle, var(--brand-2) 0%, transparent 68%);
  bottom: -22%;
  right: -14%;
  animation: auroraDriftB 28s ease-in-out infinite;
}
:root[data-theme="light"] .bg-aurora::before,
:root[data-theme="light"] .bg-aurora::after {
  opacity: 0.16;
}
@keyframes auroraDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(7%, 9%) scale(1.14); }
}
@keyframes auroraDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-8%, -6%) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-aurora::before, .bg-aurora::after { animation: none; }
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* Big VIP display headline (hero) */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  margin: 0 0 26px;
}
.headline .accent {
  background: linear-gradient(100deg, var(--accent) 30%, var(--brand-2) 45%, #ffffff 52%, var(--brand-2) 58%, var(--accent) 75%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -250% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .headline .accent { animation: none; background-position: 0 0; }
}
.headline span { display: block; }

p { margin: 0 0 16px; color: var(--text-muted); max-width: 62ch; }

.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: var(--shadow-lg); }
.btn-primary.pulse { animation: pulseGlow 2.6s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--shadow-md); }
  50% { box-shadow: 0 0 0 10px rgba(0,114,254,0.16), var(--shadow-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary.pulse { animation: none; }
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 var(--border-soft), 0 12px 30px -20px var(--shadow-color);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}
.logo-mark { height: 32px; width: auto; display: block; }
.logo-text { line-height: 1; }
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-utility { display: flex; align-items: center; gap: 8px; }
.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 42px; height: 42px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Language switch */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lang-btn:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.lang-menu.open { display: flex; }
.lang-menu button {
  background: none;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.lang-menu button:hover { background: var(--accent-soft); color: var(--text); }
.lang-menu button.active { color: var(--accent); font-weight: 600; }

.nav-links-mobile-cta {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.nav-links-mobile-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 1080px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 860px) {
  .nav-links { 
    position: fixed; inset: 76px 0 auto 0; 
    background: var(--ink); 
    flex-direction: column; 
    padding: 24px 32px; 
    border-bottom: 1px solid var(--border-soft);
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
  .nav-divider { display: none; }
  .nav-links-mobile-cta { display: flex; }
}
@media (max-width: 480px) {
  .logo-text { display: none; }
}

/* ---------- Hero ---------- */
.hero-shell {
  position: relative;
  overflow: hidden;
}
.hero-shell::before,
.hero-shell::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-shell::before {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(0,114,254,0.55), transparent 70%);
  animation: driftA 14s ease-in-out infinite alternate;
}
.hero-shell::after {
  width: 420px; height: 420px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(0,114,254,0.22), transparent 70%);
  animation: driftB 16s ease-in-out infinite alternate;
}
@keyframes driftA {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.12); }
}
@keyframes driftB {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}
.hero {
  position: relative;
  z-index: 1;
  padding: 90px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.badge-pill .spark, .badge-pill i { color: var(--accent); }
.badge-pill .spark { color: var(--accent); font-size: 1rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0 34px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Code-editor signature element — stays dark in both themes, like a real code editor */
.editor-card {
  background: #0d1420;
  border: 1px solid #1c2a3d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .editor-card { animation: none; }
}
.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #101a2b;
  border-bottom: 1px solid #1c2a3d;
}
.editor-dot { width: 10px; height: 10px; border-radius: 50%; }
.editor-dot.r { background: #ff5f57; }
.editor-dot.y { background: #febc2e; }
.editor-dot.g { background: #28c840; }
.editor-filename {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #6b7a90;
}
.editor-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.85;
  min-height: 260px;
  white-space: pre-wrap;
  word-break: break-word;
}
.tok-key { color: var(--accent-2); }
.tok-str { color: #ffffff; }
.tok-punc { color: var(--text-faint); }
.tok-kw { color: var(--accent); }
.caret {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--accent-2);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Section shell ---------- */
section { padding: 96px 0; }
section + section { margin-top: 16px; }
section:has(.cta-banner) { padding-top: 40px; }
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 0;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat {
  padding: 34px 28px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
}
.stat .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card .index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 16px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
}

/* ---------- Skills ---------- */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.skill-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.skill-pill:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent); }
.skill-pill strong { color: var(--text); font-weight: 500; }

/* ---------- Project cards ---------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-card .tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  text-transform: none;
}
.project-card ul {
  margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem;
}
.project-card li { margin-bottom: 8px; }

/* ---------- Timeline (about page) ---------- */
.timeline { border-left: 1px solid var(--border); padding-left: 28px; display: flex; flex-direction: column; gap: 34px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-item .when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); margin-bottom: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 64px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.contact-info-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent); }
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}
.contact-info-item .label { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 4px; }
.contact-info-item .value { color: var(--text); font-size: 0.98rem; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 14px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Socials ---------- */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.social-icon:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.social-icon.placeholder {
  border-style: dashed;
  color: var(--text-faint);
  cursor: default;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-logo .logo-mark { height: 28px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { color: var(--text-muted); font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 20px;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.breadcrumb span { color: var(--accent-2); }
.page-hero.hero-shell::before { width: 380px; height: 380px; top: -160px; right: -100px; opacity: 0.4; }
.page-hero.hero-shell::after { display: none; }

/* ---------- Marquee (Swiper skill strip) ---------- */
.marquee-shell {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 26px 0;
  overflow: hidden;
}
.marquee-swiper { width: 100%; }
.marquee-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 28px;
  border-right: 1px solid var(--border-soft);
}
.marquee-pill .sep { color: var(--accent); }

/* ---------- Project carousel (Swiper) ---------- */
.project-swiper { padding-bottom: 54px !important; }
.project-swiper .swiper-slide { height: auto; }
.project-swiper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  width: 8px; height: 8px;
}
.project-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}
.swiper-button-next.cv-nav,
.swiper-button-prev.cv-nav {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  top: 42%;
}
.swiper-button-next.cv-nav::after,
.swiper-button-prev.cv-nav::after { font-size: 16px; }
.swiper-button-next.cv-nav:hover,
.swiper-button-prev.cv-nav:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- AOS tuning ---------- */
[data-aos] { pointer-events: auto; }

/* ---------- RTL (Urdu) support ---------- */
:root[dir="rtl"] body { font-family: 'Noto Nastaliq Urdu', var(--font-body); }
:root[dir="rtl"] .breadcrumb,
:root[dir="rtl"] .headline,
:root[dir="rtl"] p,
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { text-align: right; }
:root[dir="rtl"] .hero-meta,
:root[dir="rtl"] .hero-actions,
:root[dir="rtl"] .social-row,
:root[dir="rtl"] .nav-links,
:root[dir="rtl"] .nav-cta { direction: rtl; }
:root[dir="rtl"] .editor-body { direction: ltr; text-align: left; }
:root[dir="rtl"] .nav-links a.active::after { left: auto; right: 0; }
