:root {
  --bg: #07080c;
  --bg-elev: rgba(20, 23, 32, 0.7);
  --bg-elev-solid: #14171e;
  --bg-alt: #0a0c12;
  --bg-glass: rgba(18, 21, 30, 0.55);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #eef1f7;
  --text-soft: #c8cfdd;
  --muted: #8b94a7;
  --muted-2: #6b7385;
  --accent: #8b9dff;
  --accent-strong: #6a82ff;
  --accent-violet: #b388ff;
  --accent-mint: #5be0c4;
  --accent-glow: rgba(139, 157, 255, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --maxw: 1180px;
  --transition: 260ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --transition-fast: 160ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --grid-line: rgba(139, 157, 255, 0.04);
  --section-tint: rgba(139, 157, 255, 0.025);
  --aurora-1: rgba(139, 157, 255, 0.55);
  --aurora-2: rgba(179, 136, 255, 0.45);
  --aurora-3: rgba(91, 224, 196, 0.3);
  --aurora-opacity: 0.4;
  --aurora-blur: 90px;
  --nav-bg: rgba(7, 8, 12, 0.65);
  --selection-color: #0a0b0f;
  --gradient-title-1: #ffffff;
  --gradient-title-2: #afb7c9;
  --shadow-card: rgba(0, 0, 0, 0.4);
  --shadow-rail: rgba(0, 0, 0, 0.4);
  --track-bg: rgba(255, 255, 255, 0.05);
  --tag-bg: rgba(255, 255, 255, 0.02);
  --input-bg: rgba(255, 255, 255, 0.03);
  --focus-ring: rgba(139, 157, 255, 0.15);
}

/* ───── Light theme ───── */
:root[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-elev: rgba(255, 255, 255, 0.85);
  --bg-elev-solid: #ffffff;
  --bg-alt: #eef0f8;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border: rgba(20, 24, 50, 0.08);
  --border-strong: rgba(20, 24, 50, 0.12);
  --text: #15172b;
  --text-soft: #2e3155;
  --muted: #4a4f6a;
  --muted-2: #5f6582;
  --accent: #3d52eb;
  --accent-strong: #2a3ed1;
  --accent-violet: #7740f0;
  --accent-mint: #0ba379;
  --accent-glow: rgba(61, 82, 235, 0.22);

  --grid-line: rgba(91, 109, 255, 0.06);
  --section-tint: rgba(91, 109, 255, 0.03);
  --aurora-1: rgba(91, 109, 255, 0.35);
  --aurora-2: rgba(139, 92, 255, 0.3);
  --aurora-3: rgba(26, 184, 150, 0.22);
  --aurora-opacity: 0.55;
  --aurora-blur: 110px;
  --nav-bg: rgba(245, 246, 251, 0.75);
  --selection-color: #ffffff;
  --gradient-title-1: #15172b;
  --gradient-title-2: #4a4f73;
  --shadow-card: rgba(20, 24, 50, 0.08);
  --shadow-rail: rgba(20, 24, 50, 0.1);
  --track-bg: rgba(20, 24, 50, 0.06);
  --tag-bg: rgba(255, 255, 255, 0.7);
  --input-bg: rgba(255, 255, 255, 0.85);
  --focus-ring: rgba(91, 109, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 320ms ease, color 320ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--selection-color);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* ───── Skip to content (a11y) ───── */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--accent);
  color: var(--selection-color);
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--transition-fast);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ───── Background atmosphere ───── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: -2;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--aurora-blur));
  opacity: var(--aurora-opacity);
  animation: float 18s ease-in-out infinite;
}

.bg-aurora__blob--1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--aurora-1), transparent 70%);
  top: -180px;
  left: -120px;
}

.bg-aurora__blob--2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--aurora-2), transparent 70%);
  top: 30%;
  right: -160px;
  animation-delay: -6s;
}

.bg-aurora__blob--3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--aurora-3), transparent 70%);
  bottom: -100px;
  left: 30%;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ───── Active top nav state ───── */
