/* ============================================================
   JIANZHONG CHEN — Personal Brand Website
   style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg-primary:    #050B14;
  --bg-secondary:  #0A1628;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --blue-brand:    #1B5FD6;
  --blue-mid:      #2B6FE6;
  --blue-light:    #3B82F6;
  --cyan:          #06B6D4;
  --cyan-light:    #22D3EE;
  --white:         #FFFFFF;
  --text-primary:  rgba(255, 255, 255, 0.92);
  --text-secondary:rgba(255, 255, 255, 0.55);
  --text-muted:    rgba(255, 255, 255, 0.32);

  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(27, 95, 214, 0.5);
  --glow-blue:     rgba(27, 95, 214, 0.25);
  --glow-cyan:     rgba(6, 182, 212, 0.2);

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

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover:0 16px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(27, 95, 214, 0.25);

  --transition: 0.32s cubic-bezier(0.22, 0.68, 0, 1.2);
  --transition-fast: 0.18s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(27, 95, 214, 0.4); border-radius: 4px; }

/* ── Background canvas ── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ── Noise texture ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Layout wrapper ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative; z-index: 2;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}
nav.scrolled {
  background: rgba(5, 11, 20, 0.9);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.nav-logo {
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.83rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: rgba(27, 95, 214, 0.18);
  border: 1px solid rgba(27, 95, 214, 0.38);
  color: #93C5FD !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: background var(--transition-fast) !important;
}
.nav-cta:hover { background: rgba(27, 95, 214, 0.32) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5, 11, 20, 0.97);
  backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.mobile-menu a:hover { color: var(--white); }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.8rem; color: var(--text-muted);
  cursor: pointer; line-height: 1;
  transition: color var(--transition-fast);
}
.mobile-close:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  position: relative;
}
.hero-glow-1 {
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,95,214,0.16) 0%, transparent 70%);
  top: -100px; left: -150px; pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  bottom: 0; right: -100px; pointer-events: none;
}
.hero-content { max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-size: 12px; font-weight: 600;
  color: var(--cyan-light);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse-glow 2.4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0.5); opacity: 1; }
  50%       { box-shadow: 0 0 0 8px rgba(6,182,212,0); opacity: 0.7; }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-title .name {
  display: block;
  background: linear-gradient(120deg, #fff 10%, #93C5FD 55%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .tagline {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 0.52em;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.hero-title .tagline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.8; max-width: 560px; margin-bottom: 36px;
}
.hero-sub strong { color: rgba(255,255,255,0.78); font-weight: 600; }
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-brand) 0%, #0E40C8 100%);
  color: white; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(27,95,214,0.45), inset 0 1px 0 rgba(255,255,255,0.14);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 36px rgba(27,95,214,0.6), inset 0 1px 0 rgba(255,255,255,0.14);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72); font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}
.hero-stats {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(10px);
  width: fit-content;
}
.stat-cell {
  padding: 18px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-size: 1.9rem; font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 500; white-space: nowrap;
}
.stat-blue  { color: #93C5FD; }
.stat-cyan  { color: var(--cyan-light); }
.stat-green { color: #6EE7B7; }
.stat-pink  { color: #F9A8D4; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
section { padding: 100px 0; position: relative; z-index: 2; }
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em;
  color: var(--text-primary); margin-bottom: 14px;
  line-height: 1.15;
}
.section-desc {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.8; max-width: 520px;
}
.section-header { margin-bottom: 48px; }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.055) 0%, transparent 55%);
  pointer-events: none;
}
.glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ============================================================
   BENTO GRID
   ============================================================ */
#highlights { padding-top: 20px; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

/* Tile positioning */
.tile-ai        { grid-column: span 7; }
.tile-cmc       { grid-column: span 5; }
.tile-ml        { grid-column: span 5; }
.tile-prompt    { grid-column: span 7; }

.bento-tile {
  padding: 32px;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: default;
}
.tile-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.tile-title {
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.tile-desc {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.78; flex: 1; margin-bottom: 20px;
}
.tile-footer {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto;
}

/* Individual tile accents */
.tile-ai {
  background: linear-gradient(135deg, rgba(27,95,214,0.13) 0%, rgba(5,11,20,0.3) 100%);
}
.tile-ai .tile-icon-wrap {
  background: rgba(27,95,214,0.18);
  border: 1px solid rgba(27,95,214,0.3);
}
.tile-cmc {
  background: linear-gradient(135deg, rgba(6,182,212,0.09) 0%, rgba(5,11,20,0.3) 100%);
}
.tile-cmc .tile-icon-wrap {
  background: rgba(6,182,212,0.14);
  border: 1px solid rgba(6,182,212,0.25);
}
.tile-ml {
  background: linear-gradient(135deg, rgba(249,168,212,0.07) 0%, rgba(5,11,20,0.3) 100%);
}
.tile-ml .tile-icon-wrap {
  background: rgba(249,168,212,0.1);
  border: 1px solid rgba(249,168,212,0.2);
}
.tile-prompt {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(5,11,20,0.3) 100%);
}
.tile-prompt .tile-icon-wrap {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
}

