/* =============================================
   SHARED STYLES — Mungati Emmanuel Portfolio
   ============================================= */

/* ══════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════ */
*, *::before, *::after { cursor: none !important; }

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  background: #00e5ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 0 6px #00e5ff, 0 0 12px rgba(0,229,255,0.4);
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,229,255,0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}

/* Hover state — ring expands, dot scales */
body.cursor-hover #cursor-ring {
  width: 48px;
  height: 48px;
  border-color: #00e5ff;
  background: rgba(0,229,255,0.06);
}
body.cursor-hover #cursor-dot {
  transform: translate(-50%,-50%) scale(1.6);
  background: #fff;
  box-shadow: 0 0 8px #00e5ff, 0 0 20px rgba(0,229,255,0.6);
}

/* Click pulse — ring snaps in */
body.cursor-click #cursor-ring {
  width: 20px;
  height: 20px;
  border-color: #fff;
  background: rgba(0,229,255,0.15);
}

/* Hide on touch-only devices */
@media (hover: none) and (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ══════════════════════════════════════
   LOADER OVERLAY
══════════════════════════════════════ */
#em-loader {
  position: fixed;
  inset: 0;
  background: #050c0f;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* hidden by default; JS adds .active to show it */
  opacity: 0;
  pointer-events: none;
  /* No opacity transition on default state — prevents flash on cold boot */
}
#em-loader.active {
  opacity: 1;
  pointer-events: all;
}
/* Smooth opacity transition only for the page-to-page fast entrance */
#em-loader.entering {
  transition: none; /* animation handles opacity — prevent transition conflict */
}
/* scanline grid overlay */
#em-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 10;
}
/* moving scan line */
#em-loader .em-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,152,200,0.06) 10%,
    rgba(0,152,200,0.45) 50%,
    rgba(0,152,200,0.06) 90%,
    transparent 100%
  );
  box-shadow: 0 0 18px 4px rgba(0,152,200,0.25);
  animation: em-scan 1.8s linear infinite;
  z-index: 11;
  top: 0;
}
@keyframes em-scan {
  0%   { top: -4px; opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
/* noise */
#em-loader .em-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9;
  animation: em-noiseShift 0.08s steps(1) infinite;
}
@keyframes em-noiseShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2px,1px); }
  50%  { transform: translate(2px,-1px); }
  75%  { transform: translate(-1px,2px); }
  100% { transform: translate(1px,-2px); }
}
/* logo */
#em-loader .em-logo-wrap {
  position: relative;
  z-index: 20;
  text-align: center;
  margin-bottom: 48px;
}
#em-loader .em-logo {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(52px, 10vw, 88px);
  font-weight: 700;
  color: #e6f4fa;
  letter-spacing: -2px;
  line-height: 1;
  position: relative;
  opacity: 0;
  animation: em-logoReveal 0.4s ease 0.3s forwards;
}
#em-loader.fast .em-logo {
  animation: em-logoReveal 0.25s ease 0.05s forwards;
}
#em-loader .em-logo::before,
#em-loader .em-logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}
#em-loader .em-logo::before {
  color: #0098c8;
  animation: em-glitchA 3s ease 1s infinite;
  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
}
#em-loader .em-logo::after {
  color: #6d9b2a;
  animation: em-glitchB 3s ease 1.15s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
}
@keyframes em-logoReveal {
  0%   { opacity: 0; filter: blur(8px); transform: scaleX(1.04); }
  60%  { opacity: 1; filter: blur(0);   transform: scaleX(1); }
  100% { opacity: 1; filter: blur(0);   transform: scaleX(1); }
}
@keyframes em-glitchA {
  0%,94%,100% { opacity: 0; transform: translate(0,0); }
  95% { opacity: 0.8; transform: translate(-4px, 1px); }
  97% { opacity: 0.6; transform: translate( 3px,-1px); }
  99% { opacity: 0.4; transform: translate(-2px, 2px); }
}
@keyframes em-glitchB {
  0%,94%,100% { opacity: 0; transform: translate(0,0); }
  95% { opacity: 0.7; transform: translate( 4px,-2px); }
  97% { opacity: 0.5; transform: translate(-3px, 1px); }
  99% { opacity: 0.3; transform: translate( 2px,-1px); }
}
/* tagline */
#em-loader .em-tagline {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  color: #0098c8;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0;
  animation: em-fadeUp 0.5s ease 0.7s forwards;
}
#em-loader.fast .em-tagline {
  animation: em-fadeUp 0.3s ease 0.2s forwards;
}
@keyframes em-fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
/* progress bar */
#em-loader .em-bar-wrap {
  position: relative;
  z-index: 20;
  width: min(320px, 70vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#em-loader .em-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #2d5a6a;
  letter-spacing: 3px;
}
#em-loader .em-bar-label span:last-child { color: #0098c8; }
#em-loader .em-bar-track {
  width: 100%;
  height: 1px;
  background: #0a2d3f;
  position: relative;
  overflow: hidden;
}
#em-loader .em-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #005a8e, #0098c8, #87bfcc);
  width: 0%;
  transition: width 0.12s ease;
  position: relative;
}
#em-loader .em-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 7px;
  background: #0098c8;
  box-shadow: 0 0 10px 3px rgba(0,152,200,0.8);
  border-radius: 50%;
}
#em-loader .em-status {
  font-size: 10px;
  color: #2d5a6a;
  letter-spacing: 2px;
  min-height: 14px;
  text-align: left;
}
/* corner decorations */
#em-loader .em-corner {
  position: absolute;
  width: 20px; height: 20px;
  z-index: 20;
}
#em-loader .em-corner-tl { top: 24px; left: 24px;  border-top: 1px solid #0a3248; border-left:  1px solid #0a3248; }
#em-loader .em-corner-tr { top: 24px; right: 24px; border-top: 1px solid #0a3248; border-right: 1px solid #0a3248; }
#em-loader .em-corner-bl { bottom: 24px; left: 24px;  border-bottom: 1px solid #0a3248; border-left:  1px solid #0a3248; }
#em-loader .em-corner-br { bottom: 24px; right: 24px; border-bottom: 1px solid #0a3248; border-right: 1px solid #0a3248; }
/* glitch slices */
#em-loader .em-glitch-slice {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(0,152,200,0.12);
  z-index: 15;
  animation: em-sliceFlash 0.08s steps(1) forwards;
}
@keyframes em-sliceFlash {
  0%   { opacity: 1; transform: translateX(0); }
  33%  { transform: translateX(-6px); }
  66%  { transform: translateX(4px); }
  100% { opacity: 0; }
}
/* exit wipe animation */
#em-loader.exiting {
  animation: em-exitLoader 0.6s cubic-bezier(.7,0,.3,1) forwards;
  pointer-events: none;
}
@keyframes em-exitLoader {
  0%   { opacity: 1; clip-path: inset(0 0 0 0); }
  40%  { clip-path: inset(48% 0 48% 0); opacity: 1; }
  70%  { clip-path: inset(50% 0 50% 0); opacity: 1; }
  100% { clip-path: inset(50% 0 50% 0); opacity: 0; }
}
/* entry wipe (page-to-page transition) */
#em-loader.active.entering {
  animation: em-enterLoader 0.35s cubic-bezier(.3,0,.7,1) forwards;
  transition: none; /* animation overrides opacity — no conflict with .active transition */
}
@keyframes em-enterLoader {
  0%   { clip-path: inset(50% 0 50% 0); opacity: 0; }
  40%  { clip-path: inset(0 0 0 0);     opacity: 1; }
  100% { clip-path: inset(0 0 0 0);     opacity: 1; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  /* eMungati brand palette */
  --brand-cyan: #0098c8;
  --brand-navy: #005a8e;
  --brand-green: #6d9b2a;
  --brand-sky: #87bfcc;
  --brand-dark-green: #4a6e00;

  /* DARK mode (default) */
  --bg: #050c0f;
  --bg2: #071318;
  --bg3: #0a1c24;
  --border: #0a3248;
  --accent: #0098c8;
  --accent2: #6d9b2a;
  --accent3: #87bfcc;
  --navy: #005a8e;
  --text: #c5dde6;
  --text-dim: #4a7a8a;
  --text-bright: #e6f4fa;
  --mono: "Share Tech Mono", monospace;
  --sans: "Rajdhani", sans-serif;

  /* Theme toggle */
  --toggle-bg: rgba(0, 152, 200, 0.12);
  --toggle-border: rgba(0, 152, 200, 0.3);
  --toggle-icon-color: var(--accent);
  --logo-src: url("../eMungati Logos/White.png");
}

/* ---- LIGHT MODE ---- */
html.light {
  --bg: #f0f6fa;
  --bg2: #e2edf4;
  --bg3: #d4e4ee;
  --border: #b0ccd9;
  --accent: #007aaa;
  --accent2: #5a8220;
  --accent3: #4d90a8;
  --navy: #004e7a;
  --text: #2c4a5a;
  --text-dim: #5a849a;
  --text-bright: #0d2233;
  --toggle-bg: rgba(0, 122, 170, 0.1);
  --toggle-border: rgba(0, 122, 170, 0.3);
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}
::selection {
  background: var(--accent);
  color: #000;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}
a {
  text-decoration: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
  position: relative;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title span {
  color: var(--accent);
}
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 48px;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(0, 152, 200, 0.05);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--brand-sky);
  box-shadow: 0 0 20px rgba(0, 152, 200, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(0, 152, 200, 0.1);
  box-shadow: 0 0 20px rgba(0, 152, 200, 0.2);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
#nav.scrolled {
  background: rgba(5, 12, 15, 0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}
html.light #nav.scrolled {
  background: rgba(240, 246, 250, 0.96);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 75px;
  width: auto;
  display: block;
}
html.light .nav-logo-img {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(170deg) brightness(0.5);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(0, 152, 200, 0.08);
  border-color: rgba(0, 152, 200, 0.25);
}

/* Theme toggle button */
#theme-toggle {
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 2px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  color: var(--toggle-icon-color);
  font-size: 15px;
  transition: all 0.2s;
  flex-shrink: 0;
}
#theme-toggle:hover {
  background: rgba(0, 152, 200, 0.2);
  border-color: var(--accent);
}
.theme-icon-dark,
.theme-icon-light {
  display: none;
}
html:not(.light) .theme-icon-dark {
  display: block;
}
html.light .theme-icon-light {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  display: block;
}
/* Mobile controls wrapper (theme toggle + hamburger) */
.nav-mobile-controls {
  display: none;
  align-items: center;
  gap: 8px;
}
#theme-toggle-mob {
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 2px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  font-size: 15px;
  transition: all 0.2s;
}
#theme-toggle-mob:hover {
  background: rgba(0, 152, 200, 0.2);
  border-color: var(--accent);
}
#mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(5, 12, 15, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
html.light #mobile-menu {
  background: rgba(240, 246, 250, 0.98);
}
#mobile-menu.open {
  display: flex;
}
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .nav-mobile-controls {
    display: flex !important;
  }
  .hamburger {
    display: flex !important;
  }
  #theme-toggle-mob {
    display: flex !important;
  }
  #mobile-menu .nav-link {
    padding: 12px 8px;
    font-size: 13px;
    border-radius: 3px;
  }
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 5px 0;
  transition: background 0.3s;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
