:root {
  --blue: #f8fafc;
  --blue-light: #ffffff;
  --blue-dim: rgba(248, 250, 252, 0.12);
  --blue-glow: 0 0 35px rgba(255, 255, 255, 0.25);
  --purple: #e2e8f0;
  --emerald: #34d399;
  --amber: #fbbf24;
  --bg: #050506;
  --bg-2: #030304;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --border-blue: rgba(248, 250, 252, 0.25);
  --text: #f5f5f7;
  --text-muted: #9a9ca3;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --r: 16px;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

section {
  position: relative;
}

.code-rain-canvas {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 42% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  will-change: transform;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 30%,
      rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 30%,
      rgba(0, 0, 0, 1) 100%);
}

.edu-skill-loop > .code-rain-canvas,
.grades-loop > .code-rain-canvas,
.style-slide-wrap > .code-rain-canvas {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

[data-theme="light"] {
  --blue: #0f172a;
  --blue-light: #1e293b;
  --blue-dim: rgba(15, 23, 42, 0.08);
  --blue-glow: 0 0 25px rgba(15, 23, 42, 0.15);
  --purple: #1e293b;
  --emerald: #059669;
  --amber: #d97706;
  --bg: #fbfbfc;
  --bg-2: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: #ffffff;
  --border: #e5e7eb;
  --border-blue: rgba(15, 23, 42, 0.2);
  --text: #16171b;
  --text-muted: #5b5e68;
}

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

/* ── BOOTSTRAP ICONS RELIABILITY & MOBILE RENDER FIX ── */
@font-face {
  font-family: 'bootstrap-icons';
  src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2") format("woff2"),
    url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

i.bi,
[class^="bi-"],
[class*=" bi-"] {
  font-family: 'bootstrap-icons' !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 9999;
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.4s cubic-bezier(0.2, 0, 0, 1),
    color 0.4s cubic-bezier(0.2, 0, 0, 1),
    border-color 0.4s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1),
    fill 0.4s cubic-bezier(0.2, 0, 0, 1),
    stroke 0.4s cubic-bezier(0.2, 0, 0, 1),
    backdrop-filter 0.4s cubic-bezier(0.2, 0, 0, 1),
    -webkit-backdrop-filter 0.4s cubic-bezier(0.2, 0, 0, 1) !important;
}

#themeToggle {
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

#themeToggle:active {
  transform: scale(0.92);
}

#themeToggle.spinning #themeIcon {
  transform: rotate(180deg) scale(0.85);
  opacity: 0.7;
}

#themeIcon {
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), opacity 0.2s ease;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

section[id] {
  scroll-margin-top: 85px;
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  transition: color 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 90% 55% at 8% 15%, rgba(51, 65, 85, 0.025) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 92% 78%, rgba(100, 116, 139, 0.02) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 52% 42%, rgba(5, 150, 105, 0.015) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 22% 85%, rgba(51, 65, 85, 0.018) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] body::before {
  opacity: 1;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity .6s var(--ease);
}

/* Slide loops that host code-rain canvas need stacking context & overflow clip.
   NOTE: sections must NOT have contain:layout — that would isolate them from
   the fixed #particles-canvas spotlight behind them. */
.edu-skill-loop,
.grades-loop,
.style-slide-wrap {
  position: relative;
  overflow: hidden;
  contain: layout style;
}

/* Sections just need relative positioning for their internal absolute children */
#about,
#services,
#timeline,
#certs,
#contact,
#analytics {
  position: relative;
  overflow: visible;
}

/* ── SPOTLIGHT BACKGROUND CANVAS ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  #particles-canvas {
    opacity: .55;
  }
}

/* ── INSTALL APP BANNER ── mobile-only, slides up from the bottom */
.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10050;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: rgba(15, 18, 28, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
}

.install-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* Shown on phones/tablets only — desktop visitors don't need a
   "home screen" prompt, and it would look out of place next to a
   mouse cursor. */
@media (min-width: 769px) {
  .install-banner {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .install-banner {
    display: flex;
  }
}

.install-banner-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.install-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.install-banner-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-banner-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}

.install-banner-text span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}

.install-banner-btn {
  flex: none;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0b0c12;
  background: var(--blue, #2ec1e9);
  cursor: pointer;
  white-space: nowrap;
}

.install-banner-btn:active {
  transform: scale(0.96);
}

.install-banner-close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

[data-theme="light"] .install-banner {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(51, 65, 85, 0.15);
}

[data-theme="light"] .install-banner-text strong {
  color: #0f172a;
}

[data-theme="light"] .install-banner-text span {
  color: #64748b;
}

[data-theme="light"] .install-banner-close {
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
  .install-banner {
    transition: opacity .3s ease;
    transform: none;
  }
}

/* ── CURSOR ── */
.cur-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  /* JS sets transform: translate(x,y) — no base offset needed */
  transition: width .2s, height .2s;
}

.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(100, 116, 139, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  /* JS sets transform: translate(x,y) — no base offset needed */
  transition: width .25s, height .25s, border-color .25s, background .25s;
}

.cur-ring.hov {
  width: 56px;
  height: 56px;
  border-color: var(--blue);
  background: rgba(100, 116, 139, 0.07);
}

.cur-dot.hov {
  width: 10px;
  height: 10px;
}

@media (hover:none) {

  .cur-dot,
  .cur-ring {
    display: none;
  }
}

/* ── NOISE TEXTURE ── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
  box-shadow: var(--blue-glow);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
  /* Promotes the nav to its own GPU compositing layer so its blurred
     background isn't repainted together with the rest of the page on
     every scroll frame — the single biggest lever for a fixed,
     always-visible blurred bar. */
  transform: translateZ(0);
  backface-visibility: hidden;
}

nav.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.5px;
  position: relative;
}

.logo-b {
  color: var(--blue);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--blue);
  transition: left .3s var(--ease), right .3s var(--ease);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--border-blue);
  color: var(--blue) !important;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: .82rem;
  letter-spacing: 1px;
  transition: background .3s, box-shadow .3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--blue-dim) !important;
  box-shadow: var(--blue-glow);
}

/* ── HAMBURGER BUTTON ── */
.ham {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ham:hover {
  background: var(--bg-card);
  border-color: var(--border-blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

.ham span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -10px;
  margin-top: -1px;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease, width .25s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}

.ham span:nth-child(1) {
  transform: translateY(-6px);
}

.ham span:nth-child(2) {
  transform: translateY(0);
}

.ham span:nth-child(3) {
  transform: translateY(6px);
  width: 14px;
}

.ham:hover span:nth-child(3) {
  width: 20px;
}

.ham.open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  width: 20px;
}

.ham.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.ham.open span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
  width: 20px;
}

/* ── MOBILE MENU OVERLAY BACKDROP ── */
.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  will-change: opacity;
}

.mob-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── MOBILE FULL-WIDTH DROPDOWN MENU ── */
.mob-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: rgba(6, 6, 12, 0.96);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.35);
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: opacity .38s cubic-bezier(.16, 1, .3, 1), transform .38s cubic-bezier(.16, 1, .3, 1);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mob-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Gradient accent line at top of menu */
.mob-menu::before {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--blue) 30%,
      rgba(255, 255, 255, 0.5) 50%,
      var(--blue) 70%,
      transparent 100%);
  opacity: 0.4;
  flex-shrink: 0;
}

/* Inner nav items wrapper */
.mob-menu-inner {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Section label */
.mob-menu-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px 6px;
  opacity: 0.55;
}

/* ── NAV LINKS ── */
.mob-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.2px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    background .22s var(--ease),
    color .22s var(--ease),
    border-color .22s var(--ease),
    transform .22s var(--ease),
    box-shadow .22s var(--ease);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  /* Staggered entry animation */
  opacity: 0;
  transform: translateX(-16px);
}

.mob-menu.open .mob-link {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays for each link */
.mob-menu.open .mob-link:nth-child(1) {
  transition-delay: 0.06s;
}

.mob-menu.open .mob-link:nth-child(2) {
  transition-delay: 0.10s;
}

.mob-menu.open .mob-link:nth-child(3) {
  transition-delay: 0.14s;
}

.mob-menu.open .mob-link:nth-child(4) {
  transition-delay: 0.18s;
}

.mob-menu.open .mob-link:nth-child(5) {
  transition-delay: 0.22s;
}

.mob-menu.open .mob-link:nth-child(6) {
  transition-delay: 0.26s;
}

/* Icon inside mob-link */
.mob-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}

.mob-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mob-link-title {
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-muted);
  transition: color .22s var(--ease);
}

.mob-link-sub {
  font-size: 0.72rem;
  color: rgba(154, 156, 163, 0.6);
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: color .22s var(--ease);
}

.mob-link-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), color .22s var(--ease);
}

/* Hover state */
.mob-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
  transform: translateX(4px);
}

.mob-link:hover .mob-link-icon {
  background: var(--blue-dim);
  border-color: var(--border-blue);
  color: var(--text);
}

.mob-link:hover .mob-link-title {
  color: var(--text);
}

.mob-link:hover .mob-link-sub {
  color: var(--text-muted);
}

.mob-link:hover .mob-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Active nav link state */
.mob-link.active .mob-link-title {
  color: var(--text);
}

.mob-link.active .mob-link-icon {
  background: var(--blue-dim);
  border-color: var(--border-blue);
  color: var(--text);
  box-shadow: 0 0 12px var(--blue-dim);
}

/* ── CONTACT CTA (last link) ── */
.mob-link-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  color: var(--text) !important;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
  opacity: 0;
  transform: translateY(8px);
}

.mob-menu.open .mob-link-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.mob-link-cta:hover {
  background: rgba(229, 231, 235, 0.15);
  box-shadow: 0 0 28px var(--blue-dim), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Divider line inside menu */
.mob-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Footer info row */
.mob-menu-footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease) .35s, transform .3s var(--ease) .35s;
}

.mob-menu.open .mob-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mob-footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: mob-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes mob-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.75);
  }
}

.mob-footer-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--mono);
  opacity: 0.7;
}

/* Light theme overrides */
[data-theme="light"] .mob-menu {
  background-color: rgba(248, 249, 252, 0.97);
  border-bottom-color: var(--border);
  border-top-color: var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mob-link-icon {
  background-color: rgba(51, 65, 85, 0.06);
  border-color: rgba(51, 65, 85, 0.12);
}

[data-theme="light"] .mob-overlay {
  background-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .mob-link-cta {
  background: rgba(51, 65, 85, 0.08);
  border-color: rgba(51, 65, 85, 0.2);
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 120px 5% 80px;
}

.section-tag {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--blue);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.section-title span {
  color: var(--blue);
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 70% at 6% 45%, rgba(229, 231, 235, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 85%, rgba(229, 231, 235, 0.02) 0%, transparent 55%);
  color: var(--text);
  font-family: var(--font);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal-left.vis {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal-right.vis {
  opacity: 1;
  transform: translateX(0);
}

.section-head {
  margin-bottom: 72px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  /* 100vh on mobile Safari/Chrome is measured against the viewport with
     the address bar collapsed, then jumps once the real (shorter) bar-
     visible viewport is known — causing a visible height snap right
     after load. 100dvh tracks the actual visible viewport instead, so
     supporting browsers never see that jump. Plain 100vh above is kept
     as the fallback for browsers that don't understand dvh yet. */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  max-width: 100vw;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(100, 116, 139, 0.07);
  right: -100px;
  top: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(100, 116, 139, 0.05);
  left: -80px;
  bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: center;
}

/* Hero panel — cube panel, original right-side position with a soft triangular fade */
.hero-img-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}

.hero-img-panel::before {
  content: '';
  position: absolute;
  inset: -70px -20px;
  background: linear-gradient(120deg,
      rgba(229, 231, 235, 0.30) 0%,
      rgba(229, 231, 235, 0.14) 45%,
      transparent 78%);
  clip-path: polygon(0% 4%, 96% 50%, 0% 96%);
  filter: blur(46px);
  opacity: .85;
  z-index: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease), background .45s var(--ease);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-glass);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -2px;
}

.hero-title .name {
  display: block;
  color: var(--blue);
  text-shadow: 0 0 80px rgba(100, 116, 139, 0.25);
}

/* ── HERO BINARY SKYLINE — "Hi, I'm Vysal" built from stacked 0/1s ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-skyline {
  display: grid;
  grid-template-columns: repeat(var(--cols, 60), 1fr);
  gap: 0 var(--sk-gap, 2.5px);
  width: min(640px, 100%);
  margin: 0 auto 18px 0;
  container-type: inline-size;
}

.sk-cell {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(.38rem, calc((100cqw - (var(--cols, 60) - 1) * var(--sk-gap, 2.5px)) / var(--cols, 60) * 1.32), 1.05rem);
  color: var(--blue);
  text-align: center;
  line-height: 1.05;
  user-select: none;
  opacity: 0;
  /* PERF: no "color" transition here on purpose — this rule applies to
     every cell (there can be 1000+), and color changes all at once on
     theme switch. Transitioning color on all of them simultaneously was
     the cause of the stutter when toggling light/dark mode. Opacity/
     transform/text-shadow still animate individually as cells light up. */
  transition: opacity .18s ease, transform .18s ease, text-shadow .3s ease;
}

.sk-cell.on.locked {
  opacity: .88;
  text-shadow: 0 0 8px rgba(203, 213, 225, .20);
  will-change: transform, color, text-shadow;
}

.hero-typerow {
  font-family: var(--mono);
  font-size: clamp(.95rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 28px;
  height: 1.8em;
  display: flex;
  align-items: center;
  gap: 6px;
}

#tw {
  color: var(--blue-light);
}

.tw-cur {
  color: var(--blue);
  animation: blink 1s step-end infinite;
}

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

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-badge i {
  color: var(--blue);
  font-size: 0.9rem;
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: var(--border-blue);
  background: var(--blue-dim);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue);
  color: #08080e;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  letter-spacing: .3px;
  transition: transform .3s, box-shadow .3s, background .3s;
  position: relative;
  overflow: hidden;
}

.btn-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(100, 116, 139, 0.2) 60%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s;
}

.btn-blue:hover::before {
  transform: translateX(150%);
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(100, 116, 139, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-blue);
  color: var(--blue);
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: background .3s, transform .3s, box-shadow .3s;
}

.btn-ghost:hover {
  background: var(--blue-dim);
  transform: translateY(-3px);
  box-shadow: var(--blue-glow);
}

/* ═══════════════════════════════════
   BUTTONS — Elite glow
═══════════════════════════════════ */

.btn-blue {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: transform .2s, background .2s, border-color .2s !important;
}

