:root {
  --cyan: #00f5ff;
  --magenta: #ff00aa;
  --green: #00ff41;
  --yellow: #ffee00;
  --bg: #05050f;
  --bg2: #0a0a1f;
  --bg3: #0d0d25;
  --mid: #0a0a1e;
  --white: #e8f0f8;
  --grey: #4a5a6a;
  --accent: #00f5ff;
  --accent2: #ff00aa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--cyan); color: #000; }

body {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* Matrix canvas */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
}

/* Scanlines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Grid bg */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* CURSOR */
.cursor {
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0,245,255,0.4);
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
  opacity: 0.5;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(5,5,15,0.95) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,245,255,0.08);
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0,245,255,0.3);
}

.nav-logo span { color: var(--cyan); text-shadow: 0 0 15px var(--cyan); }

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a::before {
  content: '// ';
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.nav-links a:hover::before { opacity: 1; }

/* STATUS BAR */
.status-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  padding: 8px 48px;
  background: rgba(5,5,15,0.92);
  border-top: 1px solid rgba(0,245,255,0.1);
  display: flex;
  gap: 40px;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 1px;
}

.status-item { display: flex; align-items: center; gap: 8px; }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}

/* SECTIONS z-index */
section { position: relative; z-index: 10; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', monospace;
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,245,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
}

.corner-tl, .corner-br {
  position: absolute;
  width: 64px; height: 64px;
}
.corner-tl {
  top: 100px; left: 48px;
  border-top: 2px solid rgba(0,245,255,0.3);
  border-left: 2px solid rgba(0,245,255,0.3);
}
.corner-br {
  bottom: 100px; right: 48px;
  border-bottom: 2px solid rgba(255,0,170,0.3);
  border-right: 2px solid rgba(255,0,170,0.3);
}

.hero-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  margin-bottom: 20px;
}

.hero-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(52px, 12vw, 120px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 32px;
}

/* Glitch */
.glitch {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  text-shadow: none;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  -webkit-text-stroke: 2px transparent;
}

.glitch::before {
  color: var(--magenta);
  animation: glitch1 4s infinite;
  clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%);
}

.glitch::after {
  color: var(--cyan);
  animation: glitch2 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 85%, 0 85%);
}

@keyframes glitch1 {
  0%,88%,100%{transform:translate(0)}
  90%{transform:translate(-5px,2px)}
  92%{transform:translate(5px,-2px)}
  95%{transform:translate(-3px,1px)}
  97%{transform:translate(3px,-1px)}
}

@keyframes glitch2 {
  0%,85%,100%{transform:translate(0)}
  87%{transform:translate(5px,-1px)}
  89%{transform:translate(-5px,2px)}
  92%{transform:translate(4px,0)}
  95%{transform:translate(-4px,-1px)}
}

.hero-sub {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-divider {
  width: 50px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
  margin-top: 12px;
}

.hero-sub p {
  font-size: 15px;
  color: var(--grey);
  font-weight: 300;
  max-width: 400px;
  line-height: 1.8;
}

.hero-sub p em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 600;
}

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.btn {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none;
  cursor: none;
  display: inline-block;
  transition: all 0.3s;
  position: relative;
}

.btn-primary {
  color: var(--cyan);
  border: 1px solid var(--cyan);
  background: transparent;
  box-shadow: 0 0 20px rgba(0,245,255,0.15), inset 0 0 20px rgba(0,245,255,0.04);
}

.btn-primary:hover {
  background: rgba(0,245,255,0.08);
  box-shadow: 0 0 40px rgba(0,245,255,0.35), inset 0 0 30px rgba(0,245,255,0.08);
  transform: translateY(-3px);
}

.btn-secondary {
  color: var(--magenta);
  border: 1px solid var(--magenta);
  background: transparent;
  box-shadow: 0 0 20px rgba(255,0,170,0.15), inset 0 0 20px rgba(255,0,170,0.04);
}

.btn-secondary:hover {
  background: rgba(255,0,170,0.08);
  box-shadow: 0 0 40px rgba(255,0,170,0.35), inset 0 0 30px rgba(255,0,170,0.08);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  right: 48px; bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--grey);
}

.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 1.5s ease infinite;
}

/* ABOUT */
#about {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.about-left {
  background: var(--mid);
  padding: 120px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(0,245,255,0.08);
}

.about-left::before {
  content: '01';
  position: absolute;
  bottom: -2rem; left: -1rem;
  font-family: 'Orbitron', monospace;
  font-size: 18rem;
  font-weight: 900;
  color: rgba(0,245,255,0.02);
  pointer-events: none;
  line-height: 1;
}

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
  margin-bottom: 24px;
}

.about-left h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  color: var(--white);
}

.about-left h2 em {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  font-style: normal;
  text-shadow: 0 0 20px rgba(0,245,255,0.2);
}

.about-left p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-left p strong { color: var(--white); font-weight: 600; }
.accent-cyan { color: var(--cyan) !important; font-weight: 600 !important; }

