@property --hue-rot {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --shimmer-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -40%;
}
@property --aurora-pos {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
@property --grd-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 135deg;
}
@property --liquid-r {
  syntax: '<integer>';
  inherits: false;
  initial-value: 30;
}

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

:root {
  --bg:         #060810;
  --surface:    #0b0e17;
  --surface2:   #0f1420;
  --surface3:   #131826;
  --border:     #1a2540;
  --c1: #30c5d2;
  --c2: #471069;
  --c3: #557c93;
  --c4: #08203e;
  --c5: #ffe259;
  --c6: #b06eff;
  --c7: #39ff9e;
  --text:       #c8d4e8;
  --text-muted: #5a6880;
  --text-dim:   #2e3a50;
  --white:      #eaf2ff;
  --glow-c1: 0 0 30px rgba(48,197,210,0.5), 0 0 80px rgba(48,197,210,0.18);
  --glow-c2: 0 0 30px rgba(71,16,105,0.6), 0 0 80px rgba(71,16,105,0.2);
  --glow-c3: 0 0 30px rgba(85,124,147,0.5), 0 0 80px rgba(85,124,147,0.18);
  --glow-c6: 0 0 30px rgba(176,110,255,0.5), 0 0 80px rgba(176,110,255,0.18);
  --glass-bg: rgba(8,32,62,0.45);
  --glass-bg-light: rgba(200,220,255,0.12);
  --glass-border: rgba(48,197,210,0.18);
  --glass-border-light: rgba(200,220,255,0.35);
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
  --bg:         #f0f4ff;
  --surface:    #e4eaf7;
  --surface2:   #d8e2f5;
  --surface3:   #cdd6ef;
  --border:     #b8cae8;
  --c1: #08203e;
  --c2: #30c5d2;
  --c3: #471069;
  --c4: #557c93;
  --text:       #1a2a4a;
  --text-muted: #4a5a7a;
  --text-dim:   #8a9ab8;
  --white:      #0a1628;
  --glow-c1: 0 0 20px rgba(8,32,62,0.25), 0 0 60px rgba(8,32,62,0.1);
  --glass-bg: rgba(255,255,255,0.55);
  --glass-bg-light: rgba(255,255,255,0.7);
  --glass-border: rgba(48,197,210,0.3);
  --glass-border-light: rgba(255,255,255,0.8);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.5s var(--smooth), color 0.5s var(--smooth);
}

body.light-mode { cursor: none; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainDrift 0.2s steps(1) infinite;
}
body.light-mode::before { opacity: 0.015; }

@keyframes grainDrift {
  0%  { background-position: 0 0; }
  10% { background-position: -5px -3px; }
  20% { background-position: 3px 7px; }
  30% { background-position: -8px 2px; }
  40% { background-position: 6px -5px; }
  50% { background-position: -3px 8px; }
  60% { background-position: 9px 3px; }
  70% { background-position: -6px -7px; }
  80% { background-position: 4px 6px; }
  90% { background-position: -7px -2px; }
}

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.5s;
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: screen;
  animation: auroraDrift var(--dur, 14s) ease-in-out infinite alternate;
}
body.light-mode .aurora-layer { mix-blend-mode: multiply; opacity: 0.4; }

.aurora-layer:nth-child(1) {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(48,197,210,0.14) 0%, transparent 70%);
  top: -200px; right: -150px;
  --dur: 12s;
  animation-name: auroraA;
}
.aurora-layer:nth-child(2) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(71,16,105,0.16) 0%, transparent 70%);
  bottom: -200px; left: -100px;
  --dur: 16s;
  animation-name: auroraB;
}
.aurora-layer:nth-child(3) {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(85,124,147,0.1) 0%, transparent 70%);
  top: 40%; left: 40%;
  --dur: 20s;
  animation-name: auroraC;
}

