/* ══════════════════════════════════════════════════
   QUIET AUTHORITY — Design System
   Palette, Typography, Layout, Components
   ══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Surfaces */
  --bg: #0F1115;
  --bg-card: #171A21;
  --bg-elevated: #1D2029;

  /* Accents */
  --accent: #4C8BF5;
  --accent-hover: #6BA3FF;
  --accent-lime: #9FE870;

  /* Text */
  --text-1: #F3F4F6;
  --text-2: #9CA3AF;
  --text-3: #5C6370;

  /* Structural */
  --divider: #232631;
  --border: #232631;
  --border-hover: rgba(76, 139, 245, 0.4);

  /* Typography */
  --font-heading: 'Inter Tight', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing (8pt grid) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 80px;
  --s8: 96px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Nav */
  --nav-h: 68px;
  --max-w: 1160px;
  --col-gap: 80px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s;
  --t-normal: 0.3s;
  --t-slow: 0.55s;
}

/* Light mode */
.light {
  --bg: #F4F5F7;
  --bg-card: #ECEEF2;
  --bg-elevated: #E4E7ED;
  --text-1: #0F1115;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --divider: #D1D5DB;
  --border: #D1D5DB;
}

/* Light mode — hero cards blend with page, no harsh white boxes */
.light .terminal,
.light .dev-card {
  background: transparent;
  border-color: #C8CBD4;
}

.light .terminal-header {
  background: #E4E7ED;
  border-bottom-color: #C8CBD4;
}

.light .now-block {
  background: transparent;
}

/* ── RESET ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: auto;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: auto !important;
  transition: background var(--t-normal) var(--ease), color var(--t-normal) var(--ease);
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ── SCROLL PROGRESS ────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 2000;
  width: 0%;
  transition: width 0.08s linear;
}

/* ══════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t-normal) var(--ease),
    border-bottom-color var(--t-normal) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--divider);
}

.light .nav.scrolled {
  background: rgba(248, 249, 250, 0.92);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--col-gap);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  transition: color var(--t-fast);
}

.nav-logo:hover {
  color: var(--accent);
}

.logo-mark {
  color: var(--accent);
}

/* Links */
.nav-links {
  display: flex;
  gap: var(--s1);
  align-items: center;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.theme-toggle:hover {
  color: var(--text-1);
  border-color: var(--text-2);
  background: var(--bg-card);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform var(--t-normal) var(--ease), opacity var(--t-fast);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  padding: var(--s3) var(--s3);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform var(--t-normal) var(--ease),
    visibility 0s var(--t-normal);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--t-normal) var(--ease),
    visibility 0s 0s;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.mobile-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--divider);
  transition: color var(--t-fast);
}

.mobile-link:hover {
  color: var(--text-1);
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--r-md);
  padding: 12px 24px;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background var(--t-fast),
    border-color var(--t-fast);
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(76, 139, 245, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-2);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  font-size: 0.83rem;
  padding: 8px 18px;
  border-radius: var(--r-sm);
}

.btn-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-arrow {
  transition: transform var(--t-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--col-gap);
}

.section {
  padding: var(--s8) 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-1);
}

.section-header {
  margin-bottom: var(--s6);
}

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ══════════════════════════════════════════════════
   1. HERO — Fully fluid, auto-adjusts to any screen
   Uses clamp(), auto-fit, minmax() — no fixed px sizes
══════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  /* svh = small viewport height, fixes mobile browser bar */
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Auto-adjusting 2-col → 1-col grid based on available space */
.hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(var(--s4), 6vw, var(--s7)) clamp(var(--s3), 5vw, var(--col-gap));
  display: grid;
  /* Auto switches to 1 column when width < 500px per column */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(var(--s4), 5vw, var(--s7));
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* ── Eyebrow ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  color: var(--text-2);
  margin-bottom: var(--s3);
  font-family: var(--font-mono);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-lime);
  border-radius: 50%;
  animation: blink-dot 2.5s ease-in-out infinite;
}

@keyframes blink-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(159, 232, 112, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px rgba(159, 232, 112, 0);
  }
}

