:root {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  background: #000000;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(112, 0, 255, 0.18), transparent 28%), radial-gradient(circle at 20% 80%, rgba(50, 205, 50, 0.14), transparent 20%);
  pointer-events: none;
  z-index: 0;
}
section {
  scroll-snap-align: start;
}
.glass-card {
  position: relative;
  background: rgba(6, 6, 6, 0.62);
  border: 1px solid rgba(50, 205, 50, 0.18);
  box-shadow: 0 0 55px rgba(0, 0, 0, 0.55), 0 0 1px rgba(112, 0, 255, 0.16);
  backdrop-filter: blur(22px);
  border-radius: 2rem;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.02));
}
.hero-panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 36%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 25%, rgba(112, 0, 255, 0.12), transparent 15%), radial-gradient(circle at 80% 18%, rgba(50, 205, 50, 0.1), transparent 16%), linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 420px 420px, 390px 390px, 100% 100%, 100% 100%;
  opacity: 0.35;
}
.hero-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-ring {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  border: 1px solid rgba(50, 205, 50, 0.16);
  box-shadow: 0 0 30px rgba(50, 205, 50, 0.18), inset 0 0 15px rgba(50, 205, 50, 0.18);
  margin-right: 1rem;
  animation: pulseRing 5s ease-in-out infinite;
}
.glitch {
  position: relative;
  color: #ffffff;
  display: inline-block;
  text-shadow: 0 0 10px rgba(255,255,255,0.25);
}
.fade-up {
  opacity: 0;
  transform: translateY(28px);
}
.fade-up.visible {
  animation: fadeUp 0.85s ease forwards;
  animation-delay: var(--delay, 0.1s);
}
.skill-row {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.5rem;
  background: rgba(10, 10, 10, 0.65);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-row:hover {
  transform: translateY(-4px);
  border-color: rgba(50,205,50,0.3);
  box-shadow: 0 0 20px rgba(50,205,50,0.1);
}
.skill-marker {
  width: 0.5rem;
  min-height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(50,205,50,1), rgba(112,0,255,0.8));
}
.skill-marker.abyss {
  background: linear-gradient(180deg, rgba(112,0,255,1), rgba(50,205,50,0.8));
}
.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.terminal-window {
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
  line-height: 1.7;
  letter-spacing: 0.02em;
  background: rgba(10, 10, 10, 0.9);
  border: 1px dashed rgba(255,255,255,0.08);
}
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112,0,255,0.3);
  box-shadow: 0 0 28px rgba(112,0,255,0.12);
}
.glow-link:hover {
  transform: translateY(-4px);
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 0.95; }
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  clip: rect(0, 9999px, 0, 0);
}
.glitch::before {
  animation: glitchTop 2.4s infinite linear alternate-reverse;
  color: rgba(50, 205, 50, 0.75);
  z-index: -1;
}
.glitch::after {
  animation: glitchBottom 3.1s infinite linear alternate-reverse;
  color: rgba(112, 0, 255, 0.72);
  z-index: -2;
}
@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(0); }
  10% { clip: rect(6px, 9999px, 24px, 0); transform: translate(-2px, -2px); }
  20% { clip: rect(10px, 9999px, 34px, 0); transform: translate(2px, 0); }
  30% { clip: rect(12px, 9999px, 52px, 0); transform: translate(-1px, 1px); }
  40% { clip: rect(0, 9999px, 0, 0); transform: translate(0); }
  100% { clip: rect(18px, 9999px, 42px, 0); transform: translate(1px, -1px); }
}
@keyframes glitchBottom {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(0); }
  10% { clip: rect(72px, 9999px, 92px, 0); transform: translate(2px, 2px); }
  20% { clip: rect(42px, 9999px, 80px, 0); transform: translate(-2px, 0); }
  30% { clip: rect(28px, 9999px, 64px, 0); transform: translate(1px, -1px); }
  40% { clip: rect(0, 9999px, 0, 0); transform: translate(0); }
  100% { clip: rect(54px, 9999px, 96px, 0); transform: translate(-1px, 1px); }
}
.glass-button {
  backdrop-filter: blur(14px);
}
.glow-link {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.glow-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(50, 205, 50, 0.35), 0 0 50px rgba(112, 0, 255, 0.24);
}
.tool-chip,
.project-tag,
.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(50, 205, 50, 0.16);
  border-radius: 9999px;
  background: rgba(15, 15, 15, 0.78);
  color: #c8f5c8;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.tool-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-chip:hover,
.project-tag:hover,
.project-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(50, 205, 50, 0.2);
}
.terminal-window {
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
#starfield {
  width: 100%;
  height: 100%;
}
#cursor-flare {
  mix-blend-mode: screen;
}
.cursor-point {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50,205,50,0.8), transparent 65%);
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.85;
  transform: translate(-50%, -50%);
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 0.9; }
}
@media (max-width: 640px) {
  .glass-card {
    border-radius: 1.5rem;
  }
  .hero-title {
    flex-direction: column;
  }
  .hero-ring {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
}
::-webkit-scrollbar-thumb {
  background: rgba(50,205,50,0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(50,205,50,0.6);
}
@keyframes pulseBorder {
  0%,100% {
    box-shadow: 0 0 45px rgba(50, 205, 50, 0.18), 0 0 80px rgba(112, 0, 255, 0.12);
  }
  50% {
    box-shadow: 0 0 55px rgba(50, 205, 50, 0.28), 0 0 100px rgba(112, 0, 255, 0.18);
  }
}
.project-card,
.skill-card {
  animation: pulseBorder 10s ease-in-out infinite;
}