[data-theme="light"] .btn-blue {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #020617 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.btn-blue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.137) 100%);
  opacity: 0;
  transition: opacity .3s;
}

.btn-blue:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: none !important;
}

[data-theme="light"] .btn-blue:hover {
  background: #1e293b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-blue:hover::after {
  opacity: 1;
}

.btn-ghost {
  border-radius: 50px;
  border: 1px solid rgba(203, 213, 225, .3) !important;
  transition: all .3s !important;
}

.btn-ghost:hover {
  background: rgba(203, 213, 225, .1) !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 20px rgba(203, 213, 225, .2) !important;
  transform: translateY(-2px);
}


.social-row {
  display: flex;
  gap: 10px;
}

.soc {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: all .3s;
  background: var(--bg-glass);
}

.soc:hover {
  color: var(--blue);
  border-color: var(--border-blue);
  transform: translateY(-4px);
  background: var(--blue-dim);
}

/* Hero image panel — orbital animation system */
.hero-img-panel {
  position: relative;
}

.orbit-system {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Central image */
.hero-img-wrap {
  position: absolute;
  z-index: 10;
  width: 240px;
  height: 240px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(100, 116, 139, 0.5);
  box-shadow: 0 0 0 8px rgba(100, 116, 139, 0.06), 0 0 60px rgba(100, 116, 139, 0.15);
}

/* Pulsing glow behind image */
.img-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(224, 182, 76) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes glow-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .6;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

/* Orbiting rings */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 300px;
  height: 300px;
  border-width: 1px;
  border-color: rgba(76, 172, 201, 0.633);
  animation: spin-cw 18s linear infinite;
}

.ring-b {
  width: 370px;
  height: 370px;
  border-width: 1px;
  border-color: rgba(100, 116, 139, 0.609);
  border-style: dashed;
  animation: spin-ccw 24s linear infinite;
}

.ring-c {
  width: 430px;
  height: 430px;
  border-width: 1px;
  border-color: rgba(201, 193, 76, 0.255);
  animation: spin-cw 36s linear infinite;
}

@keyframes spin-cw {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin-ccw {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Orbiting dots on ring-a */
.orb-dot {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
}

/* We animate the container that positions the dot along the orbit */
.dot-orbit {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
}

.dot-orbit-a {
  animation: spin-cw 18s linear infinite;
}

.dot-orbit-b {
  animation: spin-cw 18s linear infinite;
  animation-delay: -9s;
}

.dot-orbit-c {
  animation: spin-ccw 24s linear infinite;
}

.dot-orbit-d {
  animation: spin-ccw 24s linear infinite;
  animation-delay: -12s;
}

.dot-on-a {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  left: 148px;
  top: -4px;
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.8), 0 0 20px rgba(100, 116, 139, 0.4);
}

.dot-on-b {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(100, 116, 139, 0.7);
  border-radius: 50%;
  left: 183px;
  top: -2.5px;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.6);
}

.dot-on-c {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--blue-light);
  border-radius: 50%;
  left: -183px;
  top: -3px;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.7);
}

.dot-on-d {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(100, 116, 139, 0.5);
  border-radius: 50%;
  left: 183px;
  top: -2px;
  box-shadow: 0 0 6px rgba(100, 116, 139, 0.5);
}

/* Skill badges orbiting on ring-b */
.skill-badge-orbit {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  opacity: 0.8;
}

.sbo-1 {
  animation: spin-cw 28s linear infinite;
}

.sbo-2 {
  animation: spin-cw 28s linear infinite;
  animation-delay: -7s;
}

.sbo-3 {
  animation: spin-cw 28s linear infinite;
  animation-delay: -14s;
}

.sbo-4 {
  animation: spin-cw 28s linear infinite;
  animation-delay: -21s;
}


.skill-badge {
  position: absolute;
  background: rgba(8, 8, 16, .92);
  border: 1px solid var(--border-blue);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
  /* counter-rotate so badge text stays upright */
}

.skill-badge i {
  color: var(--blue);
  font-size: .9rem;
}

/* Position each badge at the orbit radius */
.sbo-1 .skill-badge {
  left: 183px;
  top: -18px;
  animation: spin-ccw 28s linear infinite;
}

.sbo-2 .skill-badge {
  left: 183px;
  top: -18px;
  animation: spin-ccw 28s linear infinite;
  animation-delay: -7s;
}

.sbo-3 .skill-badge {
  left: 183px;
  top: -18px;
  animation: spin-ccw 28s linear infinite;
  animation-delay: -14s;
}

.sbo-4 .skill-badge {
  left: 183px;
  top: -18px;
  animation: spin-ccw 28s linear infinite;
  animation-delay: -21s;
}

/* Arc progress segments */
.arc-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  width: 440px;
  height: 440px;
}

@media (max-width: 1024px) {
  .orbit-system {
    width: 340px;
    height: 340px;
  }

  .hero-img-wrap {
    width: 190px;
    height: 190px;
  }

  .ring-a {
    width: 240px;
    height: 240px;
  }

  .ring-b {
    width: 295px;
    height: 295px;
  }

  .ring-c {
    width: 335px;
    height: 335px;
  }

  .dot-on-a {
    left: 118px;
  }

  .dot-on-b,
  .dot-on-c,
  .dot-on-d {
    left: 145px;
  }

  .sbo-1 .skill-badge,
  .sbo-2 .skill-badge,
  .sbo-3 .skill-badge,
  .sbo-4 .skill-badge {
    left: 145px;
  }

  .arc-svg {
    width: 340px;
    height: 340px;
  }

  .scroll-ind {
    display: none !important;
  }

  .hero-typerow {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  /* Allow badges to orbit and be naturally clipped by viewport (no horizontal scroll) */
  .hero {
    overflow: hidden;
  }

  .orbit-system {
    width: 320px;
    height: 320px;
  }

  .hero-img-wrap {
    width: 170px;
    height: 170px;
  }

  .ring-a {
    width: 224px;
    height: 224px;
  }

  .ring-b {
    width: 276px;
    height: 276px;
  }

  .ring-c {
    width: 316px;
    height: 316px;
  }

  /* ring-a radius = 112px, ring-b radius = 138px */
  .dot-on-a {
    left: 110px;
    top: -4px;
  }

  .dot-on-b {
    left: 136px;
    top: -2.5px;
  }

  .dot-on-c {
    left: -136px;
    top: -3px;
  }

  .dot-on-d {
    left: 136px;
    top: -2px;
  }

  /* Badges orbit on ring-b: left = 138px (radius), slightly smaller text */
  .skill-badge {
    padding: 6px 12px;
    font-size: .68rem;
    gap: 6px;
  }

  .skill-badge i {
    font-size: .82rem;
  }

  .sbo-1 .skill-badge,
  .sbo-2 .skill-badge,
  .sbo-3 .skill-badge,
  .sbo-4 .skill-badge {
    left: 138px;
    top: -17px;
  }

  .arc-svg {
    width: 320px;
    height: 320px;
  }

  .scroll-ind {
    display: none !important;
  }

  .hero-typerow {
    justify-content: center;
  }
}

/* Hero scroll indicator */
.scroll-ind {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s .8s both;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 1.5px solid var(--border-blue);
  border-radius: 12px;
  position: relative;
  opacity: .6;
}

.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--blue);
  border-radius: 3px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  80% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
}

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

.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
  filter: grayscale(.25);
  transition: filter .5s;
}

.about-img-wrap:hover .about-img {
  filter: grayscale(0);
}

.about-frame-accent {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 55%;
  height: 55%;
  border: 2px solid var(--blue);
  border-radius: var(--r);
  opacity: .3;
  z-index: 0;
}

.about-img-wrap {
  z-index: 1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.a-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 14px;
  text-align: center;
  transition: border-color .3s, transform .3s;
}

.a-stat:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
}

.a-stat-n {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}

.a-stat-l {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 1px;
}

.about-desc {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: .97rem;
  line-height: 1.85;
}

/* ── ABOUT PRO ── */
.abt-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.abt-header-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 14px;
}

.abt-main-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

/* LEFT */
.abt-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.abt-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.abt-photo-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 163, 184, .18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.abt-photo-frame {
  position: relative;
  overflow: hidden;
}

.abt-photo-frame .about-img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%) saturate(1.1);
  transition: transform .5s ease, filter .5s ease, opacity .6s ease;
}

/* Slideshow: all images stack on top of each other, only the active
   one is visible. The first image sets the frame's natural height;
   the rest are absolutely positioned over it. */
.abt-photo-frame .about-img:not(:first-child) {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.abt-photo-frame .about-img {
  opacity: 0;
  pointer-events: none;
}

.abt-photo-frame .about-img.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.abt-photo-frame .about-img:not(:first-child).is-active {
  position: absolute;
}

.abt-photo-card:hover .about-img.is-active {
  transform: scale(1.03);
  filter: grayscale(0) saturate(1.2);
}

.abt-photo-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.abt-photo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.abt-photo-dot:hover {
  background: rgba(255, 255, 255, .6);
}

.abt-photo-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

[data-theme="light"] .abt-photo-dot {
  background-color: rgba(15, 23, 42, .25);
}

[data-theme="light"] .abt-photo-dot:hover {
  background-color: rgba(15, 23, 42, .45);
}

[data-theme="light"] .abt-photo-dot.is-active {
  background-color: #0f172a;
}

.abt-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(8, 8, 16, .85));
  padding: 24px 18px 18px;
}

.abt-overlay-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-family: var(--mono);
  color: rgba(255, 255, 255, .85);
  background: rgba(148, 163, 184, .15);
  border: 1px solid rgba(148, 163, 184, .3);
  padding: 5px 12px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.abt-status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: rgba(74, 222, 128, .06);
  border-top: 1px solid rgba(74, 222, 128, .15);
  font-size: .83rem;
  font-weight: 600;
  color: #4ade80;
  font-family: var(--mono);
}

.abt-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── PHOTO PUZZLE REVEAL ── */
/* Covers the headshot with a field of 0/1s sampled from the photo's
   own brightness, flickers briefly, then dissolves to reveal the
   real photo underneath — same "puzzle" language as the hero text,
   but resolving to an actual professional photo, not staying as art. */
.photo-decode {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 20), 1fr);
  grid-template-rows: repeat(var(--rows, 26), 1fr);
  background: var(--bg-2);
  z-index: 4;
  opacity: 1;
  transition: opacity .7s ease;
  pointer-events: none;
}

.photo-decode.is-hidden {
  opacity: 0;
}

.pd-cell {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(.42rem, 1.7vw, .64rem);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 6px #4ade80;
  }

  50% {
    box-shadow: 0 0 16px #4ade80, 0 0 28px rgba(74, 222, 128, .4);
  }
}

/* ID Card */
.abt-id-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.abt-id-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.abt-id-row>i {
  font-size: 1rem;
  color: var(--blue);
  margin-top: 2px;
  flex-shrink: 0;
}

.abt-id-key {
  display: block;
  font-size: .65rem;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.abt-id-val {
  font-size: .87rem;
  font-weight: 600;
}

/* Identity — code block card */
.abt-code-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.abt-code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .abt-code-titlebar {
  background-color: rgba(0, 0, 0, 0.02);
}

.abt-code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.abt-code-dot--red {
  background: #ff5f56;
}

.abt-code-dot--yellow {
  background: #ffbd2e;
}

.abt-code-dot--green {
  background: #27c93f;
}

.abt-code-filename {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.abt-code-copy {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.abt-code-copy:hover {
  color: var(--text);
  background: var(--bg-glass);
}

.abt-code-copy.copied {
  color: var(--emerald);
}

.abt-code-body {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.abt-code-body .tok-kw {
  color: #c586c0;
}

.abt-code-body .tok-var {
  color: #4ec9b0;
}

.abt-code-body .tok-key {
  color: var(--blue);
}

[data-theme="dark"] .abt-code-body .tok-key {
  color: #9cdcfe;
}

.abt-code-body .tok-str {
  color: var(--emerald);
}

.abt-code-body .tok-punct {
  color: var(--text-muted);
}

.abt-code-body .tok-tmpl {
  color: #ce9178;
}

/* ── ACADEMIC RESULTS ── */
.edu-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .edu-results-grid {
    grid-template-columns: 1fr;
  }
}

/* ── GRADE OVERVIEW MARQUEE ── */
.grades-loop {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 48px;
  padding: 0;
}

.grades-loop::before,
.grades-loop::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.grades-loop::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.grades-loop::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.grades-loop-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: grades-loop-scroll 36s linear infinite;
}

/* .grades-loop:hover .grades-loop-track {
  animation-play-state: paused;
} */

@keyframes grades-loop-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.grades-loop-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 8px;
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .03em;
  transition: color .2s, background .2s;
}

.grades-loop-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr);
  flex-shrink: 0;
}

.grades-loop-item i {
  color: var(--clr);
  font-size: .9rem;
}

.grades-loop-item b {
  color: var(--text);
  font-weight: 700;
  margin-left: 2px;
}

.grades-loop-item:hover {
  color: var(--text);
  background: var(--blue-dim);
}

/* RIGHT */
.abt-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Bio */
.abt-bio {
  padding: 28px 30px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.abt-bio-lead {
  font-size: 1.04rem;
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}

.abt-bio-body {
  font-size: .93rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.abt-bio-body:last-child {
  margin-bottom: 0;
}

/* Strengths */
.abt-strengths {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.abt-strength-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 17px 20px;
  transition: border-color .25s, transform .25s;
}

.abt-strength-item:hover {
  border-color: var(--border-blue);
  transform: translateX(4px);
}

.abt-str-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue);
  /* Forces its own GPU compositing layer — a known practical fix for a
     Safari/iOS bug where icons inside heavily-blurred/transformed pages
     randomly fail to paint. Purely a rendering hint, no visual change. */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.abt-str-title {
  font-weight: 700;
  font-size: .93rem;
  margin-bottom: 4px;
}

.abt-str-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Metrics */
.abt-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.abt-metric {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color .25s, transform .25s;
}

.abt-metric:hover {
  border-color: var(--border-blue);
  transform: translateY(-3px);
}

.abt-metric-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}

.abt-metric-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--clr, var(--blue));
  margin-bottom: 10px;
  opacity: .7;
}

.abt-metric-label {
  font-size: .72rem;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.det-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color .3s;
}

.det-item:hover {
  border-color: var(--border-blue);
}

.det-key {
  display: block;
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.det-val {
  font-weight: 600;
  font-size: .92rem;
}

.avail {
  color: #4ade80;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.sk-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 28px;
  transition: border-color .35s, transform .35s, background .35s;
  cursor: default;
}

.sk-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  background: rgba(201, 168, 76, .04);
}