html.light .footer-logo-img {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(170deg) brightness(0.5);
  opacity: 0.9;
}
.footer-logo-img:hover {
  opacity: 1;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--accent);
}

/* ---- PAGE HERO BANNER (inner pages) ---- */
.page-banner {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 152, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 152, 200, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
html.light .page-banner-bg {
  background-image:
    linear-gradient(rgba(0, 122, 170, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 170, 0.06) 1px, transparent 1px);
}
.page-banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(0, 90, 142, 0.12),
    transparent 70%
  );
  pointer-events: none;
}
.page-banner-content {
  position: relative;
  z-index: 1;
}
.page-breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.page-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.page-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
/* ── Avatar / scanner ────────────────────────────────────────── */
@keyframes scanner-sweep {
  0%   { top: -6px; opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes scanline-flicker {
  0%, 100% { opacity: 0.04; }
  50%       { opacity: 0.07; }
}
@keyframes glitch-slice {
  0%,95%,100% { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateX(0); }
  96%  { clip-path: inset(20% 0 60% 0); opacity: 0.55; transform: translateX(-4px); }
  97%  { clip-path: inset(55% 0 30% 0); opacity: 0.55; transform: translateX( 4px); }
  98%  { clip-path: inset(70% 0 10% 0); opacity: 0.40; transform: translateX(-2px); }
}
@keyframes corner-pulse {
  0%, 100% { opacity: 1;   box-shadow: none; }
  50%       { opacity: 0.5; box-shadow: 0 0 6px var(--accent); }
}
@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.avatar-box {
  width: 280px;
  height: 320px;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0,152,200,.15),
              0 0 24px rgba(0,152,200,.12),
              inset 0 0 40px rgba(0,152,200,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* photo */
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: brightness(.92) contrast(1.05) saturate(.9);
}

/* sweeping scanner line */
.avatar-scanner {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0,152,200,.8) 40%,
    rgba(0,220,255,1) 50%,
    rgba(0,152,200,.8) 60%,
    transparent 100%);
  box-shadow: 0 0 12px 4px rgba(0,200,255,.55);
  animation: scanner-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

/* horizontal scan-lines texture */
.avatar-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,.18) 3px,
    rgba(0,0,0,.18) 4px
  );
  animation: scanline-flicker 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 8;
}