.nav__links a.is-active {
  color: var(--text);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ───── Mobile hamburger toggle ───── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-toggle:hover {
  border-color: var(--accent);
}

.mobile-toggle__bar {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ───── Mobile Navigation Drawer ───── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  transition: visibility var(--transition-fast);
}

.mobile-drawer.is-open {
  visibility: visible;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 82vw);
  background: var(--bg-elev-solid);
  border-left: 1px solid var(--border-strong);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 24px 20px;
  z-index: 1;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.mobile-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-drawer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer__links a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.mobile-drawer__links a:hover,
.mobile-drawer__links a.is-active {
  color: var(--accent);
  background: rgba(139, 157, 255, 0.08);
}

.mobile-drawer__footer {
  margin-top: auto;
  padding-top: 20px;
}

.mobile-drawer__cta {
  width: 100%;
}

/* ───── Top nav ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__inner > nav {
  min-width: 0;
}

.nav__logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent), 0 0 4px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ───── Theme toggle ───── */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle__icon {
  position: absolute;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 260ms ease;
}

.theme-toggle__icon--sun {
  transform: rotate(-90deg) scale(0.4);
  opacity: 0;
}

.theme-toggle__icon--moon {
  transform: rotate(0) scale(1);
  opacity: 1;
}

:root[data-theme="light"] .theme-toggle__icon--sun {
  transform: rotate(0) scale(1);
  opacity: 1;
}

:root[data-theme="light"] .theme-toggle__icon--moon {
  transform: rotate(90deg) scale(0.4);
  opacity: 0;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  color: #ffffff;
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn--primary > * {
  position: relative;
  z-index: 1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px var(--accent-glow);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--ghost {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139, 157, 255, 0.08);
  transform: translateY(-2px);
}

/* ───── Hero ───── */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 90px) 0 clamp(72px, 10vw, 110px);
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.avatar {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 44px rgba(139, 157, 255, 0.22);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-violet), var(--accent-mint), var(--accent));
  animation: spin-slow 12s linear infinite;
  z-index: 0;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
  z-index: 0;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elev-solid);
}

.avatar__fallback {
  position: relative;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elev-solid), var(--bg-alt));
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 1px;
  place-items: center;
}