.sk-ico {
  font-size: 2rem;
  color: var(--blue);
  width: 44px;
  flex-shrink: 0;
}

.sk-body {
  flex: 1;
}

.sk-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sk-name {
  font-weight: 700;
  font-size: .95rem;
}

.sk-pct {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--blue);
}

.sk-track {
  height: 4px;
  background: rgba(255, 255, 255, .06);
  border-radius: 4px;
  overflow: hidden;
}

.sk-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 1.4s cubic-bezier(.25, .46, .45, .94);
  box-shadow: 0 0 12px rgba(201, 168, 76, .4);
}

.sk-fill.run {
  width: var(--w);
}

/* ── HERO BADGES ── */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, .25);
  background: rgba(148, 163, 184, .07);
  font-size: .75rem;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .03em;
  transition: border-color .25s, background .25s, transform .25s;
}

.hero-badge:hover {
  border-color: var(--blue);
  background: rgba(148, 163, 184, .14);
  transform: translateY(-2px);
}

.hero-badge i {
  font-size: .8rem;
}

/* ── TESTIMONIALS GRID ── */
.testimonials-section {
  background: var(--bg-2);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testi-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s;
  cursor: default;
}

.testi-card:hover {
  border-color: var(--border-blue);
}

.testi-quote-icon {
  font-size: 2.2rem;
  color: var(--blue);
  opacity: .25;
  line-height: 1;
  margin-bottom: -8px;
}

.testi-stars {
  color: #fbbf24;
  font-size: .95rem;
  letter-spacing: 2px;
}

.testi-text {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--text-muted);
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--text-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: #fff;
  letter-spacing: .05em;
}

.testi-name {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 3px;
}

.testi-role {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ── WRITING / BLOG ── */
/* .writing-section {

     } */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.writing-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.writing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--text-muted));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.writing-card:hover::before {
  transform: scaleX(1);
}

.writing-card:hover {
  border-color: var(--border-blue);
}

.writing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.writing-tag {
  font-size: .7rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .2);
  padding: 3px 10px;
  border-radius: 20px;
}

.writing-date {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 5px;
}

.writing-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  flex: 1;
}

.writing-excerpt {
  font-size: .86rem;
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
}

.writing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

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

.writing-tags span {
  font-size: .68rem;
  font-family: var(--mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
}

.writing-read {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* ── SKILLS PRO — tabs, categories, pills ── */
.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  margin-top: 10px;
}

.sk-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 32px;
}

.sk-tab {
  padding: 9px 22px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
  font-family: var(--mono);
}

.sk-tab:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.sk-tab.active,
.pf-btn.active,
.cf-btn.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0f172a !important;
  /* DARK TEXT ON WHITE BACKGROUND IN DARK MODE */
  font-weight: 700 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

[data-theme="light"] .sk-tab.active,
[data-theme="light"] .pf-btn.active,
[data-theme="light"] .cf-btn.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  /* WHITE TEXT ON DARK BACKGROUND IN LIGHT MODE */
  font-weight: 700 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.sk-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sk-category {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  transition: border-color .3s, transform .3s;
}

.sk-category:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
}

.sk-category.sk-hidden {
  display: none;
}

.sk-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.sk-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blue);
  flex-shrink: 0;
}

.sk-cat-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 3px;
}

.sk-cat-sub {
  font-size: .8rem;
  color: var(--text-muted);
}

.sk-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sk-pill {
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color .25s, background .25s;
}

.sk-pill:hover {
  border-color: rgba(148, 163, 184, .4);
  background: rgba(148, 163, 184, .04);
}

.sk-pill-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sk-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.sk-pill-info {
  flex: 1;
}

.sk-pill-name {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
}

.sk-pill-badge {
  display: inline-block;
  font-size: .65rem;
  font-family: var(--mono);
  color: var(--blue);
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .2);
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: .04em;
  margin-top: 3px;
}

.sk-pill[data-level="55"] .sk-pill-badge {
  color: #fb923c;
  background: rgba(251, 146, 60, .1);
  border-color: rgba(251, 146, 60, .25);
}

.sk-pill-pct {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.sk-pill-bar {
  height: 3px;
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  overflow: hidden;
}

.sk-pill-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--clr, var(--blue));
  transition: width 1.6s cubic-bezier(.25, .46, .45, .94);
  box-shadow: 0 0 10px var(--clr, var(--blue));
}

.sk-pill-fill.run {
  width: var(--w);
}

.sk-summary-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

.sk-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sk-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sk-stat-circle {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-stat-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sk-stat-circle span {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  z-index: 1;
}

.sk-stat-label {
  font-size: .75rem;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── SERVICES — connected node layout ── */
.services {
  background: var(--bg-2);
}

.svc-flow {
  position: relative;
  width: 100%;
}

/* SVG connector canvas sits behind cards */
.svc-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.svc-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.svc-node {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 44px 32px 52px;
  position: relative;
  overflow: hidden;
  transition: border-color .35s, transform .35s, background .35s;
  cursor: default;
}

.svc-node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, .07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}

.svc-node:hover {
  border-color: var(--border-blue);
  transform: translateY(-6px);
  background: rgba(201, 168, 76, .03);
}

.svc-node:hover::before {
  opacity: 1;
}

/* Node connector dot — the point lines attach to */
.svc-node-dot {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--border-blue);
  z-index: 2;
  transition: background .3s, box-shadow .3s;
}

.svc-node:hover .svc-node-dot {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(100, 116, 139, 0.7);
}

/* Top-line accent */
.svc-node::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}

.svc-node:hover::after {
  transform: scaleX(1);
}

.svc-num {
  font-family: var(--mono);
  font-size: .68rem;
  color: rgba(201, 168, 76, .35);
  letter-spacing: 3px;
  margin-bottom: 24px;
  display: block;
}

.svc-ico {
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 20px;
  display: block;
}

.svc-node h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.svc-node p {
  color: var(--text-muted);
  font-size: .87rem;
  line-height: 1.8;
}

.svc-arr {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  transition: all .3s;
}

.svc-node:hover .svc-arr {
  border-color: var(--blue);
  color: var(--blue);
  transform: rotate(45deg);
}

/* Bottom hub node */
.svc-hub-row {
  display: flex;
  justify-content: center;
  margin-top: 0;
  position: relative;
  z-index: 1;
  padding-top: 48px;
}

.svc-hub {
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  border-radius: 50px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
  position: relative;
  cursor: default;
  transition: box-shadow .3s, transform .3s;
}

.svc-hub:hover {
  box-shadow: var(--blue-glow);
  transform: translateY(-2px);
}

.svc-hub i {
  font-size: 1.1rem;
}

/* Hub dot for line connection */
.svc-hub-dot {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.6);
}

/* ── SERVICES — new professional grid ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.svc-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .35s, transform .35s;
  cursor: default;
}

.svc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}

.svc-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-6px);
}

.svc-card:hover::after {
  transform: scaleX(1);
}

.svc-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(203, 213, 225, .06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}

.svc-card:hover .svc-card-glow {
  opacity: 1;
}

.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.svc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blue);
  transition: box-shadow .3s;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.svc-card:hover .svc-card-icon {
  box-shadow: 0 0 18px rgba(203, 213, 225, .35);
}

.svc-card-num {
  font-family: var(--mono);
  font-size: .65rem;
  color: rgba(11, 103, 134, 0.869);
  letter-spacing: 3px;
}

.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.svc-card p {
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.8;
  margin: 0;
  flex: 1;
}

.svc-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.svc-card-tags span {
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(203, 213, 225, .08);
  border: 1px solid rgba(203, 213, 225, .2);
  color: var(--blue);
  font-weight: 500;
}

.svc-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.svc-card-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-card-features span {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.svc-card-features i {
  color: var(--blue);
  font-size: .85rem;
  flex-shrink: 0;
}

/* Process steps */
.svc-process {
  margin-top: 52px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 36px;
}

.svc-process-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}

.svc-process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.svc-step {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 160px;
}

.svc-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--blue);
  font-weight: 700;
}

.svc-step-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.svc-step-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.svc-step-arrow {
  color: var(--border-blue);
  font-size: 1.1rem;
  padding: 0 12px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

/* CTA row */
.svc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  text-align: center;
}

.svc-cta p {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0;
}


.proj-network {
  position: relative;
  width: 100%;
}

.proj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-radius: var(--r);
  position: relative;
  z-index: 1;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 14px 32px rgba(0, 0, 0, 0.18);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: default;
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}

.proj-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 22px 44px rgba(0, 0, 0, 0.28);
}

.proj-card:hover::before {
  transform: scaleX(1);
}

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.proj-tag {
  font-family: var(--mono);
  font-size: .67rem;
  color: var(--blue);
  background: var(--blue-dim);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border-blue);
}

.proj-year {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
}

.proj-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.proj-card p {
  color: var(--text-muted);
  font-size: .87rem;
  line-height: 1.75;
  flex: 1;
  max-height: 5.25em;
  overflow: hidden;
  position: relative;
}

.proj-card p.is-clamped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.75em;
  background: linear-gradient(to bottom, transparent, var(--bg-card, var(--bg)));
  pointer-events: none;
}

.proj-read-full {
  display: none;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: 6px;
  width: fit-content;
}

.proj-read-full.is-visible {
  display: inline-flex;
}

.proj-read-full:hover {
  text-decoration: underline;
}

.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

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

.proj-techs span {
  font-family: var(--mono);
  font-size: .67rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .04);
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.proj-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  flex-shrink: 0;
  transition: all .3s;
}

.proj-case-soon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: .67rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .03);
  padding: 4px 10px;
  margin-top: 12px;
  border-radius: 50px;
  border: 1px dashed var(--border);
  white-space: nowrap;
  cursor: default;
}

.proj-card:hover .proj-link {
  border-color: var(--blue);
  color: var(--blue);
  transform: rotate(45deg);
}

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

  .svc-process-steps {
    gap: 12px;
  }

  .svc-nodes {
    grid-template-columns: 1fr 1fr;
  }

  .proj-cards {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .svc-process {
    padding: 24px 20px;
  }

  .svc-step-arrow {
    display: none;
  }

  .svc-process-steps {
    flex-direction: column;
    gap: 16px;
  }

  .svc-nodes {
    grid-template-columns: 1fr;
  }

  .proj-cards {
    grid-template-columns: 1fr;
  }

  .svc-svg {
    display: none;
  }

  .svc-node-dot {
    display: none;
  }
}

/* ── CONTACT ── */
.contact {
  background: var(--bg-2);
}

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

.contact-sub {
  color: var(--text-muted);
  margin: 20px 0 32px;
  font-size: .97rem;
  line-height: 1.8;
}

.clinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clink {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-glass);
  transition: all .3s;
  word-break: break-all;
}

.clink i {
  color: var(--blue);
  font-size: 1.05rem;
  width: 20px;
  flex-shrink: 0;
}

.clink:hover {
  border-color: var(--border-blue);
  color: var(--text);
  background: var(--blue-dim);
  transform: translateX(4px);
}

.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

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

.fg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fg label {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.fg input,
.fg textarea {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  resize: none;
  width: 100%;
  transition: border-color .3s, box-shadow .3s;
}

.fg input:focus,
.fg textarea:focus {
  border-color: var(--border-blue);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, .08);
}

.fg input::placeholder,
.fg textarea::placeholder {
  color: rgba(255, 255, 255, .15);
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 5%;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--mono);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

footer p {
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--mono);
}

.footer-socs {
  display: flex;
  gap: 14px;
}

.footer-socs a {
  color: var(--text-muted);
  font-size: .95rem;
  text-decoration: none;
  transition: color .3s;
}

.footer-socs a:hover {
  color: var(--blue);
}

/* ── BACK TO TOP ── */
#btt {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-blue);
  border-radius: 50%;
  background: rgba(8, 8, 16, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  text-decoration: none;
  font-size: 1rem;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s, box-shadow .3s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#btt.show {
  opacity: 1;
  pointer-events: auto;
}

#btt:hover {
  transform: translateY(-4px);
  box-shadow: var(--blue-glow);
}

/* ── DIVIDER — with smooth animated slash fade beam ── */
.divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  overflow: hidden;
}

.divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), rgba(229, 231, 235, 0.5), rgba(255, 255, 255, 0.08), transparent);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  opacity: 0;
  animation: divider-slash-fade 6.5s cubic-bezier(.4, 0, .6, 1) infinite;
}

[data-theme="light"] .divider::before {
  background: linear-gradient(90deg, transparent, rgba(51, 65, 85, 0.08), rgba(51, 65, 85, 0.4), rgba(51, 65, 85, 0.08), transparent);
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.15);
}

@keyframes divider-slash-fade {
  0% {
    left: -35%;
    opacity: 0;
  }

  25% {
    opacity: 0.65;
  }

  75% {
    opacity: 0.65;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* ── STYLE SLIDE WRAP ── */
.style-slide-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: relative;
}

.style-slide-wrap::before,
.style-slide-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.style-slide-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-2), transparent);
}

.style-slide-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-2), transparent);
}

.style-slide-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ss-scroll 28s linear infinite;
}

.style-slide-wrap:hover .style-slide-track {
  animation-play-state: running;
}

@keyframes ss-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ss-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  margin: 0 6px;
  border-radius: 30px;
  border: 1px solid var(--border-blue);
  background: var(--bg-glass);
  color: var(--blue-light);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s, border-color .2s;
}

.ss-item i {
  font-size: 1rem;
  color: var(--blue);
}

.ss-item:hover {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--text);
}

/* ── TYPING BANNER ── */
.typing-banner {
  width: 100%;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.typing-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.typing-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.typing-banner-label i {
  font-size: .55rem;
  color: #2ecc71;
  animation: tb-pulse 1.4s ease-in-out infinite;
}

@keyframes tb-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

.typing-banner-text {
  color: var(--text);
  min-width: 2px;
}

.typing-banner-cursor {
  color: var(--blue);
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1;
  animation: tb-blink .75s step-end infinite;
}

@keyframes tb-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .typing-banner-inner {
    font-size: .97rem;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    row-gap: 8px;
  }

  .typing-banner-text {
    white-space: normal;
    word-break: break-word;
  }

  .typing-banner-label {
    font-size: .7rem;
    padding: 3px 10px;
  }
}

