/* =============================================
   nikhil-k.css — Personal page design tokens & styles
   ============================================= */

/* --- Design Tokens (Light) --- */
:root {
  --nk-bg:         #FAFAFA;
  --nk-bg-alt:     #F0F4FF;
  --nk-surface:    #FFFFFF;
  --nk-text:       #111827;
  --nk-text-muted: #6B7280;
  --nk-border:     #E5E7EB;
  --nk-cobalt:     #2563EB;
  --nk-cyan:       #06B6D4;
  --nk-emerald:    #10B981;
  --nk-shadow:     0 2px 16px rgba(0,0,0,0.07);
}

/* --- Design Tokens (Dark) --- */
html.dark {
  --nk-bg:         #0F172A;
  --nk-bg-alt:     #1E293B;
  --nk-surface:    #1E293B;
  --nk-text:       #F1F5F9;
  --nk-text-muted: #94A3B8;
  --nk-border:     #334155;
}

/* --- Base --- */
html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--nk-bg);
  color: var(--nk-text);
  font-family: 'Inter', sans-serif;
}

/* =====================================
   Navbar (fixed, 3-zone grid)
   ===================================== */
.nk-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  background: var(--nk-surface);
  border-bottom: 1px solid var(--nk-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nk-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LEFT — Identity */
.nk-nav-left {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--nk-text);
  white-space: nowrap;
}

/* CENTER — Nav links */
.nk-nav-center {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nk-nav-center a {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--nk-text-muted);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 200ms ease;
}

.nk-nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--nk-cobalt);
  transition: width 200ms ease;
}

.nk-nav-center a:hover {
  color: var(--nk-cobalt);
}

.nk-nav-center a:hover::after {
  width: 100%;
}

.nk-nav-center a.nav-active {
  color: var(--nk-cobalt);
  font-weight: 600;
}

.nk-nav-center a.nav-active::after {
  width: 100%;
}

/* RIGHT — Action buttons */
.nk-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pill buttons */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
  transition-duration: 0s;
  white-space: nowrap;
  border: 1px solid;
  line-height: 1;
}

.nav-pill:hover {
  transition-duration: 0s;
}

.nav-pill-outline {
  background: transparent;
  color: var(--nk-text-muted);
  border-color: var(--nk-border);
}

.nav-pill-outline:hover {
  border-color: var(--nk-cobalt);
  color: var(--nk-cobalt);
}

.nav-pill-cobalt {
  background: var(--nk-cobalt);
  color: #fff;
  border-color: var(--nk-cobalt);
}

.nav-pill-cobalt:hover {
  background: #1d4ed8;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

.nav-pill-green {
  background: var(--nk-emerald);
  color: #fff;
  border-color: var(--nk-emerald);
}

.nav-pill-green:hover {
  background: #059669;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.nav-pill-yellow {
  background: #fbbf24;
  color: #1e293b;
  border-color: #fbbf24;
}

.nav-pill-yellow:hover {
  background: #f59e0b;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}

.nav-pill-yellow.copied,
.nav-pill-yellow.copied:hover {
  background: var(--nk-emerald);
  color: #fff;
  border-color: var(--nk-emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.nav-pill-outline.emerald {
  color: var(--nk-emerald);
  border-color: var(--nk-emerald);
}

.nav-pill-outline.emerald:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Dark mode toggle */
.nk-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--nk-text-muted);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}

.nk-dark-toggle:hover {
  color: var(--nk-text);
  background: rgba(0, 0, 0, 0.04);
}

html.dark .nk-dark-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nk-dark-toggle svg {
  width: 20px;
  height: 20px;
}

/* Copy tooltip */
.copy-tooltip {
  position: fixed;
  pointer-events: none;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--nk-text);
  color: var(--nk-bg);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 200;
}

.copy-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==== SCROLL MORPH (STATE 2) ==== */
.nk-nav-center,
.nk-nav-right .nav-pill,
.nk-nav-right .nk-dark-toggle {
  transition: opacity 200ms ease, transform 200ms ease;
}

/* The "Book a Call" CTA for state 2 — hidden by default */
.nav-cta-state2 {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 200ms ease 150ms, transform 200ms ease 150ms;
}

/* When hero is out of view */
.nk-nav.scrolled .nk-nav-center,
.nk-nav.scrolled .nk-nav-right .nav-pill,
.nk-nav.scrolled .nk-nav-right .nk-dark-toggle {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.nk-nav.scrolled .nav-cta-state2 {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =====================================
   Hamburger (mobile)
   ===================================== */
.nk-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--nk-text);
  position: relative;
  z-index: 102;
}

.nk-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nk-hamburger span + span {
  margin-top: 5px;
}

.nk-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nk-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nk-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================
   Mobile menu (slide-down from top)
   ===================================== */
.nk-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  background: var(--nk-surface);
  border-bottom: 1px solid var(--nk-border);
  padding: 80px 24px 32px;
  box-shadow: var(--nk-shadow);
  transform: translateY(-110%);
  transition: transform 250ms ease;
  overflow-y: auto;
  max-height: 100vh;
}