.avatar__status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5ee0a8;
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(94, 224, 168, 0.7);
  z-index: 3;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 13.5px;
  margin: 0 0 22px;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.6vw, 62px);
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hl {
  position: relative;
  display: inline;
  padding: 0;
  font-weight: 700;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hl--blue {
  background-image: linear-gradient(135deg, #8b9dff 0%, #6a82ff 100%);
  filter: drop-shadow(0 2px 10px rgba(139, 157, 255, 0.25));
}

.hl--mint {
  background-image: linear-gradient(135deg, #5be0c4 0%, #3ecda8 100%);
  filter: drop-shadow(0 2px 10px rgba(91, 224, 196, 0.2));
}

.hl--violet {
  background-image: linear-gradient(135deg, #b388ff 0%, #9b68ff 100%);
  filter: drop-shadow(0 2px 10px rgba(179, 136, 255, 0.25));
}

:root[data-theme="light"] .hl--blue {
  background-image: linear-gradient(135deg, #2a3ed1 0%, #152288 100%);
  filter: none;
}

:root[data-theme="light"] .hl--mint {
  background-image: linear-gradient(135deg, #098e69 0%, #055f46 100%);
  filter: none;
}

:root[data-theme="light"] .hl--violet {
  background-image: linear-gradient(135deg, #6431de 0%, #461cb2 100%);
  filter: none;
}

.hero__tagline {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  max-width: 100%;
}

.chip svg {
  color: var(--accent);
}

.chip--ok {
  color: #5ee0a8;
  border-color: rgba(94, 224, 168, 0.32);
  background: rgba(94, 224, 168, 0.1);
}

:root[data-theme="light"] .chip--ok {
  color: #0a7d5a;
  border-color: rgba(10, 125, 90, 0.28);
  background: rgba(10, 125, 90, 0.08);
}

:root[data-theme="light"] .chip--ok .chip__dot {
  background: #0a7d5a;
  box-shadow: 0 0 8px rgba(10, 125, 90, 0.45);
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ee0a8;
  box-shadow: 0 0 10px rgba(94, 224, 168, 0.7);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__scroll {
  margin-top: 70px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  position: relative;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(20px); opacity: 0; }
}

/* ───── Sections ───── */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
  border-top: 1px solid var(--border);
}

.section--alt {
  background: linear-gradient(180deg, transparent, var(--section-tint) 50%, transparent);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.section__eyebrow span {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(139, 157, 255, 0.1);
  border: 1px solid rgba(139, 157, 255, 0.25);
  border-radius: 4px;
  font-size: 10px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--gradient-title-1) 0%, var(--gradient-title-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 0 48px;
}

/* ───── About ───── */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.about {
  color: var(--text-soft);
  font-size: 16.5px;
}

.about__lead {
  font-size: 18.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 18px;
}

.about p {
  margin: 0 0 18px;
}

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

.about__cta {
  margin-top: 24px;
}

/* ───── Security Banner in About ───── */
.about__security-banner {
  margin: 22px 0 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(139, 157, 255, 0.08), rgba(91, 224, 196, 0.05));
  border: 1px solid rgba(139, 157, 255, 0.28);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about__security-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 157, 255, 0.15);
  border: 1px solid rgba(139, 157, 255, 0.3);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about__security-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.about__security-text p {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: var(--text-soft) !important;
  line-height: 1.6 !important;
}

:root[data-theme="light"] .about__security-banner {
  background: linear-gradient(135deg, rgba(61, 82, 235, 0.06), rgba(11, 163, 121, 0.04));
  border-color: rgba(61, 82, 235, 0.22);
  border-left-color: var(--accent);
}

/* ───── Why Work With Me ───── */
.why-me {
  margin-top: 52px;
  padding: 32px 30px;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.why-me::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.why-me__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.why-me__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.why-me__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}

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

.why-me__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why-me__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 157, 255, 0.12);
  border: 1px solid rgba(139, 157, 255, 0.25);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-me__item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.why-me__item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.quick-facts {
  list-style: none;
  margin: 0;
  padding: 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quick-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.quick-facts li:last-child {
  border-bottom: none;
}

.quick-facts span {
  color: var(--muted);
  font-size: 13px;
}

.quick-facts strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

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

.stat {
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1;
}

.stat__label {
  color: var(--muted);
  font-size: 14px;
}

/* ───── Card glow (mouse spotlight) ───── */
.card-glow {
  position: relative;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(139, 157, 255, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}

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

.card-glow > * {
  position: relative;
  z-index: 2;
}

/* ───── Timeline ───── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 220px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(139, 157, 255, 0.1));
  opacity: 0.4;
}

.timeline__item {
  position: relative;
  padding: 0 0 36px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 213px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 157, 255, 0.15), 0 0 20px var(--accent-glow);
  z-index: 1;
}

.timeline__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
}

.timeline__date {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.timeline__location {
  color: var(--muted-2);
  font-size: 13px;
}

.timeline__body {
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition);
}

.timeline__body:hover {
  border-color: rgba(139, 157, 255, 0.3);
  transform: translateY(-2px);
}

.timeline__head {
  margin-bottom: 12px;
}

.timeline__role {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.timeline__company {
  margin: 0;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}

.timeline__company a {
  transition: color var(--transition-fast);
}

.timeline__company a:hover {
  color: var(--accent-violet);
}

.timeline__desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

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

.timeline__tags span {
  font-size: 11.5px;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--tag-bg);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ───── Skills (progress bars) ───── */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.skill-bar {
  position: relative;
}

.skill-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.skill-bar__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.skill-bar__pct {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.skill-bar__track {
  height: 6px;
  background: var(--track-bg);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.skill-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-violet));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.skill-bar.is-visible .skill-bar__fill {
  width: var(--pct);
}

.skill-bar__fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  border-radius: 999px;
}

/* ───── Services ───── */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service {
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.service:hover {
  border-color: rgba(139, 157, 255, 0.3);
  transform: translateY(-4px);
}

.service__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 157, 255, 0.18), rgba(179, 136, 255, 0.1));
  border: 1px solid rgba(139, 157, 255, 0.25);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.service__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.service__desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.service__tags span {
  font-size: 11px;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(139, 157, 255, 0.05);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

:root[data-theme="light"] .service__tags span {
  background: rgba(61, 82, 235, 0.06);
  border-color: rgba(61, 82, 235, 0.15);
  color: var(--text-soft);
}

.service__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 13.5px;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.service__link:hover {
  color: var(--accent-violet);
  transform: translateX(4px);
}

/* ───── Security Commitment Banner in Services ───── */
.services-guarantee {
  margin-top: 36px;
  padding: 18px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.services-guarantee__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.services-guarantee__lead svg {
  color: var(--accent);
  flex-shrink: 0;
}

.services-guarantee__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-guarantee__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  background: rgba(139, 157, 255, 0.08);
  border: 1px solid rgba(139, 157, 255, 0.2);
  padding: 4px 11px;
  border-radius: 999px;
}

.services-guarantee__pill svg {
  color: #5ee0a8;
}

:root[data-theme="light"] .services-guarantee__pill svg {
  color: #0ba379;
}

/* ───── Projects ───── */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 157, 255, 0.3);
}

.card__thumb {
  height: 140px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(179, 136, 255, 0.2), transparent 60%),
    var(--bg-alt);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.card__thumb svg {
  position: relative;
  stroke: var(--accent);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(139, 157, 255, 0.18);
  border: 1px solid rgba(139, 157, 255, 0.35);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.card__badge--featured {
  background: linear-gradient(135deg, rgba(139, 157, 255, 0.3), rgba(179, 136, 255, 0.25));
  border-color: rgba(139, 157, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 157, 255, 0.3);
}

:root[data-theme="light"] .card__badge--featured {
  background: linear-gradient(135deg, rgba(61, 82, 235, 0.15), rgba(100, 49, 222, 0.12));
  border-color: rgba(61, 82, 235, 0.4);
  color: var(--accent);
  box-shadow: none;
}

.card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ee0a8;
  box-shadow: 0 0 8px rgba(94, 224, 168, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.card__status-dot--blue {
  background: #6a82ff;
  box-shadow: 0 0 8px rgba(106, 130, 255, 0.6);
}

.card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

.card__desc {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

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

.card__tags span {
  font-size: 11.5px;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--tag-bg);
  font-family: var(--font-mono);
}

.card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 13.5px;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link:hover {
  color: var(--accent-violet);
  transform: translateX(4px);
}

.card__link--demo {
  color: var(--accent);
  font-weight: 600;
}

.card__link--demo svg {
  transition: transform var(--transition-fast);
}

.card__link--demo:hover svg {
  transform: translateX(3px);
}

/* ───── Education strip ───── */
.edu-strip {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.edu-strip__head {
  margin-bottom: 36px;
}

.edu-strip__eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
}

.edu-strip__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.edu-col__title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edu-list--compact {
  gap: 8px;
}

.edu-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.edu-item--row {
  font-size: 14px;
  color: var(--text-soft);
  padding: 12px 16px;
}

.edu-item__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.edu-item__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(139, 157, 255, 0.12);
  border: 1px solid rgba(139, 157, 255, 0.3);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

:root[data-theme="light"] .edu-item__badge {
  background: rgba(61, 82, 235, 0.08);
  border-color: rgba(61, 82, 235, 0.25);
  color: #3d52eb;
}

.edu-item__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.edu-item__org {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.edu-item__date {
  margin: 0;
  color: var(--muted-2);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

/* ───── Verified Certifications ───── */
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  background: rgba(139, 157, 255, 0.05);
}

.cert-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.cert-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.cert-card__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(94, 224, 168, 0.12);
  border: 1px solid rgba(94, 224, 168, 0.3);
  color: #5ee0a8;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

:root[data-theme="light"] .cert-card__badge {
  background: rgba(11, 163, 121, 0.1);
  border-color: rgba(11, 163, 121, 0.25);
  color: #0ba379;
}

.cert-card__meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.cert-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cert-card__skills span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-soft);
  background: rgba(139, 157, 255, 0.06);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
}

:root[data-theme="light"] .cert-card__skills span {
  background: rgba(61, 82, 235, 0.05);
  border-color: rgba(61, 82, 235, 0.15);
}

.cert-card--anthropic {
  border-left-color: #e59344;
  background: linear-gradient(135deg, rgba(229, 147, 68, 0.08), var(--bg-glass));
}

.cert-card__badge--anthropic {
  background: rgba(229, 147, 68, 0.16);
  border-color: rgba(229, 147, 68, 0.38);
  color: #f59e0b;
}

:root[data-theme="light"] .cert-card--anthropic {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.06), var(--bg-glass));
  border-left-color: #d97706;
}

:root[data-theme="light"] .cert-card__badge--anthropic {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
  color: #b45309;
}

/* ───── Contact ───── */
.contact {
  padding: clamp(64px, 9vw, 110px) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

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

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-info__item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  background: rgba(139, 157, 255, 0.06);
}

.contact-info__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 157, 255, 0.18), rgba(179, 136, 255, 0.1));
  border: 1px solid rgba(139, 157, 255, 0.25);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info__label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info__value {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  word-break: break-word;
}

.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.field input,
.field textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  transition: all var(--transition-fast);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev-solid);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn--copied {
  border-color: #5ee0a8 !important;
  color: #5ee0a8 !important;
  background: rgba(94, 224, 168, 0.12) !important;
}