@keyframes auroraA {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(80px,60px) scale(1.15); }
  100% { transform: translate(-40px,30px) scale(0.9); }
}
@keyframes auroraB {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  50%  { transform: translate(-60px,-80px) scale(1.1) rotate(15deg); }
  100% { transform: translate(40px,40px) scale(0.95) rotate(-10deg); }
}
@keyframes auroraC {
  0%   { transform: translate(-50%,-50%) scale(1); }
  100% { transform: translate(-50%,-50%) scale(1.4) rotate(45deg); }
}

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    conic-gradient(from 0deg at 50% 50%, transparent 89deg, rgba(48,197,210,0.025) 90deg, transparent 91deg),
    conic-gradient(from 90deg at 50% 50%, transparent 89deg, rgba(48,197,210,0.025) 90deg, transparent 91deg);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
  transition: opacity 0.5s;
}
body.light-mode .mesh-bg { opacity: 0.4; }

#matrix-canvas {
  position: fixed; inset: 0;
  opacity: 0.025; pointer-events: none; z-index: 0;
  transition: opacity 0.5s;
}
body.light-mode #matrix-canvas { opacity: 0.006; }

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; z-index: 9999;
  background: linear-gradient(to right, var(--c1), var(--c6), var(--c7));
  box-shadow: 0 0 14px rgba(48,197,210,0.6);
  transform-origin: left;
  transition: width 0.1s linear;
}

#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--c1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  box-shadow: 0 0 12px rgba(48,197,210,0.8);
  transition: transform 0.06s, width 0.2s var(--spring), height 0.2s var(--spring);
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(48,197,210,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.25s var(--spring), height 0.25s var(--spring), border-color 0.2s, left 0.12s, top 0.12s;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--c1);
  box-shadow: var(--glow-c1);
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--c1), var(--c2));
  border-radius: 2px;
}

.page { position: relative; z-index: 2; }
section { padding: 120px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1), inset 0 1px 0 var(--glass-border-light);
  animation: navReveal 0.9s var(--smooth) forwards;
  transition: background 0.5s, border-color 0.5s;
}
@keyframes navReveal {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--c1);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo:hover {
  text-shadow:
    1px 0 0 rgba(71,16,105,0.6),
    -1px 0 0 rgba(85,124,147,0.6);
  transition: text-shadow 0.3s;
}
.nav-logo span { color: var(--white); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(to right, var(--c1), var(--c6));
  transition: width 0.35s var(--spring);
  border-radius: 1px;
}
.nav-links a:hover { color: var(--c1); }
.nav-links a:hover::after { width: 100%; }

.theme-btn {
  position: relative;
  width: 52px; height: 26px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 13px;
  cursor: none;
  padding: 0;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--smooth);
  overflow: hidden;
  flex-shrink: 0;
}
.theme-btn::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c6));
  transition: transform 0.35s var(--spring), background 0.3s;
  box-shadow: 0 0 8px rgba(48,197,210,0.5);
}
body.light-mode .theme-btn::before {
  transform: translateX(26px);
  background: linear-gradient(135deg, var(--c2), var(--c3));
  box-shadow: 0 0 8px rgba(8,32,62,0.4);
}
.theme-btn-icon {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 10px;
  transition: opacity 0.3s;
  pointer-events: none;
}
.theme-btn-icon.moon { right: 6px; opacity: 1; }
.theme-btn-icon.sun  { left: 6px;  opacity: 0; }
body.light-mode .theme-btn-icon.moon { opacity: 0; }
body.light-mode .theme-btn-icon.sun  { opacity: 1; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c1); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
  transition: background 0.5s;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--text-muted); text-decoration: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-drawer a:hover { color: var(--c1); padding-left: 8px; }

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

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

