/* CORPORATE PROFESSIONAL – CLASSIC | Finished, premium polish */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --blue: #0B3D91;
  --blue-dark: #082A66;
  --text: #0F172A;
  --muted: #475569;
  --light: #F6F8FF;
  --border: #E5EAF6;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-hover: 0 6px 20px rgba(15, 23, 42, .08);
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #C7D2E8 transparent;
}
::selection {
  background: var(--blue);
  color: #fff;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #C7D2E8;
  border-radius: 8px;
  border: 2px solid #fff;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.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;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  scroll-margin-top: 76px;
}
#home {
  scroll-margin-top: 0;
}
h1, h2, h3, h4 {
  color: var(--text);
  text-wrap: balance;
}
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

/* NAV — premium, restrained */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  height: 60px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.logo {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 4px;
  letter-spacing: .04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.logo:hover {
  background: var(--blue-dark);
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -.01em;
  padding: 8px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color .15s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transform: scaleX(0.8);
  transition: opacity .15s ease, transform .15s ease;
}
.nav-links a:hover {
  color: var(--blue);
}
.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--blue);
  cursor: pointer;
  line-height: 1;
  letter-spacing: -.01em;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 61, 145, .18);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary.btn-sm,
.btn-outline.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  min-height: 32px;
  border-radius: 6px;
}
.btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  min-height: 38px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  line-height: 1;
  letter-spacing: -.01em;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.btn-outline:hover {
  background: var(--light);
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}
.btn-primary:focus-visible,
.btn-outline:focus-visible,
#hamburger:focus-visible,
.socials a:focus-visible,
.view-link:focus-visible,
#contactForm input:focus-visible,
#contactForm textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
#hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
#mobileMenu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 10px 24px 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  z-index: 99;
}
#mobileMenu a {
  padding: 12px 0;
  font-weight: 500;
  font-size: 14.5px;
  border-bottom: 1px solid #f1f5f9;
}
#mobileMenu a:last-child {
  border: none;
}
#mobileMenu.open {
  display: flex;
}

/* EYEBROW — restrained editorial */
.eyebrow {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .11em;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
  opacity: .9;
}
.blue {
  color: var(--blue);
}
.section-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 560px;
  margin-top: 6px;
  line-height: 1.6;
}

/* HERO – compact, centered, balanced, finished corporate */
.hero {
  position: relative;
  padding: 84px 0 0;
  background: #FFFFFF;
  overflow: hidden;
}
.hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-decor-circle {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 248, 255, 0.9) 0%, rgba(246, 248, 255, 0) 70%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 36px;
  max-width: 560px;
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
  margin: 6px 0 8px;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.desc {
  color: var(--muted);
  max-width: 500px;
  font-size: 14px;
  line-height: 1.6;
}
.hero-btns {
  display: flex;
  gap: 10px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.hero-connect {
  margin-top: 2px;
}
.connect-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, color .15s, transform .12s, box-shadow .12s;
}
.socials a:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(11, 61, 145, .1);
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: flex-end;
  position: relative;
  margin-bottom: 0;
}

/* PORTRAIT – Integrated organic composition resting flush on stats bar */
.portrait-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.hero-dot-grid {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 88px;
  height: 88px;
  background-image: radial-gradient(var(--blue) 1.2px, transparent 1.2px);
  background-size: 10px 10px;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.portrait-frame {
  position: relative;
  z-index: 1;
  width: 340px;
  height: 400px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, .04);
  margin-bottom: 0;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.36);
  transform-origin: 50% 28%;
  display: block;
}