.nk-mobile-menu.open {
  transform: translateY(0);
}

.nk-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nk-mobile-links a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--nk-text);
  text-decoration: none;
  border-bottom: 1px solid var(--nk-border);
  transition: color 200ms ease;
}

.nk-mobile-links a:hover {
  color: var(--nk-cobalt);
}

.nk-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nk-mobile-actions .nav-pill {
  justify-content: center;
  padding: 12px;
  font-size: 14px;
}

/* Overlay */
.nk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.nk-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================
   Scroll progress bar
   ===================================== */
.nk-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nk-cobalt), var(--nk-cyan));
  z-index: 101;
  width: 0;
  transition: width 50ms linear;
}

/* =====================================
   Dot-grid background
   ===================================== */
.nk-hero {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: radial-gradient(circle, var(--nk-border) 1px, transparent 1px);
  background-size: 28px 28px;
  /*opacity: 0.6;*/
  background-color: var(--nk-bg);
}

.nk-hero > .container-nk {
  /*opacity: 1;*/
}

/* =====================================
   Hero grid — 55/45 split
   ===================================== */
.nk-hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.nk-hero-left {
  max-width: 560px;
}

.nk-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =====================================
   Hero left column items
   ===================================== */
.nk-hero-greeting {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--nk-text-muted);
  font-style: italic;
  margin: 0 0 8px;
}

.nk-hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--nk-text);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.nk-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--nk-cobalt);
  margin: 0 0 16px;
}

/* Typed line */
.nk-typed-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--nk-text);
  margin: 0 0 20px;
  min-height: 26px;
}

.nk-typed-prefix {
  color: var(--nk-text-muted);
}

.nk-typed-cursor {
  color: var(--nk-cobalt);
  animation: blink-cursor 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink-cursor {
  /*0%, 100% { opacity: 1; }*/
  50% { opacity: 0; }
}

.nk-hero-bio {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--nk-text-muted);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 480px;
}

.nk-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.nk-hero-stats {
  font-size: 17px;
  color: var(--nk-text-muted);
  margin: 0;
}

/* =====================================
   Hero buttons
   ===================================== */
.nk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
  border: 1px solid;
}

.nk-btn-primary {
  background: var(--nk-cobalt);
  color: #fff;
  border-color: var(--nk-cobalt);
}

.nk-btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

.nk-btn-outline {
  background: transparent;
  color: var(--nk-text);
  border-color: var(--nk-border);
}

.nk-btn-outline:hover {
  border-color: var(--nk-cobalt);
  color: var(--nk-cobalt);
}

/* =====================================
   NK Photo (right column)
   ===================================== */
.nk-hero-photo {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nk-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--nk-cobalt);
  animation: spin-ring 25s linear infinite;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nk-photo-img {
  width: 200px;
  height: 200px;
  object-position: center 2%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nk-border);
  animation: float-photo 4s ease-in-out infinite alternate;
  box-shadow:
    0 0 0 8px rgba(37, 99, 235, 0.08),
    0 0 40px rgba(37, 99, 235, 0.12);
}

