/* =========================================================
   VIVEK MAHESWARA — DATA ANALYST PORTFOLIO
   Light theme · Premium · Data-driven
   ========================================================= */

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;

  --accent: #4F46E5;
  --accent-ink: #4338CA;
  --accent-soft: #EEF2FF;
  --blue: #2563EB;

  --ok: #059669;
  --warn: #D97706;
  --danger: #DC2626;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, .18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 72px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-moz-selection { background: var(--accent); color: #fff; }
::selection { background: var(--accent); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accent highlight ---------- */
.accent {
  color: var(--accent);
  font-weight: 800;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.7,.35,1), transform .7s cubic-bezier(.22,.7,.35,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .55);
}
.btn-primary:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .6);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-text {
  padding: 0;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  font-size: 15px;
  gap: 6px;
}
.btn-text:hover { color: var(--accent-ink); }
.btn-text svg { transition: transform .25s ease; }
.btn-text:hover svg { transform: translateX(4px); }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(248, 250, 252, .85);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

.nav-wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 14px -5px rgba(79, 70, 229, .6);
}
.brand-mark svg { width: 18px; height: 18px; }

.main-nav .nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 9px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-soft); }
.nav-link.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 48px;
  overflow: hidden;
}
.flow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
}
.flow-bg svg {
  width: 100%; height: 100%;
}
.flow-nodes circle {
  fill: var(--accent);
  opacity: .22;
  animation: pulse 5s ease-in-out infinite;
}
.flow-nodes circle:nth-child(2n) { animation-delay: 1.3s; }
.flow-nodes circle:nth-child(3n) { animation-delay: 2.6s; }
.flow-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 4 7;
  opacity: .3;
  stroke-linecap: round;
}
@keyframes pulse {
  0%,100% { opacity: .18; }
  50% { opacity: .5; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, .14);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero-sub {
  margin-top: 20px;
  max-width: 560px;
  font-size: 17.5px;
  color: var(--text-2);
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ok);
}
.hero-note svg { width: 15px; height: 15px; }

/* ---------- Hero dashboard visual ---------- */
.hero-visual { position: relative; }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  transform: rotate(1deg);
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dash-dots { display: flex; gap: 5px; }
.dash-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.dash-dots i:first-child { background: #FCA5A5; border-color: #F87171; }
.dash-dots i:nth-child(2) { background: #FCD34D; border-color: #F59E0B; }
.dash-dots i:nth-child(3) { background: #86EFAC; border-color: #22C55E; }
.dash-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-live {
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  background: #ECFDF5;
  border: 1px solid rgba(5, 150, 105, .2);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dash-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.kpi-unit { font-size: 14px; font-weight: 700; color: var(--text-3); }
.kpi-delta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
}
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--danger); }

.dash-sql {
  margin-top: 12px;
  background: #0B1220;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.code-bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  background: #0F172A;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.code-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.dash-sql pre {
  padding: 12px 14px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: #CBD5E1;
}
.tk { color: #A5B4FC; font-weight: 600; }

.dash-charts {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.chart-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.chart-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 58px;
  margin-top: 10px;
}
.mini-bars i {
  flex: 1;
  height: var(--h, 50%);
  min-height: 6px;
  background: var(--accent);
  border-radius: 4px 4px 2px 2px;
  opacity: .85;
  transform-origin: bottom;
}
.mini-bars i:nth-child(2n) { background: var(--blue); }
.mini-bars i:nth-child(3n) { background: #C7D2FE; }
.chart-box.is-visible .mini-bars i { animation: grow .8s cubic-bezier(.2,.7,.3,1) both; }
@keyframes grow { from { transform: scaleY(0); } }

.mini-line { width: 100%; height: 58px; margin-top: 8px; }
.line-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.chart-box.is-visible .line-stroke { animation: draw 1.6s ease forwards .3s; }
.chart-box.is-visible .line-area { animation: fadeIn 1s ease forwards .8s; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.chart-stat {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ok);
  margin-top: 6px;
}

/* floating badges */
.flow-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  letter-spacing: -.01em;
  animation: floaty 5.5s ease-in-out infinite;
}
.flow-tag span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.flow-1 { top: -20px; right: 4px; }
.flow-2 { bottom: 34px; left: -34px; animation-delay: 1.6s; }
.flow-2 span { background: var(--ok); box-shadow: 0 0 0 4px #ECFDF5; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  padding: 8px 0 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.stat {
  padding: 0 18px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.stat-main {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.stat-main em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
  margin-top: 2px;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 700px;
  margin-bottom: 52px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.14;
}
.section-lead {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 16.5px;
  max-width: 620px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 48px;
  align-items: start;
}
.about-copy p {
  color: var(--text-2);
  font-size: 16.5px;
  margin-bottom: 16px;
  max-width: 640px;
}
.about-copy p strong { color: var(--text); }

.journey-flow {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}
.journey-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}
.journey-step.highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .65);
}
.journey-link {
  position: relative;
  height: 2px;
  background: var(--border-strong);
  margin: 0 2px;
}
.journey-link::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  width: 9px; height: 9px;
  border-left: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  transform: rotate(-45deg);
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.profile-avatar {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .4);
}
.profile-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.online-dot {
  position: absolute;
  right: 4px; bottom: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ok);
  border: 3px solid var(--surface);
}
.profile-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.profile-role {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-top: 2px;
}
.profile-meta {
  margin: 22px 0;
  text-align: left;
  display: grid;
  gap: 12px;
}
.profile-meta li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.profile-meta svg {
  width: 17px; height: 17px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
}
.profile-meta li:nth-child(2) svg { stroke: var(--blue); }
.profile-meta li:nth-child(3) svg { stroke: var(--ok); }
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}
.profile-tags span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}