/* ── DARK THEME UNIFIED BACKGROUND & CARD SURFACES ── */
[data-theme="dark"] body {
  background-color: var(--bg, #050506);
}

[data-theme="dark"] section,
[data-theme="dark"] .about,
[data-theme="dark"] .services,
[data-theme="dark"] .skills,
[data-theme="dark"] #projects,
[data-theme="dark"] #timeline,
[data-theme="dark"] #certs,
[data-theme="dark"] #contact,
[data-theme="dark"] footer {
  background: transparent !important;
}

[data-theme="dark"] .a-stat,
[data-theme="dark"] .det-item,
[data-theme="dark"] .sk-card,
[data-theme="dark"] .svc-node,
[data-theme="dark"] .svc-card,
[data-theme="dark"] .svc-process,
[data-theme="dark"] .proj-card,
[data-theme="dark"] .tl-card,
[data-theme="dark"] .cert-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .abt-code-card,
[data-theme="dark"] .testi-card,
[data-theme="dark"] .writing-card,
[data-theme="dark"] .pd-card,
[data-theme="dark"] .pd-shot-card {
  background-color: var(--bg-card, rgba(255, 255, 255, 0.045));
  border-color: var(--border, rgba(255, 255, 255, 0.09));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .sk-card:hover,
[data-theme="dark"] .svc-card:hover,
[data-theme="dark"] .svc-node:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--border-blue, rgba(229, 231, 235, 0.3)) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--blue-glow) !important;
}

[data-theme="dark"] .proj-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--border-blue, rgba(229, 231, 235, 0.3)) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), var(--blue-glow) !important;
}

[data-theme="dark"] .a-stat:hover,
[data-theme="dark"] .det-item:hover,
[data-theme="dark"] .tl-card:hover,
[data-theme="dark"] .cert-card:hover,
[data-theme="dark"] .pd-shot-card:hover,
[data-theme="dark"] .testi-card:hover,
[data-theme="dark"] .writing-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--border-blue, rgba(229, 231, 235, 0.3)) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), var(--blue-glow) !important;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #fbfbfc;
  --bg-2: #ffffff;
  --bg-glass: rgba(226, 232, 240, 0.45);
  --border: rgba(51, 65, 85, 0.15);
  --border-blue: rgba(51, 65, 85, 0.3);
  --text: #16171b;
  --text-muted: #5b5e68;
  --blue: #334155;
  --blue-light: #1e293b;
  --blue-dim: rgba(51, 65, 85, 0.1);
  --blue-glow: 0 0 40px rgba(51, 65, 85, 0.18);
}

/* ── LIGHT THEME BODY ── */
/* ── LIGHT THEME UNIFIED BACKGROUND & CARD SURFACES ── */
[data-theme="light"] body {
  background: var(--bg, #f8fafc) !important;
}

[data-theme="light"] section,
[data-theme="light"] .about,
[data-theme="light"] .services,
[data-theme="light"] .skills,
[data-theme="light"] #projects,
[data-theme="light"] #timeline,
[data-theme="light"] #certs,
[data-theme="light"] #contact,
[data-theme="light"] footer {
  background: transparent !important;
}

/* ── PARTICLES & EFFECTS ── */
[data-theme="light"] #particles-canvas {
  opacity: 1;
}

[data-theme="light"] .noise {
  opacity: 0.04;
}

/* ── ORBS — soft sky glows ── */
[data-theme="light"] .orb-1 {
  background: radial-gradient(circle, rgba(51, 65, 85, 0.08) 0%, rgba(18, 160, 204, 0.04) 60%, transparent 80%);
}

[data-theme="light"] .orb-2 {
  background: radial-gradient(circle, rgba(51, 65, 85, 0.05) 0%, transparent 70%);
}

/* ── NAVIGATION ── */
[data-theme="light"] nav.scrolled {
  background: rgba(248, 250, 252, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.8), 0 4px 20px rgba(51, 65, 85, 0.05);
}

[data-theme="light"] .mob-menu {
  background: rgba(248, 250, 252, 0.98);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
}

/* ── HERO ── */
[data-theme="light"] .hero-img {
  border-color: rgba(51, 65, 85, 0.25);
  box-shadow: 0 0 0 8px rgba(51, 65, 85, 0.05), 0 0 40px rgba(51, 65, 85, 0.08);
}

[data-theme="light"] .hero-eyebrow {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 2px 10px rgba(51, 65, 85, 0.05);
}

[data-theme="light"] .skill-badge {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.8);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.06);
}

[data-theme="light"] .img-glow {
  background: radial-gradient(circle, rgba(51, 65, 85, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .scroll-mouse {
  border-color: rgba(51, 65, 85, 0.3);
}

/* ── UNIFIED CARDS & CONTAINERS IN LIGHT MODE ── */
[data-theme="light"] .a-stat,
[data-theme="light"] .det-item,
[data-theme="light"] .sk-card,
[data-theme="light"] .svc-node,
[data-theme="light"] .svc-card,
[data-theme="light"] .svc-process,
[data-theme="light"] .proj-card,
[data-theme="light"] .tl-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .contact-info,
[data-theme="light"] .abt-code-card,
[data-theme="light"] .testi-card,
[data-theme="light"] .writing-card,
[data-theme="light"] .pd-card,
[data-theme="light"] .pd-shot-card {
  background: #ffffff !important;
  border-color: rgba(203, 213, 225, 0.75) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .sk-card:hover,
[data-theme="light"] .svc-card:hover,
[data-theme="light"] .svc-node:hover {
  transform: translateY(-6px);
  background: #ffffff !important;
  border-color: rgba(51, 65, 85, 0.35) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .proj-card:hover {
  transform: translateY(-8px);
  background: #ffffff !important;
  border-color: rgba(51, 65, 85, 0.35) !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .a-stat:hover,
[data-theme="light"] .det-item:hover,
[data-theme="light"] .tl-card:hover,
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .pd-shot-card:hover,
[data-theme="light"] .testi-card:hover,
[data-theme="light"] .writing-card:hover {
  transform: translateY(-4px);
  background: #ffffff !important;
  border-color: rgba(51, 65, 85, 0.35) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09) !important;
}

[data-theme="light"] .about-frame-accent {
  border-color: var(--blue);
  opacity: 0.2;
}

[data-theme="light"] .about-img {
  filter: grayscale(0.05) saturate(1.05);
}

[data-theme="light"] .sk-track {
  background: rgba(51, 65, 85, 0.08);
}

[data-theme="light"] .sk-fill {
  box-shadow: 0 0 10px rgba(51, 65, 85, 0.2);
}

[data-theme="light"] .svc-node::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(51, 65, 85, 0.04) 0%, transparent 70%);
}

[data-theme="light"] .svc-hub {
  background: rgba(51, 65, 85, 0.08);
  border-color: rgba(51, 65, 85, 0.25);
  box-shadow: 0 4px 16px rgba(51, 65, 85, 0.06);
}

[data-theme="light"] .svc-node-dot {
  background: #ffffff;
}

[data-theme="light"] .svc-num {
  color: rgba(51, 65, 85, 0.25);
}

[data-theme="light"] .svc-card-icon {
  background: rgba(100, 116, 139, .06);
}

[data-theme="light"] .svc-card-tags span {
  background: rgba(100, 116, 139, .05);
  border-color: rgba(100, 116, 139, .16);
}

[data-theme="light"] .svc-card-footer {
  border-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .proj-tag {
  background: rgba(51, 65, 85, 0.08);
  color: var(--blue);
  border: 1px solid rgba(51, 65, 85, 0.18);
}

/* ── TIMELINE ── */
[data-theme="light"] .tl-trace-bg {
  stroke: rgba(51, 65, 85, 0.12);
}

[data-theme="light"] .tl-trace {
  filter: drop-shadow(0 0 5px rgba(51, 65, 85, 0.5)) drop-shadow(0 0 12px rgba(51, 65, 85, 0.2));
}

[data-theme="light"] .tl-node-dot {
  fill: var(--bg-2);
  stroke: var(--blue);
}

[data-theme="light"] .tl-node-dot.active-dot {
  fill: var(--blue);
}

[data-theme="light"] .tl-card {
  background: rgba(226, 232, 240, 0.45);
  border-color: rgba(51, 65, 85, 0.14);
  box-shadow: none;
}

[data-theme="light"] .tl-card:hover {
  background: rgba(226, 232, 240, 0.65);
  box-shadow: 0 8px 32px rgba(51, 65, 85, 0.1);
}

/* ── CONTACT ── */
[data-theme="light"] .contact-form,
[data-theme="light"] .contact-info {
  background: rgba(226, 232, 240, 0.45);
  border: 1px solid rgba(51, 65, 85, 0.14);
  box-shadow: none;
  border-radius: var(--r);
  padding: 40px 36px;
}

[data-theme="light"] .cf-field input,
[data-theme="light"] .cf-field textarea {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(51, 65, 85, 0.2);
  color: var(--text);
}

[data-theme="light"] .cf-field input:focus,
[data-theme="light"] .cf-field textarea:focus {
  background: rgba(226, 232, 240, 0.65);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.1);
}

[data-theme="light"] .cf-field label {
  color: var(--text-muted);
}

[data-theme="light"] .ci-item {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.14);
}

[data-theme="light"] .ci-item:hover {
  background: rgba(255, 255, 255, 0.97);
}

/* ── DIVIDER ── */
[data-theme="light"] .divider::after {
  background: linear-gradient(90deg, transparent, rgba(51, 65, 85, 0.2), transparent);
}

/* ── FOOTER ── */
[data-theme="light"] footer {
  background: var(--bg, #f8fafc) !important;
  border-top-color: rgba(203, 213, 225, 0.8);
}

/* ── BUTTONS ── */
[data-theme="light"] .btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(51, 65, 85, 0.3);
}

[data-theme="light"] .btn-blue:hover {
  box-shadow: 0 8px 32px rgba(51, 65, 85, 0.4);
}

[data-theme="light"] .btn-ghost {
  color: var(--blue);
  border-color: rgba(51, 65, 85, 0.35);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(51, 65, 85, 0.1);
}

/* ── SOCIAL ICONS ── */
[data-theme="light"] .soc {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(51, 65, 85, 0.15);
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.06);
}

[data-theme="light"] .soc:hover {
  background: rgba(51, 65, 85, 0.1);
  border-color: rgba(51, 65, 85, 0.3);
  box-shadow: 0 4px 16px rgba(51, 65, 85, 0.15);
}

/* ── SECTION HEADING ACCENTS ── */
[data-theme="light"] .section-title {
  color: #0a1e2e;
}

[data-theme="light"] .section-title span {
  color: var(--blue);
}

[data-theme="light"] .section-tag {
  color: var(--blue);
}

[data-theme="light"] .section-tag::before {
  background: var(--blue);
}

/* ── THEME TOGGLE ── */
[data-theme="light"] #themeToggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(51, 65, 85, 0.25);
  box-shadow: 0 2px 12px rgba(51, 65, 85, 0.1);
}

[data-theme="light"] #themeToggle:hover {
  box-shadow: 0 4px 20px rgba(51, 65, 85, 0.2);
}

/* ── BACK TO TOP ── */
[data-theme="light"] #btt {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(51, 65, 85, 0.25);
  box-shadow: 0 2px 12px rgba(51, 65, 85, 0.1);
}

[data-theme="light"] #btt:hover {
  background: var(--blue);
  color: #fff;
}

/* ── PROGRESS BAR ── */
[data-theme="light"] #progress-bar {
  box-shadow: 0 0 12px rgba(51, 65, 85, 0.4);
}

/* ── PRELOADER ── */
[data-theme="light"] #preloader {
  background: #f5f6f8;
}

/* ── CURSOR ── */
[data-theme="light"] .cur-ring {
  border-color: rgba(51, 65, 85, 0.4);
}

/* ── GITHUB STATS / MISC CARDS ── */
[data-theme="light"] .gh-stats {
  border-color: rgba(51, 65, 85, 0.15);
  background: rgba(226, 232, 240, 0.45);
}

[data-theme="light"] .mock-weather,
[data-theme="light"] .about-certs,
[data-theme="light"] [class*="-card"]:not(.edu-card):not(.tl-card):not(.testi-card):not(.cert-card):not(.proj-card):not(.svc-card):not(.writing-card):not(.sk-card):not(.abt-photo-card),
[data-theme="light"] [class*="-box"] {
  background: transparent;
}

/* edu-card wrapper is transparent — only edu-body gets the tinted bg */
[data-theme="light"] .edu-card {
  background: transparent;
  border: none;
}

/* ── EDUCATION SKILL LOOP ── */
.edu-skill-loop {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 48px;
  padding: 0;
}


/* fade edges */
.edu-skill-loop::before,
.edu-skill-loop::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.edu-skill-loop::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.edu-skill-loop::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.edu-loop-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: edu-loop-scroll 32s linear infinite;
}

.edu-skill-loop:hover .edu-loop-track {
  animation-play-state: running;
}

@keyframes edu-loop-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.edu-loop-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  margin: 0 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .03em;
  transition: border-color .2s, color .2s, background .2s;
}

.edu-loop-item i {
  color: var(--blue);
  font-size: .9rem;
}

.edu-loop-item:hover {
  border-color: var(--border-blue);
  color: var(--text);
  background: var(--blue-dim);
}

/* ── NAV LINK ── */
[data-theme="light"] .nav-link {
  color: #3a6a85;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0a1e2e;
}

[data-theme="light"] .logo {
  color: #0a1e2e;
}

[data-theme="light"] .mob-link {
  color: #1a4a65;
}

[data-theme="light"] .mob-link:hover {
  color: var(--blue);
}

/* ── SVG CONNECTORS ── */
[data-theme="light"] .svc-svg path,
[data-theme="light"] .svc-svg line {
  stroke: rgba(51, 65, 85, 0.572);
}



[data-theme="light"] .svc-svg circle {
  fill: rgba(51, 65, 85, 0.4);
}


/* terminal */
/* ══════════════════════════════
       TERMINAL SECTION — Professional
    ══════════════════════════════ */
.v-terminal-card {
  background: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--blue-glow);
  max-width: 740px;
}

.v-term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.v-term-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-dim), transparent);
}

.v-term-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  cursor: pointer;
  transition: filter .2s;
}

.v-term-dot:hover {
  filter: brightness(1.35);
}

.v-term-dot.r {
  background: #ff5f57;
  box-shadow: 0 0 6px rgba(255, 95, 87, .5);
}

.v-term-dot.y {
  background: #febc2e;
  box-shadow: 0 0 6px rgba(254, 188, 46, .4);
}

.v-term-dot.g {
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, .4);
}

.v-term-title {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  margin: 0 auto;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.8;
}

