:root {
  --bg: #050816;
  --bg-elevated: #070b1c;
  --bg-soft: #0e1224;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.2);
  --accent-strong: #a855f7;
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.75);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --nav-blur: blur(20px);
  --bg-grad-highlight: #1c1440;
  --bg-grad-base: #050816;
  --bg-pulse-color: rgba(79, 70, 229, 0.28);
  --pulse-speed: 1.9s;
  --tilt-rotate-pitch: 0deg;
  --tilt-rotate-roll: 0deg;
  --tilt-shift-x: 0px;
  --tilt-shift-y: 0px;
  --tilt-bg-shift-x: 0px;
  --tilt-bg-shift-y: 0px;
  --bg-pointer-x: 50%;
  --bg-pointer-y: 30%;
  --bg-pointer-color-rgb: 79, 70, 229;
  --liquid-shift-multiplier: 1;
  --liquid-rotate-multiplier: 1;
}

@media (pointer: coarse) {
  :root {
    --liquid-shift-multiplier: 2.4;
    --liquid-rotate-multiplier: 1.8;
  }
}

html.theme-2 {
  /* Green / teal variant */
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-soft: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.22);
  --accent-strong: #22d3ee;
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(55, 65, 81, 0.7);
  --bg-pointer-color-rgb: 34, 197, 94;
}

html.theme-3 {
  /* Warm orange / amber variant */
  --bg: #030712;
  --bg-elevated: #090814;
  --bg-soft: #111827;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.2);
  --accent-strong: #facc15;
  --text: #fefce8;
  --text-soft: #fbbf24;
  --border-subtle: rgba(251, 191, 36, 0.45);
  --bg-pointer-color-rgb: 249, 115, 22;
}

html.theme-4 {
  /* Blue / cyan variant */
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-soft: #0b1220;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.22);
  --accent-strong: #22d3ee;
  --text: #e0f2fe;
  --text-soft: #93c5fd;
  --border-subtle: rgba(59, 130, 246, 0.45);
  --bg-pointer-color-rgb: 59, 130, 246;
}

html.theme-5 {
  /* Magenta / purple variant */
  --bg: #050013;
  --bg-elevated: #080021;
  --bg-soft: #13072e;
  --accent: #ec4899;
  --accent-soft: rgba(236, 72, 153, 0.22);
  --accent-strong: #a855f7;
  --text: #fdf2ff;
  --text-soft: #f9a8d4;
  --border-subtle: rgba(236, 72, 153, 0.45);
  --bg-pointer-color-rgb: 236, 72, 153;
}

* {
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
  background:
      radial-gradient(circle at var(--bg-pointer-x) var(--bg-pointer-y),
        rgba(var(--bg-pointer-color-rgb), 0.55) 0%,
        rgba(var(--bg-pointer-color-rgb), 0.35) 18%,
        rgba(var(--bg-pointer-color-rgb), 0.12) 42%,
        rgba(var(--bg-pointer-color-rgb), 0.04) 60%,
        transparent 75%),
      radial-gradient(circle at top, var(--bg-grad-highlight) 0%, var(--bg-grad-base) 45%, #000 100%);
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% -10% 0 -10%;
  background: radial-gradient(circle at 20% 0%, var(--bg-pulse-color), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.05), transparent 50%);
  z-index: -1;
  pointer-events: none;
  filter: blur(0px);
  opacity: 0.85;
  animation: bgPulse var(--pulse-speed) ease-in-out infinite;
  transform: translate3d(var(--tilt-bg-shift-x), var(--tilt-bg-shift-y), 0) scale(1.05);
  transition: transform 0.45s ease;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.fast-heartbeat {
  --pulse-speed: 1.2s;
}

body.tilt-enabled .hero-liquid {
  will-change: transform;
  transform: translate3d(
      calc(var(--tilt-shift-x) * var(--liquid-shift-multiplier)),
      calc(var(--tilt-shift-y) * var(--liquid-shift-multiplier)),
      0)
    rotateX(calc(var(--tilt-rotate-pitch) * var(--liquid-rotate-multiplier)))
    rotateY(calc(var(--tilt-rotate-roll) * var(--liquid-rotate-multiplier)));
  transition: transform 0.25s ease;
}

@keyframes bgPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.site-header .page {
  padding: 0 16px;
}

.section {
  margin-top: 72px;
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

#about .section-header {
  align-items: center;
  text-align: center;
}

#skills .section-header {
  align-items: center;
  text-align: center;
}