/* pipeline mini viz on AI tile */
.pipeline-line {
  height: 2px; border-radius: 1px;
  background: rgba(27,95,214,0.25);
  position: relative; overflow: hidden; margin-top: 16px;
}
.pipeline-line::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--blue-brand), var(--cyan), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

/* Progress bars on ML tile */
.ml-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ml-bar-row { display: flex; flex-direction: column; gap: 5px; }
.ml-bar-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.ml-bar-track {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06);
}
.ml-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-light), #F9A8D4);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.22,0.68,0,1.2);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { padding: 80px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.about-text p {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.9; margin-bottom: 16px;
}
.about-text p strong { color: rgba(255,255,255,0.82); font-weight: 600; }
.about-highlights {
  display: flex; flex-direction: column; gap: 14px; margin-top: 28px;
}
.about-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.about-item:hover {
  border-color: rgba(27,95,214,0.3);
  background: rgba(27,95,214,0.04);
}
.about-item-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,95,214,0.12); border: 1px solid rgba(27,95,214,0.2);
}
.about-item-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.about-item-text strong { color: var(--text-primary); font-weight: 600; display: block; margin-bottom: 2px; }

/* ============================================================
   TIMELINE / EXPERIENCE
   ============================================================ */
#experience { padding: 100px 0; }
.timeline { position: relative; padding-left: 48px; }
.timeline-spine {
  position: absolute; left: 18px; top: 6px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--blue-brand) 0%, rgba(6,182,212,0.3) 60%, transparent 100%);
}
.tl-item {
  position: relative; margin-bottom: 16px;
}
.tl-dot {
  position: absolute; left: -36px; top: 20px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--blue-brand);
  background: var(--bg-primary);
  box-shadow: 0 0 10px rgba(27,95,214,0.55);
}
.tl-dot.current {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(6,182,212,0.65);
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.tl-card { padding: 28px 30px; }
.tl-meta {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
}
.tl-dates {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.tl-dates.current { color: var(--cyan); }
.tl-role {
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.015em; margin-bottom: 3px;
}
.tl-company {
  font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px;
}
.tl-items { display: flex; flex-direction: column; gap: 8px; }
.tl-point {
  display: flex; gap: 10px; align-items: flex-start;
}
.tl-point-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-light); flex-shrink: 0; margin-top: 9px;
}
.tl-point-text {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.72;
}
.tl-point-text strong { color: rgba(255,255,255,0.8); font-weight: 600; }
.tl-sub-table { margin-top: 18px; border-radius: var(--radius-sm); overflow: hidden; }
.tl-sub-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.tl-sub-item {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 8px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tl-sub-item:last-child { border-bottom: none; }
.tl-sub-item .type {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.65);
}
.tl-sub-item .desc {
  font-size: 12px; color: var(--text-secondary); line-height: 1.6;
}
.tl-pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 100px; font-size: 11px; font-weight: 600;
  background: rgba(27,95,214,0.14); border: 1px solid rgba(27,95,214,0.28);
  color: #93C5FD;
}
.tl-pill.cyan {
  background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.28); color: #67E8F9;
}
.tl-pill.ghost {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: var(--text-muted);
}

/* ============================================================
   PROJECTS
   ============================================================ */