/* ── Heading — fluid font, never overflows ── */
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-1);
  margin-bottom: var(--s3);
  word-break: break-word;
}

.hero-subheading {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
  line-height: 1.35;
  margin-bottom: var(--s2);
}

.hero-body {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: var(--s4);
}

/* Buttons: side by side on wide, stack on narrow — auto */
.hero-ctas {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}

.hero-ctas .btn {
  flex: 1 1 auto;
  min-width: min-content;
  justify-content: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  color: var(--text-3);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.meta-divider {
  color: var(--divider);
}

/* ── Terminal visual — fluid, never overflows ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--s2), 2vw, var(--s3));
  min-width: 0;
  /* prevents grid blowout */
  width: 100%;
}

.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 16px);
  border-bottom: 1px solid var(--divider);
  background: var(--bg-elevated);
}

.t-dot {
  width: clamp(7px, 1.2vw, 10px);
  height: clamp(7px, 1.2vw, 10px);
  border-radius: 50%;
  flex-shrink: 0;
}

.t-red {
  background: #FF5F57;
}

.t-yellow {
  background: #FEBC2E;
}

.t-green {
  background: #28C840;
}

.t-title {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-left: 6px;
}

.terminal-body {
  padding: clamp(var(--s2), 2.5vw, var(--s3));
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.8vw, 6px);
  min-height: clamp(120px, 15vw, 160px);
  overflow: hidden;
}

/* Terminal lines scale with container */
.t-line {
  display: flex;
  align-items: baseline;
  gap: clamp(6px, 1vw, 10px);
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  line-height: 1.6;
  min-width: 0;
  overflow: hidden;
}

.t-prompt {
  color: var(--accent-lime);
  font-weight: 500;
  flex-shrink: 0;
}

.t-cmd {
  color: var(--text-1);
}

.t-output {
  padding-left: clamp(12px, 2vw, 20px);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.t-key {
  color: var(--accent);
}

.t-val {
  color: #E8C36A;
}

.t-green-txt {
  color: var(--accent-lime);
}

.t-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ── Developer Quote / Niagara Card — fluid ── */
.dev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(var(--s2), 3vw, var(--s3)) clamp(var(--s3), 4vw, var(--s4));
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.dev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-lime));
}

.dev-card-label {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.2vw, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-card-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-lime);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink-dot 2.5s ease-in-out infinite;
}

.dev-card-quote {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}

.dev-card-quote span {
  color: var(--accent);
}

/* Tags wrap automatically, shrink font fluidly */
.dev-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4px, 1vw, 6px);
  margin-top: var(--s2);
}

.dev-card-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  padding: clamp(2px, 0.5vw, 3px) clamp(7px, 1.5vw, 10px);
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-3);
  background: var(--bg-elevated);
  transition: border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.dev-card-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Light mode card */
.light .dev-card {
  background: transparent;
  border-color: #C8CBD4;
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: var(--col-gap);
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scan-line 2.5s ease-in-out infinite;
}

@keyframes scan-line {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ══════════════════════════════════════════════════
   2. ABOUT
══════════════════════════════════════════════════ */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s7);
  align-items: start;
  margin-bottom: var(--s6);
}

/* Left — vertical label + stats */
.about-left {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.about-vertical-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  line-height: 1.6;
}

.vl-dot {
  color: var(--accent);
  font-weight: 400;
}

/* Stats row */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--divider);
}

.about-stat {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* Right — text */
.about-right {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.about-body p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
}

.about-links {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-arrow-icon {
  transition: transform var(--t-fast);
}

.link-arrow:hover .link-arrow-icon {
  transform: translate(2px, -2px);
}

/* Divider with label */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.divider-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--divider);
}

/* Legacy Experience list wrappers removed -> now handled by .exp-card module */

.exp-meta {
  padding-top: 4px;
}

.exp-date {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.exp-role {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 2px;
}

.exp-company {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: var(--s2);
  display: block;
}

.exp-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--s2);
}

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

.exp-tags span {
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}

/* ══════════════════════════════════════════════════
   3. WORK / PROJECTS
══════════════════════════════════════════════════ */
.work {
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--divider);
  transition: background var(--t-normal) var(--ease);
  border-radius: var(--r-sm);
}