.vibe-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,245,255,0.06);
  border: 1px solid rgba(0,245,255,0.2);
  color: var(--cyan);
  padding: 8px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 16px;
  width: fit-content;
}

/* MUSIC PLAYER */
.music-player {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid rgba(0,245,255,0.15);
  background: rgba(0,245,255,0.03);
  width: fit-content;
}

.music-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-size: 14px;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,245,255,0.2);
}

.music-btn:hover, .music-btn.playing {
  background: rgba(0,245,255,0.1);
  box-shadow: 0 0 20px rgba(0,245,255,0.4);
}

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

.music-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--white);
  letter-spacing: 1px;
}

.music-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
}

.music-bars span {
  display: block;
  width: 3px;
  height: 4px;
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
  transition: height 0.2s;
}

.music-bars.active span:nth-child(1) { animation: bar 0.8s ease infinite 0.0s; }
.music-bars.active span:nth-child(2) { animation: bar 0.8s ease infinite 0.1s; }
.music-bars.active span:nth-child(3) { animation: bar 0.8s ease infinite 0.2s; }
.music-bars.active span:nth-child(4) { animation: bar 0.8s ease infinite 0.15s; }
.music-bars.active span:nth-child(5) { animation: bar 0.8s ease infinite 0.05s; }

@keyframes bar {
  0%,100%{height:4px}
  50%{height:14px}
}

.music-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 1px;
}
.music-hint.hidden { display: none; }

/* ABOUT RIGHT */
.about-right {
  background: var(--bg);
  padding: 120px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.stat-row {
  border-top: 1px solid rgba(0,245,255,0.08);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  transition: all 0.3s;
  position: relative;
}

.stat-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(0,245,255,0.03);
  transition: width 0.4s;
}

.stat-row:hover::before { width: 100%; }

.stat-row:last-child { border-bottom: 1px solid rgba(0,245,255,0.08); }

.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan);
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.8;
}

/* PROJECTS */
#projects {
  padding: 120px 48px;
  background: var(--bg);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.section-title span { color: var(--cyan); text-shadow: 0 0 20px var(--cyan); }

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,245,255,0.3), transparent);
  min-width: 40px;
}

.projects-sub {
  width: 100%;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 1px;
  margin-top: -40px;
  padding-left: 100px;
}

.project-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,245,255,0.08);
  border-top: 1px solid rgba(0,245,255,0.08);
  position: relative;
  overflow: hidden;
  transition: padding-left 0.3s;
}

.project-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,245,255,0.04), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

.project-item:hover::before { transform: scaleX(1); }
.project-item:hover { padding-left: 12px; }
.project-item > * { position: relative; z-index: 1; }

.project-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
}

.project-info h3 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 8px;
  transition: color 0.3s, text-shadow 0.3s;
}

.project-item:hover .project-info h3 {
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan);
}

.project-info p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.5px;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.project-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px;
  transition: all 0.3s;
}

.project-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,245,255,0.2);
}

.project-links a.live {
  background: rgba(0,245,255,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,245,255,0.15);
}

.project-links a.live:hover {
  background: rgba(0,245,255,0.2);
  box-shadow: 0 0 30px rgba(0,245,255,0.35);
}

/* CONTACT */
#contact {
  min-height: 80vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--mid) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: 'HMU';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', monospace;
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,245,255,0.03);
  pointer-events: none;
  white-space: nowrap;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#contact .section-label { text-align: center; }

#contact h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
}

#contact h2 em {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--magenta);
  font-style: normal;
  text-shadow: 0 0 30px rgba(255,0,170,0.2);
}

#contact p {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.9;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
  max-width: 420px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 16px 40px;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255,0,170,0.15), inset 0 0 20px rgba(255,0,170,0.04);
  transition: all 0.3s;
  margin-top: 12px;
}

.cta-btn:hover {
  background: rgba(255,0,170,0.1);
  box-shadow: 0 0 40px rgba(255,0,170,0.35);
  transform: translateY(-3px);
}

.btn-arrow { transition: transform 0.3s; }
.cta-btn:hover .btn-arrow { transform: translateX(6px); }

/* FOOTER */
footer {
  background: var(--bg);
  padding: 20px 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,245,255,0.08);
}

footer p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 2px;
}

footer p span { color: var(--cyan); }
.footer-vibe { color: rgba(0,245,255,0.3) !important; font-style: italic; }

/* ANIMATIONS */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:1} 50%{transform:scaleY(0.4);opacity:0.3} }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media(max-width:900px){
  nav{padding:16px 24px;}
  #hero{padding:0 24px 100px;}
  .corner-tl,.corner-br{display:none;}
  #about{grid-template-columns:1fr;}
  .about-left,.about-right{padding:80px 32px;}
  #projects{padding:80px 24px;}
  .projects-sub{padding-left:0;margin-top:8px;}
  .project-item{grid-template-columns:60px 1fr;gap:20px;}
  .project-links{display:none;}
  #contact{padding:80px 24px;}
  footer{flex-direction:column;gap:8px;text-align:center;padding:20px 24px 40px;}
  .status-bar{display:none;}
}