.hero-label {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--c1); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: heroFadeUp 0.6s 0.3s ease forwards;
}
.hero-label::before {
  content: '';
  width: 28px; height: 1px;
  background: linear-gradient(to right, var(--c1), transparent);
}
.hero-label::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--c7);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(57,255,158,0.5);
  animation: liveDot 1.8s ease-in-out infinite;
}
@keyframes liveDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(48,197,210,0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(48,197,210,0); }
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1.0;
  margin-bottom: 10px;
  opacity: 0;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c6) 40%, var(--c1) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeUp 0.6s 0.5s ease forwards, gradientFlow 6s ease infinite 1.1s;
}
body.light-mode .hero-name {
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 40%, var(--c3) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes gradientFlow {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.hero-accent {
  -webkit-text-fill-color: var(--c7);
  color: var(--c7);
}
body.light-mode .hero-accent {
  -webkit-text-fill-color: var(--c3);
  color: var(--c3);
}

.hero-handle {
  font-size: 12px; color: var(--text-muted); margin-bottom: 28px;
  opacity: 0; animation: heroFadeUp 0.6s 0.65s ease forwards;
}
.hero-handle span { color: var(--c6); }

.hero-tagline {
  font-size: 14px; color: var(--text); line-height: 1.9;
  max-width: 480px; margin-bottom: 36px;
  opacity: 0; animation: heroFadeUp 0.6s 0.75s ease forwards;
  border-left: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--c1), transparent) 1;
  padding-left: 20px;
  position: relative;
}
.hero-tagline::before {
  content: '';
  position: absolute;
  inset: 0; left: 0;
  width: 100%;
  background: linear-gradient(to right, rgba(48,197,210,0.05), transparent);
  pointer-events: none;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: heroFadeUp 0.6s 0.95s ease forwards;
}

.typing-wrap {
  height: 22px; overflow: hidden; margin-bottom: 36px;
  opacity: 0; animation: heroFadeUp 0.6s 0.85s ease forwards;
}
.typing-text {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid var(--c1);
  overflow: hidden;
  animation: typeIn 2.5s steps(40) 1.5s both, blinkCaret 0.7s step-end infinite;
  font-size: 12px; color: var(--text-muted);
}
@keyframes typeIn    { from { width: 0; } to { width: 100%; } }
@keyframes blinkCaret {
  0%,100% { border-color: var(--c1); }
  50%     { border-color: transparent; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; border: none; cursor: none;
  position: relative; overflow: hidden; transition: all 0.3s var(--smooth);
  border-radius: 3px;
}

.btn-primary {
  color: #fff;
  font-weight: 700;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  filter: url(#gooey-btn);
  background: linear-gradient(var(--grd-angle, 135deg), var(--c1), var(--c2), var(--c6));
  background-size: 200% auto;
  animation: btnGrdSpin 6s linear infinite;
  --grd-angle: 135deg;
}
@keyframes btnGrdSpin { to { --grd-angle: 495deg; } }

.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform 0.55s var(--smooth);
}
.btn-primary:hover::after { transform: translateX(110%) skewX(-20deg); }
.btn-primary:hover {
  box-shadow: var(--glow-c1);
  transform: translateY(-2px);
  filter: url(#gooey-btn) brightness(1.1);
}

.btn-outline {
  background: var(--glass-bg);
  color: var(--c1);
  border: 1px solid var(--glass-border);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-outline::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(48,197,210,0.12), rgba(71,16,105,0.1));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-outline:hover {
  background: rgba(48,197,210,0.1);
  border-color: var(--c1);
  box-shadow: var(--glow-c1);
  transform: translateY(-2px);
}
.btn-outline:hover::before { opacity: 1; }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  opacity: 0; animation: heroFadeUp 1s 1s ease forwards;
}

.avatar-wrapper {
  position: relative;
  width: 280px; height: 280px;
}

.avatar-ring-conic {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--c1) 0deg,
    var(--c6) 90deg,
    var(--c7) 180deg,
    transparent 270deg,
    var(--c1) 360deg
  );
  animation: conicSpin 4s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 85%, black 86%);
  mask: radial-gradient(circle, transparent 85%, black 86%);
}
@keyframes conicSpin { to { transform: rotate(360deg); } }

.avatar-ring-dash {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1px dashed rgba(71,16,105,0.35);
  animation: conicSpin 18s linear infinite reverse;
}
.avatar-ring-dash::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--c6);
  border-radius: 50%;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--glow-c6);
}

.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(1.1) contrast(1.05);
  border: 2px solid rgba(48,197,210,0.25);
  position: relative; z-index: 1;
}

