/* ===================================================
   SUMIT UJJWAL PORTFOLIO — Senior Backend Developer
   portfolio.css
=================================================== */

/* --- FONTS & RESET -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ff9933 #1a1a1a;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #ff9933; border-radius: 2px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: #0b0e14;
  color: #c9d1d9;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

code, pre, .code-body, .hero-code-snippet {
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

/* --- DESIGN TOKENS (LIQUID GLASS PALETTE) --------- */
:root {
  --accent: #ff9933;
  --accent-dim: rgba(255, 153, 51, 0.12);
  --accent-border: rgba(255, 153, 51, 0.35);
  --bg: #0b0e14;
  --bg-card: rgba(16, 22, 34, 0.65);
  --bg-card-hover: rgba(24, 32, 48, 0.82);
  --bg-alt: transparent;
  --glass-bg: rgba(16, 22, 34, 0.65);
  --glass-bg-hover: rgba(24, 32, 48, 0.82);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 153, 51, 0.45);
  --glass-blur: blur(12px) saturate(140%);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 153, 51, 0.35);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --nav-height: 68px;
  --section-pad: 100px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- FOCUS VISIBLE -------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Stacking context for page content above background */
header, main, footer {
  position: relative;
  z-index: 1;
}

/* ===================================================
   FUTURISTIC INTERACTIVE DISTRIBUTED MESH BACKGROUND
=================================================== */
.cyber-network-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #0b0e14;
}

#cyber-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cyber-network-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 85% at 50% 50%, transparent 45%, rgba(11, 14, 20, 0.7) 80%, #0b0e14 100%);
  pointer-events: none;
}

/* Card liquid glass base & interactive border feedback */
.hero-specs-console,
.project-card,
.skills-card,
.contact-card,
.principle-card,
.timeline-card,
.timeline-content,
.cert-card,
.about-card,
.contact-form-wrapper,
.react-activity-calendar {
  position: relative;
  transform: translateZ(0);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07), 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-specs-console:hover,
.project-card:hover,
.skills-card:hover,
.contact-card:hover,
.principle-card:hover,
.timeline-card:hover,
.timeline-content:hover,
.cert-card:hover,
.about-card:hover {
  border-color: rgba(255, 153, 51, 0.45);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 24px -4px rgba(255, 153, 51, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .cyber-network-bg {
    display: none;
  }
}

@media (hover: none) {
  .cyber-network-bg {
    opacity: 0.6;
  }
}

/* ===================================================
   NAVIGATION
=================================================== */
header#nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

header#nav-menu.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo-initials {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 2px 10px;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}

.nav-logo:hover .nav-logo-initials { background: rgba(255,153,51,0.2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-resume {
  flex-shrink: 0;
}

.btn-resume {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent) !important;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 7px 16px;
  transition: background var(--transition), border-color var(--transition);
}

.btn-resume:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.ham-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.ham-btn[aria-expanded="true"] .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-btn[aria-expanded="true"] .ham-bar:nth-child(2) { opacity: 0; }
.ham-btn[aria-expanded="true"] .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: rgba(11, 14, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav .mob-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav .mob-link:hover,
.mobile-nav .mob-link:focus,
.mobile-nav .mob-link.active {
  color: var(--accent);
  background: rgba(255, 153, 51, 0.08);
}

/* ===================================================
   SECTION SHARED
=================================================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner-narrow {
  max-width: 900px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Translucent Section Background with Liquid Glass Flow */
.section-alt {
  background: transparent;
  position: relative;
}

/* ===================================================
   HERO
=================================================== */
.section-hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,153,51,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* HERO LEFT */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}

.hero-name {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
}

.hero-name span {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-intro strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: #ff8800;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,153,51,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent) !important;
}

.hero-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* HERO RIGHT: Redesigned Engineering Architecture Console */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-specs-console {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72) 0%, rgba(10, 14, 23, 0.92) 100%);
  border: 1px solid rgba(255, 153, 51, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75),
              0 0 40px -10px rgba(255, 153, 51, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-specs-console:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 153, 51, 0.4);
  box-shadow: 0 26px 60px -10px rgba(0, 0, 0, 0.85),
              0 0 50px -5px rgba(255, 153, 51, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-specs-console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 51, 0.6), transparent);
  pointer-events: none;
}

/* Console Header */
.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-live-beacon {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beacon-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.beacon-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  opacity: 0.8;
  animation: beacon-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.console-main-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
}

.console-sub-title {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.2;
}

.console-env-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 153, 51, 0.08);
  border: 1px solid rgba(255, 153, 51, 0.25);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: "JetBrains Mono", monospace;
}

