/* =========================================================
   NAGARAJU NANUPATHINA — DATA ANALYST PORTFOLIO
   Design system: premium light theme
   ========================================================= */

/* ---------- 1. TOKENS & RESET ---------- */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --navy: #102A43;
  --navy-soft: #1B3A57;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #DBEAFE;
  --text: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;

  --shadow-xs: 0 1px 2px rgba(16, 42, 67, .04);
  --shadow-sm: 0 2px 6px rgba(16, 42, 67, .04), 0 8px 20px rgba(16, 42, 67, .04);
  --shadow-md: 0 12px 32px rgba(16, 42, 67, .07);
  --shadow-lg: 0 24px 60px rgba(16, 42, 67, .11);
  --shadow-blue: 0 14px 30px rgba(37, 99, 235, .22);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 700;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--blue-soft); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 15px; height: 15px; stroke-width: 2; }

.container {
  width: min(100% - 56px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.text-accent { color: var(--blue); }

/* ---------- 2. BUTTONS & SHARED LINKS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .17);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-blue); }

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }

.btn-lg { padding: 16px 26px; font-size: 14.5px; }
.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14.5px;
  transition: gap .3s var(--ease), color .25s;
}
.text-link .icon { width: 17px; height: 17px; }
.text-link:hover { gap: 13px; color: var(--blue-dark); }

.social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--navy);
  background: #fff;
  transition: all .3s var(--ease);
}
.social-btn .icon { width: 18px; height: 18px; }
.social-btn:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

/* ---------- 3. HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  height: 68px;
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(16, 42, 67, .05);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, #2563EB, #1E40AF);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.08em;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.brand-mark-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93C5FD;
  border: 2px solid #fff;
  right: -2px;
  top: -2px;
}
.brand-name { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: -.01em; }
.brand-name strong { color: var(--navy); font-weight: 700; }
.site-header.scrolled .brand-mark { width: 39px; height: 39px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  transition: color .25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-resume { margin-left: 2px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 4. HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: 60px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% 6%, rgba(219, 234, 254, .55), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  min-height: 590px;
}
.hero-copy { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 11px;
  border: 1px solid #BFDBFE;
  border-radius: 100px;
  background: #EFF6FF;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.9rem, 4.9vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.1;
}
.hero-line { display: block; }

.hero-text {
  margin-top: 26px;
  max-width: 570px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy-soft);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.meta-chip .icon { width: 15px; height: 15px; color: var(--blue); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .13);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-social { display: flex; align-items: center; gap: 10px; margin-top: 42px; }
.social-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.social-divider { width: 34px; height: 1px; background: var(--border); margin-right: 4px; }
.hero-social .social-btn { width: 38px; height: 38px; border-radius: 9px; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 70px;
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.scroll-line {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.hero-foot-note { font-size: 12px; color: #94A3B8; }

/* --- Hero analytics illustration --- */
.hero-art {
  position: relative;
  height: 610px;
  min-width: 0;
}
.art-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.art-glow-a { width: 340px; height: 340px; background: rgba(37, 99, 235, .13); top: 6%; right: -4%; }
.art-glow-b { width: 260px; height: 260px; background: rgba(219, 234, 254, .9); bottom: 2%; left: -8%; }
.art-grid {
  position: absolute;
  inset: 4% -6% 0 2%;
  background-image: linear-gradient(rgba(37, 99, 235, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}

.dashboard-card {
  position: absolute;
  top: 38px;
  left: 4px;
  width: min(540px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 2px 4px rgba(16, 42, 67, .04);
  overflow: hidden;
  z-index: 2;
}
.dash-window-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  color: #475569;
}
.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; }
.window-dots i:first-child { background: #93C5FD; }
.window-title { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.dash-window-bar .icon { margin-left: auto; width: 15px; height: 15px; }

.dash-inner { padding: 20px; }
.dash-row { display: flex; align-items: center; justify-content: space-between; }
.dash-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--blue);
  margin-bottom: 3px;
}
.dash-head strong { font-family: 'Sora', sans-serif; font-size: 18px; color: var(--navy); letter-spacing: -.03em; }
.dash-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.kpi {
  position: relative;
  padding: 13px 12px 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(160deg, #fff, #F8FAFF);
  overflow: hidden;
}
.kpi-index { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 700; color: #BFDBFE; }
.kpi-label { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kpi strong { display: block; margin-top: 5px; font-size: 11px; color: var(--navy); line-height: 1.35; letter-spacing: -.01em; }
.spark { width: 100%; height: 22px; margin-top: 8px; }
.spark path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }

.dash-chart {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: var(--navy); }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); font-weight: 600; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.line-chart { display: block; width: 100%; height: 112px; margin-top: 8px; overflow: visible; }
.chart-grid path { stroke: #EDF2F7; stroke-width: 1; fill: none; }
.line-chart .area { fill: url(#areaFill); }
.line-chart .line { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; }
.chart-point { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.chart-labels { display: flex; justify-content: space-between; font-size: 8.5px; color: #475569; font-weight: 600; margin-top: 2px; }

.dash-foot { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; margin-top: 14px; }
.donut-group { display: flex; align-items: center; gap: 12px; }
.donut {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 38%, #93C5FD 38% 68%, #DBEAFE 68% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.donut::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.donut span { position: relative; text-align: center; font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1; }
.donut small { display: block; font-family: 'Inter', sans-serif; font-size: 6px; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.donut-legend { display: grid; gap: 5px; }
.donut-legend span { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 600; color: var(--muted); }
.donut-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }
.donut-legend span:nth-child(2) i { background: #93C5FD; }
.donut-legend span:nth-child(3) i { background: #DBEAFE; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 0 2px; }
.mini-bars span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #BFDBFE, #DBEAFE); }
.mini-bars span:nth-child(4), .mini-bars span:nth-child(8) { background: linear-gradient(180deg, var(--blue), #93C5FD); }

.mini-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.mini-card .mini-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}
.mini-card .mini-icon .icon { width: 16px; height: 16px; }
.mini-card small { display: block; font-size: 8px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.mini-card code { display: block; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.mini-sql { top: 0; right: -6px; }
.mini-python { top: 190px; right: -18px; }
.mini-bi { bottom: 36px; left: -30px; }
.mini-excel { bottom: 150px; right: 6px; }

.float-slow { animation: floaty 7s ease-in-out infinite alternate; }
.float-medium { animation: floaty 6s ease-in-out .8s infinite alternate; }
.float-fast { animation: floaty 5.2s ease-in-out .4s infinite alternate; }
.float-slower { animation: floaty 8s ease-in-out 1.2s infinite alternate; }
@keyframes floaty {
  from { transform: translateY(-6px); }
  to { transform: translateY(9px); }
}

/* ---------- 5. SHARED SECTIONS ---------- */
.section { padding: 108px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { margin-bottom: 52px; }
.section-head.centered { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.section-head.split > div { max-width: 680px; }
.section-head.split .section-sub { max-width: 360px; flex-shrink: 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-eyebrow > span { width: 22px; height: 2px; border-radius: 2px; background: var(--blue); }

.section-title { font-size: clamp(2.05rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.18; }
.section-sub { margin-top: 16px; color: var(--text); font-size: 15.5px; line-height: 1.8; }
.section-sub.left { margin-top: 18px; }
.lead { font-size: 17.5px; color: var(--navy); font-weight: 500; line-height: 1.7; }
.body-text { font-size: 15px; line-height: 1.9; }

/* ---------- 6. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
}
.about-visual { position: relative; padding: 10px 18px 30px 0; }
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 4 / 4.6;
  margin-left: auto;
  border-radius: 20px;
  background: linear-gradient(150deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.portrait-badge {
  position: absolute;
  bottom: 6px;
  left: -6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  color: var(--muted);
  z-index: 3;
}
.portrait-badge .icon { color: var(--blue); }
.portrait-badge strong { color: var(--navy); }

.about-copy .section-title { margin-bottom: 20px; }
.about-copy .lead { margin-bottom: 16px; }
.about-copy .body-text + .body-text { margin-top: 14px; }
.about-points { display: grid; gap: 14px; margin: 30px 0 32px; }
.about-point { display: flex; align-items: center; gap: 14px; }
.point-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}
.about-point strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.4; }
.about-point small { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 7. SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .35s;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: #BFDBFE;
  box-shadow: var(--shadow-md);
}
.skill-top { display: flex; align-items: flex-start; justify-content: space-between; }
.skill-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #EFF6FF, #DBEAFE);
  color: var(--blue);
}
.skill-icon .icon { width: 22px; height: 22px; }
.skill-no { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: #CBD5E1; }
.skill-card h3 { margin-top: 20px; font-size: 18px; letter-spacing: -.025em; }
.skill-card > p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.65; min-height: 43px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.skill-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--navy-soft);
  font-size: 11.5px;
  font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.skill-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.skill-card:hover .skill-list li { background: #EFF6FF; border-color: #BFDBFE; }
.skill-card-cta { background: linear-gradient(150deg, #EFF6FF, #fff 70%); }
.skill-card-cta > p { min-height: 0; }
.skill-card-cta .text-link { margin-top: 20px; }

/* ---------- 8. PROJECTS ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #BFDBFE; }

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 30px;
  background: linear-gradient(140deg, #EFF6FF 0%, #DBEAFE 100%);
  overflow: hidden;
}
.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(135deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%);
  pointer-events: none;
}
.media-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #BFDBFE;
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

/* Editable dashboard screenshot placeholders (SVG files in assets/) */
.project-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform .55s var(--ease);
}
.project-card:hover .project-shot { transform: scale(1.025) translateY(-3px); }


.project-body { padding: 28px 28px 26px; }
.project-index {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blue);
}
.project-body h3 { margin-top: 10px; font-size: 19.5px; line-height: 1.35; letter-spacing: -.03em; }
.project-body > p { margin-top: 11px; font-size: 13.8px; line-height: 1.75; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag-list li {
  padding: 5px 10px;
  border-radius: 6px;
  background: #EFF6FF;
  color: var(--blue-dark);
  font-size: 10.5px;
  font-weight: 700;
}
.project-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.icon-link {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  transition: all .3s var(--ease);
}
.icon-link .icon { width: 17px; height: 17px; }
.icon-link:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- 9. CERTIFICATIONS ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #BFDBFE; }
.cert-thumb {
  aspect-ratio: 4 / 2.3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  background:
    repeating-linear-gradient(135deg, rgba(37, 99, 235, .035) 0 8px, transparent 8px 16px),
    linear-gradient(150deg, #EFF6FF, #F8FAFC);
  border-bottom: 1px solid var(--border);
  color: var(--blue);
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-body { padding: 20px 22px 22px; }
.cert-type {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--blue);
}
.cert-body h3 { margin-top: 8px; font-size: 16.5px; line-height: 1.4; letter-spacing: -.02em; }
.cert-meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.cert-meta .icon { color: #94A3B8; }
.credential-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  transition: color .25s, gap .3s var(--ease);
}
.credential-link:hover { color: var(--blue-dark); gap: 10px; }

/* ---------- 10. EDUCATION ---------- */
.timeline-wrap { max-width: 860px; margin-inline: auto; }
.timeline { position: relative; padding-left: 56px; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--blue), #BFDBFE, transparent); }
.timeline-item { position: relative; }
.timeline-item + .timeline-item { margin-top: 22px; }
.timeline-marker {
  position: absolute;
  left: -56px;
  top: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
  z-index: 1;
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.timeline-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.timeline-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); }
.timeline-card h3 { margin-top: 8px; font-size: 21px; letter-spacing: -.03em; }
.timeline-field { margin-top: 5px; color: var(--navy-soft); font-weight: 600; font-size: 14px; }
.timeline-year {
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px dashed #BFDBFE;
  border-radius: 8px;
  background: #EFF6FF;
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 700;
}
.timeline-details { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.timeline-details p { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.timeline-details .icon { color: #94A3B8; }

/* ---------- 11. OPPORTUNITY PANEL ---------- */
.opportunity-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #BFDBFE;
  border-radius: 28px;
  background: linear-gradient(115deg, #EFF6FF 0%, #F5F8FC 48%, #DBEAFE 100%);
  padding: clamp(42px, 6vw, 72px);
  box-shadow: var(--shadow-sm);
}
.opportunity-art { position: absolute; inset: 0; pointer-events: none; }
.opportunity-art svg { width: 100%; height: 100%; }
.opp-area { fill: url(#oppFill); }
.opp-line { fill: none; stroke: #93C5FD; stroke-width: 2; stroke-dasharray: 6 6; }
.opp-dot { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.opportunity-copy { position: relative; max-width: 720px; }
.section-eyebrow.light { color: var(--blue-dark); }
.opportunity-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.18; }
.opportunity-copy h2 span { color: var(--blue); }
.opportunity-copy > p { margin-top: 20px; max-width: 640px; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.role-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #BFDBFE;
  color: var(--navy-soft);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.role-chip .icon { color: var(--blue); stroke-width: 2.4; }

/* ---------- 12. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(45px, 6vw, 90px); align-items: start; }
.contact-info .section-title { max-width: 480px; }
.contact-list { display: grid; gap: 10px; margin-top: 30px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
a.contact-item:hover { transform: translateX(4px); border-color: #BFDBFE; box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--blue);
}
.contact-item small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-item strong { display: block; font-size: 13.5px; color: var(--navy); font-weight: 600; word-break: break-word; }
.item-arrow { margin-left: auto; color: #94A3B8; width: 16px; }
.contact-cta { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.contact-socials { display: flex; gap: 9px; }

.contact-form-card {
  padding: clamp(28px, 3.5vw, 40px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.form-head { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.form-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #EFF6FF, #DBEAFE);
  color: var(--blue);
  flex-shrink: 0;
}
.form-head h3 { font-size: 19px; }
.form-head p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #FBFDFF;
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.6;
  transition: border-color .25s, box-shadow .25s, background .25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #A3B1C2; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .09);
}
.field.invalid input, .field.invalid textarea { border-color: #EF4444; background: #FFF8F8; }
.field-error { display: block; min-height: 14px; margin-top: 4px; font-size: 11px; color: #DC2626; }
.form-note { display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }
.form-note .icon { color: var(--blue); }

/* ---------- 13. FOOTER ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 50px; padding: 64px 0 52px; }
.footer-brand > p { margin-top: 20px; font-size: 13px; color: var(--muted); }
.footer-brand .footer-quote { margin-top: 6px; font-size: 12.5px; color: #64748B; font-style: italic; }
.footer-links, .footer-connect { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-links h4, .footer-connect h4 { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--navy); margin-bottom: 8px; letter-spacing: -.01em; }
.footer-links a, .footer-connect a, .footer-connect p { font-size: 12.5px; color: var(--muted); transition: color .25s; }
.footer-links a:hover, .footer-connect a:hover { color: var(--blue); }
.footer-connect p { margin-bottom: 2px; }
.footer-connect a:not(.social-btn) { word-break: break-all; }
.footer-socials { display: flex; gap: 8px; margin-top: 10px; }
.footer-socials .social-btn { width: 36px; height: 36px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 14. FLOATING UI ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .35s var(--ease);
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-3px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: min(440px, calc(100% - 40px));
  padding: 13px 18px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 18px 40px rgba(16, 42, 67, .25);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: all .35s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 15. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 19px; }
  .nav-link { font-size: 12.5px; }
  .hero-title { font-size: clamp(2.7rem, 4.6vw, 4rem); }
  .dashboard-card { width: 100%; }
  .mini-python { right: -8px; }
  .mini-bi { left: -12px; }
  .skills-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }

  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 28px 26px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-link { font-size: 14px; padding: 11px 0; border-bottom: 1px solid #F1F5F9; }
  .nav-link::after { display: none; }
  .nav-resume { margin-top: 14px; width: 100%; }

  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .hero-copy { max-width: 720px; }
  .hero-art { height: 570px; max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-foot { margin-top: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .portrait-frame { margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-info .section-title { max-width: 660px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head.split .section-sub { max-width: 620px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 82px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { gap: 34px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 36px, var(--container)); }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 38px; height: 38px; font-size: 14px; }
  .hero { padding-top: 46px; padding-bottom: 44px; }
  .hero-title { margin-top: 22px; font-size: clamp(2.35rem, 9vw, 3.2rem); }
  .hero-text { font-size: 15px; line-height: 1.8; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 8px; }
  .hero-social { margin-top: 32px; }
  .hero-art { height: auto; padding: 24px 0 0; }
  .dashboard-card { position: relative; top: auto; left: auto; width: 100%; }
  .mini-card { display: none; }
  .art-grid { inset: 0; }
  .art-glow-a { width: 240px; height: 240px; right: -20%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-foot-note { font-size: 11px; }

  .section-title { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .section-head { margin-bottom: 38px; }
  .skills-grid, .cert-grid { grid-template-columns: 1fr; }
  .skill-card > p { min-height: 0; }
  .project-media { padding: 20px; aspect-ratio: 16 / 10; }
  .project-body { padding: 24px 22px; }
  .timeline { padding-left: 0; }
  .timeline::before { display: none; }
  .timeline-marker { position: static; margin-bottom: 16px; }
  .timeline-card { padding: 24px 22px; }
  .timeline-top { flex-direction: column; gap: 14px; }
  .opportunity-panel { padding: 36px 24px; border-radius: 20px; }
  .role-list { gap: 8px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-cta { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 400px) {
  .kpi-grid { gap: 6px; }
  .kpi { padding: 10px 8px 8px; }
  .kpi strong { font-size: 9.5px; }
  .dash-inner { padding: 14px; }
  .dash-head strong { font-size: 16px; }
  .dash-foot { grid-template-columns: 1fr; }
  .mini-bars { height: 46px; }
}

/* ---------- 17. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
