/* ============================================
   ZHIDKOFF.NET — CSS Variables & Themes
   ============================================ */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --container-max: 1200px;
  --header-height: 72px;
}

/* Dark Theme (default) */
[data-theme="dark"] {
  --bg-primary: #0c0d18;
  --bg-secondary: #12132a;
  --bg-tertiary: #1a1b35;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(12, 13, 28, 0.72);

  --bg-ambient-1: rgba(108, 92, 231, 0.24);
  --bg-ambient-2: rgba(56, 189, 248, 0.16);
  --bg-ambient-3: rgba(167, 139, 250, 0.12);
  --bg-ambient-4: rgba(45, 212, 191, 0.07);

  --text-primary: #eef0f8;
  --text-secondary: #a8adc4;
  --text-muted: #6e7390;

  --accent-primary: #7c6cf0;
  --accent-secondary: #b4a7ff;
  --accent-glow: rgba(124, 108, 240, 0.45);
  --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 45%, #38bdf8 100%);

  --border-color: rgba(167, 139, 250, 0.1);
  --border-hover: rgba(196, 181, 253, 0.2);

  --shadow-sm: 0 2px 12px rgba(8, 10, 24, 0.45);
  --shadow-md: 0 8px 32px rgba(8, 10, 24, 0.55);
  --shadow-lg: 0 16px 64px rgba(8, 10, 24, 0.65);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --cursor-color: #b4a7ff;
  --cursor-trail: rgba(124, 108, 240, 0.55);

  --code-bg: #16162e;
  --code-keyword: #c678dd;
  --code-function: #61afef;
  --code-type: #e5c07b;
  --code-string: #98c379;

  --grid-color: rgba(124, 108, 240, 0.07);
  --hero-glow-1: rgba(108, 92, 231, 0.28);
  --hero-glow-2: rgba(56, 189, 248, 0.2);
  --hero-glow-3: rgba(167, 139, 250, 0.14);
  --section-mesh-glow: rgba(108, 92, 231, 0.14);

  --nav-backdrop: rgba(8, 10, 22, 0.65);
  --nav-drawer-bg: #12132a;
  --nav-drawer-border: rgba(167, 139, 250, 0.12);
}

[data-theme="dark"] body {
  background-color: var(--bg-primary);
  background-image: linear-gradient(
    155deg,
    #0b0c17 0%,
    #12132a 28%,
    #0f1730 58%,
    #0c101f 100%
  );
}

[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 12% -8%, var(--bg-ambient-1), transparent 55%),
    radial-gradient(ellipse 75% 65% at 92% 8%, var(--bg-ambient-2), transparent 52%),
    radial-gradient(ellipse 85% 75% at 48% 105%, var(--bg-ambient-3), transparent 58%),
    radial-gradient(ellipse 55% 45% at 72% 42%, var(--bg-ambient-4), transparent 50%);
  animation: dark-ambient-shift 26s ease-in-out infinite alternate;
}

@keyframes dark-ambient-shift {
  0% {
    opacity: 0.78;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.04) translate(1.2%, -0.8%);
  }
  100% {
    opacity: 0.88;
    transform: scale(1.02) translate(-0.8%, 1%);
  }
}

[data-theme="dark"] .stack,
[data-theme="dark"] .projects,
[data-theme="dark"] .marquee-section,
[data-theme="dark"] .footer {
  background: linear-gradient(
    180deg,
    rgba(20, 22, 44, 0.62) 0%,
    rgba(14, 16, 34, 0.48) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-parallax-overlay {
  opacity: 0.88;
  background:
    linear-gradient(to bottom, rgba(12, 13, 24, 0.92) 0%, transparent 38%, transparent 62%, rgba(12, 13, 24, 0.92) 100%),
    linear-gradient(135deg, rgba(12, 13, 28, 0.75) 0%, transparent 52%),
    radial-gradient(ellipse 70% 60% at 30% 40%, transparent 0%, rgba(12, 13, 24, 0.85) 100%);
}

[data-theme="dark"] .section-mesh::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--section-mesh-glow), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(56, 189, 248, 0.06), transparent 65%);
}