.env-code {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.env-status {
  font-size: 9.5px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* Console Topology Flow HUD */
.console-topology {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 20px 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.topo-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: all 0.2s ease;
  min-width: 90px;
}

.topo-node:hover {
  background: rgba(255, 153, 51, 0.06);
  border-color: rgba(255, 153, 51, 0.3);
}

.topo-node .node-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  margin-bottom: 2px;
}

.topo-node .node-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
}

.topo-node .node-stat {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: var(--accent);
  line-height: 1.1;
}

.topo-connector {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 4px;
}

.connector-pulse {
  position: absolute;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff9933, #ffffff, transparent);
  box-shadow: 0 0 8px #ff9933;
  animation: pulse-stream 1.8s infinite ease-in-out;
}

.pulse-delay {
  animation-delay: 0.9s;
}

@keyframes pulse-stream {
  0% { left: -20px; }
  100% { left: 100%; }
}

.topo-cluster {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.topo-mini-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  min-width: 100px;
}

.topo-mini-node .mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.redis-dot {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.7);
}

.mysql-dot {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
}

.topo-mini-node .mini-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  color: #cbd5e1;
}

/* Console KPI Grid */
.console-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px 14px;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  background: rgba(255, 153, 51, 0.04);
  border-color: rgba(255, 153, 51, 0.25);
  transform: translateY(-1px);
}

.kpi-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 153, 51, 0.35);
  line-height: 1.2;
}

.kpi-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
  text-align: center;
}

/* Console Specs Breakdown */
.console-specs-body {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.console-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.console-spec-row:hover {
  border-color: rgba(255, 153, 51, 0.25);
  background: rgba(255, 255, 255, 0.035);
}

.spec-label-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.spec-accent-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.spec-accent-bar.db-bar {
  background: #38bdf8;
}

.spec-accent-bar.aws-bar {
  background: #f59e0b;
}

.spec-heading {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-data-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-primary {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

.spec-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Console Footer */
.console-footer {
  padding: 12px 20px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.console-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.console-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
  transition: all 0.2s ease;
  user-select: none;
}

.console-pill:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: rgba(255, 153, 51, 0.08);
  transform: translateY(-1px);
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 32px;
  animation: fade-hint 3s ease infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes fade-hint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===================================================
   ABOUT
=================================================== */
.about.section {
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-text strong { color: var(--text-primary); }

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.about-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.about-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent);
}

.about-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===================================================
   EXPERIENCE / TIMELINE
=================================================== */
.section-alt {
  padding: var(--section-pad) 0;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 24px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
}

.timeline-dot.current {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline-line {
  width: 1px;
  flex: 1;
  min-height: 32px;
  background: var(--border);
  margin-top: 8px;
}

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07), 0 12px 32px -8px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.timeline-content:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-role {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.timeline-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-badge {
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 99px;
  padding: 2px 10px;
}

.timeline-summary {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.timeline-responsibilities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.resp-group h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
}

.resp-group ul {
  list-style: disc;
  padding-left: 16px;
}

.resp-group li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.resp-group li strong { color: var(--text-primary); }

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ===================================================
   PROJECTS
=================================================== */
.section-projects {
  padding: var(--section-pad) 0;
}

.project-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07), 0 14px 36px -8px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 28px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  align-items: center;
}

.project-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.project-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #11151c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.02);
}

.project-category {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}

.project-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

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

.project-tech-stack span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

.project-button {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  border-radius: 6px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-card:hover {
  background: #ff8800;
}

.btn-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-card-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-card-outline:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn-card-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Open source showcase */
.open-source-showcase {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}

.showcase-header {
  margin-bottom: 28px;
}

.showcase-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.showcase-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

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

.showcase-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.showcase-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.showcase-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.showcase-tech span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

.showcase-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}

.link-arrow:hover {
  color: #ffaa44;
  text-decoration: underline;
}

/* ===================================================
   SKILLS / TECH STACK
=================================================== */
.section-skills {
  padding: var(--section-pad) 0;
  background: transparent;
  position: relative;
}

.skills-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(16, 22, 33, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent-border);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 153, 51, 0.35);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.skills-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 6px 20px -4px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: default;
}

.skills-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.skills-card.hidden {
  display: none;
}

.skills-card-img {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.skills-card-img svg,
.skills-card-img img {
  width: 100%;
  height: 100%;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  display: block;
}

.skills-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* GitHub stats */
.github-stats-section {
  border-top: 1px solid var(--border);
  padding-top: 50px;
}

.github-stats-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}

.react-activity-calendar {
  margin: 0 auto 32px auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 900px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}

.calendar-fallback {
  font-size: 13px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  text-align: center;
}

.react-activity-calendar text {
  fill: var(--text-secondary) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 10px !important;
}