.avatar-holo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from var(--shimmer-x, -40%),
    transparent 0%,
    rgba(48,197,210,0.1) 20%,
    rgba(71,16,105,0.14) 40%,
    rgba(85,124,147,0.1) 60%,
    transparent 80%
  );
  z-index: 2;
  pointer-events: none;
  animation: holoSpin 6s linear infinite;
  mix-blend-mode: screen;
}
@keyframes holoSpin { to { --shimmer-x: 320%; } }

.avatar-hex {
  position: absolute;
  bottom: -18px; right: -18px;
  width: 70px; height: 70px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: rgba(8,32,62,0.6);
  border: 1px solid rgba(48,197,210,0.25);
  animation: hexFloat 3.5s ease-in-out infinite;
  z-index: 3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.light-mode .avatar-hex { background: rgba(255,255,255,0.6); }
@keyframes hexFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-12px) rotate(5deg); }
}

.status-badge {
  position: absolute; top: 18px; right: -14px;
  background: var(--glass-bg);
  border: 1px solid rgba(48,197,210,0.25);
  padding: 7px 14px; font-size: 11px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 var(--glass-border-light);
  z-index: 3;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--c7);
  border-radius: 50%;
  animation: statusPulse 1.8s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(57,255,158,0.4); }
  50%     { opacity: 0.7; box-shadow: 0 0 0 5px rgba(57,255,158,0); }
}

.section-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 56px;
}
.section-num {
  font-size: 10px; letter-spacing: 3px; color: var(--c1);
  background: rgba(48,197,210,0.07);
  border: 1px solid rgba(48,197,210,0.18);
  padding: 6px 12px; border-radius: 3px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--white);
}
.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(48,197,210,0.4), rgba(71,16,105,0.3), transparent);
  position: relative;
  overflow: visible;
}
.section-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 1px;
  background: var(--c1);
  box-shadow: 0 0 10px rgba(48,197,210,0.6);
  animation: lineRun 3s ease-in-out infinite;
}
@keyframes lineRun {
  0%   { left: 0; opacity: 1; }
  80%  { left: calc(100% - 60px); opacity: 1; }
  100% { left: calc(100% - 60px); opacity: 0; }
}

#about {
  background: var(--surface);
  border-top: 1px solid rgba(48,197,210,0.06);
  border-bottom: 1px solid rgba(48,197,210,0.06);
  position: relative;
  overflow: hidden;
  transition: background 0.5s;
}
#about::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at 100% 30%, rgba(71,16,105,0.06), transparent 60%);
  pointer-events: none;
}

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

.about-text p {
  color: var(--text); line-height: 1.9; margin-bottom: 18px; font-size: 13.5px;
}

.about-meta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.meta-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: all 0.3s var(--smooth);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--glass-border-light);
}
.meta-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(48,197,210,0.07) 50%,
    transparent 100%
  );
  transition: left 0.5s var(--smooth);
}
.meta-item:hover {
  border-color: rgba(48,197,210,0.35);
  transform: translateX(5px);
  box-shadow: 0 8px 32px rgba(48,197,210,0.1), inset 0 1px 0 var(--glass-border-light);
}
.meta-item:hover::before { left: 150%; }
.meta-icon  { color: var(--c1); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.meta-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.meta-value { font-size: 13px; color: var(--white); }

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

.stat-card {
  padding: 26px 22px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s var(--spring);
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: conic-gradient(
    from var(--hue-rot, 0deg),
    rgba(48,197,210,0.7) 0deg,
    rgba(71,16,105,0.5) 90deg,
    rgba(85,124,147,0.5) 180deg,
    rgba(176,110,255,0.4) 270deg,
    rgba(48,197,210,0.7) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: conicBorderSpin 6s linear infinite;
  --hue-rot: 0deg;
}
@keyframes conicBorderSpin { to { --hue-rot: 360deg; } }
.stat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 10px;
  z-index: 0;
  box-shadow: inset 0 1px 0 var(--glass-border-light);
}
.stat-card > * { position: relative; z-index: 1; }
.stat-card:hover { transform: translateY(-4px) scale(1.02); }

.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 40px; line-height: 1; color: var(--white);
}
.stat-num .acc { color: var(--c1); }
.stat-label { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-top: 6px; }