.v-term-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px rgba(40, 200, 64, .7);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.v-term-body {
  padding: 1.1rem 1.4rem;
  height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.75;
  scroll-behavior: smooth;
  background: transparent;
}

.v-term-body::-webkit-scrollbar {
  width: 4px;
}

.v-term-body::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, .2);
  border-radius: 2px;
}

.v-t-line {
  margin-bottom: 1px;
}

.v-t-prompt {
  color: var(--blue);
  font-weight: 600;
}

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

.v-t-out {
  color: var(--text-muted);
}

.v-t-hl {
  color: var(--text);
}

.v-t-ok {
  color: #4ade80;
}

.v-t-warn {
  color: #fbbf24;
}

.v-t-dim {
  color: rgba(203, 213, 225, .22);
}

.v-term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: .65rem 1.4rem .85rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .2);
}

.v-term-chip {
  font-family: var(--mono);
  font-size: .68rem;
  padding: 4px 13px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .18s var(--ease);
  letter-spacing: .3px;
}

.v-term-chip:hover {
  border-color: var(--border-blue);
  color: var(--blue);
  background: var(--blue-dim);
  transform: translateY(-1px);
}

.v-term-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.4rem 1.1rem;
  background: rgba(0, 0, 0, .15);
  border-top: 1px solid var(--border);
}

.v-term-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--text);
  caret-color: var(--blue);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.v-term-cursor {
  width: 8px;
  height: 14px;
  background: var(--blue);
  display: inline-block;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  border-radius: 1px;
}

/* floating terminal trigger */
.v-term-trigger {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 800;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--blue-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .25s var(--ease);
}

.v-term-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5), var(--blue-glow);
  border-color: var(--blue);
  background: var(--blue-dim);
}

.v-term-trigger .v-tip {
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .68rem;
  padding: 5px 13px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

.v-term-trigger:hover .v-tip {
  opacity: 1;
}

/* full overlay terminal */
.v-term-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  overflow: hidden;
}

.v-term-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.v-term-win {
  width: min(740px, 95vw);
  background: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), var(--blue-glow);
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .35s var(--ease), border-color .35s var(--ease);
}

.v-term-overlay.open .v-term-win {
  transform: translateY(0) scale(1);
}

.v-term-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: 5px;
  transition: .15s var(--ease);
}

.v-term-close:hover {
  color: #ff6b6b;
  background: rgba(255, 60, 60, .1);
}

.v-term-full-body {
  padding: 1.1rem 1.4rem;
  height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.75;
  scroll-behavior: smooth;
  background: transparent;
}

.v-term-full-body::-webkit-scrollbar {
  width: 4px;
}

.v-term-full-body::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, .2);
  border-radius: 2px;
}


/* ── PRELOADER ── */
/* NOTE: #preloader / #preloader.done rules live further down (search
   "WAVEFORM PRELOADER") — kept in one place only; a duplicate rule set
   used to live here with a different (.6s vs .8s) transition duration,
   which made the JS below fade-out timing unreliable. */

.pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.pre-logo {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  animation: pre-pulse 2s ease-in-out infinite;
}

@keyframes pre-pulse {

  0%,
  100% {
    opacity: .6;
  }

  50% {
    opacity: 1;
  }
}

.pre-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.pre-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
  transition: width .05s linear;
}

.pre-pct {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ── THEME TOGGLE ── */
#themeToggle {
  position: fixed;
  bottom: 88px;
  right: 32px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#themeToggle:hover {
  box-shadow: var(--blue-glow);
  transform: translateY(-2px) rotate(20deg);
}

/* ── GITHUB STATS ── */
.gh-stats {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-glass);
  transition: border-color .3s;
}

.gh-stats:hover {
  border-color: var(--border-blue);
}

.gh-stats-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-muted);
}

.gh-stats-head i {
  color: var(--text);
  font-size: 1rem;
}

.gh-user {
  margin-left: auto;
  color: var(--blue);
  font-size: .72rem;
  text-decoration: none;
  transition: opacity .2s;
}

.gh-user:hover {
  opacity: .7;
}

.gh-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gh-stat-item {
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.gh-stat-item:last-child {
  border-right: none;
}

.gh-stat-n {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--mono);
}

.gh-stat-l {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── ANALYTICS SECTION — live GitHub charts ── */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
}

.analytics-card--contrib .analytics-chart-wrap {
  min-height: 160px;
  padding: 6px 0;
}

.analytics-card--contrib .analytics-card-body {
  padding: 24px 28px 28px;
}

.analytics-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-glass);
  transition: border-color .3s;
}

.analytics-card:hover {
  border-color: var(--border-blue);
}

.analytics-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-muted);
}

.analytics-card-head i {
  color: var(--text);
  font-size: 1rem;
}

.analytics-card-body {
  padding: 18px 20px 20px;
}

.analytics-chart-wrap {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-chart-wrap--lang {
  min-height: 220px;
}

.analytics-chart-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity .4s ease;
}

.analytics-chart-img.loaded {
  opacity: 1;
}

.analytics-chart-skeleton {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.analytics-chart-skeleton.hidden {
  display: none;
}

/* ── Top languages — self-rendered bars (no third-party image) ── */
.lang-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity .4s ease;
}

.lang-bars.loaded {
  opacity: 1;
}

.lang-row {
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.lang-row-name {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-row-track {
  height: 6px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}

.lang-row-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--clr, var(--blue));
  animation: lang-fill .8s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: .1s;
}

@keyframes lang-fill {
  to {
    width: var(--w, 0%);
  }
}

.lang-row-pct {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--text);
  text-align: right;
}

.lang-bars-empty {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .lang-row-fill {
    animation: none;
    width: var(--w, 0%);
  }
}

.analytics-note {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
}

.analytics-note strong {
  color: var(--text);
  font-weight: 600;
}

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

/* ── SKILLS LAYOUT (radar + bars) ── */
.skills-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center;
}

.radar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-wrap canvas {
  max-width: 100%;
}

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

  .radar-wrap {
    justify-content: center;
  }

  .radar-wrap canvas {
    max-width: 320px;
  }
}

/* ── PROJECT FILTERS ── */
.proj-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pf-btn {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .3s;
}

.pf-btn:hover {
  border-color: var(--border-blue);
  color: var(--blue);
}

.pf-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #08080e;
  font-weight: 700;
}

.proj-card {
  transition: border-color .35s, transform .35s, background .35s, opacity .4s, max-height .4s;
}

.proj-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  display: none;
}

/* ── PROJECT PREVIEW MOCKUPS ── */
.proj-preview {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  flex-shrink: 0;
  position: relative;
}

.proj-preview-mock {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 110px;
}

/* "View" button overlay on each project preview */
.proj-view-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 10, 11, 0.55);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .25s var(--ease);
}

.proj-view-btn i {
  font-size: .95rem;
}

.proj-preview:hover .proj-view-btn,
.proj-view-btn:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .proj-view-btn {
    opacity: 1;
    background: rgba(10, 10, 11, 0.32);
  }
}

[data-theme="light"] .proj-view-btn {
  background: rgba(22, 23, 27, 0.5);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}

.mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.mock-bar span:nth-child(1) {
  background: rgba(255, 96, 96, .4);
}

.mock-bar span:nth-child(2) {
  background: rgba(255, 200, 50, .4);
}

.mock-bar span:nth-child(3) {
  background: rgba(80, 200, 120, .4);
}

.mock-code {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mc-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
}

.mc-line.accent {
  background: rgba(203, 213, 225, .35);
}

/* Weather mock */
.mock-blue {
  background: rgba(14, 100, 180, .07);
}

.mock-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
  gap: 4px;
}

.mock-weather-icon {
  font-size: 1.8rem;
  color: var(--blue-light);
}

.mock-temp {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* Menu mock */
.mock-warm {
  background: rgba(220, 80, 30, .06);
}

.mock-menu {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mc-pill {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  background: rgba(220, 100, 30, .2);
  color: #f0a070;
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* POS mock */
.mock-green {
  background: rgba(30, 160, 80, .06);
}

.mock-pos {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-pos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-price {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--text-muted);
}

.mock-pos-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.mock-pos-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  color: #4ade80;
}

/* ── TIMELINE ── */
.timeline-section {
  background: var(--bg-2);
}

/* ── TIMELINE WRAPPER ── */
.timeline {
  position: relative;
  isolation: isolate;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* hide old line */
.tl-line {
  display: none;
}

/* ── SVG CIRCUIT TRACE ── */
.tl-snake-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* glowing animated trace */
.tl-trace-bg {
  fill: none;
  stroke: rgba(203, 213, 225, 0.18);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tl-trace {
  fill: none;
  stroke: url(#traceGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(203, 213, 225, 0.6)) drop-shadow(0 0 12px rgba(203, 213, 225, 0.25));
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-trace.drawn {
  stroke-dashoffset: 0;
}

/* ── SHIMMER PULSE OVERLAY ── */
.tl-trace-shimmer {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  stroke-dasharray: 80 2000;
  stroke-dashoffset: 0;
  animation: shimmer-ride 3.5s ease-in-out infinite;
}

@keyframes shimmer-ride {
  0% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  5% {
    opacity: 0.55;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    stroke-dashoffset: -2080;
    opacity: 0;
  }
}

/* ── SPARK COMET — animated via JS requestAnimationFrame ── */
#traceSpark {
  pointer-events: none;
}

#sparkCore {
  filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 12px #e5e7eb);
}

#sparkHalo {
  filter: drop-shadow(0 0 10px rgba(229, 231, 235, 0.8));
}

/* node dots on path */
.tl-node-dot {
  fill: var(--bg-2);
  stroke: var(--blue);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(203, 213, 225, 0.7));
}

.tl-node-dot.active-dot {
  fill: var(--blue);
  animation: node-pulse 2.5s ease-in-out infinite;
}

@keyframes node-pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(203, 213, 225, 0.7)) drop-shadow(0 0 0px rgba(203, 213, 225, 0));
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(203, 213, 225, 1)) drop-shadow(0 0 20px rgba(203, 213, 225, 0.4));
  }
}

@media (max-width: 768px) {

  /* On mobile, trace is a thinner vertical line */
  .tl-trace-bg {
    stroke-width: 1.5;
  }

  .tl-trace {
    stroke-width: 1.5;
  }

  .v-term-trigger {
    bottom: 1.2rem;
    left: 1.2rem;
  }

}

/* ── CARD LAYOUT ── */
.tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 56px;
  position: relative;
  z-index: 3;
}

.tl-item:last-child {
  margin-bottom: 0;
}

/* LEFT card: sits on left half, dot on right edge */
.tl-left {
  justify-content: flex-start;
  padding-right: 52%;
}

/* RIGHT card: sits on right half, dot on left edge */
.tl-right {
  justify-content: flex-end;
  padding-left: 52%;
}

/* dot hidden — replaced by SVG nodes */
.tl-dot {
  display: none;
}

.tl-card {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.tl-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(203, 213, 225, 0.08);
}

.tl-card-active {
  border-color: var(--border-blue);
  background: rgba(203, 213, 225, .04);
}

/* ── CONNECTOR STUB: small horizontal line from card edge to trace ── */
/* Left card: stub exits right side */
.tl-left .tl-card::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -28px;
  width: 28px;
  height: 2px;
  background: linear-gradient(to right, var(--blue), rgba(203, 213, 225, 0.3));
}

/* Right card: stub exits left side */
.tl-right .tl-card::after {
  content: '';
  position: absolute;
  top: 28px;
  left: -28px;
  width: 28px;
  height: 2px;
  background: linear-gradient(to left, var(--blue), rgba(203, 213, 225, 0.3));
}

/* ── CARD YEAR / TEXT ── */
.tl-year {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-year-active {
  color: var(--blue);
}

.tl-now {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 700;
  background: var(--blue);
  color: #08080e;
  padding: 2px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.tl-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tl-card p {
  color: var(--text-muted);
  font-size: .87rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.tl-tags span {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  /* Keep SVG visible on mobile — JS draws vertical trace */
  .tl-snake-svg {
    display: block;
  }

  .tl-line {
    display: none;
  }

  /* All cards stacked full-width with left indent for trace */
  .tl-item {
    flex-direction: row !important;
    padding: 0 0 0 44px !important;
    justify-content: flex-start !important;
    margin-bottom: 28px;
    align-items: flex-start;
  }

  .tl-left {
    padding-right: 0 !important;
  }

  .tl-right {
    padding-left: 44px !important;
  }

  .tl-card {
    width: 100%;
  }

  .tl-card::after {
    display: none !important;
  }

  /* Dots: hidden visually — SVG draws the circles perfectly aligned */
  .tl-dot {
    display: block;
    position: absolute;
    left: 20px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: none;
    z-index: 3;
    transform: translateX(-50%);
    flex-shrink: 0;
    opacity: 0;
    /* invisible — only used as anchor for JS */
    pointer-events: none;
  }

  .tl-dot.active {
    opacity: 0;
    /* still invisible — SVG handles the glow */
  }

  .v-term-overlay {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: var(--bg);
}

.testi-wrap {
  position: relative;
  overflow: hidden;
}

.testi-track {
  display: flex;
  gap: 0;
  width: 100%;
  transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.testi-card {
  flex: 0 0 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px;
  transition: border-color .3s;
}

.testi-card:hover {
  border-color: var(--border-blue);
}

.testi-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.testi-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
  margin-bottom: 32px;
  max-width: 700px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .8rem;
  color: var(--blue);
  flex-shrink: 0;
}

.testi-name {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 3px;
}

.testi-role {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .5px;
}

.testi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.testi-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-blue);
  background: transparent;
  color: var(--blue);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.testi-btn:hover {
  background: var(--blue-dim);
  box-shadow: var(--blue-glow);
}

.testi-dots {
  display: flex;
  gap: 8px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}

.testi-dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}

/* ── CONTACT FORM UPGRADES ── */
.form-submit-btn {
  justify-content: center;
  border-radius: 8px;
  width: 100%;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-top: -4px;
}

.form-note i {
  color: #4ade80;
}

/* ── RESPONSIVE EXTRAS ── */
@media (max-width: 768px) {
  .gh-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .gh-stat-item:nth-child(2) {
    border-right: none;
  }

  .testi-card {
    padding: 28px 24px;
  }

  #themeToggle {
    bottom: 88px;
    right: 20px;
  }

  #btt {
    right: 20px;
  }
}

