@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --bg:       #0a0f14;
  --bg2:      #0f1820;
  --bg3:      #151f28;
  --electric: #00d4ff;
  --electric2:#0099cc;
  --lime:     #39ff6e;
  --orange:   #ff6b2b;
  --ink:      #f0f6fc;
  --muted:    #7a9aaa;
  --border:   #1e3040;
  --border2:  #2a4055;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--electric);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform .15s ease, opacity .2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--electric);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform .35s ease, opacity .2s;
  opacity: .4;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── Grid overlay ── */
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .25;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all .3s;
}
nav.scrolled {
  background: #080c10e8;
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--electric); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--electric);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--electric); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ── Section base ── */
section { position: relative; z-index: 1; }

/* ── Eyebrow ── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--electric);
}

/* ── Display type ── */
.display {
  font-family: 'Bebas Neue', sans-serif;
  line-height: .95;
  letter-spacing: 0.02em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all .2s;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--electric);
  color: var(--bg);
  font-weight: 500;
}
.btn-primary:hover { background: #33ddff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--electric);
  border: 1px solid var(--electric);
}
.btn-outline:hover {
  background: var(--electric);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ── Skill chips ── */
.chip {
  display: inline-block;
  padding: 5px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  border: 1px solid var(--border2);
  color: var(--muted);
  background: var(--bg2);
  transition: all .2s;
}
.chip:hover {
  border-color: var(--electric);
  color: var(--electric);
}

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all .3s;
  position: relative;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--electric);
  transition: height .3s;
}
.card:hover { border-color: var(--border2); transform: translateY(-4px); }
.card:hover::before { height: 100%; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes glitch {
  0%,100% { clip-path: inset(0 0 100% 0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translateX(-4px); }
  40% { clip-path: inset(50% 0 30% 0); transform: translateX(4px); }
  60% { clip-path: inset(80% 0 5% 0);  transform: translateX(-2px); }
  80% { clip-path: inset(10% 0 80% 0); transform: translateX(2px); }
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)} }
@keyframes scanline {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100vh); }
}

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

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  text-decoration: none; letter-spacing: 0.08em;
  transition: color .2s;
}
.footer-links a:hover { color: var(--electric); }

@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 20px; }
  footer { flex-direction: column; gap: 16px; padding: 28px 20px; }
}
