/* ===================================================================
   FUTURISTIC AI ENGINEER PORTFOLIO — COMPLETE CSS
   Designer Portfolio 2026 — Dark, Cinematic, Premium
   =================================================================== */

/* ===================================================================
   1. GLOBAL RESET & BASE STYLES
   =================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Tokens */
  --bg-canvas: #030712;
  --bg-panel-1: #0a0f1a;
  --bg-panel-2: #0f1525;
  --bg-panel-3: #141d30;
  --text-primary: #e8edf5;
  --text-secondary: #8896ab;
  --text-muted: #556680;
  --accent-primary: #22d3ee;
  --accent-dim: #0e7490;
  --accent-glow: rgba(34, 211, 238, 0.12);
  --accent-secondary: #818cf8;
  --border-default: rgba(148, 163, 184, 0.08);
  --border-strong: rgba(34, 211, 238, 0.25);

  /* Shadows */
  --shadow-glow: 0 0 32px rgba(34, 211, 238, 0.35);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-canvas: #030712;
    --bg-panel-1: #0a0f1a;
  }
}

:root[data-theme="dark"] {
  --bg-canvas: #030712;
  --bg-panel-1: #0a0f1a;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================================================
   2. BACKGROUND ATMOSPHERE LAYERS
   =================================================================== */

.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.15) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

.cursor-spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  opacity: 0.08;
  transition: left 0.15s var(--ease-smooth), top 0.15s var(--ease-smooth);
}

/* ===================================================================
   3. TOAST NOTIFICATION
   =================================================================== */

.toast-notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.4s var(--ease-smooth), opacity 0.4s var(--ease-smooth);
  display: none;
}

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

/* ===================================================================
   4. CERTIFICATE LIGHTBOX
   =================================================================== */

.cert-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.cert-lightbox-backdrop.open {
  display: flex;
  opacity: 1;
}

.cert-lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  background: #1a1f2e;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-lightbox-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-lightbox-img-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.cert-lightbox-caption {
  width: 100%;
  padding: 16px 0 0;
  text-align: center;
}

.cert-lightbox-caption h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-lightbox-caption p {
  font-size: 13px;
  color: var(--text-secondary);
}

.cert-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.cert-lightbox-close:hover {
  background: var(--accent-primary);
  color: #030712;
  transform: rotate(90deg);
}

.cert-lightbox-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

/* ===================================================================
   6. HEADER NAVIGATION
   =================================================================== */

.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
}

.nav-pill {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s var(--ease-smooth);
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 12px rgba(40, 200, 64, 0.6);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-item {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s var(--ease-smooth);
  border-bottom: 2px solid transparent;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.is-active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.nav-item span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.6;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

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

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}

.hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer & Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-default);
  z-index: 9999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 24px;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.mobile-nav-close:hover {
  background: var(--accent-glow);
  color: var(--accent-primary);
  border-color: var(--accent-dim);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-smooth);
}

.mobile-nav-item i {
  font-size: 18px;
  color: var(--accent-primary);
}

.mobile-nav-item:hover,
.mobile-nav-item.is-active {
  color: var(--text-primary);
  background: var(--accent-glow);
  border-color: var(--accent-dim);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  text-decoration: none;
}

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