.project-item:first-child {
  border-top: 1px solid var(--divider);
}

.project-item:hover {
  background: rgba(76, 139, 245, 0.03);
}

.proj-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  padding-top: 5px;
  letter-spacing: 0.05em;
}

.proj-body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.proj-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
}

.proj-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  transition: color var(--t-fast);
}

.project-item:hover .proj-title {
  color: var(--accent);
}

.proj-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.proj-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.proj-link:hover {
  color: var(--text-1);
  border-color: var(--text-2);
  background: var(--bg-elevated);
}

.proj-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
}

.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s1);
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-tags span {
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px 10px;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.project-item:hover .proj-tags span {
  border-color: rgba(76, 139, 245, 0.25);
}

.proj-case-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  transition: letter-spacing var(--t-fast);
}

.proj-case-link:hover {
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════
   4. SKILLS
══════════════════════════════════════════════════ */
.skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  margin-bottom: var(--s6);
}


.skill-col-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--divider);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  transition: background var(--t-fast);
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-name {
  font-size: 0.88rem;
  color: var(--text-1);
  font-weight: 400;
}

.skill-level {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* Cert strip */
.cert-strip {
  padding: var(--s4) var(--s5);
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

.cert-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

.cert-items {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.cert-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-1);
}

.cert-sub {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.cert-sep {
  color: var(--divider);
  font-size: 1.2rem;
}

/* ══════════════════════════════════════════════════
   5. WRITING
══════════════════════════════════════════════════ */
.writing {
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.writing-list {
  display: flex;
  flex-direction: column;
}

.writing-item {
  display: grid;
  grid-template-columns: 110px 1fr 24px;
  gap: var(--s4);
  align-items: start;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--divider);
  transition: background var(--t-fast);
}

.writing-item:first-child {
  border-top: 1px solid var(--divider);
}

.writing-item:hover {
  background: rgba(76, 139, 245, 0.03);
}

.writing-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.writing-date {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.writing-read {
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.writing-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 6px;
  transition: color var(--t-fast);
}

.writing-item:hover .writing-title {
  color: var(--accent);
}

.writing-excerpt {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
}

.writing-arrow {
  font-size: 1rem;
  color: var(--text-3);
  padding-top: 4px;
  transition: transform var(--t-fast), color var(--t-fast);
}

.writing-item:hover .writing-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════
   6. CONTACT
══════════════════════════════════════════════════ */
.contact {
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s7);
  align-items: start;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: var(--s3);
}

.contact-body {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: var(--s5);
}

.contact-email-block {
  margin-bottom: var(--s4);
}

.contact-email-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.contact-email-addr {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.contact-email-addr:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}

.c-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 16px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.c-social:hover {
  color: var(--text-1);
  border-color: var(--text-2);
  background: var(--bg-card);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 16px;
  outline: none;
  resize: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.form-input::placeholder {
  color: var(--text-3);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 139, 245, 0.1);
  background: var(--bg-elevated);
}

.form-textarea {
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
}

.form-status {
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 1.2em;
}

.form-status.success {
  color: var(--accent-lime);
}

.form-status.error {
  color: #F87171;
}

/* ══════════════════════════════════════════════════
   7. FOOTER
══════════════════════════════════════════════════ */
.footer {
  padding: var(--s4) 0;
  border-top: 1px solid var(--divider);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: var(--s3);
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--text-1);
}

/* ── BACK TO TOP ────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: var(--s4);
  right: var(--s4);
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-normal), transform var(--t-normal), border-color var(--t-fast), color var(--t-fast);
  z-index: 500;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --col-gap: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links,
  .btn-nav {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .about-vertical-label {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1rem;
  }

  .about-stats {
    flex-direction: row;
    gap: var(--s4);
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: var(--s1);
  }

  .exp-meta {
    order: 2;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .writing-item {
    grid-template-columns: 80px 1fr 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --col-gap: 20px;
  }

  .section {
    padding: var(--s6) 0;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .proj-number {
    display: none;
  }

  .writing-item {
    grid-template-columns: 1fr 16px;
  }

  .writing-meta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    grid-column: span 2;
  }

  .cert-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════
   ENHANCEMENTS — Hero grid bg, now block, animations
══════════════════════════════════════════════════ */


.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.1s + 0.15s);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── "Currently working on" block ── */
.now-block {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s2);
  padding: 8px 14px;
  border: 1px solid var(--divider);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  font-size: 0.8rem;
  max-width: 480px;
  line-height: 1.4;
}