#experience .section-header {
  align-items: center;
  text-align: center;
}

#contact .section-header {
  align-items: center;
  text-align: center;
}

.section-header h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.section-header p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 0;
  margin: 0 0 28px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
  backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 0;
  position: relative;
  isolation: isolate;
}

.site-logo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -1;
}

.site-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.7));
  transition: transform 0.4s ease;
}

.site-logo:hover::after {
  opacity: 1;
  transform: scale(1.08);
}

.site-logo:hover img {
  transform: translateY(-2px) scale(1.01);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 2px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: inset 0 0 10px rgba(15, 23, 42, 0.6);
  margin-right: 8px;
}

.lang-btn {
  width: 38px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(236, 72, 153, 0.8));
  color: white;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.45);
}

.lang-btn:not(.active):hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .header-actions {
    gap: 10px;
  }

  .lang-toggle {
    order: 1;
  }

  .theme-toggle {
    order: 2;
    margin-left: 0;
  }

  .menu-toggle {
    order: 3;
  }
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.32), transparent 65%);
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 30% 15%, rgba(248, 250, 252, 0.18), transparent 65%),
    linear-gradient(145deg, rgba(6, 11, 25, 0.95), rgba(15, 23, 42, 0.85));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.65);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 70% 0%, rgba(79, 70, 229, 0.32), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.menu-toggle .menu-line {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.5);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .menu-line:nth-child(1) {
  transform: translate(-50%, -8px);
}

.menu-toggle .menu-line:nth-child(2) {
  transform: translate(-50%, 0);
}

.menu-toggle .menu-line:nth-child(3) {
  transform: translate(-50%, 8px);
}

.menu-toggle.active {
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.25);
}

.menu-toggle.active .menu-line:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

.theme-toggle {
  margin-left: auto;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  overflow: hidden;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-panel.active {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.98));
  backdrop-filter: blur(14px);
}

.mobile-nav-content {
  position: absolute;
  top: 58px;
  right: 16px;
  left: 16px;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.mobile-nav-panel.active .mobile-nav-content {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mobile-nav-header p {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.8);
  margin: 0;
}

.mobile-nav-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  position: relative;
  cursor: pointer;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.6px;
  background: linear-gradient(90deg, #f97316, #a855f7);
  transform-origin: center;
}

.mobile-nav-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mobile-nav-links a::after {
  content: "→";
  font-size: 0.8rem;
  color: var(--text-soft);
}

.mobile-nav-links a:hover {
  transform: translateX(4px);
  border-color: rgba(236, 72, 153, 0.8);
}

.mobile-nav-cta {
  border-radius: 14px;
  padding: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
}

.mobile-nav-cta p {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

body.mobile-nav-open {
  overflow: hidden;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 30% 0%, rgba(244, 244, 245, 0.48), transparent 60%),
    radial-gradient(circle at 70% 120%, rgba(56, 189, 248, 0.42), rgba(79, 70, 229, 0.8));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.65);
  cursor: pointer;
  animation: heartbeat var(--pulse-speed) ease-in-out infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
  }
  25% {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.75);
  }
  40% {
    transform: scale(0.99);
    box-shadow: 0 9px 26px rgba(15, 23, 42, 0.65);
  }
  60% {
    transform: scale(1.03);
    box-shadow: 0 11px 31px rgba(79, 70, 229, 0.72);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
  }
}

@keyframes bgPulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
    filter: blur(0px);
  }
  25% {
    transform: scale(1.015);
    opacity: 0.92;
    filter: blur(1px);
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
    filter: blur(2px);
  }
  75% {
    transform: scale(1.015);
    opacity: 0.92;
    filter: blur(1px);
  }
  100% {
    transform: scale(1);
    opacity: 0.75;
    filter: blur(0px);
  }
}

html.theme-2 {
  --bg-grad-highlight: #032c1a;
  --bg-grad-base: #010b05;
  --bg-pulse-color: rgba(34, 197, 94, 0.25);
}

html.theme-2 .hero-main {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.4), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.38), transparent 50%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
}