/* glitch colour-slice overlay */
.avatar-glitch {
  position: absolute;
  inset: 0;
  background: inherit;
  background-image: inherit;
  animation: glitch-slice 7s steps(1) infinite;
  pointer-events: none;
  z-index: 9;
  mix-blend-mode: screen;
  background: rgba(0,220,255,.18);
}

/* HUD labels */
.avatar-hud {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 20;
  pointer-events: none;
}
.avatar-hud-tl { top: 12px; left: 12px; }
.avatar-hud-tr { top: 12px; right: 12px; align-items: flex-end; }
.avatar-hud-bl { bottom: 12px; left: 12px; }

.hud-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0.7;
  text-transform: uppercase;
}
.hud-value {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(0,220,255,.9);
  font-weight: 600;
}
.hud-green { color: #4ade80; }
.hud-blink { animation: hud-blink 1.4s ease-in-out infinite; }

/* animated corner brackets */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  z-index: 20;
  animation: corner-pulse 2.4s ease-in-out infinite;
}
.corner-tl {
  top: 8px; left: 8px;
  border-width: 2px 0 0 2px;
  animation-delay: 0s;
}
.corner-tr {
  top: 8px; right: 8px;
  border-width: 2px 2px 0 0;
  animation-delay: .6s;
}
.corner-bl {
  bottom: 8px; left: 8px;
  border-width: 0 0 2px 2px;
  animation-delay: 1.2s;
}
.corner-br {
  bottom: 8px; right: 8px;
  border-width: 0 2px 2px 0;
  animation-delay: 1.8s;
}
/* ── end Avatar / scanner ─────────────────────────────────────── */

/* legacy helpers kept for other places that may reference them */
.avatar-bg-text {
  font-family: var(--sans);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.07;
  letter-spacing: -4px;
  position: absolute;
}
.avatar-content { position: relative; text-align: center; }
.avatar-initials {
  font-family: var(--mono);
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
}
.avatar-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-top: 12px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.info-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 16px;
}
.info-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-value {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-bright);
  font-weight: 500;
}
.edu-timeline {
  border-left: 2px solid var(--border);
  padding-left: 20px;
}
.edu-item {
  position: relative;
  padding-bottom: 24px;
}
.edu-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.edu-degree {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.edu-inst {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}
.edu-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}
.edu-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- SKILLS (redesigned) ---- */

/* Category tabs */
.skills-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.skills-tab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  transition: all 0.2s;
}
.skills-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 152, 200, 0.07);
}
.skills-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

/* Category panel */
.skills-panel {
  display: none;
}
.skills-panel.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