.now-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-lime);
  flex-shrink: 0;
  font-weight: 500;
}

.now-text {
  color: var(--text-2);
}

/* ══════════════════════════════════════════════════
   ABOUT — Photo row enhancements
══════════════════════════════════════════════════ */
.about-photo-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--divider);
}

.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--t-fast);
}

.about-avatar:hover {
  border-color: var(--accent);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide img when no-photo class is set, show placeholder */
.about-avatar.no-photo img {
  display: none;
}

.about-avatar:not(.no-photo) .about-avatar-placeholder {
  display: none;
}

.about-avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-3);
  font-size: 1.5rem;
}

.about-quick-facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.82rem;
}

.fact-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  min-width: 60px;
}

.fact-val {
  color: var(--text-1);
  font-weight: 500;
}

.fact-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-lime);
}

/* ══════════════════════════════════════════════════
   SIDE DOT NAVIGATION
══════════════════════════════════════════════════ */
.side-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
  opacity: 0;
  transition: opacity var(--t-normal);
}

.side-dots.visible {
  opacity: 1;
}

.side-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background var(--t-fast), transform var(--t-fast), width var(--t-normal);
  display: block;
}

.side-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t-fast);
  pointer-events: none;
  letter-spacing: 0.06em;
}

.side-dot:hover::before,
.side-dot.active::before {
  opacity: 1;
}

.side-dot:hover {
  background: var(--text-2);
  transform: scale(1.4);
}

.side-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

/* ══════════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9000;
  opacity: 0;
  transition: transform var(--t-normal) var(--ease), opacity var(--t-normal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  color: var(--accent-lime);
}

/* ── Copy hint on email button ── */
.contact-email-addr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  padding: 0 0 2px 0;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.contact-email-addr:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-hint {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--t-fast);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.contact-email-addr:hover .copy-hint {
  opacity: 1;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════
   COMMAND PALETTE
══════════════════════════════════════════════════ */
.kbd-hint {
  position: fixed;
  bottom: 32px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
  z-index: 400;
}

.kbd-hint.visible {
  opacity: 1;
  pointer-events: auto;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-2);
  line-height: 1.4;
}

.cmd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 5000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}

.cmd-overlay.open {
  display: flex;
}

.cmd-box {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(-16px);
  transition: transform var(--t-normal);
}

.cmd-overlay.open .cmd-box {
  transform: translateY(0);
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3);
  border-bottom: 1px solid var(--divider);
}

.cmd-input-wrap i {
  color: var(--text-3);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cmd-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.cmd-input::placeholder {
  color: var(--text-3);
}

.cmd-esc {
  margin-left: auto;
  flex-shrink: 0;
}

.cmd-results {
  max-height: 320px;
  overflow-y: auto;
  padding: var(--s1);
}

.cmd-result {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 10px var(--s2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  font-size: 0.9rem;
  color: var(--text-1);
}

.cmd-result:hover,
.cmd-result.selected {
  background: var(--bg-elevated);
}

.cmd-result i {
  color: var(--text-3);
  width: 16px;
  text-align: center;
}

.cmd-result-label {
  flex: 1;
}

.cmd-result-hint {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════
   ABOUT — Expertise Card
══════════════════════════════════════════════════ */
.expertise-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s5);
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4C8BF5, #A855F7, #F54C4C);
  opacity: 0.8;
}

.expertise-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(76, 139, 245, 0.1);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--s3);
  font-weight: 500;
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s4);
  line-height: 1.3;
}

.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.expertise-list li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color var(--t-fast);
}

.expertise-list li i {
  color: var(--text-3);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: color var(--t-fast), transform var(--t-fast);
}