@keyframes float-photo {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* =====================================
   Hero social icons
   ===================================== */
.nk-hero-social {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.nk-hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--nk-text-muted);
  transition: color 200ms ease, transform 200ms ease;
}

.nk-hero-social a:hover {
  color: var(--nk-cobalt);
  transform: scale(1.1);
}

.nk-hero-social svg {
  width: 30px;
  height: 30px;
}

/* =====================================
   Scroll hint
   ===================================== */
.nk-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  /*transition: opacity 300ms ease;*/
}

.nk-scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.nk-scroll-arrow {
  display: block;
  font-size: 30px;
  color: var(--nk-text-muted);
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* =====================================
   Animation classes (override fadeIn for right column)
   ===================================== */
.animate.fadeIn {
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate.fadeInUp {
  opacity: 0;
  animation: fade-in-up 0.6s ease forwards;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================
   Container & sections
   ===================================== */
.container-nk {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-nk {
  padding: 96px 0;
}

.section-nk-alt {
  background: var(--nk-bg-alt);
}

/* =====================================
   Experience section — horizontal timeline
   ===================================== */
.exp-section {
  padding: 80px 0;
}

.exp-header {
  margin-bottom: 40px;
}

.exp-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 8px;
}

.exp-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--nk-text-muted);
  margin: 0;
}

/* Timeline wrapper — horizontal scroll */
.exp-timeline-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(107,114,128,0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.exp-timeline-wrapper::-webkit-scrollbar {
  height: 6px;
}

.exp-timeline-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.exp-timeline-wrapper::-webkit-scrollbar-thumb {
  background: rgba(107,114,128,0.45);
  border-radius: 3px;
}

.exp-timeline-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(37,99,235,0.45);
}

.exp-timeline-wrapper.grabbing {
  cursor: grabbing;
}

.exp-track {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 80px;
  min-width: max-content;
  padding: 60px 80px;
  position: relative;
}

/* Connecting line */
.exp-line {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 50%;
  height: 2px;
  background: linear-gradient(to right, var(--nk-cobalt), var(--nk-cyan), var(--nk-emerald), var(--nk-text-muted));
  transform: translateY(-50%);
  pointer-events: none;
}

/* Node */
.exp-node {
  width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exp-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent);
  z-index: 2;
  transition: transform 250ms ease;
}

.exp-node:hover .exp-node-dot {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Card */
.exp-card {
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--nk-shadow);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  width: 100%;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.exp-card-top {
  margin-bottom: 24px;
}

.exp-card-bottom {
  margin-top: 24px;
}

/* Card content */
.exp-duration {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--nk-emerald);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.exp-company {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 4px;
}

.exp-role {
  font-size: 14px;
  color: var(--nk-text-muted);
  margin-bottom: 8px;
}

.exp-subtag {
  font-size: 12px;
  font-weight: 500;
  color: var(--nk-cobalt);
  margin-bottom: 8px;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 6px;
  display: inline-block;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.exp-bullets li {
  font-size: 13px;
  color: var(--nk-text-muted);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 2px;
}

.exp-bullets li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

.exp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-stack span {
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--nk-bg);
  color: var(--nk-text);
  border: 1px solid var(--nk-border);
}

/* Scroll hint */
.exp-scroll-hint {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 500;
  color: var(--nk-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 400ms ease;
  animation: hint-bounce 2s ease-in-out infinite;
}

.exp-scroll-hint.hidden {
  opacity: 0;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-6px); }
}

/* Exp responsive */
@media (max-width: 768px) {
  .exp-track {
    padding: 40px 24px;
    gap: 40px;
  }

  .exp-node {
    width: 280px;
  }

  .exp-line {
    left: 24px;
    right: 24px;
  }

  .exp-card-top,
  .exp-card-bottom {
    margin: 0;
  }

  .exp-card-bottom {
    margin-top: 24px;
  }

  .exp-heading {
    font-size: 28px;
  }

  .exp-scroll-hint {
    display: none;
  }
}