/* Category header */
.skills-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.skills-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: rgba(0, 152, 200, 0.08);
  border: 1px solid rgba(0, 152, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.skills-cat-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
}
.skills-cat-desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Skills items grid */
.skills-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 24px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.skill-item:hover {
  border-color: rgba(0, 152, 200, 0.4);
  box-shadow: 0 6px 24px rgba(0, 90, 142, 0.12);
}
.skill-item:hover::before {
  opacity: 1;
}
.skill-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.skill-item-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-bright);
}
.skill-item-pct {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.skill-item-bar-bg {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
.skill-item-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-item-bar.animated {
  width: var(--skill-pct);
}
.skill-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.skill-item-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 8px;
  letter-spacing: 1px;
}

/* Experience level badge */
.skill-level {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 10px;
  display: inline-block;
}
.skill-level.expert {
  color: #6d9b2a;
  background: rgba(109, 155, 42, 0.1);
  border: 1px solid rgba(109, 155, 42, 0.25);
}
.skill-level.advanced {
  color: var(--accent);
  background: rgba(0, 152, 200, 0.08);
  border: 1px solid rgba(0, 152, 200, 0.22);
}
.skill-level.intermediate {
  color: var(--accent3);
  background: rgba(135, 191, 204, 0.08);
  border: 1px solid rgba(135, 191, 204, 0.2);
}

/* Overall proficiency summary bar */
.skills-summary {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.skills-summary-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.summary-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.summary-bar-item {
  position: relative;
}
.summary-bar-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.summary-bar-label span {
  color: var(--accent);
}
.summary-bar-bg {
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
.summary-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.summary-bar-fill.animated {
  width: var(--skill-pct);
}

.primary-stack {
  margin-top: 64px;
  padding: 24px 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ps-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
}
.ps-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
.ps-items {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-bright);
}
@media (max-width: 900px) {
  .skills-items {
    grid-template-columns: 1fr !important;
  }
  .summary-bars {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 560px) {
  .skills-items {
    grid-template-columns: 1fr !important;
  }
  .summary-bars {
    grid-template-columns: 1fr !important;
  }
}

/* ---- PROJECTS ---- */
/* ════════════════════════════════════════
   PROJECTS — FILTER BAR
════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 152, 200, 0.08);
}

/* ════════════════════════════════════════
   PROJECTS — GRID
════════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ════════════════════════════════════════
   PROJECT CARD — BASE
════════════════════════════════════════ */
.proj-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    border-color 0.3s,
    transform 0.25s,
    box-shadow 0.3s;
}
.proj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(135deg,
    rgba(0,152,200,0.04) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.proj-card:hover {
  border-color: rgba(0, 152, 200, 0.4);
  transform: translateY(-5px);
  box-shadow:
    0 20px 48px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0,152,200,0.08);
}
.proj-card:hover::before { opacity: 1; }

/* ─── IMAGE / HEADER ─── */
.proj-header {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
/* bottom fade to merge into card body */
.proj-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(var(--bg2-rgb,12,22,28), 0.85) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.proj-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.proj-card:hover .proj-thumb { transform: scale(1.06); }

.proj-icon {
  font-size: 44px;
  opacity: 0.12;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s, transform 0.3s;
}
.proj-card:hover .proj-icon {
  opacity: 0.22;
  transform: scale(1.1) rotate(-4deg);
}
.proj-header.has-thumb .proj-icon { opacity: 0; }

/* ─── CORNER BADGES ─── */
.proj-num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 2px;
}
.proj-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent2);
  background: rgba(109,155,42,0.14);
  border: 1px solid rgba(109,155,42,0.3);
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 2px;
  z-index: 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Featured badge */
.proj-status--featured {
  background: rgba(0,152,200,0.15);
  border-color: rgba(0,152,200,0.4);
  color: var(--accent);
}
/* Ongoing badge */
.proj-status--ongoing {
  background: rgba(200,130,0,0.14);
  border-color: rgba(200,130,0,0.38);
  color: #e8a020;
}
/* In Development badge */
.proj-status--indev {
  background: rgba(168,85,247,0.14);
  border-color: rgba(168,85,247,0.38);
  color: #c084fc;
}
/* Pre-launch badge */
.proj-status--prelaunch {
  background: rgba(234,179,8,0.14);
  border-color: rgba(234,179,8,0.38);
  color: #facc15;
}
/* Dashed border for in-dev / pre-launch cards */
.proj-card--dashed {
  border-style: dashed;
}
/* Featured dev card — flows in normal 3→2→1 grid, no spanning */

/* ─── CARD BODY ─── */
.proj-body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* industry category line */
.proj-cat {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.75;
}

/* project title */
.proj-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-bright);
  margin-bottom: 3px;
  line-height: 1.2;
}

/* subtitle / location line */
.proj-tagline {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* description */
.proj-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 16px;
}

/* ─── TECH TAGS ─── */
.proj-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.proj-tech {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--brand-sky);
  border: 1px solid var(--border);
  background: rgba(0,152,200,0.04);
  padding: 2px 9px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.proj-card:hover .proj-tech {
  border-color: rgba(0,152,200,0.25);
  background: rgba(0,152,200,0.07);
}

/* ─── ACTION ROW ─── */
.proj-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.proj-action-detail {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.proj-action-detail:hover {
  color: var(--text-bright);
  border-bottom-color: var(--text-bright);
}
.proj-action-live {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--accent2);
  background: rgba(109,155,42,0.09);
  border: 1px solid rgba(109,155,42,0.28);
  padding: 5px 14px;
  border-radius: 2px;
  text-decoration: none;
  margin-left: auto;
  transition: all 0.2s;
  white-space: nowrap;
}
.proj-action-live:hover {
  background: rgba(109,155,42,0.2);
  border-color: rgba(109,155,42,0.55);
  color: #9ecf40;
}