.expertise-list li:hover {
  color: var(--text-1);
}

.expertise-list li:hover i {
  color: var(--accent);
  transform: scale(1.1);
}

/* ══════════════════════════════════════════════════
   VENN DIAGRAM (old CSS — kept for safety, hidden)
══════════════════════════════════════════════════ */
.venn-container {
  position: relative;
  width: 240px;
  height: 220px;
  margin: 0 auto var(--s5);
}

.venn-circle {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: transform 0.4s var(--ease);
}

.venn-software {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(76, 139, 245, 0.15);
  border: 1.5px solid rgba(76, 139, 245, 0.35);
}

.venn-software span {
  margin-top: -30px;
}

.venn-hardware {
  bottom: 0;
  left: 0;
  background: rgba(159, 232, 112, 0.12);
  border: 1.5px solid rgba(159, 232, 112, 0.3);
}

.venn-hardware span {
  margin-bottom: -20px;
  margin-left: -10px;
}

.venn-security {
  bottom: 0;
  right: 0;
  background: rgba(245, 166, 76, 0.12);
  border: 1.5px solid rgba(245, 166, 76, 0.3);
}

.venn-security span {
  margin-bottom: -20px;
  margin-right: -10px;
}

.venn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
  z-index: 2;
}

.venn-container:hover .venn-software {
  transform: translateX(-50%) translateY(-5px);
}

.venn-container:hover .venn-hardware {
  transform: translateX(-5px) translateY(5px);
}

.venn-container:hover .venn-security {
  transform: translateX(5px) translateY(5px);
}


/* ══════════════════════════════════════════════════
   EXPERIENCE CARDS (with logo)
══════════════════════════════════════════════════ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.exp-card {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-normal) var(--ease), box-shadow var(--t-normal) var(--ease);
}

.exp-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(76, 139, 245, 0.06);
}

.exp-logo-col {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.exp-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s1);
}

.exp-date-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  background: var(--bg-elevated);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.exp-date-badge i {
  font-size: 0.7rem;
}


/* ══════════════════════════════════════════════════
   SKILL CARDS (with icons, reference site style)
══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3);
  transition: border-color var(--t-normal) var(--ease), transform var(--t-normal) var(--ease);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.skill-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(76, 139, 245, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: var(--s2);
}

.skill-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s2);
}

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

.skill-tags span {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.skill-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ══════════════════════════════════════════════════
   RADAR CHART
══════════════════════════════════════════════════ */
.radar-section {
  max-width: 420px;
  margin: var(--s6) auto var(--s5);
  text-align: center;
}

.radar-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s3);
}

.radar-chart {
  display: flex;
  justify-content: center;
}

.radar-svg {
  width: 100%;
  max-width: 320px;
}

.radar-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 0.8;
}

.radar-axis {
  stroke: var(--border);
  stroke-width: 0.5;
  stroke-dasharray: 4 3;
}

.radar-data {
  fill: rgba(76, 139, 245, 0.12);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill var(--t-normal);
}

.radar-data:hover {
  fill: rgba(76, 139, 245, 0.22);
}

.radar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-2);
}


/* ══════════════════════════════════════════════════
   HONEYCOMB SKILL MAP
══════════════════════════════════════════════════ */
.honeycomb-section {
  max-width: 900px;
  margin: var(--s6) auto var(--s5);
  text-align: center;
}

.honeycomb-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 8px;
}

.honeycomb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: var(--s4);
  padding: var(--s2) 0;
}

/* Even rows offset */
.honeycomb-row {
  display: flex;
  gap: 6px;
  margin-top: -14px;
  /* vertical overlap for tight packing */
}

.honeycomb-row:first-child {
  margin-top: 0;
}

.honeycomb-row:nth-child(even) {
  margin-left: 50px;
  /* offset even rows by half a hex width */
}

.hex-cell {
  position: relative;
  width: 90px;
  height: 104px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.3s var(--ease), filter 0.3s;
  flex-shrink: 0;
}

.hex-cell:hover {
  transform: scale(1.12) translateY(-4px);
  filter: brightness(1.2);
  z-index: 2;
}