#projects { padding: 100px 0; }
.project-hero {
  padding: 0; overflow: hidden; margin-bottom: 20px;
}
.project-hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  min-height: 400px;
  background: linear-gradient(135deg, rgba(27,95,214,0.12) 0%, rgba(5,11,20,0.4) 60%, rgba(6,182,212,0.07) 100%);
}
.project-hero-left {
  padding: 44px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
}
.project-hero-right {
  padding: 44px;
  display: flex; flex-direction: column; gap: 12px;
}
.project-logo-wrap {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.project-logo-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-brand), var(--cyan));
  display: flex; align-items: center; justify-content: center;
}
.project-logo-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.015em; }
.project-logo-version { font-size: 11px; color: var(--cyan); font-weight: 600; margin-top: 2px; }
.project-desc {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.85; margin-bottom: 24px; flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-spec-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.spec-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--transition-fast);
}
.spec-row:hover { border-color: rgba(27,95,214,0.25); }
.spec-left {
  display: flex; align-items: center; gap: 10px;
}
.spec-dot { width: 7px; height: 7px; border-radius: 50%; }
.spec-label { font-size: 0.84rem; color: var(--text-secondary); }
.spec-value { font-size: 0.9rem; font-weight: 700; }
.spec-dot.blue  { background: var(--blue-light); }
.spec-dot.cyan  { background: var(--cyan); }
.spec-dot.purple{ background: #A78BFA; }
.spec-dot.green { background: #34D399; }
.spec-dot.pulse { animation: pulse-glow 2.4s ease-in-out infinite; }

.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.project-mini { padding: 26px; min-height: 180px; }
.project-mini-title {
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.project-mini-desc {
  font-size: 0.825rem; color: var(--text-secondary); line-height: 1.72;
}

/* ============================================================
   SKILLS
   ============================================================ */
#skills { padding: 100px 0; }
.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.skills-card { padding: 32px; }
.skills-card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 22px;
}
.skills-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  padding: 6px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.65);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  cursor: default;
}
.skill-pill:hover {
  background: rgba(27,95,214,0.18);
  border-color: rgba(27,95,214,0.4);
  color: #93C5FD;
  transform: scale(1.05);
}
.skill-pill.tech:hover {
  background: rgba(27,95,214,0.18);
  border-color: rgba(27,95,214,0.4);
  color: #93C5FD;
}
.skill-pill.domain:hover {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.35);
  color: #67E8F9;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact { padding: 100px 0; }
.contact-card {
  padding: 72px 60px; text-align: center;
  background: linear-gradient(135deg, rgba(27,95,214,0.1) 0%, rgba(5,11,20,0.5) 55%, rgba(6,182,212,0.07) 100%);
  position: relative;
}
.contact-ring-1, .contact-ring-2 {
  position: absolute; border-radius: 50%;
  border: 1px solid; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.contact-ring-1 {
  width: 360px; height: 360px;
  border-color: rgba(27,95,214,0.1);
}
.contact-ring-2 {
  width: 560px; height: 560px;
  border-color: rgba(27,95,214,0.05);
}
.contact-inner { position: relative; z-index: 1; }
.contact-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.contact-title {
  font-size: clamp(1.9rem,4vw,3rem);
  font-weight: 900; letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.contact-grad {
  background: linear-gradient(120deg, #fff 20%, #93C5FD 60%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-sub {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 420px; margin: 0 auto 36px; line-height: 1.8;
}
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.contact-meta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo { font-size: 1rem; font-weight: 800; letter-spacing: -0.025em; }
.footer-logo span { color: var(--cyan); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
}

/* ============================================================
   TAGS / PILLS shared
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}
.tag-blue   { background: rgba(27,95,214,0.15); border: 1px solid rgba(27,95,214,0.32); color: #93C5FD; }
.tag-cyan   { background: rgba(6,182,212,0.11); border: 1px solid rgba(6,182,212,0.3);  color: #67E8F9; }
.tag-green  { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.28);color: #6EE7B7; }
.tag-purple { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.28);color: #C4B5FD; }
.tag-pink   { background: rgba(249,168,212,0.1);border: 1px solid rgba(249,168,212,0.25);color: #F9A8D4;}
.tag-ghost  { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); }

/* ============================================================
   ANIMATIONS — scroll reveal
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.2),
              transform 0.65s cubic-bezier(.22,.68,0,1.2);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.6s cubic-bezier(.22,.68,0,1.2), transform 0.6s cubic-bezier(.22,.68,0,1.2); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.rd1 { transition-delay: 0.07s; }
.rd2 { transition-delay: 0.14s; }
.rd3 { transition-delay: 0.21s; }
.rd4 { transition-delay: 0.28s; }
.rd5 { transition-delay: 0.35s; }

/* hero entrance */
.hero-entrance { opacity: 0; transform: translateY(32px); animation: fadeUp 0.7s cubic-bezier(.22,.68,0,1.2) both; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.he1 { animation-delay: 0.05s; }
.he2 { animation-delay: 0.14s; }
.he3 { animation-delay: 0.23s; }
.he4 { animation-delay: 0.32s; }
.he5 { animation-delay: 0.42s; }
.he6 { animation-delay: 0.52s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tile-ai, .tile-cmc, .tile-ml, .tile-prompt { grid-column: span 6; }
  .project-hero-inner { grid-template-columns: 1fr; }
  .project-hero-right { border-top: 1px solid var(--border); }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 72px 0; }
  .container { padding: 0 18px; }

  .tile-ai, .tile-cmc, .tile-ml, .tile-prompt { grid-column: span 12; }
  .bento-tile { min-height: auto; }

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

  .hero-stats { width: 100%; overflow-x: auto; }
  .stat-cell  { padding: 14px 20px; }
  .stat-num   { font-size: 1.5rem; }

  .contact-card { padding: 48px 24px; }
  .contact-ring-1 { width: 260px; height: 260px; }
  .contact-ring-2 { width: 400px; height: 400px; }

  .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }

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