/* ===================================================================
   7. HERO SECTION
   =================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(90px, 12vw, 130px);
  padding-bottom: clamp(40px, 6vw, 80px);
  z-index: 10;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  box-sizing: border-box;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  min-width: 0;
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(6px, 1vw, 8px) clamp(12px, 1.5vw, 16px);
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.25);
  border-radius: 100px;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #28c840;
  box-sizing: border-box;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.7);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(40, 200, 64, 0);
  }
}

.hero-headline {
  font-size: clamp(30px, 4.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.text-glow-accent {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
}

.hero-subtext {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: clamp(8px, 1.5vw, 16px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: clamp(4px, 1vw, 8px);
}

.telemetry-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(4px, 0.8vw, 6px);
  padding: clamp(10px, 1.8vw, 16px) clamp(12px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s var(--ease-smooth);
}

.telemetry-card:hover {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.telemetry-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.telemetry-label {
  font-size: clamp(8px, 1.1vw, 11px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
}

.hero-cta-group {
  display: flex;
  gap: clamp(8px, 1.5vw, 12px);
  flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(6px, 1vw, 10px);
  width: 100%;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 10px);
  padding: clamp(10px, 1.8vw, 14px) clamp(18px, 2.5vw, 26px);
  background: var(--accent-primary);
  color: #030712;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.4);
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 10px);
  padding: clamp(10px, 1.8vw, 14px) clamp(18px, 2.5vw, 26px);
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

.btn-hero-ghost {
  width: clamp(38px, 4.5vw, 44px);
  height: clamp(38px, 4.5vw, 44px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: clamp(15px, 2vw, 18px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  flex-shrink: 0;
}

.btn-hero-ghost:hover {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent-primary);
}

.hero-stack-row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  margin-top: clamp(14px, 2vw, 20px);
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--border-default);
  width: 100%;
  flex-wrap: wrap;
}

.hero-stack-row span:first-child {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

.stack-pills span {
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1.2vw, 11px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* ===================================================================
   8. HERO HUD CONSOLE
   =================================================================== */

.hero-hud-col {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hud-console-card {
  background: var(--bg-panel-1);
  border: 1px solid var(--border-default);
  border-radius: clamp(12px, 2vw, 16px);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hud-window-bar {
  display: flex;
  align-items: center;
  min-height: 44px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-default);
  padding: 6px clamp(8px, 1.5vw, 16px);
  gap: clamp(6px, 1vw, 12px);
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hud-window-bar::-webkit-scrollbar {
  display: none;
}

.hud-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hud-dot.red {
  background: #ff5f57;
}

.hud-dot.yellow {
  background: #ffbd2e;
}

.hud-dot.green {
  background: #28c840;
}

.hud-tabs {
  display: flex;
  gap: 4px;
  margin-left: clamp(4px, 1vw, 12px);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: none;
}

.hud-tabs::-webkit-scrollbar {
  display: none;
}

.hud-tab {
  padding: 6px clamp(8px, 1.2vw, 14px);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1.2vw, 12px);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-smooth);
}

.hud-tab:hover {
  color: var(--text-secondary);
}

.hud-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.hud-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(9px, 1vw, 10px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #28c840;
  flex-shrink: 0;
}

.hud-status-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hud-body-tab {
  display: none;
  padding: clamp(14px, 2.5vw, 20px);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hud-body-tab.active {
  display: block;
}

/* Tab 1 - Profile HUD */

.profile-hud-layout {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: clamp(14px, 2.5vw, 20px);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.profile-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--accent-dim);
  flex-shrink: 0;
}

.hud-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    rgba(34, 211, 238, 0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  opacity: 0.08;
  animation: scanline 8s linear infinite;
  z-index: 2;
}

@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(20px);
  }
}

.profile-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.1);
}

.hud-corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.hud-corner-bracket.top-left {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--accent-primary);
  border-left: 2px solid var(--accent-primary);
}

.hud-corner-bracket.top-right {
  top: 8px;
  right: 8px;
  border-top: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
}

.hud-corner-bracket.bottom-left {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid var(--accent-primary);
  border-left: 2px solid var(--accent-primary);
}

.hud-corner-bracket.bottom-right {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
}

.profile-hud-info {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
  min-width: 0;
  width: 100%;
}

.hud-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 1vw, 10px) 0;
  border-bottom: 1px solid var(--border-default);
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.data-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(9px, 1.2vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.data-val {
  font-size: clamp(11px, 1.4vw, 13px);
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.data-val.highlight {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
}

.data-val.badge-val {
  padding: 3px 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  font-size: clamp(10px, 1.2vw, 11px);
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-primary);
}

.hud-status-box {
  margin-top: clamp(10px, 1.8vw, 16px);
  padding: clamp(10px, 1.8vw, 14px);
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.25);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.status-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, 1.2vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #28c840;
  font-weight: 600;
  margin-bottom: 6px;
}