/* Category color variants */
.hex-cell[data-cat="lang"] {
  background: rgba(76, 139, 245, 0.18);
}

.hex-cell[data-cat="framework"] {
  background: rgba(159, 232, 112, 0.16);
}

.hex-cell[data-cat="tool"] {
  background: rgba(245, 166, 76, 0.16);
}

.hex-cell[data-cat="domain"] {
  background: rgba(168, 85, 247, 0.16);
}

.hex-cell[data-cat="security"] {
  background: rgba(245, 76, 76, 0.15);
}

.hex-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
  pointer-events: none;
}

.hex-cell[data-cat="lang"] .hex-icon {
  color: #4C8BF5;
}

.hex-cell[data-cat="framework"] .hex-icon {
  color: #9FE870;
}

.hex-cell[data-cat="tool"] .hex-icon {
  color: #F5A64C;
}

.hex-cell[data-cat="domain"] .hex-icon {
  color: #A855F7;
}

.hex-cell[data-cat="security"] .hex-icon {
  color: #F54C4C;
}

.hex-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-1);
  text-align: center;
  line-height: 1.25;
  padding: 0 6px;
  pointer-events: none;
}

/* Tooltip on hover */
.hex-cell::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hex-cell:hover::after {
  opacity: 1;
}

/* Legend */
.hex-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s4);
}

.hex-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.hex-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   INTERESTS SECTION
══════════════════════════════════════════════════ */
.interests {
  padding: var(--s8) 0;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: var(--s1);
  font-weight: 400;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3);
  transition: border-color var(--t-normal) var(--ease), transform var(--t-normal) var(--ease), box-shadow var(--t-normal);
}

.interest-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(76, 139, 245, 0.08);
}

.interest-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--s2);
}

/* Each interest gets a unique subtle tint — updated for new order */
.interest-card:nth-child(1) .interest-icon {
  background: rgba(76, 139, 245, 0.12);
  color: #4C8BF5;
}

/* IoT */
.interest-card:nth-child(2) .interest-icon {
  background: rgba(245, 76, 76, 0.10);
  color: #F54C4C;
}

/* Cybersecurity */
.interest-card:nth-child(3) .interest-icon {
  background: rgba(168, 85, 247, 0.12);
  color: #A855F7;
}

/* AI/ML */
.interest-card:nth-child(4) .interest-icon {
  background: rgba(20, 184, 166, 0.12);
  color: #14B8A6;
}

/* Computer Vision */
.interest-card:nth-child(5) .interest-icon {
  background: rgba(245, 166, 76, 0.12);
  color: #F5A64C;
}

/* Tech Writing */
.interest-card:nth-child(6) .interest-icon {
  background: rgba(236, 72, 153, 0.12);
  color: #EC4899;
}

/* Fitness */

.interest-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}

.interest-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════
   INTEREST TAGS
══════════════════════════════════════════════════ */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--divider);
}

.interest-tags span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-3);
  border: 1px solid var(--border);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.interest-card:hover .interest-tags span {
  border-color: rgba(76, 139, 245, 0.3);
  color: var(--text-2);
}

/* ══════════════════════════════════════════════════
   CHARTS ROW (radar + proficiency side by side)
══════════════════════════════════════════════════ */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: start;
  max-width: 900px;
  margin: var(--s6) auto var(--s3);
}

@media (max-width: 700px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

/* ── Proficiency bar chart ── */
.proficiency-chart {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.prof-bars {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s3);
}

.prof-row {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  align-items: center;
  gap: 10px;
}

.prof-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-track {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.prof-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-lime));
  border-radius: 4px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.prof-fill.animated {
  width: var(--target-w);
}

.prof-pct {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  text-align: right;
}

/* ── Developer Activity Heatmap ── */
.heatmap-section {
  max-width: 900px;
  margin: var(--s5) auto var(--s4);
  padding: var(--s4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}

.heatmap-subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 8px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  margin: var(--s3) 0 var(--s2);
  padding: 0 var(--s2);
}