html.theme-2 .hero-list li::before {
  background: radial-gradient(circle, #22c55e, #22d3ee);
}

html.theme-2 .pill-card {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.25), transparent 60%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
}

html.theme-2 .service-card {
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 55%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
}

html.theme-2 .timeline-item::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.6), transparent 70%);
}

html.theme-2 .theme-toggle {
  border-color: rgba(74, 222, 128, 0.9);
  background: radial-gradient(circle at 30% 0%, rgba(236, 253, 245, 0.7), transparent 55%),
    radial-gradient(circle at 70% 120%, rgba(34, 197, 94, 0.6), rgba(34, 211, 238, 0.7));
}

html.theme-3 {
  --bg-grad-highlight: #301306;
  --bg-grad-base: #090611;
  --bg-pulse-color: rgba(249, 115, 22, 0.28);
}

html.theme-3 .hero-main {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.35), transparent 50%),
    linear-gradient(to bottom right, rgba(24, 20, 14, 0.98), rgba(15, 23, 42, 0.96));
}

html.theme-3 .hero-list li::before {
  background: radial-gradient(circle, #f97316, #facc15);
}

html.theme-3 .pill-card {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.28), transparent 60%),
    linear-gradient(to bottom right, rgba(24, 20, 14, 0.98), rgba(15, 23, 42, 0.92));
}

html.theme-3 .service-card {
  background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 55%),
    linear-gradient(to bottom right, rgba(24, 20, 14, 0.98), rgba(15, 23, 42, 0.92));
}

html.theme-3 .timeline-item::before {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.6), transparent 70%);
}

html.theme-3 .theme-toggle {
  border-color: rgba(251, 191, 36, 0.9);
  background: radial-gradient(circle at 30% 0%, rgba(254, 249, 195, 0.9), transparent 55%),
    radial-gradient(circle at 70% 120%, rgba(249, 115, 22, 0.7), rgba(250, 204, 21, 0.7));
}

html.theme-4 {
  --bg-grad-highlight: #081a3d;
  --bg-grad-base: #020617;
  --bg-pulse-color: rgba(59, 130, 246, 0.25);
}

html.theme-4 .hero-main {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.5), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.35), transparent 50%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

html.theme-4 .hero-list li::before {
  background: radial-gradient(circle, #3b82f6, #22d3ee);
}

html.theme-4 .pill-card {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.28), transparent 60%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
}

html.theme-4 .service-card {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 55%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
}

html.theme-4 .timeline-item::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.6), transparent 70%);
}

html.theme-4 .theme-toggle {
  border-color: rgba(59, 130, 246, 0.9);
  background: radial-gradient(circle at 30% 0%, rgba(219, 234, 254, 0.9), transparent 55%),
    radial-gradient(circle at 70% 120%, rgba(59, 130, 246, 0.7), rgba(34, 211, 238, 0.7));
}

html.theme-5 {
  --bg-grad-highlight: #2b0b26;
  --bg-grad-base: #050013;
  --bg-pulse-color: rgba(236, 72, 153, 0.28);
}

html.theme-5 .hero-main {
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.5), transparent 55%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.45), transparent 50%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

html.theme-5 .hero-list li::before {
  background: radial-gradient(circle, #ec4899, #a855f7);
}

html.theme-5 .pill-card {
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.28), transparent 60%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
}

html.theme-5 .service-card {
  background: radial-gradient(circle at top right, rgba(192, 38, 211, 0.22), transparent 55%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
}

html.theme-5 .timeline-item::before {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.6), transparent 70%);
}

html.theme-5 .theme-toggle {
  border-color: rgba(236, 72, 153, 0.9);
  background: radial-gradient(circle at 30% 0%, rgba(253, 242, 248, 0.9), transparent 55%),
    radial-gradient(circle at 70% 120%, rgba(236, 72, 153, 0.7), rgba(168, 85, 247, 0.7));
}

.hero {
  margin-top: 20px;
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 24px;
}

.hero-main {
  padding: 26px 22px 24px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.35), transparent 50%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-main canvas.hero-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.hero-main > * {
  position: relative;
  z-index: 1;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card canvas.hero-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(248, 250, 252, 0.03) 0, transparent 65%);
  opacity: 0.9;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
  margin: 0 0 10px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.hero-main h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  line-height: 1.2;
}