.status-box-header i {
  font-size: 14px;
  color: #28c840;
}

.status-box-desc {
  font-size: clamp(11px, 1.3vw, 12px);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Tab 2 - Terminal */

.terminal-container {
  background: #050a15;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1.4vw, 13px);
  width: 100%;
  box-sizing: border-box;
}

.terminal-screen {
  min-height: 180px;
  max-height: clamp(240px, 40vh, 360px);
  overflow-y: auto;
  padding: clamp(10px, 2vw, 16px);
  word-break: break-word;
}

.term-line {
  padding: 2px 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.term-line.banner {
  color: var(--accent-primary);
  font-weight: 700;
}

.term-line.muted {
  color: var(--text-muted);
}

.term-line.out {
  color: var(--text-secondary);
}

.term-line.prompt-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.term-user {
  color: #28c840;
  font-weight: 600;
}

.term-path {
  color: var(--accent-secondary);
}

.term-cmd {
  color: var(--text-primary);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-default);
  padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 16px);
  width: 100%;
  box-sizing: border-box;
}

#terminal-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1.4vw, 13px);
}

.terminal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: clamp(6px, 1vw, 8px) clamp(10px, 2vw, 16px);
  border-top: 1px solid var(--border-default);
  width: 100%;
  box-sizing: border-box;
}

.term-chip {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1.1vw, 11px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.term-chip:hover {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent-primary);
}

/* Tab 3 - Architecture Flow */

.arch-flow-container {
  padding: clamp(10px, 2vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

.arch-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2vw, 24px);
}

.arch-flow-header h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1.2vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.arch-tag {
  padding: 4px 10px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(9px, 1.1vw, 10px);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 10px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(14px, 2vw, 24px) 0;
  width: 100%;
  box-sizing: border-box;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(85px, 18vw, 120px);
  padding: clamp(10px, 1.5vw, 16px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  gap: clamp(6px, 1vw, 10px);
  flex-shrink: 0;
}

.arch-node i {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--accent-primary);
}

.arch-node span {
  font-size: clamp(10px, 1.3vw, 12px);
  text-align: center;
  color: var(--text-secondary);
}

.arch-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 2vw, 20px);
  color: var(--accent-primary);
  font-weight: 300;
  flex-shrink: 0;
}

.arch-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: clamp(14px, 2vw, 24px);
  width: 100%;
  box-sizing: border-box;
}

.arch-details-grid > div {
  padding: clamp(10px, 1.5vw, 14px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}

.arch-details-grid strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.arch-details-grid small {
  font-size: clamp(9px, 1.1vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ===================================================================
   9. SECTION GENERIC STYLES
   =================================================================== */

.section-block {
  position: relative;
  padding: 100px 0;
  z-index: 10;
}

.section-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 48px;
}

.section-header-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tag-index {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--accent-primary);
  color: #030712;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

.section-main-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
  text-align: center;
}

.section-sub-desc {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 auto;
  text-align: center;
}

/* ===================================================================
   10. BENTO PROJECT CARDS
   =================================================================== */

.bento-projects-grid {
  display: grid;
  gap: 20px;
}

.bento-projects-grid .bento-flagship {
  grid-column: span 1;
}

.bento-card {
  position: relative;
  background: var(--bg-panel-1);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.bento-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.bento-glow-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent);
}

.bento-card:hover .bento-glow-surface {
  opacity: 0.5;
}

.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
}

.badge-system-type {
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}

.badge-status.live {
  color: #28c840;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bento-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent-primary);
  font-weight: 600;
}

.bento-body {
  padding: 24px;
}

.bento-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.bento-title-sm {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.bento-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.bento-summary-sm {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.bento-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.spec-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}

.spec-box i {
  font-size: 20px;
  color: var(--accent-primary);
  min-width: 20px;
}

.spec-box div {
  flex: 1;
}

.spec-box strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.spec-box small {
  font-size: 12px;
  color: var(--text-muted);
}

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

.bento-tech-tags.mini {
  gap: 5px;
}

.bento-tech-tags span {
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
}

.bento-links-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-bento-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-primary);
  color: #030712;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.btn-bento-primary:hover {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
}