/* STATS BAR – Dark Navy Corporate, High-Contrast & Crisp Alignment */
.hero-stats-wrap {
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.stats-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stats-bar--dark {
  background: var(--blue);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 20px rgba(11, 61, 145, .14);
}
.stat {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: none;
}
.stats-bar--dark .stat {
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.stat-icon {
  width: 42px;
  height: 42px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.stats-bar--dark .stat-icon {
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .2);
}
.stat-content {
  display: flex;
  flex-direction: column;
}
.stat strong {
  color: var(--blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  display: block;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.01em;
}
.stat span {
  font-weight: 600;
  font-size: 13.5px;
  display: block;
  margin-top: 3px;
  line-height: 1.25;
  color: var(--text);
}
.stat small {
  color: var(--muted);
  font-size: 11.5px;
  display: block;
  margin-top: 1px;
  line-height: 1.25;
}
.stats-bar--dark strong {
  color: #FFFFFF;
}
.stats-bar--dark span {
  color: #FFFFFF;
}
.stats-bar--dark small {
  color: #D6E2FB;
  font-weight: 400;
}

/* SECTIONS — intentional rhythm, tighter but breathable */
#about, #skills, #lab, #approach, #projects, #achievements, #contact {
  padding: 52px 0;
  background: #FFFFFF;
}
#about {
  padding-top: 48px;
}
#skills, #lab, #projects, #achievements {
  border-top: 1px solid #F1F5F9;
}
#approach {
  padding: 20px 0 22px;
  border-top: 1px solid var(--border);
  background: #F8FAFF;
  border-bottom: 1px solid var(--border);
}
.about-top--single {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: start;
  max-width: none;
}
.about-top--single .section-desc {
  max-width: 520px;
}
.about-top h2 {
  font-size: 36px;
  line-height: 1.08;
  margin: 8px 0 0;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 18px;
}
.info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info i {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
}
.info b {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
}
.info span {
  font-size: 13px;
  color: var(--muted);
  border: 0;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.about-bottom {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #F1F5F9;
}
.drive-text h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.drive-text p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.drive-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.drive-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
}
.drive-icon {
  width: 38px;
  height: 38px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.drive-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.drive-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* SKILLS – clean, functional */
.skills-top--single {
  max-width: 720px;
  margin-bottom: 8px;
}
.skills-top--single h2 {
  font-size: 36px;
  line-height: 1.08;
  margin: 8px 0 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
  margin-top: 28px;
}
.skill {
  display: flex;
  gap: 12px;
  align-items: center;
}
.skill-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
}
.skill-icon--text {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  background: var(--light)}
.skill-icon svg {
  width: 18px;
  height: 18px;
}
.sep {
  color: var(--blue);
  margin: 0 4px;
  font-weight: 400;
}
.skill-bar-wrap {
  flex: 1;
  min-width: 0;
}
.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 6px;
}
.skill-head b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-head span {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}
.bar {
  height: 6px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.bar div {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
}
/* SKILL GROUPS — grouped badges, no percentages */
.skill-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.skill-group {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
}
.skill-group:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.skill-group:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 7px);
  justify-self: center;
  width: 100%;
}
.skill-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--blue);
}
.skill-group-head i,
.skill-group-head svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.skill-group-head h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-badges span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--blue);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
}
.mini-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.mini-stats > div {
  display: flex;
  gap: 10px;
  padding: 16px 14px;
  border-right: 1px solid var(--border);
  align-items: flex-start;
}
.mini-stats > div:last-child {
  border: none;
}
.mini-stats i {
  color: var(--blue);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.mini-stats b {
  font-size: 13px;
  display: block;
}
.mini-stats span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
  line-height: 1.5;
}

/* ML LAB */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.lab-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
}
.lab-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.lab-card {
  cursor: pointer;
}
.lab-card:first-child {
  border-color: var(--blue);
  background: #F8FAFF;
}
.lab-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.lab-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--blue);
}
.lab-card-head i,
.lab-card-head svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lab-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.lab-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.lab-card small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--light);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
}
.demo-banner {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--light);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.demo-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.demo-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.demo-banner h4 {
  font-size: 13px;
  font-weight: 700;
}
.approach-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 16px 12px;
  box-shadow: var(--shadow);
}
.approach-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue);
  background: var(--light);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}
.approach-step i,
.approach-step svg {
  width: 14px;
  height: 14px;
}
.approach-arrow {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.approach-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
.demo-banner p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* PROJECTS */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 34px;
  line-height: 1.08;
  margin: 8px 0 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.projects-grid .project-card:first-child {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(11, 61, 145, .06);
}
.project-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.project-card:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.proj-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.proj-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  color: rgba(255, 255, 255, .9);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 800;
}
.project-card:hover .proj-img img {
  transform: scale(1.02);
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.project-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 12px 14px 4px;
  line-height: 1.35;
}
.project-card p {
  color: var(--muted);
  font-size: 12.5px;
  flex: 1;
  padding: 0 14px;
  line-height: 1.55;
}
.card-signal {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 0 14px;
  margin: 4px 0 0;
  line-height: 1.4;
  opacity: .85;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 14px 0;
}
.tags span {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}
.view-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  transition: color .15s ease;
}
.view-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ACHIEVEMENTS */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.ach-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.ach-icon {
  width: 38px;
  height: 38px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.ach-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}