@media (max-width: 480px) {
  .proj-filters {
    gap: 8px;
  }

  .pf-btn {
    padding: 7px 16px;
    font-size: .68rem;
  }

  .testi-card {
    padding: 24px 18px;
  }

  .testi-text {
    font-size: .92rem;
  }
}


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-img-panel {
    width: 100%;
  }

  .hero-img-panel::before {
    clip-path: polygon(2% 0%, 50% 96%, 98% 0%);
    inset: -20px -60px;
  }

  .hero-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-title {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-skyline {
    width: min(600px, 92vw);
    margin-left: auto;
    margin-right: auto;
    --sk-gap: 2px;
  }

  .hero-ctas,
  .social-row {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

  .abt-main-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .abt-photo-card {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .hero-badges {
    gap: 7px;
  }

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

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

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

  .sk-summary-stats {
    grid-template-columns: 2fr 1fr;
  }
}

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

  .ham {
    display: flex;
  }

  .section-inner {
    padding: 80px 5% 50px;
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 30px;
  }

  .hero-grid {
    padding: 0;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }

  .orb-1 {
    width: 280px;
    height: 280px;
    right: 0;
    top: -50px;
  }

  .orb-2 {
    width: 220px;
    height: 220px;
    left: 0;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7.5vw, 3.4rem);
    margin-bottom: 12px;
  }

  .hero-skyline {
    gap: 0 1.5px;
    --sk-gap: 1.5px;
    width: min(480px, 92vw);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-eyebrow {
    margin-bottom: 16px;
  }

  .hero-typerow {
    margin-bottom: 14px;
    font-size: 1.05rem;
  }

  .hero-desc {
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-badges {
    margin-bottom: 20px;
    justify-content: center;
  }

  .hero-ctas {
    margin-bottom: 22px;
    justify-content: center;
  }

  .social-row {
    margin-bottom: 16px;
    justify-content: center;
  }

  .hero-img-panel {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    z-index: 10;
  }

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

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

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

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

  .sk-pills-grid {
    grid-template-columns: 1fr;
  }

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

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

  .radar-wrap {
    justify-content: center;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .contact-form {
    padding: 24px 18px;
    gap: 16px;
  }

  .fg input,
  .fg textarea {
    padding: 12px 14px;
    font-size: .88rem;
  }

  .clink {
    font-size: .85rem;
    padding: 12px 14px;
  }

  .clink:hover {
    transform: none;
  }

  .form-submit-btn {
    padding: 14px;
    font-size: .9rem;
  }

  .contact-sub {
    margin: 14px 0 24px;
    font-size: .92rem;
  }
}

@media (max-width: 480px) {
  .abt-header {
    margin-bottom: 32px;
  }

  .abt-header-sub {
    font-size: .92rem;
    line-height: 1.6;
  }

  .abt-photo-card {
    max-width: 100%;
  }

  .abt-code-card {
    border-radius: 12px;
  }

  .abt-code-titlebar {
    padding: 10px 14px;
  }

  .abt-code-body {
    padding: 14px 14px;
    font-size: .73rem;
    line-height: 1.7;
  }

  .abt-strengths {
    gap: 10px;
  }

  .abt-strength-item {
    padding: 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .abt-str-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: .95rem;
    border-radius: 8px;
  }

  .abt-str-title {
    font-size: .88rem;
  }

  .abt-str-desc {
    font-size: .78rem;
    line-height: 1.5;
  }

  .abt-metrics {
    gap: 10px;
  }

  .abt-metric {
    padding: 14px 10px;
    border-radius: 12px;
  }

  .abt-metric-num {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .abt-metric-label {
    font-size: .65rem;
    letter-spacing: .5px;
  }

  .gh-stats-head {
    padding: 10px 14px;
    font-size: .72rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  .gh-stat-item {
    padding: 12px 6px;
  }

  .gh-stat-n {
    font-size: 1.25rem;
  }

  .gh-stat-l {
    font-size: .65rem;
  }

  .hero-skyline {
    gap: 0 1px;
    --sk-gap: 1px;
    width: min(340px, 94vw);
    margin-left: auto;
    margin-right: auto;
  }

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

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .a-stat {
    padding: 14px 8px;
  }

  .a-stat-n {
    font-size: 1.5rem;
  }

  .orbit-system {
    width: 260px;
    height: 260px;
  }

  .hero-img-wrap {
    width: 140px;
    height: 140px;
  }

  .ring-a {
    width: 180px;
    height: 180px;
  }

  .ring-b {
    width: 222px;
    height: 222px;
  }

  .ring-c {
    width: 256px;
    height: 256px;
  }

  .dot-on-a {
    left: 88px;
  }

  .dot-on-b,
  .dot-on-c,
  .dot-on-d {
    left: 109px;
  }

  /* Hide skill badges on very small screens to avoid overflow */
  .skill-badge-orbit {
    display: none;
  }

  .arc-svg {
    width: 260px;
    height: 260px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .contact-form {
    padding: 18px 14px;
    gap: 14px;
  }

  .clink {
    font-size: .82rem;
    padding: 11px 12px;
    gap: 10px;
  }

  .fg input,
  .fg textarea {
    padding: 11px 12px;
  }

  .mob-link {
    font-size: .95rem;
  }
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes shimmer {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

.blue-shimmer {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 40%, var(--blue) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ═══════════════════════════════════
   HERO TITLE — Gradient shimmer
═══════════════════════════════════ */

.name.blue-shimmer {
  background: linear-gradient(135deg,
      var(--blue) 0%,
      var(--blue-light) 40%,
      #ffffff 60%,
      var(--blue) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-name 4s ease-in-out infinite;
}

@keyframes shimmer-name {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


/* Decorative line element */
.deco-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.deco-line::before,
.deco-line::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--border);
}

/* ════════════════════════════════════════════
   ACHIEVEMENTS & CERTIFICATES SECTION
   ════════════════════════════════════════════ */
.certs-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.certs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(203, 213, 225, .05) 0%, transparent 70%);
  pointer-events: none;
}

/* NETWORK WRAP */
.certs-network-wrap {
  position: relative;
  margin-top: 0;
}

/* GRID */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

/* CERT CARD - enhanced professional look */
.cert-card {
  position: relative;
  z-index: 2;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  overflow: hidden;
  cursor: default;
}

/* Left accent bar: sleek theme-matched accent color fitting the site palette */
.cert-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
  opacity: 0.35;
  transition: opacity .3s, top .3s, bottom .3s, background .3s;
}

.cert-card:hover::after {
  opacity: 1;
  top: 0;
  bottom: 0;
  border-radius: 0;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.cert-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(203, 213, 225, .1);
}

.cert-card:hover::before {
  opacity: 1;
}

/* TOP ROW */
.cert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

/* icon */
.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(203, 213, 225, .1);
  border: 1px solid rgba(203, 213, 225, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background .3s, transform .3s;
}

.cert-card:hover .cert-icon {
  background: rgba(203, 213, 225, .18);
  transform: scale(1.08);
}

/* verified badge */
.cert-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: .5px;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.cert-verified::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, .8);
  flex-shrink: 0;
}

/* BODY */
.cert-org {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cert-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.cert-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* FOOTER */
.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.cert-date {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-date::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue);
}

.cert-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cert-skill {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  transition: color .2s, border-color .2s;
}

.cert-card:hover .cert-skill {
  color: var(--blue);
  border-color: var(--border-blue);
}

/* STATS BAR */
.certs-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.certs-stat {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.certs-stat+.certs-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

.certs-stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(203, 213, 225, .4);
}

.certs-stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .5px;
}

/* LIGHT THEME FOR ACHIEVEMENTS & CERTIFICATES */
[data-theme="light"] .cert-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .cert-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 32px rgba(51, 65, 85, 0.08) !important;
  background: #ffffff !important;
}

[data-theme="light"] .cert-icon {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

[data-theme="light"] .cert-name {
  color: #0f172a !important;
}

[data-theme="light"] .cert-desc {
  color: #475569 !important;
}

[data-theme="light"] .cert-skill {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .cert-card:hover .cert-skill {
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .certs-stats {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .certs-stat-label {
  color: #64748b !important;
}

[data-theme="light"] .certs-stat-num {
  color: #1e293b !important;
  text-shadow: none !important;
}

/* MOBILE */
@media (max-width: 768px) {
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .certs-stats {
    flex-direction: column;
  }

  .certs-stat+.certs-stat::before {
    top: 0;
    bottom: auto;
    left: 20%;
    right: 20%;
    width: auto;
    height: 1px;
  }
}

/* ── CERT FILTER TABS ── */
.certs-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 0;
}

.cf-btn {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
}

.cf-btn:hover {
  color: var(--blue);
  border-color: var(--border-blue);
}

.cf-btn.active {
  color: var(--bg);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(203, 213, 225, .3);
}

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

/* ── SPECIAL AWARD CARD ── */
.cert-award {
  background: linear-gradient(135deg, var(--blue-dim) 0%, var(--bg-glass) 50%, var(--blue-dim) 100%);
  border-color: var(--border-blue) !important;
  position: relative;
}

.cert-award:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 16px 48px rgba(203, 213, 225, .15) !important;
}

.cert-award::before {
  background: linear-gradient(90deg, transparent, var(--blue), transparent) !important;
}

.cert-award-ribbon {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  padding: 4px 12px;
  border-radius: 50px;
}

.cert-icon-gold {
  background: var(--blue-dim) !important;
  border-color: var(--border-blue) !important;
  font-size: 1.8rem !important;
  width: 60px !important;
  height: 60px !important;
  color: var(--blue) !important;
}

.cert-gold {
  color: var(--blue) !important;
  background: var(--blue-dim) !important;
  border-color: var(--border-blue) !important;
}

.cert-award .cert-org {
  color: var(--blue);
}

.cert-award .cert-name {
  font-size: 1.1rem;
}

/* LIGHT THEME for filters & award */
[data-theme="light"] .cf-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .cf-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .cf-btn.active {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.2) !important;
}

[data-theme="light"] .cert-award {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 60%) !important;
  border-color: #cbd5e1 !important;
}

/* ══════════════════════════════════════════
   CERTIFICATE MODAL
   ══════════════════════════════════════════ */

/* Clickable card */
.cert-card[data-pdf] {
  cursor: pointer;
  user-select: none;
}

.cert-card[data-pdf]:hover .cert-name {
  color: var(--blue);
  transition: color .2s;
}

/* View hint strip at bottom of card */
.cert-card[data-pdf]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.cert-card[data-pdf]:hover::before {
  opacity: 1;
}

.cert-view-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}

.cert-view-hint svg {
  flex-shrink: 0;
}

.cert-card[data-pdf]:hover .cert-view-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ── MODAL BACKDROP ── */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.cert-modal.open {
  opacity: 1;
  pointer-events: all;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── MODAL BOX ── */
.cert-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  height: 90vh;
  max-height: 780px;
  background: var(--bg-2);
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(203, 213, 225, .08);
  transform: translateY(20px) scale(0.97);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-modal.open .cert-modal-box {
  transform: translateY(0) scale(1);
}

/* ── MODAL HEADER ── */
.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.cert-modal-title {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 160px);
}

.cert-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* buttons in header */
.cert-modal-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.cert-modal-download {
  color: var(--blue);
  background: rgba(203, 213, 225, .08);
  border-color: var(--border-blue);
}

.cert-modal-download:hover {
  background: rgba(203, 213, 225, .18);
  border-color: var(--blue);
}

.cert-modal-close {
  color: var(--text-muted);
  background: rgba(255, 255, 255, .04);
}

.cert-modal-close:hover {
  background: rgba(255, 60, 60, .1);
  border-color: rgba(255, 60, 60, .3);
  color: #ff6b6b;
}

/* ── MODAL BODY ── */
.cert-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}

/* loader */
.cert-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: .85rem;
  z-index: 2;
}

.cert-loader-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(203, 213, 225, .15);
  border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cert-modal-loader.hidden {
  display: none;
}

/* iframe */
.cert-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── LIGHT THEME ── */
[data-theme="light"] .cert-modal-backdrop {
  background: rgba(15, 15, 18, .7);
}

[data-theme="light"] .cert-modal-box {
  background: #f5f6f8;
  border-color: rgba(51, 65, 85, .35);
  box-shadow: 0 32px 80px rgba(15, 15, 18, .25);
}

[data-theme="light"] .cert-modal-header {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(51, 65, 85, .15);
}

[data-theme="light"] .cert-modal-body {
  background: #e8f0f8;
}

[data-theme="light"] .cert-modal-close {
  background: rgba(0, 0, 0, .04);
}

[data-theme="light"] .cert-modal-close:hover {
  background: rgba(255, 50, 50, .08);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .cert-modal {
    padding: 0;
    align-items: flex-end;
  }

  .cert-modal-box {
    max-width: 100%;
    width: 100%;
    height: 92vh;
    max-height: none;
    border-radius: 20px 20px 0 0;
    transform: translateY(40px);
  }

  .cert-modal.open .cert-modal-box {
    transform: translateY(0);
  }

  .cert-modal-title {
    font-size: .72rem;
    max-width: calc(100% - 140px);
  }

  .cert-modal-download span {
    display: none;
  }

  .cert-modal-download {
    padding: 7px 10px;
  }

  /* Swipe hint bar on mobile */
  .cert-modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .15);
  }
}

/* ── EDUCATION SECTION ── */
.education-section {
  padding: 100px 0;
}

.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 56px auto 0;
  position: relative;
}

.edu-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 24px;
  position: relative;
}

.edu-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edu-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 2px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(203, 213, 225, .18), var(--blue-glow);
  position: relative;
  z-index: 1;
  transition: transform .3s, box-shadow .3s;

}

.edu-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(203, 213, 225, .22);
  animation: edu-ping 2.8s ease-in-out infinite;
}

@keyframes edu-ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  80% {
    transform: scale(1.42);
    opacity: .35;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.edu-card:hover .edu-icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(203, 213, 225, .4), 0 0 60px rgba(203, 213, 225, .15);
}

.edu-icon-cisco {
  background: rgba(0, 120, 200, .15);
  border-color: rgba(0, 120, 200, .4);
}

.edu-icon-school {
  background: rgba(100, 220, 100, .08);
  border-color: rgba(100, 220, 100, .3);
}

.edu-icon {
  font-size: 1.15rem;
  color: var(--blue);
}

.edu-icon-cisco .edu-icon {
  color: #29a0e0;
}

.edu-icon-school .edu-icon {
  color: #4ade80;
}


/* ── CONNECTOR LINE — animated looping slash ── */
.edu-connector {
  width: 2px;
  flex: 1;
  min-height: 48px;
  margin: 4px 0 0;
  position: relative;
  overflow: hidden;

  /* Base dim track */
  background: linear-gradient(to bottom,
      rgba(203, 213, 225, .18) 0%,
      rgba(203, 213, 225, .08) 100%);
}