.github-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.github-stats-grid img {
  border-radius: var(--radius);
  max-width: 100%;
  border: 1px solid var(--border);
}

/* ===================================================
   PRINCIPLES
=================================================== */
.section-principles {
  padding: var(--section-pad) 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.principle-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.principle-number {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.principle-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.principle-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===================================================
   CERTIFICATIONS
=================================================== */
.section-certs {
  padding: var(--section-pad) 0;
  background: transparent;
  position: relative;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

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

.cert-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

/* ===================================================
   CONTACT
=================================================== */
.section-contact {
  padding: var(--section-pad) 0;
  background: transparent;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  min-width: 0;
}

.contact-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.contact-card-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 2px;
}

.contact-card-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-email-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(16, 22, 33, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.copy-email-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.copy-feedback {
  font-size: 13px;
  color: #22c55e;
  font-family: "JetBrains Mono", monospace;
}

/* Contact Form */
.contact-form-wrapper {
  margin-top: 48px;
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07), 0 14px 36px -8px rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-input {
  background: rgba(10, 14, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-input:focus {
  border-color: var(--accent);
  background: rgba(14, 19, 30, 0.85);
  box-shadow: 0 0 12px rgba(255, 153, 51, 0.2);
}

.form-submit-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.form-status {
  margin-top: 14px;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  text-align: center;
  color: var(--text-secondary);
}

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background: rgba(11, 14, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  position: relative;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-tagline {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 0;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================
   REDUCED MOTION
=================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .timeline-responsibilities { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
    --nav-height: 62px;
  }

  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .section-inner {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 16px;
    height: var(--nav-height);
  }

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

  .ham-btn {
    display: flex;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(24px, 5.5vw, 30px);
  }

  .section-subtitle {
    font-size: 14.5px;
    margin-top: 10px;
  }

  /* Hero Mobile */
  .section-hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 40px;
  }

  .hero-grid {
    padding: 16px 0 32px;
    gap: 32px;
  }

  .hero-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    font-size: 11.5px;
    padding: 6px 12px;
    margin-bottom: 18px;
  }

  .hero-name {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 42px);
    margin-bottom: 16px;
    line-height: 1.15;
  }

  .hero-intro {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
  }

  .btn-primary,
  .btn-secondary,
  #resume-button-2,
  #resume-link-2 {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .hero-social {
    flex-wrap: wrap;
    gap: 12px;
  }

  .social-link {
    min-height: 38px;
    font-size: 13px;
  }

  /* Hero Console Mobile */
  .hero-specs-console {
    max-width: 100%;
    border-radius: 12px;
  }

  .console-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .console-main-title {
    font-size: 10.5px;
  }

  .console-sub-title {
    font-size: 10px;
  }

  .console-topology {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 12px;
    padding: 10px;
  }

  .topo-connector {
    display: none;
  }

  .topo-node {
    min-width: 80px;
    flex: 1 1 80px;
    padding: 6px 8px;
  }

  .topo-cluster {
    flex-direction: row;
    gap: 6px;
    flex: 1 1 100%;
    justify-content: center;
  }

  .topo-mini-node {
    min-width: auto;
    padding: 4px 8px;
  }

  .console-kpi-grid {
    padding: 0 12px 10px;
    gap: 6px;
  }

  .kpi-card {
    padding: 8px 6px;
  }

  .kpi-value {
    font-size: 13px;
  }

  .kpi-label {
    font-size: 9px;
  }

  .console-specs-body {
    padding: 0 12px 12px;
    gap: 6px;
  }

  .console-spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 10px;
  }

  .spec-data-col {
    justify-content: flex-start;
    width: 100%;
  }

  .spec-primary {
    text-align: left;
    font-size: 11.5px;
  }

  .console-footer {
    padding: 8px 12px 10px;
  }

  /* About Mobile */
  .about-grid {
    gap: 28px;
  }

  .about-text p {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 14px;
  }

  .about-card {
    padding: 14px 16px;
  }

  /* Timeline Mobile */
  .timeline-item {
    grid-template-columns: 18px 1fr;
    gap: 12px;
  }

  .timeline-dot {
    width: 10px;
    height: 10px;
  }

  .timeline-content {
    padding: 18px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-role {
    font-size: 17px;
  }

  .timeline-company {
    font-size: 13px;
  }

  .timeline-meta {
    align-items: flex-start;
  }

  .timeline-responsibilities {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .resp-group h4 {
    font-size: 12px;
  }

  .resp-group li {
    font-size: 12.5px;
    line-height: 1.55;
  }

  /* Projects Mobile */
  .project-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px;
    border-radius: 12px;
  }

  .project-img {
    max-height: 200px;
  }

  .project-title {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .project-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .project-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-case-study,
  .project-link {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  /* Technical Stack Mobile */
  .skills-filter {
    gap: 6px;
    margin-bottom: 24px;
    justify-content: center;
  }

  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
    min-height: 38px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 36px;
  }

  .skills-card {
    padding: 14px 8px;
    gap: 6px;
  }

  .skills-card-name {
    font-size: 11px;
  }

  .skills-card-img {
    width: 28px;
    height: 28px;
  }

  .github-stats-section {
    padding-top: 32px;
  }

  .react-activity-calendar {
    padding: 14px 10px;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .github-stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .github-stats-grid img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Principles Mobile */
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .principle-card {
    padding: 18px 16px;
  }

  /* Certifications Mobile */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cert-card {
    padding: 14px 16px;
  }

  .cert-name {
    font-size: 13px;
  }

  /* Contact Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .contact-card {
    padding: 12px 14px;
    min-height: 52px;
  }

  .copy-email-wrapper {
    width: 100%;
  }

  .copy-email-btn {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 12px;
    min-height: 44px;
    word-break: break-all;
  }

  .contact-form-wrapper {
    margin-top: 24px;
    padding: 18px 14px;
    border-radius: 12px;
  }

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

  .contact-input {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    min-height: 46px;
  }

  .form-submit-btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 32px 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
  }

  .nav-logo-text {
    font-size: 14px;
  }

  .nav-logo-initials {
    font-size: 15px;
    padding: 2px 7px;
  }

  .hero-title {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  .timeline-content {
    padding: 16px 12px;
  }

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

@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }

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

/* Accessibility screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================================
   CASE STUDY DETAIL MODAL (In-Page Accessible Dialog)
   =================================================== */

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-window {
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(249, 115, 22, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #11141b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 2;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}

.modal-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close-btn:hover {
  background: rgba(249, 115, 22, 0.15);
  color: #fff;
  border-color: var(--accent);
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Modal Body */
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-behavior: smooth;
}

.modal-body:focus-visible {
  outline: none;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-section-title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-section-title svg {
  color: var(--accent);
  flex-shrink: 0;
}

.modal-summary-box {
  background: rgba(249, 115, 22, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
}

.modal-lead {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0;
}

/* Modal Diagram */
.modal-diagram-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0;
}

.modal-diagram-container {
  width: 100%;
  background: #0a0d13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition);
}

.modal-diagram-container:hover {
  border-color: rgba(249, 115, 22, 0.35);
}

.modal-diagram-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 600 / 340;
  object-fit: contain;
  border-radius: 6px;
  box-sizing: border-box;
}

.modal-diagram-caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-diagram-caption::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.modal-section-content p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}

.modal-section-content p:last-child {
  margin-bottom: 0;
}

.modal-section-content ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-section-content li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-section-content code {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tech-pill {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 12px;
}

.modal-lessons-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px 20px;
}

/* Modal Footer */
.modal-footer {
  padding: 14px 24px;
  background: #11141b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.modal-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.modal-footer-btn {
  font-size: 12.5px;
  padding: 7px 16px;
  cursor: pointer;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-window {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Responsive Modal Queries */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 12px;
  }
  .modal-container {
    max-height: 94vh;
  }
  .modal-window {
    max-height: 94vh;
  }
  .modal-header {
    padding: 14px 18px;
  }
  .modal-body {
    padding: 20px 18px 24px;
    gap: 18px;
  }
  .modal-title {
    font-size: 20px;
  }
  .modal-diagram-container {
    padding: 8px;
    border-radius: 8px;
  }
  .modal-diagram-caption {
    font-size: 11px;
  }
  .modal-footer {
    padding: 12px 18px;
  }
  .modal-footer-note {
    display: none;
  }
}

@media (max-width: 480px) {
  .modal-backdrop {
    padding: 8px;
  }
  .modal-container {
    max-height: 96vh;
  }
  .modal-window {
    max-height: 96vh;
    border-radius: 10px;
  }
  .modal-header {
    padding: 12px 14px;
  }
  .modal-header-meta {
    gap: 6px;
  }
  .modal-category {
    font-size: 11px;
  }
  .modal-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .modal-close-btn {
    width: 32px;
    height: 32px;
  }
  .modal-body {
    padding: 16px 14px 20px;
    gap: 16px;
  }
  .modal-title {
    font-size: 18px;
  }
  .modal-summary-box {
    padding: 12px 14px;
  }
  .modal-lead {
    font-size: 14px;
  }
  .modal-diagram-container {
    padding: 6px;
    border-radius: 6px;
  }
  .modal-footer {
    padding: 10px 14px;
  }
  .modal-footer-btn {
    font-size: 12px;
    padding: 6px 14px;
  }
}