.ach-card p {
  color: var(--muted);
  font-size: 12.5px;
  flex: 1;
  line-height: 1.6;
}
.ach-card span {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 2px;
}
.trophy-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
}
.contact-left {
  padding-right: 28px;
}
.contact-left h2 {
  font-size: 34px;
  line-height: 1.06;
  margin: 12px 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.contact-details > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.c-icon {
  width: 38px;
  height: 38px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-details b {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
}
.contact-details a, .contact-details span {
  font-size: 13.5px;
  color: var(--muted);
  word-break: break-all;
}
.muted {
  color: var(--muted);
  font-style: italic;
}
.contact-right {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  box-shadow: var(--shadow);
  align-self: start;
}
.contact-right h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#contactForm input, #contactForm textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
#contactForm input:focus, #contactForm textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, .08);
}
#contactForm input::placeholder, #contactForm textarea::placeholder {
  color: #64748b;
  opacity: 1;
}
#contactForm button {
  align-self: flex-end;
  margin-top: 2px;
}
.form-note {
  color: var(--muted);
  font-size: 11.5px;
  margin: -2px 0 0;
}
.connect-bottom {
  margin-top: 18px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  text-align: center;
}
.connect-bottom p {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.socials.large {
  justify-content: center;
}
.socials.large a {
  width: 42px;
  height: 42px;
  border-radius: 4px;
}

footer {
  padding: 24px 0;
  color: var(--muted);
  font-size: 12.5px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.footer-brand strong {
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 500;
}
.footer-links a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s ease;
}
.footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* TOAST & MODAL – clean & artifact-free */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 200;
  max-width: 90vw;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  display: grid;
  place-items: center;
  z-index: 150;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-content {
  transform: scale(.98) translateY(4px);
  transition: transform .18s ease;
}
.modal.open .modal-content {
  transform: scale(1) translateY(0);
}
.modal-content {
  background: #fff;
  border-radius: 6px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}
#modalClose {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
#modalTitle {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 32px;
}
.modal-content p {
  font-size: 13px;
  color: var(--muted);
}

/* SUBTLE REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .modal,
  .modal-content,
  .project-card,
  .skill-group,
  .lab-card {
    transition: none !important;
    transform: none !important;
  }
  #backToTop {
    transition: none;
  }
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  left: 0;
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 61, 145, .3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 60;
}
#backToTop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#backToTop:hover {
  background: var(--blue-dark);
}
#backToTop:focus-visible {
  outline: 3px solid rgba(11, 61, 145, .45);
  outline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ach-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .lab-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }
  .hero-right {
    justify-content: center;
  }
  .portrait-frame {
    width: 320px;
    height: 375px;
  }
  .about-bottom {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-left {
    padding-right: 0;
    padding-bottom: 8px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-groups {
    grid-template-columns: 1fr;
  }
  .skill-group:last-child {
    grid-column: auto;
    max-width: none;
    width: auto;
    justify-self: stretch;
  }
  .lab-grid {
    grid-template-columns: 1fr 1fr;
  }
  .demo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-top--single {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  #hamburger {
    display: inline-flex;
  }
  .hero {
    padding-top: 84px;
    padding-bottom: 24px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .about-top h2, .skills-top--single h2, .section-head h2, .contact-left h2 {
    font-size: 30px;
  }
  .drive-cards {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }
  .stats-bar--dark .stat {
    border-right-color: rgba(255, 255, 255, .14);
    border-bottom-color: rgba(255, 255, 255, .14);
  }
  .stat:nth-child(2n) {
    border-right: none;
  }
  .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .mini-stats > div {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .mini-stats > div:nth-child(2n) {
    border-right: none;
  }
  .mini-stats > div:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .ach-grid {
    grid-template-columns: 1fr;
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .skill-groups {
    grid-template-columns: 1fr;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .portrait-frame {
    width: 280px;
    height: 330px;
  }
  .hero-dot-grid {
    width: 64px;
    height: 64px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns a {
    text-align: center;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .stats-bar--dark .stat {
    border-bottom-color: rgba(255, 255, 255, .14);
  }
  .stat:last-child {
    border-bottom: none !important;
  }
  .mini-stats {
    grid-template-columns: 1fr;
  }
  .mini-stats > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .mini-stats > div:last-child {
    border-bottom: none !important;
  }
}