[data-theme="dark"] .section-bg-mesh {
  opacity: 0.78;
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="dark"] body::before {
    animation: none;
    opacity: 0.9;
  }
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f5;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;

  --accent-primary: #5b4cdb;
  --accent-secondary: #7c6cf0;
  --accent-glow: rgba(91, 76, 219, 0.25);
  --accent-gradient: linear-gradient(135deg, #5b4cdb 0%, #7c6cf0 50%, #4a9eff 100%);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --cursor-color: #5b4cdb;
  --cursor-trail: rgba(91, 76, 219, 0.4);

  --code-bg: #f8f8fc;
  --code-keyword: #8b5cf6;
  --code-function: #3b82f6;
  --code-type: #d97706;
  --code-string: #16a34a;

  --grid-color: rgba(91, 76, 219, 0.04);
  --hero-glow-1: rgba(91, 76, 219, 0.08);
  --hero-glow-2: rgba(74, 158, 255, 0.06);
  --hero-glow-3: transparent;
  --section-mesh-glow: rgba(91, 76, 219, 0.08);

  --nav-backdrop: rgba(26, 26, 46, 0.4);
  --nav-drawer-bg: #ffffff;
  --nav-drawer-border: rgba(0, 0, 0, 0.08);
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background var(--transition-slow), color var(--transition-slow);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.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;
}

body.custom-cursor-disabled {
  cursor: auto;
}

body.custom-cursor-disabled .cursor-dot,
body.custom-cursor-disabled .cursor-ring,
body.custom-cursor-disabled .cursor-trail {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  cursor: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-animated {
  background-size: 200% auto;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 10001;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s linear;
}

.section-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: section-orb-float 14s ease-in-out infinite;
}

.section-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent-primary);
  top: 10%;
  right: -5%;
}

.section-orb-2 {
  width: 220px;
  height: 220px;
  background: #74b9ff;
  bottom: 5%;
  left: -3%;
  animation-delay: -7s;
}

@keyframes section-orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

/* ============================================
   Custom Cursor
   ============================================ */

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.2s, opacity 0.2s;
  opacity: 0.5;
}