/* ════════════════════════════════════════
   FEATURED CARD — same grid cell as others,
   slightly elevated visual treatment only
════════════════════════════════════════ */
.proj-card--featured .proj-name {
  font-size: 21px;
}

/* ─── Responsive grid breakpoints ─── */
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-header { height: 170px; }
}



/* ---- EXPERIENCE ---- */
.exp-timeline {
  position: relative;
  padding-left: 32px;
  max-width: 760px;
}
.exp-line {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--accent),
    var(--border) 80%,
    transparent
  );
}
.exp-item {
  position: relative;
  padding-bottom: 52px;
  padding-left: 32px;
}
.exp-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(0, 152, 200, 0.4);
  z-index: 1;
}
.exp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.exp-card:hover {
  border-color: rgba(0, 152, 200, 0.35);
}
.exp-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.exp-role {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.exp-company {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.exp-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.exp-current {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent2);
  background: rgba(109, 155, 42, 0.1);
  border: 1px solid rgba(109, 155, 42, 0.25);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 2px;
}
.exp-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.exp-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-tech {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0, 152, 200, 0.06);
  border: 1px solid rgba(0, 152, 200, 0.18);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ---- RESUME ---- */
.resume-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}
.resume-head {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.resume-name {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.resume-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.resume-contacts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.resume-contact {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}
.resume-contact span {
  color: var(--accent);
  margin-right: 6px;
}
.resume-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(0, 152, 200, 0.07);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.resume-dl:hover {
  background: rgba(0, 152, 200, 0.18);
}
.resume-body {
  padding: 0 40px 40px;
}
.resume-section-head {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
  margin-top: 32px;
}
.resume-exp-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg3);
}
.resume-exp-item:last-child {
  border-bottom: none;
}
.resume-exp-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.resume-exp-role {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-bright);
}
.resume-exp-co {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.resume-exp-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}
.resume-exp-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.resume-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resume-skill-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0, 152, 200, 0.06);
  border: 1px solid rgba(0, 152, 200, 0.18);
  padding: 3px 10px;
  border-radius: 2px;
}
@media (max-width: 600px) {
  .resume-head {
    flex-direction: column;
  }
  .resume-body {
    padding: 0 20px 20px;
  }
  .resume-head {
    padding: 24px 20px;
  }
}

/* ---- TESTIMONIALS ---- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.test-card:hover {
  border-color: rgba(0, 152, 200, 0.3);
  box-shadow: 0 0 30px rgba(0, 90, 142, 0.1);
}
.test-quote {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--mono);
  font-size: 64px;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
}
.test-bar {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 20px;
}
.test-text {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 28px;
}
.test-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 152, 200, 0.22),
    rgba(109, 155, 42, 0.12)
  );
  border: 1px solid rgba(0, 152, 200, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.test-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-bright);
}
.test-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  line-height: 1.4;
}
.test-company {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .test-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- PROJECT DETAIL PAGE ---- */
.pd-layout{display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:start;}
.pd-main{min-width:0;}
.pd-sidebar{position:sticky;top:84px;}

/* Hero block */
.pd-hero{background:var(--bg2);border:1px solid var(--border);border-radius:4px;overflow:hidden;margin-bottom:32px;}
.pd-hero-banner{height:180px;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid var(--border);}
.pd-hero-icon{font-size:72px;opacity:0.15;}
.pd-hero-num{position:absolute;top:16px;left:20px;font-family:var(--mono);font-size:11px;color:var(--text-dim);letter-spacing:3px;}
.pd-hero-status{position:absolute;top:16px;right:20px;font-family:var(--mono);font-size:10px;color:var(--accent2);background:rgba(109,155,42,0.1);border:1px solid rgba(109,155,42,0.25);padding:3px 10px;border-radius:2px;letter-spacing:2px;}
.pd-hero-body{padding:28px 32px;}