/* The running slash/comet — loops forever */
.edu-connector::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(203, 213, 225, .0) 10%,
      rgba(203, 213, 225, .9) 45%,
      rgba(229, 231, 235, 1) 55%,
      rgba(255, 255, 255, .8) 68%,
      rgba(203, 213, 225, .4) 82%,
      transparent 100%);
  border-radius: 2px;
  animation: edu-slash 2.2s cubic-bezier(.4, 0, .6, 1) infinite;
}

/* Second staggered slash for richer feel */
.edu-connector::after {
  content: '';
  position: absolute;
  top: -60%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(203, 213, 225, .35) 40%,
      rgba(229, 231, 235, .55) 60%,
      transparent 100%);
  border-radius: 2px;
  animation: edu-slash 2.2s cubic-bezier(.4, 0, .6, 1) infinite;
  animation-delay: 1.1s;
}

@keyframes edu-slash {
  0% {
    top: -60%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    top: 110%;
    opacity: 0;
  }
}

/* Cisco connector tinted */
.edu-icon-cisco~.edu-connector {
  background: linear-gradient(to bottom,
      rgba(71, 85, 105, .18),
      rgba(71, 85, 105, .06));
}

.edu-icon-cisco~.edu-connector::before {
  background: linear-gradient(to bottom,
      transparent, rgba(71, 85, 105, .0) 10%,
      rgba(71, 85, 105, .9) 45%,
      rgba(229, 231, 235, 1) 55%,
      rgba(255, 255, 255, .75) 68%,
      rgba(71, 85, 105, .3) 82%,
      transparent);
}

.edu-icon-cisco~.edu-connector::after {
  background: linear-gradient(to bottom,
      transparent, rgba(71, 85, 105, .35) 40%,
      rgba(229, 231, 235, .55) 60%,
      transparent);
}

/* School connector tinted */
.edu-icon-school~.edu-connector {
  background: linear-gradient(to bottom,
      rgba(74, 222, 128, .15),
      rgba(74, 222, 128, .04));
}

.edu-body {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.edu-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(203, 213, 225, .04), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}

.edu-card:hover .edu-body::before {
  opacity: 1;
}

.edu-body:hover {
  border-color: var(--border-blue);
  box-shadow: 0 8px 40px rgba(203, 213, 225, .1);
  transform: translateY(-3px);
}

.edu-period {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--blue-light);
  font-weight: 500;
  letter-spacing: .5px;
}

.edu-badge {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.edu-badge-current {
  background: rgba(203, 213, 225, .15);
  border: 1px solid rgba(203, 213, 225, .35);
  color: var(--blue-light);
}

.edu-badge-completed {
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .25);
  color: #4ade80;
}

.edu-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.edu-school {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-school i {
  color: var(--blue);
}

.edu-desc {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.edu-tags span {
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(203, 213, 225, .08);
  border: 1px solid rgba(203, 213, 225, .18);
  color: var(--text-muted);
  font-weight: 500;
  transition: border-color .2s, color .2s;
}

.edu-tags span:hover {
  border-color: rgba(203, 213, 225, .45);
  color: var(--blue-light);
}

/* Light theme */
[data-theme="light"] .edu-body {
  background: rgba(226, 232, 240, 0.55);
  border-color: rgba(51, 65, 85, .14);
  box-shadow: 0 2px 16px rgba(51, 65, 85, .05);
}

[data-theme="light"] .edu-body:hover {
  border-color: rgba(51, 65, 85, .38);
  box-shadow: 0 8px 40px rgba(51, 65, 85, .1);
  background: rgba(226, 232, 240, 0.75);
}

[data-theme="light"] .edu-tags span {
  background: rgba(51, 65, 85, .07);
  border-color: rgba(51, 65, 85, .18);
  color: #1a4a65;
}

[data-theme="light"] .edu-icon-wrap {
  background: rgba(51, 65, 85, .12);
  border-color: rgba(51, 65, 85, .3);
}

[data-theme="light"] .edu-connector {
  background: linear-gradient(to bottom, rgba(51, 65, 85, .4), rgba(51, 65, 85, .08));
}

/* Light theme: style-slide-wrap */
[data-theme="light"] .style-slide-wrap {
  background: #e8f0f8;
  border-color: rgba(51, 65, 85, .12);
}

[data-theme="light"] .style-slide-wrap::before {
  background: linear-gradient(90deg, #e8f0f8, transparent);
}

[data-theme="light"] .style-slide-wrap::after {
  background: linear-gradient(-90deg, #e8f0f8, transparent);
}

[data-theme="light"] .ss-item {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(51, 65, 85, .2);
  color: #0a7ba8;
  box-shadow: 0 2px 8px rgba(51, 65, 85, .06);
}

[data-theme="light"] .ss-item:hover {
  background: rgba(226, 232, 240, 0.7);
  border-color: rgba(51, 65, 85, .45);
  color: #075c80;
}

/* Light theme: terminal stays dark by design */
[data-theme="light"] .v-term-trigger {
  background: rgba(226, 232, 240, 0.8);
  border-color: rgba(51, 65, 85, .3);
  box-shadow: 0 4px 20px rgba(51, 65, 85, .12);
}

[data-theme="light"] .v-term-trigger:hover {
  background: rgba(51, 65, 85, .07);
  border-color: rgba(51, 65, 85, .5);
}

/* ── EDUCATION SKILL LOOP ── */
.edu-skill-loop {
  width: 100%;
  overflow: hidden;
  position: relative;
  filter: saturate(2);

}

/* fade edges */
.edu-skill-loop::before,
.edu-skill-loop::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;

}

.edu-skill-loop::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.edu-skill-loop::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.edu-loop-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: edu-loop-scroll 32s linear infinite;
}

.edu-skill-loop:hover .edu-loop-track {
  animation-play-state: running;
}

@keyframes edu-loop-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.edu-loop-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  margin: 0 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .03em;
  transition: border-color .2s, color .2s, background .2s;
}

.edu-loop-item i {
  color: var(--blue);
  font-size: .9rem;
}

.edu-loop-item:hover {
  border-color: var(--border-blue);
  color: var(--text);
  background: var(--blue-dim);
}

[data-theme="light"] .edu-skill-loop::before {
  background: linear-gradient(90deg, var(--bg), transparent);
}

[data-theme="light"] .edu-skill-loop::after {
  background: linear-gradient(-90deg, var(--bg), transparent);
}

[data-theme="light"] .edu-loop-item {
  background: rgba(255, 255, 255, .75);
  border-color: rgba(51, 65, 85, .15);
  color: #3a6a85;
}

[data-theme="light"] .edu-loop-item:hover {
  background: #fff;
  border-color: rgba(51, 65, 85, .35);
  color: #0a1e2e;
}

/* Mobile */
/* Mobile */
@media (max-width: 600px) {
  .edu-card {
    grid-template-columns: 48px 1fr;
    gap: 0 16px;
  }

  .edu-icon-wrap {
    width: 40px;
    height: 40px;
  }

  .edu-body {
    padding: 20px 18px;
    margin-bottom: 24px;
  }

  .edu-period {
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════════════════════════════════
   HIGH-END UI/UX OVERHAUL — Glassmorphism & Modern Developer Design
   ══════════════════════════════════════════════════════════════════ */

/* Clean glass cards baseline */
.abt-photo-card,
.abt-id-card,
.sk-pill,
.sk-category,
.svc-card,
.proj-card,
.cert-card,
.edu-body,
.writing-card,
.contact-form,
.v-term-win {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--r);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease) !important;
}

.sk-pill:hover,
.svc-card:hover,
.proj-card:hover,
.cert-card:hover,
.writing-card:hover,
.edu-body:hover {
  transform: translateY(-5px);
  border-color: var(--border-blue) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 0 20px rgba(229, 231, 235, 0.12) !important;
}

/* Light Theme Overrides */
[data-theme="light"] .abt-photo-card,
[data-theme="light"] .abt-id-card,
[data-theme="light"] .sk-pill,
[data-theme="light"] .sk-category,
[data-theme="light"] .svc-card,
[data-theme="light"] .proj-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .edu-body,
[data-theme="light"] .writing-card,
[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sk-pill:hover,
[data-theme="light"] .svc-card:hover,
[data-theme="light"] .proj-card:hover,
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .writing-card:hover,
[data-theme="light"] .edu-body:hover {
  border-color: rgba(51, 65, 85, 0.35) !important;
  box-shadow: 0 12px 30px rgba(51, 65, 85, 0.12) !important;
}

[data-theme="light"] .section-title {
  color: #0f172a !important;
}

[data-theme="light"] .hero-desc,
[data-theme="light"] .abt-header-sub,
[data-theme="light"] .section-sub,
[data-theme="light"] .contact-sub {
  color: #475569 !important;
}

[data-theme="light"] .v-term-win {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(51, 65, 85, 0.22) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(51, 65, 85, 0.08) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* ══════════════════════════════════════════════════════════════════
   HEADER DROPDOWN — RECRUITERS & CV
   ══════════════════════════════════════════════════════════════════ */

.nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: rgba(229, 231, 235, 0.12);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  padding: 7px 18px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.nav-dropdown-btn:hover,
.nav-dropdown-wrap:hover .nav-dropdown-btn {
  background: var(--blue);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 231, 235, 0.35);
}

.nav-drop-chevron {
  font-size: .7rem;
  transition: transform .3s var(--ease);
}

.nav-dropdown-menu.open+.nav-dropdown-btn .nav-drop-chevron,
.nav-dropdown-wrap:hover .nav-drop-chevron {
  transform: rotate(-180deg);
}

/* Dropdown Menu Container */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 310px;
  background: #0f172a;
  border: 1px solid rgba(229, 231, 235, 0.25);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(229, 231, 235, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 1005;
}

.nav-dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.nav-drop-status {
  font-size: .74rem;
  font-weight: 600;
  color: #34d399;
  padding: 8px 12px;
  background: rgba(52, 211, 153, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background .2s, transform .2s;
  margin-bottom: 4px;
}

.nav-drop-item:last-child {
  margin-bottom: 0;
}

.nav-drop-item i {
  font-size: 1.15rem;
  color: var(--blue);
  flex-shrink: 0;
}

.nav-drop-item strong {
  display: block;
  font-size: .83rem;
  color: var(--text);
}

.nav-drop-item span {
  display: block;
  font-size: .72rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.nav-drop-item:hover {
  background: var(--blue-dim);
  transform: translateX(3px);
  text-decoration: none;
}

.nav-drop-item.primary {
  background: linear-gradient(135deg, rgba(229, 231, 235, 0.15), rgba(229, 231, 235, 0.15));
  border: 1px solid var(--border-blue);
}

.nav-drop-item.primary i {
  color: #e5e7eb;
}

/* Light Theme Overrides for Dropdown */
[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff;
  border-color: rgba(51, 65, 85, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-drop-item {
  color: #0f172a;
}

[data-theme="light"] .nav-drop-item strong {
  color: #0f172a;
}

/* Mobile HR Menu Block */
.mob-hr-block {
  margin: 10px 14px;
  padding: 14px;
  background: rgba(229, 231, 235, 0.06);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mob-hr-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.mob-hr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
}

.mob-hr-item.primary {
  background: var(--blue);
  color: #0f172a;
  font-weight: 700;
}

.mob-hr-item i {
  font-size: 1rem;
  border: 1px solid var(--border-blue);
  color: var(--blue);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

/* Modal Window */
.hr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10005;
  align-items: center;
  justify-content: center;
}

.hr-modal.open {
  display: flex;
}

.hr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 22, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hr-modal-card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 580px;
  background: var(--bg-2);
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(203, 213, 225, 0.08);
  overflow: hidden;
  animation: hr-pop-in .35s var(--ease);
}

@keyframes hr-pop-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.hr-modal-title {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hr-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color .2s, background .2s;
}

.hr-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hr-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  width: fit-content;
}

.hr-modal-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.hr-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hr-card-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.hr-card-btn i {
  font-size: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
}

.hr-card-btn strong {
  display: block;
  font-size: .85rem;
  color: var(--text);
}

.hr-card-btn span {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.hr-card-btn:hover {
  transform: translateY(-3px);
  border-color: var(--border-blue);
  background: var(--blue-dim);
  text-decoration: none;
}

.hr-card-btn.primary {
  background: var(--bg-card);
  border-color: var(--border-blue);
}

.hr-card-btn.accent {
  background: var(--bg-card);
  border-color: rgba(52, 211, 153, 0.28);
}

.hr-card-btn.accent i {
  color: var(--emerald);
}

.hr-info-row {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

[data-theme="light"] .hr-modal-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .hr-modal-header {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .hr-card-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .hr-card-btn:hover {
  background: #f1f5f9 !important;
  border-color: var(--blue) !important;
}

[data-theme="light"] .hr-card-btn.primary {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .hr-card-btn.accent {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

[data-theme="light"] .hr-modal-title,
[data-theme="light"] .hr-card-btn strong {
  color: #0f172a !important;
}

[data-theme="light"] .hr-modal-desc,
[data-theme="light"] .hr-card-btn span,
[data-theme="light"] .hr-info-row {
  color: #475569 !important;
}

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

  .hr-info-row {
    flex-direction: column;
    gap: 6px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT SECTION — HR ENHANCEMENTS
   ══════════════════════════════════════════════════════════════════ */

.clink-cv {
  color: var(--blue) !important;
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--blue-dim);
  transition: background .25s, border-color .25s !important;
  font-weight: 600;
}

.clink-cv:hover {
  background: rgba(229, 231, 235, 0.2) !important;
  border-color: var(--blue) !important;
}

.contact-hr-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.contact-hr-note>i {
  color: var(--emerald);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-hr-note strong {
  display: block;
  font-size: .88rem;
  color: var(--emerald);
  margin-bottom: 3px;
}

.contact-hr-note span {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form select dropdown */
.fg-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color .25s, box-shadow .25s;
}

.fg-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(229, 231, 235, 0.15);
}

.fg-select option {
  background: #0f172a;
  color: #f8fafc;
}

[data-theme="light"] .fg-select {
  background-color: #ffffff;
}

[data-theme="light"] .fg-select option {
  background: #ffffff;
  color: #0f172a;
}

/* ══════════════════════════════════════════════════════════════════
   SMALL FLOATING HR / CV TRIGGER (STACKED ABOVE TERMINAL BUTTON)
   ══════════════════════════════════════════════════════════════════ */

.quick-hr-float {
  position: fixed;
  bottom: 84px;
  left: 28px;
  z-index: 9995;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(229, 231, 235, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.quick-hr-float i {
  font-size: .88rem;
  color: var(--blue);
}

.quick-hr-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--blue);
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(229, 231, 235, 0.45);
}

.quick-hr-float:hover i {
  color: #0f172a;
}

[data-theme="light"] .quick-hr-float {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(51, 65, 85, 0.3);
  color: #334155;
  box-shadow: 0 6px 20px rgba(51, 65, 85, 0.18);
}

[data-theme="light"] .quick-hr-float i {
  color: #334155;
}

[data-theme="light"] .quick-hr-float:hover {
  background: #334155;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(51, 65, 85, 0.35);
}

[data-theme="light"] .quick-hr-float:hover i {
  color: #ffffff;
}

@media (max-width: 600px) {
  .quick-hr-float {
    bottom: 68px;
    left: 14px;
    padding: 5px 11px;
    font-size: .72rem;
  }

  .v-term-trigger {
    bottom: 14px;
    left: 14px;
    padding: 7px 11px;
    font-size: .76rem;
  }

  #themeToggle {
    bottom: 68px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: .88rem;
  }

  #btt {
    bottom: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   COMPREHENSIVE LIGHT MODE COLOR FIXES & OVERRIDES
   ══════════════════════════════════════════════════════════════════ */

[data-theme="light"] #particles-canvas {
  mix-blend-mode: multiply;
  opacity: 0.55;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 90% 55% at 8% 15%, rgba(51, 65, 85, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 92% 78%, rgba(100, 116, 139, 0.04) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 52% 42%, rgba(5, 150, 105, 0.03) 0%, transparent 65%);
}

[data-theme="light"] nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .v-term-trigger {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(51, 65, 85, 0.3);
  color: #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .v-term-win {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(51, 65, 85, 0.22) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(51, 65, 85, 0.08) !important;
}

[data-theme="light"] .v-term-bar {
  background: rgba(0, 0, 0, 0.02) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .v-term-title {
  color: #475569 !important;
}

[data-theme="light"] .v-term-full-body,
[data-theme="light"] .v-term-body {
  background: transparent !important;
  color: #0f172a !important;
}

[data-theme="light"] .v-term-chips {
  background: rgba(0, 0, 0, 0.02) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .v-term-chip {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.18) !important;
  color: #334155 !important;
}

[data-theme="light"] .v-term-chip:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

[data-theme="light"] .v-term-input-row {
  background: rgba(0, 0, 0, 0.02) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
}


[data-theme="light"] .hr-card-btn span {
  color: #64748b;
}

[data-theme="light"] .hr-card-btn:hover {
  background: #f8fafc;
  border-color: #334155;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(51, 65, 85, 0.12);
}

[data-theme="light"] .hr-card-btn.primary {
  background: #ffffff;
  border: 1.5px solid #334155;
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.1);
}

[data-theme="light"] .hr-card-btn.primary i {
  color: #334155;
}

[data-theme="light"] .hr-card-btn.primary strong {
  color: #334155;
}

[data-theme="light"] .hr-card-btn.primary span {
  color: #1e293b;
}

[data-theme="light"] .hr-card-btn.accent {
  background: #ffffff;
  border: 1.5px solid #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.1);
}

[data-theme="light"] .hr-card-btn.accent i {
  color: #16a34a;
}

[data-theme="light"] .hr-card-btn.accent strong {
  color: #15803d;
}

[data-theme="light"] .hr-card-btn.accent span {
  color: #166534;
}

[data-theme="light"] .hr-info-row {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .cert-modal-card {
  background: #ffffff;
  border-color: rgba(51, 65, 85, 0.25);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .cert-modal-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .cert-modal-title {
  color: #0f172a;
}



/* ══════════════════════════════════════════════════════════════════
   PROJECT MEDIA LIGHTBOX + ROBOT-RUN LOADER
   ══════════════════════════════════════════════════════════════════ */
.proj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.5px;
  position: relative;
}

.logo-wave-icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  margin-right: 2px;
}

.logo-wave-icon span {
  width: 2.5px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue-glow);
  animation: logo-wave-pulse 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.09s);
  transform-origin: center center;
}

.logo-wave-icon span:nth-child(1) {
  height: 7px;
  opacity: .45;
}

.logo-wave-icon span:nth-child(2) {
  height: 13px;
  opacity: .75;
}

.logo-wave-icon span:nth-child(3) {
  height: 20px;
  opacity: 1;
  box-shadow: 0 0 10px var(--blue);
}

.logo-wave-icon span:nth-child(4) {
  height: 13px;
  opacity: .75;
}

.logo-wave-icon span:nth-child(5) {
  height: 7px;
  opacity: .45;
}

@keyframes logo-wave-pulse {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.22);
  }
}

.logo-b {
  color: var(--blue);
}

.proj-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.proj-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.proj-lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  max-height: 82vh;
  background: var(--bg-2);
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(229, 231, 235, .08);
  transform: translateY(20px) scale(0.97);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.proj-lightbox.open .proj-lightbox-panel {
  transform: translateY(0) scale(1);
}

.proj-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s, border-color .2s, color .2s;
}

.proj-lightbox-close:hover {
  background: rgba(255, 60, 60, .1);
  border-color: rgba(255, 60, 60, .3);
  color: #ff6b6b;
}

.proj-lightbox-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding-right: 40px;
}

.proj-lightbox-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 60vh;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-lightbox-media img,
.proj-lightbox-media video {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.proj-lightbox-media iframe {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  border: 0;
  display: block;
}

.proj-lightbox-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  padding: 40px 24px;
}

.proj-lightbox-fallback i {
  font-size: 2rem;
  color: var(--text-muted);
  opacity: .6;
}

/* ── Robot-run loading animation ── */
.robot-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 20px;
}

.robot-run {
  font-size: 2.4rem;
  color: var(--blue);
  animation: robot-bounce .5s ease-in-out infinite alternate, robot-lean .5s ease-in-out infinite alternate;
  transform-origin: 50% 90%;
}

.robot-ground {
  width: 92px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--border-blue), transparent);
  position: relative;
  overflow: hidden;
}