:root[data-theme="light"] .btn--copied {
  border-color: #0ba379 !important;
  color: #0ba379 !important;
  background: rgba(11, 163, 121, 0.1) !important;
}

.form-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: #5ee0a8;
  min-height: 18px;
}

:root[data-theme="light"] .form-note {
  color: #0a7d5a;
}

.form-note.is-error {
  color: #ff8b8b;
}

:root[data-theme="light"] .form-note.is-error {
  color: #c63838;
}

/* ───── Footer ───── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer__stack {
  font-family: var(--font-mono);
  color: var(--muted-2) !important;
}

/* ───── Responsive ───── */

/* Prevent overflow on very wide content (long URLs in form, etc.) */
.contact-info__value,
.timeline__company,
.skill-bar__name,
.field input,
.field textarea {
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Allow grid/flex children to shrink below their content size — fixes 320px overflow */
.about-grid > *,
.skills > *,
.services > *,
.projects > *,
.stats > *,
.timeline__item > *,
.contact-grid > *,
.contact-info > *,
.form-row > * {
  min-width: 0;
}

/* Container guard at every breakpoint */
.container,
.timeline__body,
.service,
.card,
.why-me,
.contact-form,
.contact-info__item,
.stat,
.quick-facts {
  max-width: 100%;
}



/* Medium desktops & tablets landscape */
@media (max-width: 1024px) {
  .skills {
    gap: 28px 36px;
  }
}

@media (max-width: 960px) {
  .nav__links {
    gap: 22px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .skills {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets */
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nav__inner {
    height: 64px;
  }
}

@media (max-width: 820px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline::before {
    left: 7px;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 32px;
  }
  .timeline__item::before {
    left: 0;
  }
  .timeline__meta {
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .why-me__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-facts {
    padding: 18px;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .nav__cta,
  .nav__links {
    display: none !important;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav__logo {
    font-size: 15px;
  }
  .projects,
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  .stat {
    padding: 22px 20px;
  }
  .stat__num {
    font-size: 34px;
  }
  .timeline__body {
    padding: 20px 22px;
  }
  .service {
    padding: 24px;
  }
  .card {
    padding: 22px;
  }
  .contact-form {
    padding: 24px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .why-me {
    padding: 22px 18px;
    margin-top: 36px;
  }
  .why-me__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .quick-facts li {
    padding: 10px 0;
    gap: 16px;
  }
  .quick-facts span,
  .quick-facts strong {
    font-size: 13px;
  }
  .card__thumb {
    height: 120px;
  }
  .hero__meta {
    gap: 6px;
  }
  .hero__cta {
    width: 100%;
    flex-direction: column;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero__scroll {
    margin-top: 48px;
  }
  .nav__links {
    gap: 14px;
  }
  .contact-info__item {
    padding: 14px 16px;
    gap: 12px;
  }
  .contact-info__icon {
    width: 34px;
    height: 34px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .nav__logo {
    font-size: 14px;
  }
  .chip {
    font-size: 11.5px;
    padding: 5px 10px;
  }
  .timeline__item {
    padding-left: 26px;
  }
  .timeline::before {
    left: 5px;
  }
  .timeline__item::before {
    width: 13px;
    height: 13px;
  }
  .timeline__body {
    padding: 18px;
  }
  .timeline__role {
    font-size: 17px;
  }
  .service__title,
  .card__title {
    font-size: 17px;
  }
  .contact-form {
    padding: 20px;
  }
  .field input,
  .field textarea {
    font-size: 14px;
    padding: 11px 13px;
  }
  .footer p {
    font-size: 12px;
  }
}

/* Tiny phones (≤380px — older Android, foldable inner displays) */
@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }
  .avatar {
    width: 96px;
    height: 96px;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero__eyebrow {
    font-size: 11.5px;
    padding: 5px 11px;
    letter-spacing: 0;
  }
  .hero__title {
    font-size: 24px;
    line-height: 1.18;
    margin-bottom: 16px;
  }
  .hero__tagline {
    font-size: 13.5px;
    margin-bottom: 22px;
  }

  .hero__meta {
    gap: 5px;
  }
  .chip {
    font-size: 11px;
    padding: 4px 9px;
    gap: 6px;
  }
  .chip svg {
    width: 11px;
    height: 11px;
  }
  .btn {
    padding: 12px 18px;
    font-size: 13.5px;
  }
  .section__eyebrow {
    font-size: 11px;
    gap: 8px;
    letter-spacing: 1.4px;
  }
  .section__eyebrow span {
    font-size: 9.5px;
    padding: 1.5px 6px;
  }
  .section__title,
  .footer__title {
    font-size: 24px;
  }
  .section__lead {
    font-size: 14.5px;
    margin-bottom: 32px;
  }
  .timeline__date,
  .timeline__location {
    font-size: 11.5px;
  }
  .timeline__body {
    padding: 16px;
  }
  .timeline__role {
    font-size: 16px;
  }
  .timeline__desc,
  .service__desc,
  .card__desc {
    font-size: 14px;
  }
  .timeline__tags span,
  .card__tags span {
    font-size: 11px;
    padding: 3px 8px;
  }
  .service {
    padding: 20px;
  }
  .service__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .card {
    padding: 18px;
  }
  .card__thumb {
    height: 108px;
    margin-bottom: 16px;
  }
  .card__badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  .contact-info__item {
    padding: 12px 14px;
    gap: 10px;
  }
  .contact-info__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .contact-info__icon svg {
    width: 16px;
    height: 16px;
  }
  .contact-info__label {
    font-size: 10.5px;
  }
  .contact-info__value {
    font-size: 13.5px;
  }
  .contact-form {
    padding: 18px;
    gap: 14px;
  }
  .field span {
    font-size: 11px;
  }
  .field input,
  .field textarea {
    font-size: 13.5px;
    padding: 10px 12px;
  }
  .quick-facts {
    padding: 16px;
  }
  .quick-facts li {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .stat {
    padding: 18px 16px;
  }
  .stat__num {
    font-size: 30px;
  }
  .stat__label {
    font-size: 13px;
  }
  .edu-item {
    padding: 12px 14px;
  }
  .nav__inner {
    height: 58px;
    gap: 8px;
  }
  .nav__logo {
    font-size: 13.5px;
    gap: 7px;
  }
  .nav__actions {
    gap: 6px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .footer {
    padding: 24px 0;
  }
}

/* Ultra-narrow (≤320px — iPhone SE 1st gen, Galaxy Fold outer) */
@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }
  .hero {
    padding: 40px 0 48px;
  }
  .hero__title {
    font-size: 22px;
  }
  .avatar {
    width: 84px;
    height: 84px;
  }
  .section,
  .contact {
    padding: 56px 0;
  }
  .section__title {
    font-size: 22px;
  }
  .section__lead {
    font-size: 14px;
  }
  .nav__logo span,
  .nav__logo {
    font-size: 13px;
  }
  .skill-bar__name {
    font-size: 13.5px;
  }
}

/* Landscape phones — keep hero compact so CTA is reachable */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 50px;
  }
  .hero__scroll {
    display: none;
  }
  .avatar {
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
  }
  .hero__title {
    margin-bottom: 14px;
  }
  .nav__inner {
    height: 56px;
  }
  .section,
  .contact {
    padding: 56px 0;
  }
}

/* Touch devices — disable mouse-follow spotlight & hover lifts to avoid sticky states */
@media (hover: none) and (pointer: coarse) {
  .card-glow::before {
    display: none;
  }
  .card:hover,
  .service:hover,
  .timeline__body:hover,
  .stat:hover,
  .contact-info__item:hover {
    transform: none;
  }
  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }
}

/* Print */
@media print {
  .nav,
  .mobile-toggle,
  .mobile-drawer,
  .bg-aurora,
  .bg-grid,
  .hero__scroll,
  .theme-toggle,
  .contact-form .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .avatar,
  .avatar::before,
  .avatar img,
  .avatar__fallback,
  .avatar__status {
    animation: none !important;
  }
}