.cursor-dot.hover {
  width: 16px;
  height: 16px;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

.cursor-dot.click {
  transform: translate(-50%, -50%) scale(0.8);
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ============================================
   Preloader
   ============================================ */

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-menu-backdrop {
  display: none;
}

.nav-menu-panel {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.nav-drawer-footer {
  display: none;
}

.logo-bracket {
  color: var(--accent-primary);
}

.nav-logo:hover {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 32px);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 1002;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
}

.nav-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-social-link svg {
  width: 18px;
  height: 18px;
}

.nav-social-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.nav-social-link[aria-label="ВКонтакте"]:hover {
  background: #0077ff;
}

.nav-social-link[aria-label="MAX"]:hover {
  background: linear-gradient(135deg, #4f8cff, #8b5cf6);
}

.nav-social-link[aria-label="Telegram"]:hover {
  background: #26a5e4;
}

.nav-social-link[aria-label="WhatsApp"]:hover {
  background: #25d366;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
  border-color: var(--border-hover);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Language Switch ── */
.lang-switch {
  display: flex;
  align-items: center;
  padding: 3px 6px 3px 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  gap: 2px;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-switch::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.35), rgba(0, 206, 201, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.lang-switch:hover {
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.12);
}

.lang-switch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 2px;
  color: var(--text-muted);
  opacity: 0.85;
}

.lang-switch-icon svg {
  width: 15px;
  height: 15px;
}

.lang-switch-divider {
  width: 1px;
  height: 16px;
  background: var(--border-color);
  margin: 0 1px;
  flex-shrink: 0;
}

.lang-switch-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: transparent;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-switch-btn:hover {
  color: var(--text-primary);
}

.lang-switch-btn.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .lang-switch-btn.active {
  background: rgba(108, 92, 231, 0.2);
  color: var(--accent-secondary);
}

[data-theme="light"] .lang-switch-btn.active {
  background: rgba(91, 76, 219, 0.12);
  color: var(--accent-primary);
}

[data-theme="dark"] .lang-switch:hover::before {
  opacity: 1;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  flex-shrink: 0;
  z-index: 1002;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-actions {
  position: relative;
  z-index: 1105;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
  min-height: 40px;
}

@media (min-width: 1181px) {
  .nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px 16px;
  }

  .nav-menu {
    overflow: hidden;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    max-width: 100%;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (min-width: 1181px) and (max-width: 1399px) {
  .nav-social--header {
    display: none;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 0.78rem;
  }
}

.btn-magnetic {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition-base);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

#main-content {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-parallax-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  will-change: transform;
}

.hero-parallax-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-parallax-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg-primary) 0%, transparent 35%, transparent 65%, var(--bg-primary) 100%),
    linear-gradient(135deg, var(--bg-primary) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 30% 40%, transparent 0%, var(--bg-primary) 100%);
  opacity: 0.92;
  transition: opacity var(--transition-slow);
}

[data-theme="light"] .hero-parallax-overlay {
  opacity: 0.88;
}

.hero-parallax-orbs {
  pointer-events: none;
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: orb-drift 12s ease-in-out infinite;
}

.parallax-orb-1 {
  width: 320px;
  height: 320px;
  background: var(--accent-primary);
  top: 10%;
  left: 5%;
  opacity: 0.25;
}

.parallax-orb-2 {
  width: 240px;
  height: 240px;
  background: #74b9ff;
  top: 55%;
  right: 10%;
  animation-delay: -3s;
  opacity: 0.2;
}

.parallax-orb-3 {
  width: 180px;
  height: 180px;
  background: var(--accent-secondary);
  bottom: 15%;
  left: 35%;
  animation-delay: -6s;
  opacity: 0.3;
}

.parallax-orb-4 {
  width: 140px;
  height: 140px;
  background: #a29bfe;
  top: 25%;
  right: 35%;
  animation-delay: -9s;
  opacity: 0.2;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.08); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--hero-glow-1);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--hero-glow-2);
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-title-animated .hero-title-line {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-line-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-animated .hero-title-line:nth-child(1) { animation-delay: 0.15s; }
.hero-title-animated .hero-title-line:nth-child(2) { animation-delay: 0.3s; }
.hero-title-animated .hero-title-line:nth-child(3) { animation-delay: 0.45s; }

@keyframes hero-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-accent {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-subline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-subline::before {
  content: '>';
  color: var(--accent-primary);
  margin-right: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual / Code Window */
.code-window {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 100%;
  animation: code-float 6s ease-in-out infinite;
}

@keyframes code-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-content .kw { color: var(--code-keyword); }
.code-content .fn { color: var(--code-function); }
.code-content .type { color: var(--code-type); }

.floating-card {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card-1 {
  top: -20px;
  right: 40px;
  animation: float-card 5s ease-in-out infinite;
}

.floating-card-2 {
  bottom: 40px;
  left: 0;
  animation: float-card 5s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fade-bounce 2s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

@keyframes fade-bounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Marquee
   ============================================ */

.marquee-section {
  padding: 24px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.marquee {
  display: flex;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.marquee-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Sections Common
   ============================================ */

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal:not([data-reveal]) {
  transform: translateY(40px);
}

.reveal[data-reveal="right"] {
  transform: translateX(40px);
}

.reveal[data-reveal="left"] {
  transform: translateX(-40px);
}

.reveal[data-reveal="up"] {
  transform: translateY(50px);
}

.reveal[data-reveal="scale"] {
  transform: scale(0.92);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ============================================
   About Section
   ============================================ */

.about {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 520px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.about-profile:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.about-avatar {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.about-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg-secondary);
}

.about-avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.35;
  filter: blur(12px);
  animation: avatar-glow 3s ease-in-out infinite;
}

.about-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              var(--accent-gradient) border-box;
  animation: ring-rotate 6s linear infinite;
  z-index: 1;
}

@keyframes avatar-glow {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.05); }
}

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about-exp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: fit-content;
}

.about-exp-chip .exp-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.about-exp-chip .exp-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover .about-image-wrapper img {
  transform: scale(1.05);
}

.about-image-frame {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  opacity: 0.3;
  transform: translate(16px, 16px);
  z-index: -1;
  transition: transform var(--transition-base);
}

.about-image:hover .about-image-frame {
  transform: translate(24px, 24px);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-glow);
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 0 60px var(--accent-glow); }
}

.exp-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.exp-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.highlight-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.highlight-card:hover::before {
  opacity: 0.06;
}

.highlight-card > * {
  position: relative;
  z-index: 1;
}

.highlight-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.highlight-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* ============================================
   Stack Section
   ============================================ */

.stack {
  background: var(--bg-secondary);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stack-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.stack-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.stack-card:hover::before {
  transform: scaleX(1);
}

.stack-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.stack-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stack-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.stack-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tags span {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stack-card-ai {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 92, 231, 0.06) 100%);
  border-color: rgba(108, 92, 231, 0.25);
}

.stack-card-ai::before {
  transform: scaleX(1);
  opacity: 0.85;
}

.stack-card-ai .stack-tags span:first-child,
.stack-card-ai .stack-tags span:nth-child(2) {
  color: var(--accent-primary);
  background: rgba(108, 92, 231, 0.12);
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-card-featured {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--border-color);
  line-height: 1;
  margin-bottom: 16px;
}

.service-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.service-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* ============================================
   Projects Section
   ============================================ */

.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.projects-category {
  margin-bottom: 56px;
}

.projects-category:last-child {
  margin-bottom: 0;
}

.projects-category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform-origin: left;
  animation: line-grow 1s ease-out forwards;
}