/* Detail page thumbnail */
.pd-hero-banner.has-thumb {
  height: 340px;
  padding: 0;
}
.pd-hero-banner.has-thumb img.pd-hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}
.pd-hero-banner.has-thumb .pd-hero-num,
.pd-hero-banner.has-thumb .pd-hero-status {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pd-hero-banner.has-thumb .pd-hero-icon {
  display: none;
}
@media (max-width: 640px) {
  .pd-hero-banner.has-thumb {
    height: 200px;
  }
}
.pd-cat{font-family:var(--mono);font-size:10px;color:var(--text-dim);letter-spacing:3px;margin-bottom:6px;}
.pd-title{font-family:var(--sans);font-size:clamp(24px,3vw,34px);font-weight:700;color:var(--text-bright);margin-bottom:4px;}
.pd-tagline{font-family:var(--mono);font-size:12px;color:var(--accent);margin-bottom:20px;}
.pd-live-btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--mono);font-size:11px;letter-spacing:2px;text-transform:uppercase;padding:11px 24px;border-radius:2px;background:var(--accent2);color:#fff;font-weight:700;text-decoration:none;transition:all 0.2s;border:none;}
.pd-live-btn:hover{background:#7eaf30;box-shadow:0 0 20px rgba(109,155,42,0.35);}

/* Content sections */
.pd-section{background:var(--bg2);border:1px solid var(--border);border-radius:4px;padding:28px 32px;margin-bottom:24px;}
.pd-section-title{font-family:var(--mono);font-size:10px;color:var(--accent);letter-spacing:4px;text-transform:uppercase;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:20px;}
.pd-body-text{font-family:var(--sans);font-size:15px;color:var(--text);line-height:1.8;}
.pd-feature-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
.pd-feature-list li{font-family:var(--sans);font-size:15px;color:var(--text);display:flex;align-items:flex-start;gap:10px;line-height:1.6;}
.pd-feature-list li::before{content:'▸';color:var(--accent);font-size:12px;margin-top:3px;flex-shrink:0;}

/* Sidebar */
.pd-info-card{background:var(--bg2);border:1px solid var(--border);border-radius:4px;padding:24px;margin-bottom:20px;}
.pd-info-title{font-family:var(--mono);font-size:10px;color:var(--accent);letter-spacing:3px;text-transform:uppercase;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--border);}
.pd-info-row{display:flex;justify-content:space-between;align-items:flex-start;padding:8px 0;border-bottom:1px solid rgba(10,50,72,0.5);gap:12px;}
.pd-info-row:last-child{border-bottom:none;}
.pd-info-label{font-family:var(--mono);font-size:10px;color:var(--text-dim);letter-spacing:1px;white-space:nowrap;}
.pd-info-value{font-family:var(--sans);font-size:14px;color:var(--text-bright);text-align:right;}
.pd-tech-list{display:flex;flex-wrap:wrap;gap:6px;}
.pd-tech-tag{font-family:var(--mono);font-size:11px;color:var(--accent);background:rgba(0,152,200,0.07);border:1px solid rgba(0,152,200,0.2);padding:4px 10px;border-radius:2px;}
.pd-sidebar-live{display:flex;align-items:center;justify-content:center;gap:8px;font-family:var(--mono);font-size:11px;letter-spacing:2px;text-transform:uppercase;padding:13px 24px;border-radius:2px;background:var(--accent2);color:#fff;font-weight:700;text-decoration:none;transition:all 0.2s;width:100%;box-sizing:border-box;margin-top:4px;}
.pd-sidebar-live:hover{background:#7eaf30;box-shadow:0 0 20px rgba(109,155,42,0.3);}
.pd-back-link{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:11px;color:var(--text-dim);letter-spacing:2px;text-decoration:none;transition:color 0.2s;margin-bottom:8px;}
.pd-back-link:hover{color:var(--accent);}

/* Screenshots gallery */
.pd-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.pd-screenshot-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg2);
  transition: border-color 0.25s, transform 0.25s;
}
.pd-screenshot-item:hover {
  border-color: rgba(0, 152, 200, 0.4);
  transform: translateY(-3px);
}
.pd-screenshot-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

@media(max-width:900px){.pd-layout{grid-template-columns:1fr!important;}.pd-sidebar{order:-1;}}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.contact-info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s;
  margin-bottom: 12px;
  text-decoration: none;
}
.contact-info-box:hover {
  border-color: rgba(0, 152, 200, 0.35);
}
.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 152, 200, 0.09);
  border: 1px solid rgba(0, 152, 200, 0.22);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 3px;
}
.contact-value {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-bright);
}
.avail-box {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 3px;
}
.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-bright);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
  border-color: rgba(0, 152, 200, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 152, 200, 0.07);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}