.btn-bento-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.btn-bento-secondary:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
  color: var(--text-primary);
}

.bento-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  transition: gap 0.2s var(--ease-smooth);
}

.bento-text-link:hover {
  gap: 10px;
}

/* ===================================================================
   11. SKILLS MATRIX
   =================================================================== */

.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.skill-matrix-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel-1);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s var(--ease-smooth);
}

.skill-matrix-card.featured-skill,
.skill-matrix-card.skill-wide {
  grid-column: span 3;
}

.skill-matrix-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.featured-skill {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--bg-panel-1) 0%, rgba(34, 211, 238, 0.05) 100%);
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  color: var(--accent-primary);
  font-size: 20px;
}

.skill-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 16px;
}

.skill-category-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 600;
}

.skill-card-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 6px 0;
  color: var(--text-primary);
}

.skill-card-content p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-grow: 1;
}

.skill-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.matrix-pill {
  padding: 5px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* ===================================================================
   12. TIMELINE/JOURNEY
   =================================================================== */

.timeline-stream {
  display: flex;
  flex-direction: column;
  padding-left: 28px;
}

.stream-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.stream-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.stream-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  z-index: 1;
}

.stream-line {
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-default);
  transform: translateX(-50%);
}

.stream-item:last-child .stream-line {
  display: none;
}

.stream-content {
  flex: 1;
}

.stream-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.stream-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary);
}

.stream-tag {
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.stream-tag.highlight {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
  color: var(--accent-primary);
}

.stream-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.stream-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0;
}

/* ===================================================================
   13. CERTIFICATES SECTION
   =================================================================== */

.featured-cert-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  background: var(--bg-panel-1);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.featured-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-primary);
  margin-bottom: 16px;
  font-weight: 600;
}

.featured-cert-badge i {
  font-size: 16px;
}

.featured-cert-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.featured-cert-specs {
  margin: 16px 0;
}

.featured-cert-specs div {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.featured-cert-specs strong {
  color: var(--text-primary);
  font-weight: 600;
}

.featured-cert-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-inspect-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-primary);
  color: #030712;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.btn-inspect-cert:hover {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
}

.featured-cert-frame {
  cursor: pointer;
  position: relative;
}

.cert-matte-mat {
  background: #1a1f2e;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.featured-cert-thumb {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.cert-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.featured-cert-frame:hover .cert-hover-overlay {
  opacity: 1;
}

.cert-hover-overlay i {
  font-size: 48px;
  margin-bottom: 8px;
}

.cert-hover-overlay span {
  font-size: 13px;
  font-weight: 600;
}

.cert-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.cert-grid-card {
  background: var(--bg-panel-1);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.cert-grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cert-card-mat {
  position: relative;
  background: #161b28;
  padding: 8px;
  overflow: hidden;
}

.cert-card-mat img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.cert-expand-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.cert-grid-card:hover .cert-expand-icon {
  opacity: 1;
}

.cert-card-meta {
  padding: 12px;
}

.cert-card-meta h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.cert-card-meta p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================================
   14. EDUCATION CARD
   =================================================================== */

.education-matrix-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--bg-panel-1);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px;
}

.edu-card-left {
  flex: 1;
}

.edu-timeline-badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  color: var(--accent-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.edu-degree {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.edu-institution {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.edu-institution i {
  font-size: 16px;
}

.edu-card-right {
  flex: 1;
  border-left: 1px solid var(--border-default);
  padding-left: 28px;
}

.edu-focus-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

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

.edu-focus-tags span {
  padding: 8px 14px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-secondary);
}

/* ===================================================================
   15. CONTACT SECTION
   =================================================================== */

.contact-section-block {
  padding-bottom: 100px;
}

.contact-command-card {
  position: relative;
  background: var(--bg-panel-1);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 48px;
  overflow: hidden;
}

.contact-command-card::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.contact-command-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-main-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
  text-align: center;
}

.contact-sub-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 12px auto 32px;
  text-align: center;
}