/* =====================================
   Agentic AI section — terminal + note
   ===================================== */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Terminal */
.ai-terminal {
  background: #1E293B;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ai-terminal-bar {
  background: #334155;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-terminal-dots {
  display: flex;
  gap: 6px;
}

.ai-terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ai-terminal-dots span:nth-child(1) { background: #ef4444; }
.ai-terminal-dots span:nth-child(2) { background: #eab308; }
.ai-terminal-dots span:nth-child(3) { background: #22c55e; }

.ai-terminal-path {
  color: #94A3B8;
  font-size: 12px;
}

.ai-terminal-body {
  padding: 16px 20px 20px;
  line-height: 1.8;
}

.ai-terminal-line {
  color: #E2E8F0;
  white-space: nowrap;
}

.ai-prompt {
  color: #22c55e;
  margin-right: 8px;
}

.ai-check {
  color: #38bdf8;
  margin-right: 6px;
}

.ai-dots {
  color: #64748B;
}

.ai-done {
  color: #CBD5E1;
}

.ai-cursor-blink {
  color: #22c55e;
  animation: term-blink 1s step-end infinite;
}

@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Note */
.ai-note-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 16px;
}

.ai-note-body {
  font-size: 16px;
  color: var(--nk-text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

.ai-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-note-tags span {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

html.dark .ai-note-tags span {
  color: #6ee7b7;
}

/* =====================================
   Stats Row
   ===================================== */
.stats-row {
  background: #fff;
  padding: 64px 0;
}

html.dark .stats-row {
  background: var(--nk-bg);
}

.stats-row-inner {
  display: flex;
  justify-content: space-around;
  gap: 24px;
}

.stat-item {
  text-align: center;
  flex: 1;
  border-right: 1px solid var(--nk-border);
  padding: 0 16px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--nk-cobalt);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-suffix {
  font-size: 48px;
  font-weight: 700;
  color: var(--nk-text-muted);
  margin-left: 2px;
}

.stat-label {
  font-size: 14px;
  color: var(--nk-text-muted);
  font-weight: 500;
}

/* =====================================
   Certifications
   ===================================== */
.cert-section {
  background: var(--nk-bg);
}

.cert-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 32px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1010px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: 12px;
  padding: 16px 20px;
}

.cert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.cert-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--nk-text);
  margin: 0 0 2px;
}

.cert-sub {
  font-size: 13px;
  color: var(--nk-text-muted);
  margin: 0;
}

/* Ai + stats + cert responsive */
@media (max-width: 768px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .stats-row-inner {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-item {
    flex: 1 1 45%;
    border-right: none;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   Hire Me section — final CTA
   ===================================== */
.hire-section {
  background: var(--nk-bg-alt);
  padding: 100px 48px;
  text-align: center;
}

.hire-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hire-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 16px;
}

.hire-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--nk-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 12px;
}

.hire-location {
  font-size: 14px;
  color: var(--nk-text-muted);
  margin: 0 0 32px;
}

.hire-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hire-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
  transition-duration: 0s;
  border: 1.5px solid;
  white-space: nowrap;
}

.hire-btn:hover {
  transition-duration: 0s;
}

.hire-btn-primary {
  background: var(--nk-cobalt);
  color: #fff;
  border-color: var(--nk-cobalt);
  position: relative;
  overflow: hidden;
}

.hire-btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.35);
}

/* Shimmer hover */
.hire-btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hire-btn-shimmer:hover::after {
  left: 150%;
}

.hire-btn-outline {
  background: transparent;
  color: var(--nk-cobalt);
  border-color: var(--nk-cobalt);
}

.hire-btn-outline:hover {
  background: rgba(37, 99, 235, 0.06);
}

.hire-btn-grey {
  color: var(--nk-text-muted);
  border-color: var(--nk-border);
}