/* ---- TERMINAL CONTACT FORM ---- */
.terminal-card {
  background: #040d10;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,152,200,0.08), 0 2px 12px rgba(0,0,0,0.5);
}
.terminal-titlebar {
  background: #071318;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.tdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.tdot-red    { background: #ff5f56; }
.tdot-yellow { background: #ffbd2e; }
.tdot-green  { background: #27c93f; }
.terminal-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.terminal-body {
  padding: 20px 24px 28px;
}
.tline {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}
.tblank { height: 8px; }
.tprompt {
  color: var(--accent2);
  margin-right: 8px;
  flex-shrink: 0;
  font-weight: bold;
}
.tcmd {
  color: var(--accent);
}
.tvar {
  color: #e8a857;
}
.tstring {
  color: #6d9b2a;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
}
.targ {
  color: var(--text-dim);
  font-size: 11px;
}
.tcomment {
  color: #2d5a6a;
  font-size: 12px;
  font-style: italic;
}
.tfield-group {
  margin-bottom: 4px;
}
.tinput {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  color: #a8d8e8;
  width: auto;
  min-width: 160px;
  max-width: 100%;
  caret-color: var(--accent);
  flex: 1;
}
.tinput::placeholder {
  color: #1e4d5c;
}
.tinput:focus {
  color: var(--text-bright);
}
.tinput-area {
  display: block;
  width: 100%;
  min-height: 90px;
  margin-left: 21px;
  padding: 4px 0;
  resize: vertical;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  color: #a8d8e8;
  line-height: 1.7;
  border-left: 2px solid #0a2a38;
  padding-left: 12px;
}
.tinput-area:focus {
  color: var(--text-bright);
  border-left-color: rgba(0,152,200,0.4);
}
.tinput-area::placeholder {
  color: #1e4d5c;
}
.tmessage-wrap {
  margin: 2px 0;
}
.terminal-submit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: #040d10;
  background: var(--accent);
  border: none;
  padding: 11px 24px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 3px;
}
.terminal-submit:hover {
  background: #00b8f0;
  box-shadow: 0 0 18px rgba(0,152,200,0.35);
}
.terminal-submit .tprompt {
  color: #040d10;
  margin-right: 0;
}

/* Light mode adjustments */
html.light .terminal-card {
  background: #1a2a35;
  border-color: #2a4a5e;
  box-shadow: 0 8px 40px rgba(0,122,170,0.1), 0 2px 12px rgba(0,0,0,0.15);
}
html.light .terminal-titlebar {
  background: #213545;
  border-bottom-color: #2a4a5e;
}
html.light .tinput,
html.light .tinput-area {
  color: #b8dded;
}
html.light .tinput::placeholder,
html.light .tinput-area::placeholder {
  color: #3a6070;
}

.sent-box {
  text-align: center;
  padding: 48px 0;
}
.sent-check {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--accent2);
}
.sent-title {
  font-family: var(--sans);
  font-size: 24px;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 8px;
}
.sent-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ---- HERO (home) ---- */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 60% 40%,
    rgba(0, 90, 142, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 152, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 152, 200, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-subtitle {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.05;
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title .hl {
  color: var(--accent);
}
.hero-bio {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  font-family: var(--sans);
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat-num {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  background: var(--border);
}
.terminal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(0, 90, 142, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
}
.term-bar {
  background: var(--bg3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}
.term-body {
  padding: 20px 24px;
  min-height: 280px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}
.term-line {
  color: var(--text-dim);
}
.term-line.accent {
  color: var(--accent2);
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.06s step-end infinite;
}
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr !important;
  }
}


/*
   GLITCH SCAN LOADER
 */

/* overlay */
#loader {
  position: fixed;
  inset: 0;
  background: #050c0f;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* CRT scanline grid (static) */
#loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.18) 2px,
    rgba(0,0,0,.18) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* moving bright scan line */
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,152,200,.06) 10%,
    rgba(0,152,200,.45) 50%,
    rgba(0,152,200,.06) 90%,
    transparent 100%
  );
  box-shadow: 0 0 18px 4px rgba(0,152,200,.25);
  animation: loaderScan 1.8s linear infinite;
  z-index: 11;
  top: 0;
}
@keyframes loaderScan {
  0%   { top: -4px;  opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* noise texture */
.noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9;
  animation: noiseShift .08s steps(1) infinite;
}
@keyframes noiseShift {
  0%   { transform: translate(0, 0);    }
  25%  { transform: translate(-2px, 1px);  }
  50%  { transform: translate(2px, -1px);  }
  75%  { transform: translate(-1px, 2px);  }
  100% { transform: translate(1px, -2px);  }
}

/* logo */
.logo-wrap {
  position: relative;
  z-index: 20;
  text-align: center;
  margin-bottom: 48px;
}
#loader .logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(52px, 10vw, 88px);
  font-weight: 700;
  color: #e6f4fa;
  letter-spacing: -2px;
  line-height: 1;
  position: relative;
  opacity: 0;
  animation: logoReveal .4s ease .6s forwards;
}
#loader .logo::before,
#loader .logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}
#loader .logo::before {
  color: #0098c8;
  animation: glitchA 3s ease 1s infinite;
  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
}
#loader .logo::after {
  color: #6d9b2a;
  animation: glitchB 3s ease 1.15s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
}
@keyframes logoReveal {
  0%   { opacity: 0; filter: blur(8px); transform: scaleX(1.04); }
  60%  { opacity: 1; filter: blur(0);   transform: scaleX(1); }
  100% { opacity: 1; filter: blur(0);   transform: scaleX(1); }
}
@keyframes glitchA {
  0%,94%,100% { opacity: 0; transform: translate(0,0); }
  95% { opacity: .8; transform: translate(-4px, 1px);  }
  97% { opacity: .6; transform: translate(3px, -1px);  }
  99% { opacity: .4; transform: translate(-2px, 2px);  }
}
@keyframes glitchB {
  0%,94%,100% { opacity: 0; transform: translate(0,0); }
  95% { opacity: .7; transform: translate(4px, -2px);  }
  97% { opacity: .5; transform: translate(-3px, 1px);  }
  99% { opacity: .3; transform: translate(2px, -1px);  }
}

/* tagline */
.tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #0098c8;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0;
  animation: fadeUp .5s ease 1s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* progress bar */
.bar-wrap {
  position: relative;
  z-index: 20;
  width: min(320px, 70vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #2d5a6a;
  letter-spacing: 3px;
}
.bar-label span:last-child { color: #0098c8; }
.bar-track {
  width: 100%;
  height: 1px;
  background: #0a2d3f;
  position: relative;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #005a8e, #0098c8, #87bfcc);
  width: 0%;
  transition: width .12s ease;
  position: relative;
}
/* glow head */
.bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 7px;
  background: #0098c8;
  box-shadow: 0 0 10px 3px rgba(0,152,200,.8);
  border-radius: 50%;
}
.loader-status {
  font-size: 10px;
  color: #2d5a6a;
  letter-spacing: 2px;
  min-height: 14px;
  transition: opacity .2s;
  text-align: left;
}

/* corner decorations (loader-scoped — do NOT apply to .avatar-box) */
#loader .corner { position: absolute; width: 20px; height: 20px; z-index: 20; }
#loader .corner-tl { top: 24px;    left: 24px;  border-top:    1px solid #0a3248; border-left:  1px solid #0a3248; }
#loader .corner-tr { top: 24px;    right: 24px; border-top:    1px solid #0a3248; border-right: 1px solid #0a3248; }
#loader .corner-bl { bottom: 24px; left: 24px;  border-bottom: 1px solid #0a3248; border-left:  1px solid #0a3248; }
#loader .corner-br { bottom: 24px; right: 24px; border-bottom: 1px solid #0a3248; border-right: 1px solid #0a3248; }

/* horizontal glitch slices */
.glitch-slice {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(0,152,200,.12);
  z-index: 15;
  animation: sliceFlash .08s steps(1) forwards;
}
@keyframes sliceFlash {
  0%   { opacity: 1; transform: translateX(0);    }
  33%  { transform: translateX(-6px); }
  66%  { transform: translateX(4px);  }
  100% { opacity: 0; }
}

/* exit animation */
#loader.exiting {
  animation: exitLoader .7s cubic-bezier(.7,0,.3,1) forwards;
}
@keyframes exitLoader {
  0%   { opacity: 1; clip-path: inset(0 0 0 0); }
  40%  { clip-path: inset(48% 0 48% 0); }
  70%  { clip-path: inset(50% 0 50% 0); opacity: 1; }
  100% { clip-path: inset(50% 0 50% 0); opacity: 0; pointer-events: none; }
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES
══════════════════════════════════════ */

/* ── General / Container ── */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 64px 0;
  }
  .page-banner {
    padding: 110px 0 56px;
  }
}