.terminal {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  margin: 40px 0;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(71,16,105,0.1),
    inset 0 1px 0 var(--glass-border-light);
}
.terminal-bar {
  background: rgba(8,32,62,0.5);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}
body.light-mode .terminal-bar { background: rgba(200,220,255,0.2); }
.t-dot   { width: 10px; height: 10px; border-radius: 50%; }
.t-red   { background: #ff5f57; }
.t-yellow{ background: #febc2e; }
.t-green { background: #28c840; }
.t-title { font-size: 11px; color: var(--text-muted); margin-left: auto; letter-spacing: 1px; }
.terminal-body { padding: 20px 24px; font-size: 13px; line-height: 2.1; }
.t-prompt  { color: var(--c7); }
.t-cmd     { color: var(--white); }
.t-comment { color: var(--text-dim); }
.t-string  { color: var(--c5); }
.t-key     { color: var(--c1); }
.t-val     { color: var(--c6); }
.t-cursor  {
  display: inline-block; width: 8px; height: 13px;
  background: var(--c1); vertical-align: middle;
  animation: blinkCursor 1s step-end infinite;
  box-shadow: 0 0 8px rgba(48,197,210,0.5);
}
@keyframes blinkCursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

#skills { background: var(--bg); position: relative; overflow: hidden; transition: background 0.5s; }
#skills::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 40%; height: 40%;
  background: radial-gradient(circle at 0% 100%, rgba(48,197,210,0.04), transparent);
  pointer-events: none;
}

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

.skill-group {
  padding: 26px 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.4s var(--smooth);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--glass-border-light);
}
.skill-group::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 0 0, rgba(48,197,210,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-group::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 100% 100%, rgba(71,16,105,0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-group:hover {
  border-color: rgba(48,197,210,0.4);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.25),
    0 0 0 1px rgba(48,197,210,0.15),
    inset 0 1px 0 var(--glass-border-light);
}
.skill-group:hover::before,
.skill-group:hover::after { opacity: 1; }

.skill-group-title {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c1); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.skill-group-title::before { content: '//'; color: var(--text-dim); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 5px 12px;
  font-size: 11px;
  border: 1px solid rgba(48,197,210,0.2);
  color: var(--text);
  background: rgba(48,197,210,0.05);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  transition: all 0.25s var(--smooth);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.tag::before {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(48,197,210,0.15) 50%,
    transparent 100%
  );
  transition: top 0.3s var(--smooth);
}
.tag:hover {
  border-color: var(--c1);
  color: var(--c1);
  background: rgba(48,197,210,0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(48,197,210,0.15);
}
.tag:hover::before { top: 100%; }

#projects {
  background: var(--surface);
  border-top: 1px solid rgba(48,197,210,0.06);
  border-bottom: 1px solid rgba(48,197,210,0.06);
  transition: background 0.5s;
}

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.project-card {
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all 0.4s var(--smooth);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: inset 0 1px 0 var(--glass-border-light);
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--c1), var(--c6), var(--c7));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--smooth);
  border-radius: 2px 2px 0 0;
}
.project-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(48,197,210,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover {
  border-color: rgba(48,197,210,0.4);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.35),
    0 0 0 1px rgba(48,197,210,0.15),
    inset 0 1px 0 var(--glass-border-light);
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover::after  { opacity: 1; }

.project-num { font-size: 10px; letter-spacing: 3px; color: var(--text-dim); margin-bottom: 14px; }
.project-title {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--white); margin-bottom: 10px;
}
.project-desc {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.75;
  flex: 1; margin-bottom: 18px;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.project-tech .tag { font-size: 10px; padding: 3px 10px; }

.project-link {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c1); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.2s, color 0.2s;
}
.project-link:hover { gap: 14px; color: var(--c7); }

#connect { background: var(--bg); position: relative; overflow: hidden; transition: background 0.5s; }
#connect::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(71,16,105,0.07), transparent 60%);
  pointer-events: none;
}