.hire-btn-grey:hover {
  border-color: var(--nk-text);
  color: var(--nk-text);
}

/* Social row */
.hire-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.hire-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--nk-text-muted);
  transition: color 200ms, transform 200ms;
}

.hire-social a:hover {
  color: var(--nk-cobalt);
  transform: translateY(-3px);
}

.hire-divider {
  width: 60px;
  height: 1px;
  background: var(--nk-border);
  margin: 0 auto 24px;
}

.hire-footer-note {
  font-size: 12px;
  color: var(--nk-text-muted);
  font-style: italic;
  margin: 0 0 4px;
}

.hire-footer-note a {
  color: var(--nk-cobalt);
  text-decoration: none;
}

.hire-footer-note a:hover {
  text-decoration: underline;
}

.hire-copy {
  font-size: 18px;
  color: var(--nk-text-muted);
  margin: 0;
}

/* Hire responsive */
@media (max-width: 768px) {
  .hire-section {
    padding: 60px 24px;
  }

  .hire-heading {
    font-size: 32px;
  }
}

/* =====================================
   Projects section — bento grid
   ===================================== */
.projects-section {
  background: var(--nk-bg);
}

.projects-header {
  margin-bottom: 48px;
}

.projects-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 8px;
}

.projects-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--nk-text-muted);
  margin: 0;
}

.projects-bento {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

/* Card base */
.project-card {
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--nk-shadow);
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
  overflow: hidden;
}

.project-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.project-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.project-tag {
  display: inline-block;
  padding: 3px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 16px;
  margin-top: 8px;
}

.project-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 12px;
}

.project-card-body {
  font-size: 15px;
  color: var(--nk-text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech-list span {
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--nk-bg);
  color: var(--nk-text);
  border: 1px solid var(--nk-border);
}

.project-links {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nk-cobalt);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

.project-link:hover {
  border-bottom-color: var(--nk-cobalt);
}

.project-link svg {
  opacity: 0.7;
}

.project-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--nk-text-muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--nk-border);
}

/* Full-width card (Kafka) */
.project-card-full {
  grid-column: 1 / -1;
  background: var(--nk-bg-alt);
}

.project-card-full-inner {
  display: flex;
  gap: 32px;
  align-items: center;
}

.project-card-full-left {
  flex: 0 0 40%;
}

.project-card-full-right {
  flex: 1;
}

/* Kafka diagram */
.kafka-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.kafka-node {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kafka-node-box {
  padding: 8px 14px;
  background: #fff;
  border: 1.5px solid var(--nk-cobalt);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nk-text);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html.dark .kafka-node-box {
  background: #1E293B;
}

.kafka-box-accent {
  border-color: var(--nk-cyan);
  color: var(--nk-cyan);
}

.kafka-arrow {
  font-size: 16px;
  color: var(--nk-text-muted);
  flex-shrink: 0;
}

.kafka-node-broker {
  position: relative;
}

.kafka-dots {
  display: flex;
  gap: 4px;
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.kafka-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nk-cobalt);
  animation: dot-flow 1.5s ease-in-out infinite;
}

.kafka-dots span:nth-child(2) { animation-delay: 0.3s; }
.kafka-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dot-flow {
  0% { transform: translateX(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(8px); opacity: 0; }
}

.kafka-node-split {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tilt transition */
.project-card[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 100ms ease;
}

/* Projects responsive */
@media (max-width: 900px) {
  .projects-bento {
    grid-template-columns: 1fr;
  }

  .project-card-full-inner {
    flex-direction: column;
  }

  .project-card-full-left,
  .project-card-full-right {
    flex: 1;
    width: 100%;
  }

  .kafka-diagram {
    flex-wrap: wrap;
    justify-content: center;
  }

  .projects-heading {
    font-size: 28px;
  }
}

/* =====================================
   Skills section — tier rows with sticky label
   ===================================== */
.skills-section-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.skills-label {
  flex-shrink: 0;
  position: sticky;
  top: 50%;
  transform: rotate(-90deg);
  transform-origin: center center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--nk-text-muted);
  white-space: nowrap;
  width: 0;
  height: 0;
  margin-top: 120px;
  opacity: 0.5;
}

.skills-content {
  margin-left: 80px;
  flex: 1;
}

.skills-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--nk-text);
  margin: 0 0 8px;
}