/* =========================================================
   EXPERIENCE / TIMELINE
   ========================================================= */
.timeline {
  max-width: 760px;
  margin: 0 auto;
}
.timeline-item {
  position: relative;
  padding-left: 54px;
}
.timeline-marker {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
}
.timeline-marker span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 30px;
  bottom: -30px;
  width: 2px;
  background: linear-gradient(var(--border-strong), transparent);
}
.timeline-item + .timeline-arrow { margin-left: 54px; }

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.tl-role {
  font-weight: 700;
  color: var(--accent);
  font-size: 14.5px;
}
.tl-company { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.tl-window {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}
.tl-desc {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15.5px;
}
.tl-desc strong { color: var(--text); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tag-list li {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 8px;
  padding: 6px 12px;
}

.timeline-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 0;
  text-align: center;
}
.timeline-arrow svg {
  width: 30px; height: 30px;
  color: var(--accent);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px); } }
.timeline-arrow span {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.transfer-card {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tl-subtitle { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.cap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cap-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.cap-list li span {
  width: 27px; height: 27px;
  flex: none;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.skill-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--tint, var(--accent-soft));
  color: var(--ink, var(--accent));
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.skill-icon svg { width: 24px; height: 24px; }
.skill-card h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-card li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 11px;
  transition: color .2s, background .2s, border-color .2s;
}
.skill-card li:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.project-visual {
  position: relative;
  height: 190px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 20px;
}
.pv1 { background: linear-gradient(180deg, #EEF2FF, #E0E7FF); }
.pv2 { background: linear-gradient(180deg, #FEF3C7, #FDE68A); }
.pv3 { background: #0B1220; }
.pv4 { background: linear-gradient(180deg, #DCFCE7, #BBF7D0); }

.pv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pv-top i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15,23,42,.15);
}
.pv3 .pv-top { color: #64748B; }
.pv3 .pv-top i { background: rgba(255,255,255,.15); border-color: transparent; }

.pv-kpis {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.pv-kpis i {
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 14px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  box-shadow: var(--shadow-xs);
}
.pv-kpis i b { display: block; color: var(--text); font-size: 16px; letter-spacing: -.02em; }
.pv-chart { margin-top: 6px; }
.pv-chart svg { width: 100%; height: 92px; }
.pv-line { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.pv-chart .pv-area { opacity: .0; }
.project-card:hover .pv-chart .pv-area { animation: fadeIn 1s ease forwards .2s; }

.pv-donut { display: grid; place-items: center; margin-top: 4px; }
.pv-donut svg { width: 128px; height: 128px; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: rgba(255,255,255,.65); stroke-width: 14; }
.donut-seg {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}
.project-card:hover .donut-seg.s1 { animation: donut 1s ease forwards .1s; }
.project-card:hover .donut-seg.s2 { animation: donut 1s ease forwards .3s; }
.project-card:hover .donut-seg.s3 { animation: donut 1s ease forwards .5s; }
.s1 { stroke: var(--accent); stroke-dasharray: 108 240; }
.s2 { stroke: var(--blue); stroke-dasharray: 78 240; stroke-dashoffset: -108; }
.s3 { stroke: #FBBF24; stroke-dasharray: 54 240; stroke-dashoffset: -186; }
@keyframes donut { to { stroke-dashoffset: 0; } }
.donut-txt {
  transform: rotate(90deg);
  transform-origin: center;
  text-anchor: middle;
  fill: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.pv-code {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #CBD5E1;
}
.pv-code em { color: #A5B4FC; font-style: normal; font-weight: 600; }

.pv-grid {
  position: relative;
  height: 90px;
}
.pv-grid i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: floaty 4.5s ease-in-out infinite;
}
.pv-grid i:nth-child(2n) { animation-delay: 1s; background: #fff; }
.pv-grid i:nth-child(3n) { animation-delay: 2s; }
.pv-xbar { margin-top: 10px; display: grid; gap: 7px; }
.pv-xbar span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pv-xbar span::after {
  content: '';
  width: var(--w);
  height: 9px;
  border-radius: 6px;
  background: var(--accent);
}

.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-num {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.project-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.project-tags {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}
.project-tags span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 5px 11px;
}
.project-rows { display: grid; gap: 12px; margin-bottom: 22px; }
.project-rows p { font-size: 14.5px; color: var(--text-2); }
.project-rows strong { color: var(--text); font-weight: 700; }

/* =========================================================
   ANALYTICS LAB
   ========================================================= */
.lab {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.lab-editor { border-radius: var(--radius); overflow: hidden; }
.lab-output {
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
}

.lab-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0F172A;
  padding: 11px 14px;
}
.lab-dot { width: 10px; height: 10px; border-radius: 50%; }
.lab-dot.r { background: #F87171; }
.lab-dot.y { background: #FBBF24; }
.lab-dot.g { background: #34D399; }
.lab-name {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: #64748B;
}

.lab-code {
  background: #0B1220;
  padding: 14px 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
}
.lab-code code { display: block; padding: 0 16px; color: #E2E8F0; white-space: pre; }
.lab-code .ln {
  display: inline-block;
  width: 22px;
  margin-right: 12px;
  color: #475569;
  text-align: right;
  -webkit-user-select: none;
  user-select: none;
}
.lab-code .tk { color: #A5B4FC; }
.lab-code .caret { color: #34D399; animation: blink .9s step-end infinite; }
.lab-code .cursor-line { background: rgba(255,255,255,.03); }

.lab-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0F172A;
}
.run-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 7px;
  padding: 6px 14px;
}
.lab-hint { font-size: 11.5px; color: #64748B; font-weight: 600; }

.out-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.out-kpis .kpi {
  background: var(--surface);
  padding: 12px;
}
.out-kpis .kpi span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.out-kpis .kpi b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }

.out-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.out-bars, .out-trend {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.out-bars svg { width: 100%; height: 96px; }
.out-bars .bar rect { fill: #C7D2FE; rx: 3; }
.out-bars .bar.accent rect { fill: var(--accent); }
.out-trend svg { width: 100%; height: 96px; }
.st-line { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; }
.st-area { opacity: 0; }
.lab:hover .st-area { animation: fadeIn 1.2s ease forwards .4s; }
.out-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.out-insight {
  margin-top: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.insight-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.out-insight p { margin-top: 4px; font-size: 14px; color: var(--text-2); font-weight: 500; }

/* =========================================================
   POWER BI SHOWCASE
   ========================================================= */
.bi-showcase { margin-bottom: 26px; }
.bi-frame {
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.bi-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  padding: 2px 4px 12px;
}
.bi-icons { display: flex; gap: 6px; }
.bi-icons i {
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--accent);
  border: 1.5px solid rgba(79,70,229,.35);
}
.bi-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bi-filters span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}
.bi-filters .bi-clear { color: var(--accent); border-color: rgba(79,70,229,.3); background: var(--accent-soft); }

.bi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.bi-kpi {
  grid-column: span 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.bi-kpi p { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.bi-kpi b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.bi-kpi span { font-size: 11.5px; font-weight: 700; }
.bi-kpi .up { color: var(--ok); }
.bi-kpi .down { color: var(--danger); }

.bi-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.tile-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }

.bi-trend { grid-column: span 3; }
.bi-trend svg { width: 100%; height: 120px; }
.bi-line1 { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.bi-gridline { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }

.bi-vertical { grid-column: span 1; }
.v-bars { display: flex; align-items: flex-end; gap: 6px; height: 104px; }
.v-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: #C7D2FE;
  display: grid;
  place-items: start center;
  padding-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.v-bars span.hot { background: var(--accent); }

.bi-geo { grid-column: span 1; }
.geo-dots { position: relative; height: 104px; }
.geo-dots i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.geo-dots i:nth-child(2n) { background: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.geo-route { stroke: var(--border-strong); stroke-width: 1.2; fill: none; stroke-dasharray: 2 4; }

.bi-table { grid-column: span 1; }
.mini-table { display: grid; gap: 6px; font-size: 12px; }
.mini-table > div {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg);
}
.mini-table > div:first-child {
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .06em;
  background: transparent;
}
.mini-table b { font-weight: 700; }
.mini-table .up { color: var(--ok); font-weight: 700; }
.mini-table .down { color: var(--danger); font-weight: 700; }

.bi-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.bi-labels li {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 999px;
  padding: 9px 18px;
}

/* =========================================================
   SQL SECTION
   ========================================================= */
.sql-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
.sql-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.sql-cards span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: default;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
.sql-cards span:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.sql-editor {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sql-editor .lab-bar { background: #0F172A; }
.sql-editor pre {
  background: #0B1220;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #E2E8F0;
  overflow-x: auto;
}
.sql-editor pre code { white-space: pre; }
.sql-editor .tk { color: #A5B4FC; }

.sql-note p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 26px;
}
.sql-note .btn { margin-top: 4px; }

/* =========================================================
   HEALTHCARE DOMAIN
   ========================================================= */
.hc-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hc-flow { display: grid; gap: 0; }
.hc-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-xs);
}
.hc-step.highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(79, 70, 229, .7);
}
.hl-link {
  height: 34px;
  margin: 0 auto;
  width: 2px;
  background: linear-gradient(var(--border-strong), var(--accent));
  position: relative;
}
.hl-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -4px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.hc-side p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 18px;
}
.hc-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 20px;
}
.hc-disclaimer svg { width: 17px; height: 17px; flex: none; color: var(--warn); margin-top: 2px; }

/* =========================================================
   LEARNING
   ========================================================= */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.learn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.learn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.learn-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.learn-card h3::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.learn-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
}

/* =========================================================
   FREELANCE
   ========================================================= */
.freelance {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
}
.freelance-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
}
.freelance-title {
  margin-top: 22px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.freelance-sub {
  margin: 18px auto 34px;
  color: var(--text-2);
  font-size: 17px;
  max-width: 560px;
}
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.services li {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-xs);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.services li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.freelance-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.freelance-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ok);
  font-size: 14.5px;
}
.dot-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, .4);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, .4); }
  70% { box-shadow: 0 0 0 12px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* =========================================================
   RESUME
   ========================================================= */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.resume-copy p {
  color: var(--text-2);
  font-size: 16px;
  margin: 20px 0 28px;
  max-width: 520px;
}
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.resume-tags {
  background:
    radial-gradient(rgba(79,70,229,.05) 1.4px, transparent 1.5px),
    var(--surface);
  background-size: 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.resume-tags::before {
  content: 'RAW DATA → ANALYSIS → INSIGHT → DECISION';
  position: absolute;
  top: 14px; left: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--border-strong);
  font-weight: 600;
}
.resume-tags > * {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.resume-tags > span {
  font-size: 22px;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.resume-tags > b {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--text-2);
  font-size: 14.5px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 96px 0 0;
}
.contact-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--accent));
  opacity: .85;
}
.contact-head { margin-bottom: 36px; }
.contact-sub {
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 16px;
  max-width: 480px;
}
.contact-list {
  display: grid;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto 40px;
  text-align: left;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.contact-list li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.c-icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.c-icon svg { width: 21px; height: 21px; }
.c-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.c-value { font-size: 15.5px; font-weight: 700; color: var(--text); }
a.c-value:hover { color: var(--accent); }
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}
.social-row a:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.social-row svg { width: 20px; height: 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 96px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 36px;
}
.footer-inner {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.footer-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, .16);
  border-radius: 999px;
  padding: 5px 13px;
}
.footer-tagline { color: var(--text-2); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .5);
  outline-offset: 2px;
  border-radius: 8px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
  .stat { border-left: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .bi-grid { grid-template-columns: repeat(4, 1fr); }
  .bi-trend { grid-column: span 2; }
  .bi-kpi:nth-last-child(1) { grid-column: span 1; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: var(--nav-h) 16px auto 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { display: block; padding: 12px 14px; font-size: 15px; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .flow-2 { left: -10px; }

  .about-grid, .resume-grid, .sql-grid, .hc-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .journey-flow { grid-template-columns: 1fr 1fr; }
  .lab { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .bi-grid { grid-template-columns: repeat(2, 1fr); }
  .bi-kpi { grid-column: span 2; }
  .bi-trend { grid-column: span 2; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 34px); }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { text-align: center; }
  .stat-main { font-size: 17px; }

  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { width: 100%; }

  .skills-grid, .learn-grid { grid-template-columns: 1fr; }
  .cap-list { grid-template-columns: 1fr; }
  .bi-grid { grid-template-columns: 1fr; }
  .bi-kpi, .bi-trend, .bi-vertical, .bi-geo, .bi-table { grid-column: span 1; }
  .sql-cards { grid-template-columns: repeat(2, 1fr); }
  .journey-flow { grid-template-columns: 1fr; }
  .journey-link { display: none; }
  .contact-card { padding: 40px 22px; }
  .resume-tags { grid-template-columns: 1fr; }
  .resume-tags::before { position: static; display: block; margin-bottom: 4px; }
  .tl-head { flex-direction: column; }
  .flow-2 { left: 0; bottom: -14px; }
  .flow-1 { right: 0; top: -16px; }
  .dash-charts { grid-template-columns: 1fr; }
  .chart-box { padding: 10px 12px; }
  .project-card .flow-tag { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}