.robot-ground::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
      var(--text-muted) 0 6px,
      transparent 6px 16px);
  opacity: .35;
  animation: robot-track 0.45s linear infinite;
}

.robot-loader-text {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .3px;
}

@keyframes robot-bounce {
  0% {
    transform: translateY(0) rotate(-4deg);
  }

  100% {
    transform: translateY(-10px) rotate(4deg);
  }
}

@keyframes robot-lean {
  0% {
    transform: translateX(-6px);
  }

  100% {
    transform: translateX(6px);
  }
}

@keyframes robot-track {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .robot-run {
    animation: none;
  }

  .robot-ground::before {
    animation: none;
  }
}

[data-theme="light"] .proj-lightbox-backdrop {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .proj-lightbox-panel {
  background: #ffffff;
  border-color: rgba(51, 65, 85, 0.25);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

@media (max-width: 640px) {
  .proj-lightbox-panel {
    padding: 16px;
    max-height: 88vh;
  }

  .proj-lightbox-media {
    aspect-ratio: 4 / 3;
  }
}

/* ══════════════════════════════════════════════════════════════════
   WAVEFORM PRELOADER — Audio-bar loading animation
   ══════════════════════════════════════════════════════════════════ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s cubic-bezier(0.16, 1, 0.3, 1), visibility .4s ease;
}

#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.pre-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pre-status-text {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 2px;
  color: var(--text-muted, #9a9ca3);
  text-transform: uppercase;
  transition: color 0.3s;
}

/* Progress Bar & Percentage Pill for Facebook/App-Style Data Wait Preloader */
.pre-progress-container {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.pre-progress-track {
  width: 100%;
  height: 4px;
  background: var(--blue-dim, rgba(229, 231, 235, 0.12));
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.pre-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue, #e5e7eb), var(--blue-light, #ffffff));
  border-radius: 4px;
  transition: width 0.25s ease-out;
  box-shadow: var(--blue-glow, 0 0 16px rgba(229, 231, 235, 0.4));
}

.pre-progress-pct {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue, #e5e7eb);
  letter-spacing: 1px;
}

.pre-wave-container {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 90px;
}

.pre-wave-bar {
  width: 3px;
  border-radius: 3px;
  background: var(--blue, #e5e7eb);
  animation: waveform-pulse 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
  transform-origin: center center;
}

/* Bell-curve height distribution: tallest at center bar 7 */
.pre-wave-bar:nth-child(1) {
  height: 8px;
  opacity: .25;
}

.pre-wave-bar:nth-child(2) {
  height: 16px;
  opacity: .35;
}

.pre-wave-bar:nth-child(3) {
  height: 28px;
  opacity: .48;
}

.pre-wave-bar:nth-child(4) {
  height: 44px;
  opacity: .60;
  box-shadow: 0 0 6px var(--blue-dim, rgba(229, 231, 235, 0.3));
}

.pre-wave-bar:nth-child(5) {
  height: 58px;
  opacity: .72;
  box-shadow: 0 0 8px var(--blue-dim, rgba(229, 231, 235, 0.4));
}

.pre-wave-bar:nth-child(6) {
  height: 70px;
  opacity: .85;
  box-shadow: 0 0 10px var(--blue-dim, rgba(229, 231, 235, 0.5));
}

.pre-wave-bar:nth-child(7) {
  height: 84px;
  opacity: 1;
  box-shadow: var(--blue-glow, 0 0 18px #e5e7eb);
}

.pre-wave-bar:nth-child(8) {
  height: 70px;
  opacity: .85;
  box-shadow: 0 0 10px var(--blue-dim, rgba(229, 231, 235, 0.5));
}

.pre-wave-bar:nth-child(9) {
  height: 58px;
  opacity: .72;
  box-shadow: 0 0 8px var(--blue-dim, rgba(229, 231, 235, 0.4));
}

.pre-wave-bar:nth-child(10) {
  height: 44px;
  opacity: .60;
  box-shadow: 0 0 6px var(--blue-dim, rgba(229, 231, 235, 0.3));
}

.pre-wave-bar:nth-child(11) {
  height: 28px;
  opacity: .48;
}

.pre-wave-bar:nth-child(12) {
  height: 16px;
  opacity: .35;
}

.pre-wave-bar:nth-child(13) {
  height: 8px;
  opacity: .25;
}

@keyframes waveform-pulse {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pre-wave-bar {
    animation: none;
  }
}

/* ── DOCKING FLIGHT — the preloader waveform detaches, shrinks and
   flies to its exact resting spot on the navbar logo, then hands off
   to it. Position/scale are computed in JS (script.js) from the two
   elements' real on-screen rects, so it lands pixel-perfect at any
   viewport size. ── */
#preloader.pw-exiting {
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1) .2s, visibility .55s ease .2s;
}

#preloader.pw-exiting .pre-status-text,
#preloader.pw-exiting .pre-progress-container {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}

.pre-wave-container.pw-flying {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  margin: 0;
  transition: transform .68s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
  pointer-events: none;
}

.pre-wave-container.pw-flying.pw-landed {
  opacity: 0;
  transition: transform .68s cubic-bezier(.16, 1, .3, 1), opacity .22s ease .46s;
}

@keyframes nav-logo-dock {
  0% {
    filter: drop-shadow(0 0 0 rgba(229, 231, 235, 0));
    transform: scale(1);
  }

  35% {
    filter: drop-shadow(0 0 12px rgba(229, 231, 235, .8));
    transform: scale(1.14);
  }

  100% {
    filter: drop-shadow(0 0 0 rgba(229, 231, 235, 0));
    transform: scale(1);
  }
}

.nav-brand-logo.pw-dock-pulse {
  animation: nav-logo-dock .5s cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .pre-wave-container.pw-flying {
    transition: opacity .3s ease;
    transform: none !important;
  }

  .nav-brand-logo.pw-dock-pulse {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   CREATIVE NAVBAR BRAND AUDIO VISUALIZER LOGO
   ══════════════════════════════════════════════════════════════════ */
.nav-brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  height: 36px;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-decoration: none;
  box-shadow: none !important;
  transition: transform .35s ease;
}

.nav-brand-logo:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-2px) scale(1.08);
}

.nav-brand-visualizer {
  display: flex;
  align-items: center;
  gap: 3.5px;
  height: 22px;
  z-index: 2;
}

.nav-brand-visualizer span {
  width: 2.8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e5e7eb, #e5e7eb);
  box-shadow: 0 0 6px rgba(229, 231, 235, 0.6);
  animation: nav-bar-equalize 1.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.08s);
  transform-origin: center center;
}

/* Symmetrical audio equalization heights */
.nav-brand-visualizer span:nth-child(1),
.nav-brand-visualizer span:nth-child(9) {
  height: 6px;
  opacity: 0.45;
}

.nav-brand-visualizer span:nth-child(2),
.nav-brand-visualizer span:nth-child(8) {
  height: 11px;
  opacity: 0.65;
}

.nav-brand-visualizer span:nth-child(3),
.nav-brand-visualizer span:nth-child(7) {
  height: 16px;
  opacity: 0.82;
}

.nav-brand-visualizer span:nth-child(4),
.nav-brand-visualizer span:nth-child(6) {
  height: 20px;
  opacity: 0.95;
}

.nav-brand-visualizer span:nth-child(5) {
  height: 24px;
  opacity: 1;
  background: #ffffff;
  box-shadow: 0 0 10px #e5e7eb;
}

@keyframes nav-bar-equalize {
  0% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.25);
  }

  100% {
    transform: scaleY(0.9);
  }
}

.nav-brand-logo:hover .nav-brand-visualizer span {
  animation-duration: 0.6s;
  box-shadow: 0 0 10px #e5e7eb;
}

.nav-brand-core {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(229, 231, 235, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.nav-brand-logo:hover .nav-brand-core {
  opacity: 1;
}

.nav-brand-core {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(229, 231, 235, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.nav-brand-logo:hover .nav-brand-core {
  opacity: 1;
}

/* UNIVERSAL SELECT DROPDOWN OPTIONS DARK MODE HIGH CONTRAST FIX */
select, .form-select, .fg-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px !important;
  cursor: pointer;
}

[data-theme="dark"] select option,
[data-theme="dark"] .form-select option,
[data-theme="dark"] .fg-select option {
  background-color: #18181c !important;
  color: #f8fafc !important;
  padding: 10px 14px;
}

[data-theme="light"] select option,
[data-theme="light"] .form-select option,
[data-theme="light"] .fg-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 10px 14px;
}

select option:checked,
.form-select option:checked,
.fg-select option:checked {
  background-color: #2563eb !important;
  color: #ffffff !important;
}