/* ── Footer ── */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Hero (Home) ── */
@media (max-width: 768px) {
  #home {
    padding-top: 80px;
    align-items: flex-start;
  }
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding-top: 24px;
  }
  .hero-title {
    font-size: clamp(32px, 9vw, 52px);
  }
  .hero-bio {
    font-size: 15px;
  }
  .hero-btns {
    gap: 12px;
  }
  .hero-stats {
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
  }
  .stat-num {
    font-size: 26px;
  }
}

/* ── About / Avatar ── */
@media (max-width: 768px) {
  .terminal-box {
    width: 100%;
    box-sizing: border-box;
  }
  .term-body {
    min-height: 200px;
    padding: 16px 16px;
    font-size: 12px;
  }
  .term-bar {
    padding: 8px 12px;
  }
  .term-title {
    font-size: 10px;
  }
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .avatar-box {
    width: 220px;
    height: 260px;
    margin: 0 auto 24px;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (max-width: 400px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .avatar-box {
    width: 190px;
    height: 230px;
  }
}

/* ── CTA strips (inline flex rows used across pages) ── */
@media (max-width: 600px) {
  [style*="justify-content:space-between"][style*="flex-wrap:wrap"] {
    padding: 24px 20px !important;
  }
}

/* ── Skills ── */
@media (max-width: 768px) {
  .skills-tabs {
    gap: 6px;
  }
  .skills-tab {
    font-size: 10px;
    padding: 7px 14px;
  }
  .skills-cat-header {
    flex-direction: column;
    gap: 10px;
  }
  .skills-summary {
    padding: 20px 16px;
  }
  .primary-stack {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ps-divider {
    display: none;
  }
}

/* ── Projects ── */
@media (max-width: 480px) {
  .filter-bar {
    gap: 6px;
  }
  .filter-btn {
    font-size: 9px;
    padding: 6px 12px;
  }
  .proj-body {
    padding: 16px 16px 14px;
  }
  .proj-name {
    font-size: 17px;
  }
}

/* ── Experience Timeline ── */
@media (max-width: 768px) {
  .exp-timeline {
    padding-left: 20px;
  }
  .exp-item {
    padding-left: 20px;
    padding-bottom: 36px;
  }
  .exp-dot {
    left: -26px;
    width: 10px;
    height: 10px;
  }
  .exp-card {
    padding: 20px 18px;
  }
  .exp-role {
    font-size: 18px;
  }
  .exp-header {
    flex-direction: column;
    gap: 6px;
  }
  .exp-period {
    align-self: flex-start;
  }
  .exp-current {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }
}

/* ── Resume ── */
@media (max-width: 600px) {
  .resume-head {
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
  }
  .resume-body {
    padding: 0 16px 24px;
  }
  .resume-name {
    font-size: 24px;
  }
  .resume-contacts {
    flex-direction: column;
    gap: 8px;
  }
  .resume-exp-header {
    flex-direction: column;
    gap: 4px;
  }
  .resume-dl {
    width: 100%;
    justify-content: center;
  }
}

/* ── Project Detail ── */
@media (max-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr !important;
  }
  .pd-sidebar {
    position: static;
    order: -1;
  }
}
@media (max-width: 600px) {
  .pd-section {
    padding: 20px 16px;
  }
  .pd-hero-body {
    padding: 20px 18px;
  }
  .pd-title {
    font-size: clamp(20px, 5vw, 28px);
  }
  .pd-info-row {
    flex-direction: column;
    gap: 4px;
  }
  .pd-info-value {
    text-align: left;
  }
  .pd-screenshots {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
@media (max-width: 400px) {
  .pd-screenshots {
    grid-template-columns: 1fr;
  }
}

/* ── Contact ── */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .form-card {
    padding: 24px 16px;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ── Terminal Contact Card ── */
@media (max-width: 600px) {
  .terminal-body {
    padding: 14px 14px 20px;
  }
  .terminal-titlebar {
    padding: 8px 12px;
  }
  .terminal-title {
    font-size: 10px;
  }
  .tinput {
    min-width: 100px;
    max-width: 60vw;
  }
  .tinput-area {
    margin-left: 0;
    padding-left: 8px;
  }
  .terminal-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ── Custom cursor — hide on touch devices ── */
@media (hover: none) and (pointer: coarse) {
  * { cursor: auto !important; }
  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }
}

/* ── Buttons ── */
@media (max-width: 480px) {
  .btn {
    padding: 10px 20px;
    font-size: 11px;
  }
}

/* ── Page banner / breadcrumb ── */
@media (max-width: 480px) {
  .page-banner {
    padding: 100px 0 48px;
  }
  .page-breadcrumb {
    font-size: 10px;
  }
}

/* ── Section headings ── */
@media (max-width: 480px) {
  .section-title {
    font-size: clamp(22px, 7vw, 34px);
  }
}