.hm-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(76, 139, 245, var(--intensity, 0.05));
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.hm-cell:hover {
  transform: scale(1.5);
  box-shadow: 0 0 6px rgba(76, 139, 245, 0.5);
  z-index: 1;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--s2);
}

.heatmap-legend-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.heatmap-legend-cells {
  display: flex;
  gap: 4px;
}

.heatmap-legend-cells .hm-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  aspect-ratio: unset;
}

/* ── Developer Venn (Interests section) ── */
.dev-venn-section {
  max-width: 860px;
  margin: var(--s6) auto var(--s4);
  text-align: center;
}

.dev-venn-wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-top: var(--s3);
  flex-wrap: wrap;
  justify-content: center;
}

.dev-venn-svg {
  width: 100%;
  max-width: 480px;
  max-height: 360px;
  flex-shrink: 0;
  overflow: visible;
}

.dv-circle {
  fill-opacity: 0.12;
  stroke-width: 1.5;
  mix-blend-mode: screen;
  transition: fill-opacity 0.4s;
}

.dv-circle:hover {
  fill-opacity: 0.22;
}

.dv-c1 {
  fill: #4C8BF5;
  stroke: #4C8BF5;
}

.dv-c2 {
  fill: #9FE870;
  stroke: #9FE870;
}

.dv-c3 {
  fill: #F5A64C;
  stroke: #F5A64C;
}

.dv-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 700;
  fill: var(--text-1);
}

.dv-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: var(--text-3);
}

.dv-inter {
  font-family: 'Inter Tight', sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-2);
}

.dv-inter-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--text-3);
}

.dv-sweet {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 800;
  fill: var(--accent);
  text-shadow: 0 0 8px rgba(76, 139, 245, 0.8);
}

.dv-venn-note {
  max-width: 240px;
  text-align: left;
  flex-shrink: 0;
}

.dv-venn-note i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: var(--s1);
  display: block;
}

.dv-venn-note p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  font-style: italic;
}

/* ══════════════════════════════════════════════════
   PHILOSOPHY SPECTRUM BARS
══════════════════════════════════════════════════ */
.philosophy-section {
  max-width: 640px;
  margin: var(--s6) auto 0;
  padding: var(--s4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.philosophy-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
  margin-bottom: var(--s3);
}

.philosophy-bars {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.p-bar-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.p-bar-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  width: 100px;
  text-align: right;
  flex-shrink: 0;
}

.p-bar-label:last-child {
  text-align: left;
}

.p-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.p-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-lime));
  border-radius: 3px;
  transition: width 1.2s var(--ease);
}

.p-bar-fill.animated {
  width: var(--w);
}

.philosophy-note {
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
  margin-top: var(--s3);
  font-style: italic;
}


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  padding: var(--s4) 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: var(--s3);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--text-1);
}


/* ══════════════════════════════════════════════════
   RESPONSIVE — INTERESTS + NEW COMPONENTS
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exp-card {
    flex-direction: column;
    padding: var(--s3);
  }

  .exp-header {
    flex-direction: column;
  }

  .exp-date-badge {
    align-self: flex-start;
  }

  .venn-container {
    width: 200px;
    height: 185px;
  }

  .venn-circle {
    width: 115px;
    height: 115px;
  }

  .philosophy-section {
    padding: var(--s3);
  }

  .p-bar-label {
    width: 72px;
    font-size: 0.65rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--s2);
  }
}

@media (max-width: 600px) {
  .interests-grid {
    grid-template-columns: 1fr;
  }

  .radar-svg {
    max-width: 260px;
  }
}


/* ══════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════ */
@media print {

  .nav,
  .side-dots,
  .cursor,
  .scroll-progress,
  .back-top,
  .kbd-hint,
  .cmd-overlay,
  .toast,
  .hero-grid-bg,
  .hero-scroll-hint {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    cursor: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .section {
    padding: 32px 0;
  }

  .btn {
    border: 1px solid #333;
  }
}

/* ══════════════════════════════════════════════════
   SIDE DOT — HIDE ON SMALL SCREENS
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .side-dots {
    display: none;
  }

  .kbd-hint {
    display: none;
  }
}