@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Share+Tech+Mono&family=Exo+2:wght@300;400;500;600&display=swap');

:root {
  --blue: #3b9eff;
  --purple: #8b2fc9;
  --blue-light: #60b4ff;
  --purple-light: #a855f7;
  --bg: #020b18;
  --bg2: #050f20;
  --bg3: #091628;
  --surface: rgba(59,158,255,0.06);
  --border: rgba(59,158,255,0.18);
  --text: #cde0ff;
  --text-dim: #5a7fa8;
  --red: #ff3c3c;
  --glow-blue: 0 0 20px rgba(59,158,255,0.4);
  --glow-purple: 0 0 20px rgba(139,47,201,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(2,11,24,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span:first-child { color: var(--blue); }
.nav-logo span:last-child { color: var(--purple-light); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  border-color: var(--border);
  background: var(--surface);
  text-shadow: 0 0 8px rgba(59,158,255,0.6);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  transition: all 0.3s;
}

/* MAIN */
main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* HERO */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 2rem 4rem 8vw;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(139,47,201,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  bottom: 10%;
  left: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59,158,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-tag::before { content: '> '; color: var(--red); }

.hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

.hero h1 .blue { color: var(--blue); text-shadow: var(--glow-blue); }
.hero h1 .purple { color: var(--purple-light); text-shadow: var(--glow-purple); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

/* BUTTONS */
.btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: 1px solid;
  transition: all 0.25s;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,158,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,158,255,0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
}

/* SECTIONS */
.section {
  padding: 6rem 8vw;
  position: relative;
  z-index: 1;
}

.section-tag {
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-tag::before { content: '// '; color: var(--text-dim); }

.section h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section h2 .blue { color: var(--blue); }
.section h2 .purple { color: var(--purple-light); }

.section-desc {
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover::before { transform: scaleX(1); }
.card:hover {
  border-color: rgba(59,158,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,158,255,0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  color: var(--blue-light);
  margin-bottom: 0.5rem;
}

.card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* GRID */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* DIVIDER */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 8vw;
}

/* TERMINAL */
.terminal {
  background: #010d1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
}

.terminal-bar {
  background: var(--bg3);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.85rem;
  line-height: 2;
  color: #8bb8d4;
}

.terminal-body .cmd { color: var(--blue); }
.terminal-body .out { color: #4ade80; }
.terminal-body .comment { color: var(--text-dim); }
.terminal-body .prompt { color: var(--purple-light); }

/* SKILL BARS */
.skill-item { margin-bottom: 1.25rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.skill-name { font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: var(--text); }
.skill-pct { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--blue); }
.skill-bar { height: 4px; background: rgba(59,158,255,0.1); border-radius: 2px; overflow: hidden; }
.skill-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple-light));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* BADGE */
.badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid;
}
.badge-blue { color: var(--blue); border-color: rgba(59,158,255,0.35); background: rgba(59,158,255,0.08); }
.badge-purple { color: var(--purple-light); border-color: rgba(168,85,247,0.35); background: rgba(168,85,247,0.08); }
.badge-red { color: var(--red); border-color: rgba(255,60,60,0.35); background: rgba(255,60,60,0.08); }

/* FORM */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,158,255,0.1);
}
.form-textarea { resize: vertical; min-height: 130px; }

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1rem;
}
.footer-logo .blue { color: var(--blue); }
.footer-logo .purple { color: var(--purple-light); }

.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links { display: flex; gap: 1rem; }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor::after {
  content: '_';
  color: var(--blue);
  animation: blink 1s infinite;
}

@keyframes glitch {
  0%, 100% { clip-path: inset(0 0 100% 0); }
  10% { clip-path: inset(10% 0 60% 0); transform: translate(-4px, 0); }
  20% { clip-path: inset(50% 0 20% 0); transform: translate(4px, 0); }
  30% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(2,11,24,0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 3rem 1.5rem; align-items: center; text-align: center; }
  .section { padding: 4rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }
}