.hero-sub {
  margin: 0 0 18px;
  font-size: 0.98rem;
  color: rgba(226, 232, 240, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.11s ease, box-shadow 0.11s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #4f46e5, #6366f1, #f97316);
  border-color: rgba(191, 219, 254, 0.55);
  color: white;
  box-shadow: 0 15px 38px rgba(79, 70, 229, 0.75);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.9);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-soft);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--text);
}

.btn.full {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
}

.hero-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.9);
}

.hero-card {
  padding: 20px 18px;
  border-radius: 20px;
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.85);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: rgba(74, 222, 128, 0.95);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 8px;
  background: radial-gradient(circle, #4f46e5, #f97316);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
}

.about-grid p {
  margin: 0;
  font-size: 0.97rem;
  color: rgba(226, 232, 240, 0.92);
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pill-card {
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.3), transparent 60%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.75);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  animation: pillIdle 7s ease-in-out infinite;
}

.pill-card::before,
.pill-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.4), transparent 70%);
  opacity: 0.18;
  animation: pillOrbit 14s linear infinite;
}

.pill-card::after {
  animation-duration: 10s;
  animation-direction: reverse;
  opacity: 0.12;
}

.pill-card:hover,
.pill-card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.85);
  animation-play-state: paused;
}

.pill-card:hover::before,
.pill-card:hover::after,
.pill-card:focus-within::before,
.pill-card:focus-within::after {
  opacity: 0.35;
  filter: blur(6px);
}

@keyframes pillIdle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pillOrbit {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.pill-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  text-align: center;
}

.pill-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.87rem;
  color: var(--text-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  background: radial-gradient(circle at top right, rgba(248, 250, 252, 0.05), transparent 55%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.service-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.service-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.9);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  border-radius: var(--radius-lg);
  padding: 16px 14px 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.55);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  animation: pillIdle 8s ease-in-out infinite;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: -32px;
  width: 96px;
  height: 96px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.6), transparent 70%);
  opacity: 0.32;
  animation: pillOrbit 16s linear infinite;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: -20% 40% 40% -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
  opacity: 0.16;
  animation: pillOrbit 12s linear infinite;
}

.timeline-item:hover,
.timeline-item:focus-within {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.85);
  animation-play-state: paused;
}

.timeline-item:hover::before,
.timeline-item:hover::after,
.timeline-item:focus-within::before,
.timeline-item:focus-within::after {
  opacity: 0.4;
  filter: blur(4px);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.timeline-period {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.9);
}

.timeline-role {
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: flex-start;
}

.contact-form {
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  padding: 8px 9px;
  font-family: inherit;
  font-size: 0.87rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.contact-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.contact-aside {
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.87rem;
}

.contact-aside h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(6, 11, 25, 0.9));
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-link-card:hover,
.contact-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.75);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.75);
}

.contact-link-card:hover::before,
.contact-link-card:focus-visible::before {
  opacity: 1;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
  animation: linkPulse 2.5s ease-in-out infinite;
}

.contact-link-body {
  flex: 1;
}

.contact-link-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-link-body p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-soft);
}

.contact-link-arrow {
  font-size: 1.2rem;
  color: var(--text-soft);
  transition: transform 0.2s ease;
}

.contact-link-card:hover .contact-link-arrow,
.contact-link-card:focus-visible .contact-link-arrow {
  transform: translateX(4px);
}

.contact-link-card.github .contact-icon {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(24, 24, 27, 0.95));
  border-color: rgba(79, 70, 229, 0.6);
}

.contact-link-card.linkedin .contact-icon {
  text-transform: uppercase;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(24, 24, 27, 0.95));
  border-color: rgba(59, 130, 246, 0.65);
  color: #bfdbfe;
}

.contact-link-card.gmail .contact-icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(24, 24, 27, 0.95));
  border-color: rgba(249, 115, 22, 0.7);
}

.contact-hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

@keyframes linkPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.contact-aside ul {
  margin: 0 0 10px;
  padding-left: 16px;
  color: var(--text-soft);
}

.contact-pill {
  border-radius: var(--radius-lg);
  padding: 10px 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
}

.site-footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-logo {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 14px;
  }

  .site-header {
    padding-inline: 0;
  }

  .nav {
    display: none;
  }

  .hero-main {
    padding: 22px 18px;
  }

  .section {
    margin-top: 56px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pill-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