.connect-inner {
  text-align: center; max-width: 600px; margin: 0 auto;
  position: relative; z-index: 1;
}
.connect-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.5vw, 58px); color: var(--white);
  line-height: 1.1; margin-bottom: 24px;
}
.connect-title span { color: var(--c1); }
.connect-desc {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px;
}

.social-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}

.social-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  color: var(--text);
  text-decoration: none;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.35s var(--smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-border-light);
}
.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(48,197,210,0.12), rgba(71,16,105,0.1));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--smooth);
  border-radius: 8px;
}
.social-link:hover {
  border-color: rgba(48,197,210,0.45);
  color: var(--c1);
  transform: translateY(-3px);
  box-shadow: var(--glow-c1), inset 0 1px 0 var(--glass-border-light);
}
.social-link:hover::before { transform: scaleY(1); }
.social-link svg {
  width: 16px; height: 16px;
  fill: currentColor;
  transition: transform 0.3s;
  position: relative; z-index: 1;
}
.social-link:hover svg { transform: scale(1.15) translateY(-2px); }
.social-link > * { position: relative; z-index: 1; }

footer {
  border-top: 1px solid rgba(48,197,210,0.08);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  padding: 26px 40px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-dim);
  position: relative; z-index: 2;
  transition: background 0.5s;
}
footer a { color: var(--c1); text-decoration: none; transition: all 0.2s; }
footer a:hover { color: var(--white); text-shadow: 0 0 10px rgba(48,197,210,0.4); }

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--c6);
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  transform: translate(-2px, 0);
  animation: glitch1 5s infinite linear;
}
.glitch::after {
  color: var(--c1);
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  transform: translate(2px, 0);
  animation: glitch2 5s infinite linear;
}
@keyframes glitch1 {
  0%,88%,100% { transform: translate(0); opacity: 0; }
  90%          { transform: translate(-3px,1px); opacity: 1; }
  94%          { transform: translate(3px,-1px); opacity: 1; }
}
@keyframes glitch2 {
  0%,91%,100% { transform: translate(0); opacity: 0; }
  93%          { transform: translate(3px,1px); opacity: 1; }
  96%          { transform: translate(-3px,-1px); opacity: 1; }
}

.hero-decoration {
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  pointer-events: none;
  perspective: 600px;
  opacity: 0.5;
}
.hero-deco-inner {
  width: 100%; height: 100%;
  transform: rotateX(55deg) rotateZ(-25deg);
  background-image:
    linear-gradient(rgba(48,197,210,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,197,210,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 8s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
@keyframes gridDrift {
  0%,100% { background-position: 0 0; }
  50%     { background-position: 0 40px; }
}

.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(48,197,210,0.08);
  border-bottom: 1px solid rgba(48,197,210,0.08);
  padding: 10px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute; top: 0;
  width: 80px; height: 100%;
  z-index: 1; pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.ticker-track {
  display: flex; gap: 48px;
  width: max-content;
  animation: tickerRun 22s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
  display: flex; align-items: center; gap: 16px;
}
.ticker-item::after { content: '◆'; color: rgba(48,197,210,0.3); font-size: 7px; }
@keyframes tickerRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 42px; height: 42px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c1); font-size: 18px;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 var(--glass-border-light);
  transition: all 0.3s var(--spring);
  opacity: 0; pointer-events: none;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover {
  transform: translateY(-4px);
  border-color: var(--c1);
  box-shadow: var(--glow-c1);
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--spring), transform 0.7s var(--spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

#spark-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9990;
}

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

@media (max-width: 768px) {
  .hero-grid, .about-grid, .projects-grid { grid-template-columns: 1fr; }
  .skills-wrapper { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
  .avatar-wrapper { width: 200px; height: 200px; }
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 32px; }
  .back-to-top { bottom: 20px; right: 20px; }
  .hero-decoration { display: none; }
}

@media (max-width: 480px) {
  .skills-wrapper { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; clip-path: none; }
  .social-row { flex-direction: column; align-items: stretch; }
  .social-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