.reveal.visible .category-line {
  animation: line-grow 1s ease-out forwards;
}

@keyframes line-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover::after {
  left: 120%;
}

.project-card-featured {
  border-color: rgba(108, 92, 231, 0.4);
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 12px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0;
  transform: scale(0.8);
  transition: transform var(--transition-spring);
}

.project-card:hover .project-link {
  transform: scale(1);
}

.project-link svg {
  width: 24px;
  height: 24px;
}

.project-info {
  padding: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tags span {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.project-type {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.project-type--enterprise {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.35);
}

.project-type--landing {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="light"] .project-type--enterprise {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .project-type--landing {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.25);
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: 80px 0;
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: cta-border-glow 4s ease-in-out infinite;
}

@keyframes cta-border-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(108, 92, 231, 0); }
  50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.15); }
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-glow);
  border-radius: 50%;
  filter: blur(100px);
  top: -200px;
  left: -100px;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 450px;
}

.cta-visual {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-visual img {
  width: 100%;
  aspect-ratio: 5/3.5;
  object-fit: cover;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: all var(--transition-base);
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card a,
.contact-card p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-card a:hover {
  color: var(--accent-primary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-4px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Contact Form */
.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.25rem;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.form-status-success {
  color: #22c55e;
}

.form-status-error {
  color: #ef4444;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 64px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-social {
  margin-top: 20px;
  width: fit-content;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1180px) {
  .header,
  .header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-menu {
    flex: 0;
  }

  .nav-menu-panel {
    display: flex;
    flex-direction: column;
  }

  .nav-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--nav-backdrop);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: 1101;
  }

  .nav-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 320px);
    padding: calc(var(--header-height) + 16px) 16px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    background: var(--nav-drawer-bg);
    border-left: 1px solid var(--nav-drawer-border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1102;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu-panel.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    list-style: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-menu-panel .nav-link {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 14px 16px;
    width: 100%;
    text-align: left;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
  }

  .nav-menu-panel .nav-link:hover,
  .nav-menu-panel .nav-link.active {
    color: var(--accent-primary);
    background: var(--bg-card);
  }

  .nav-link::after {
    display: none;
  }

  .nav-drawer-footer {
    display: block;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
  }

  .lang-switch--drawer {
    display: flex;
    width: fit-content;
    margin-bottom: 20px;
  }

  .nav-actions > .lang-switch {
    display: none;
  }

  .nav-drawer-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
  }

  .nav-drawer-social .nav-social {
    justify-content: flex-start;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
  }

  [data-theme="light"] .nav-drawer-social .nav-social {
    background: var(--bg-tertiary);
  }

  .nav-social--header {
    display: none;
  }

  .lang-switch {
    order: -1;
    padding: 2px 4px 2px 2px;
  }

  .lang-switch-icon {
    width: 24px;
    height: 24px;
    margin-right: 0;
  }

  .lang-switch-icon svg {
    width: 13px;
    height: 13px;
  }

  .lang-switch-btn {
    min-width: 34px;
    height: 30px;
    font-size: 0.68rem;
  }

  .nav-burger {
    display: flex;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .hero-body {
    grid-template-columns: 1fr;
    text-align: center;
    align-content: start;
    justify-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 56px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    gap: 36px;
    overflow-x: clip;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: clip;
  }

  .hero-parallax-layer {
    transform: none !important;
    will-change: auto;
    width: 100%;
    height: 100%;
    top: 0;
  }

  .hero-content,
  .hero-visual {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    transform: none !important;
    translate: none !important;
    opacity: 1 !important;
    will-change: auto;
  }

  .hero .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .code-window {
    animation: none;
  }

  .floating-card {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .parallax-orb {
    opacity: 0.15;
    transform: scale(0.75);
    animation: none;
  }

  .hero-glow-1,
  .hero-glow-2 {
    animation: none;
  }

  .about-grid {
    gap: 32px;
  }

  .about-profile {
    max-width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .about-exp-chip {
    margin-left: auto;
    margin-right: auto;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .projects-category {
    margin-bottom: 40px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    text-align: center;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-inline: 16px;
  }

  .hero-body {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 48px;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.75rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    margin-bottom: 32px;
  }

  .nav-menu-panel {
    width: min(92vw, 300px);
    padding: 16px 12px 20px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 12px 14px;
  }

  .section {
    padding: 80px 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer-social {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .contact-form {
    padding: 24px;
  }

  .about-experience-badge {
    right: 10px;
    bottom: -10px;
    padding: 16px 20px;
  }

  .hero-title-animated .hero-title-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-card {
    padding: 32px 20px;
  }
}

/* Touch devices — disable custom cursor */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  button, a, input, textarea, select {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring,
  .cursor-trail {
    display: none !important;
  }

  .hero-parallax-layer,
  .scroll-indicator {
    transform: none !important;
    will-change: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none !important;
  }

  .hero-title-animated .hero-title-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .text-gradient-animated {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

  .hero-parallax-layer,
  .hero-content,
  .hero-visual,
  .scroll-indicator {
    transform: none !important;
    will-change: auto;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Section Nav, Audience, Testimonials, Modal
   ============================================ */

.section-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: none;
}

@media (min-width: 1280px) {
  .section-nav {
    display: block;
  }
}

.section-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.72rem;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.section-nav a:hover,
.section-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.section-nav-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  min-width: 22px;
  color: var(--accent-primary);
  opacity: 0.7;
}

.section-nav a.active .section-nav-num {
  opacity: 1;
}

.section-nav-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.section-nav:hover .section-nav-label,
.section-nav a.active .section-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.section-mesh {
  position: relative;
}

.section-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--section-mesh-glow, rgba(108, 92, 231, 0.08)), transparent 70%);
  pointer-events: none;
}

.stack-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-secondary);
  margin: 6px 0 10px;
  opacity: 0.85;
}

.audience-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card,
.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
}

.audience-card-featured,
.testimonial-card-featured {
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: 0 0 40px rgba(108, 92, 231, 0.12);
}

.audience-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: block;
}

.audience-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.audience-card p,
.testimonial-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

.testimonial-card footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-card p::before {
  content: '“';
  color: var(--accent-primary);
  font-size: 1.4rem;
  line-height: 0;
  margin-right: 2px;
}

/* Project Modal */
body.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 800px);
  overflow: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  outline: none;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal.active .project-modal-dialog {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project-modal-close svg {
  width: 18px;
  height: 18px;
}

.project-modal-image {
  min-height: 280px;
  background: var(--bg-tertiary);
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  min-height: 280px;
}

.project-modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-modal-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.project-modal-tags .project-type--enterprise {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.35);
}

.project-modal-tags .project-type--landing {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.project-modal-body h3 {
  font-size: 1.35rem;
}

.project-modal-case {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-block strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.case-block p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.case-block-result {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px var(--accent-glow);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.35s ease;
}

.sticky-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-cta svg {
  width: 18px;
  height: 18px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, border-color var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .audience-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .project-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .sticky-cta {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: calc(100% - 32px);
    justify-content: center;
  }

  .back-to-top {
    bottom: 76px;
  }
}