.contact-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact-method-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 18px 24px;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  text-decoration: none;
}

.contact-method-tile:hover,
.contact-method-tile * {
  text-decoration: none;
}

.contact-method-tile:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: grid;
  place-items: center;
  color: var(--accent-primary);
  font-size: 18px;
}

.method-info div:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.method-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.method-action-icon {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
}

/* ===================================================================
   16. FOOTER
   =================================================================== */

.footer-telemetry {
  border-top: 1px solid var(--border-default);
  padding: 20px 0;
  margin-top: 100px;
}

.footer-flex {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.footer-live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.live-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===================================================================
   17. SCROLL REVEAL ANIMATION
   =================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   18. RESPONSIVE DESIGN
   =================================================================== */

/* 1200px breakpoint */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-hud-col {
    width: 100%;
  }

  .hud-console-card {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* 968px breakpoint */
@media (max-width: 968px) {
  .nav-menu {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .bento-projects-grid {
    grid-template-columns: 1fr;
  }

  .bento-flagship {
    grid-column: span 1;
  }

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

  .skill-matrix-card,
  .skill-matrix-card.skill-wide {
    grid-column: span 1;
  }

  .skill-matrix-card.featured-skill {
    grid-column: span 2;
  }

  .cert-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* 768px breakpoint */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }

  .section-block {
    padding: 60px 0;
  }

  .section-header-row {
    flex-direction: column;
    gap: 20px;
  }

  .featured-cert-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .education-matrix-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-card-right {
    border-left: none;
    border-top: 1px solid var(--border-default);
    padding-left: 0;
    padding-top: 24px;
    width: 100%;
  }

  .contact-command-card {
    padding: 32px 24px;
  }

  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    max-width: 100%;
    flex-wrap: wrap;
    font-size: 11px;
  }

  .status-badge .status-sep {
    display: none;
  }

  .status-text {
    white-space: normal;
  }

  .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }

  .btn-hero-ghost {
    flex-shrink: 0;
  }

  .hero-stack-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .hud-console-card {
    width: 100%;
    max-width: 100%;
  }

  .hud-window-bar {
    padding: 0 10px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hud-dots {
    flex-shrink: 0;
  }

  .hud-tabs {
    margin-left: 6px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .hud-tabs::-webkit-scrollbar {
    display: none;
  }

  .hud-tab {
    padding: 6px 10px;
    font-size: 11px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .hud-status-indicator {
    flex-shrink: 0;
    font-size: 9px;
  }

  .profile-hud-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-portrait-frame {
    margin: 0 auto;
    width: 150px;
    height: 190px;
  }

  .profile-hud-info {
    gap: 10px;
    width: 100%;
  }

  .hud-data-row {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .data-key {
    font-size: 10px;
  }

  .data-val {
    font-size: 12px;
  }

  .data-val.badge-val {
    font-size: 10px;
    padding: 3px 8px;
  }

  .hud-status-box {
    margin-top: 12px;
    padding: 12px;
  }
}

/* 600px breakpoint */
@media (max-width: 600px) {
  .cert-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .skill-matrix-card,
  .skill-matrix-card.featured-skill,
  .skill-matrix-card.skill-wide {
    grid-column: span 1;
  }

  .arch-details-grid {
    grid-template-columns: 1fr;
  }

  .footer-flex {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    margin-left: 0;
  }
}

/* 480px breakpoint */
@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .status-badge {
    width: 100%;
    font-size: 10px;
    padding: 6px 10px;
    justify-content: flex-start;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .btn-hero-ghost {
    width: 100%;
    height: 40px;
  }

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

  .arch-diagram {
    flex-direction: column;
  }

  .arch-arrow {
    transform: rotate(90deg);
  }

  .contact-method-tile {
    padding: 14px 16px;
  }
}