.skills-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--nk-text-muted);
  margin: 0 0 48px;
}

/* Tier rows */
.skill-row {
  margin-bottom: 28px;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-row-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--nk-text);
  background: var(--nk-surface);
  border: 1px solid var(--nk-border);
  transition: all 150ms ease;
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--nk-cobalt);
  color: var(--nk-cobalt);
  background: rgba(37, 99, 235, 0.05);
}

/* AI chips — emerald tint */
.skill-chip-ai {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
  animation: pulse-glow 3s ease-in-out infinite;
}

html.dark .skill-chip-ai {
  color: #6ee7b7;
}

.skill-chip-ai:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--nk-emerald);
  color: var(--nk-emerald);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 0 12px 2px rgba(16, 185, 129, 0.2); }
}

/* Resume download button loading state */
.resume-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* =====================================
   Scroll-triggered animations (animate-on-scroll)
   ===================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Skills responsive */
@media (max-width: 900px) {
  .skills-label {
    display: none;
  }

  .skills-content {
    margin-left: 0;
  }

  .skills-heading {
    font-size: 28px;
  }
}

/* =====================================
   Responsive
   ===================================== */
/* =====================================
   Sticky social strip (right side)
   ===================================== */
.social-strip {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 50;
}

.social-strip a {
  color: var(--nk-text-muted);
  transition: color 200ms, transform 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-strip a:hover {
  color: var(--nk-cobalt);
  transform: translateY(-3px);
}

.social-strip a svg {
  width: 32px;
  height: 32px;
}

.social-strip__line {
  width: 1px;
  height: 200px;
  background: var(--nk-text-muted);
  opacity: 0.4;
}

/* =====================================
   Open to Work badge
   ===================================== */
.otw-badge {
  position: fixed;
  bottom: 54px;
  right: 80px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--nk-emerald);
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--nk-text);
  box-shadow: var(--nk-shadow);
  cursor: default;
  transition: transform 200ms, box-shadow 200ms;
}

html.dark .otw-badge {
  background: #1E293B;
}

.otw-badge:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.otw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nk-emerald);
  animation: pulse-otw 2s ease-in-out infinite;
}

@keyframes pulse-otw {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@media (max-width: 1024px) {
  .social-strip {
    display: none;
  }

  .otw-badge {
    bottom: 20px;
    right: 20px;
    font-size: 11px;
    padding: 6px 12px;
  }

  .nk-nav-center {
    gap: 20px;
  }

  .nk-hero-photo {
    width: 160px;
    height: 160px;
  }

  .nk-photo-img {
    width: 160px;
    height: 160px;
  }

  .nk-hero-name {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .nk-nav-inner {
    padding: 0 20px;
  }

  .nk-nav-center,
  .nk-nav-right .nav-pill,
  .nk-nav-right .nk-dark-toggle,
  .nav-cta-state2 {
    display: none;
  }

  .nk-hamburger {
    display: block;
  }

  .nk-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .nk-hero-left {
    max-width: 100%;
  }

  .nk-hero-bio {
    max-width: 100%;
  }

  .nk-hero-name {
    font-size: 36px;
  }

  .nk-hero-ctas {
    justify-content: center;
  }

  .nk-hero-photo {
    width: 140px;
    height: 140px;
  }

  .nk-photo-img {
    width: 140px;
    height: 140px;
  }

  .nk-scroll-hint {
    display: none;
  }
}

@media (min-width: 769px) {
  .nk-mobile-menu,
  .nk-overlay {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #about h2,
  .skills-heading,
  .skills-subtext,
  .projects-heading,
  .projects-subtext,
  .exp-heading,
  .exp-subtext {
    text-align: center;
  }
}