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

:root {
  --bg:       #050705;
  --bg2:      #0a0e0a;
  --bg3:      #101710;
  --accent:      #a7ff32;
  --accent-dim:  #6f9f31;
  --accent-glow: rgba(167,255,50,0.18);
  --amber:    #d5ff70;
  --text:     #ffffff;
  --muted:    #eeeeee;
  --border:   #344034;
  --white:    #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: crosshair;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* SUBTLE GREEN VIGNETTE */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(70,110,30,0.035) 100%);
  pointer-events: none;
  z-index: 9997;
}

/* ── TOPBAR ── */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  position: sticky; top: 0;
  background: rgba(5,7,5,0.97);
  backdrop-filter: blur(8px);
  z-index: 200;
  height: 52px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.2em;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.status-pill {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  animation: blink 1.8s step-end infinite;
  display: none;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

nav a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  border-left: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
nav a:hover {
  color: var(--accent);
  background: var(--bg2);
}
nav a.active {
  color: var(--accent);
  background: var(--bg2);
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

/* ── TICKER ── */
.ticker {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 7px 0;
  background: var(--bg2);
}
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #eeeeee;
  text-transform: uppercase;
}
.ticker-inner span { margin: 0 36px; }
.ticker-inner .sep { color: var(--accent); }

/* ── PAGE WRAPPER ── */
.page {
  flex: 1;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ── PAGE HEADER ── */
.page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 56px;
}
.page-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-eyebrow::before { content: '// '; }

.page-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.page-header h1 em {
  color: var(--accent);
  font-style: normal;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  z-index: -1;
}
.btn:hover { color: #000; }
.btn:hover::before { transform: scaleX(1); }

.btn-ghost {
  border-color: var(--muted);
  color: var(--muted);
}
.btn-ghost::before { background: var(--muted); }

/* ── FOOTER ── */
footer {
  margin-top: auto;
  padding: 24px clamp(24px, 5vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
}
footer a { color: #ffffff; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
.footer-signal { color: var(--accent); animation: blink 1.8s step-end infinite; }

/* ── SKILL TAGS ── */
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.skill-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 5px 12px;
  color: var(--muted);
  transition: all 0.2s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PLACEHOLDERS ── */
.placeholder {
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.placeholder svg { opacity: 0.25; }

/* ── KEYFRAMES ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 44px 44px; }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.2s; }
.fade-up-4 { animation-delay: 0.3s; }

/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: rgba(5,7,5,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  flex-direction: column;
  padding: 8px 0 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 28px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-nav a::before { content: '//'; color: var(--accent); font-size: 11px; }
.mobile-nav a:hover  { color: var(--white); background: var(--bg2); }
.mobile-nav a.active { color: #ffffff; }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 860px) {
  .page { padding: 40px 20px; }
  .page-header { margin-bottom: 36px; }
}

@media (max-width: 768px) {
  /* hide desktop nav, show hamburger */
  nav { display: none; }
  .hamburger { display: flex; }
  .logo { font-size: 12px; letter-spacing: 0.14em; }
  .topbar { padding: 0 16px 0 20px; }

  /* footer stack */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 10px;
  }
  footer div { flex-wrap: wrap; gap: 14px; }

  /* page */
  .page { padding: 32px 18px 48px; }

  /* buttons full width on small screens */
  .cta-group { flex-direction: column; }
  .cta-group .btn { text-align: center; }

  /* skill tags smaller */
  .skill-tag { font-size: 9px; padding: 4px 10px; }
}

@media (max-width: 480px) {
  .logo { font-size: 11px; }
  .page-header h1 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .ticker { display: none; } /* hide ticker on very small screens */
}


/* ── ACCESSIBILITY & TACTICAL GREEN REFINEMENTS ── */
::selection { background: var(--accent); color: #071006; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
body { cursor: default; }
a, button { cursor: pointer; }
.topbar { gap: 16px; }
.topbar nav { flex-shrink: 0; }
nav a { padding-left: clamp(9px, 1.15vw, 17px); padding-right: clamp(9px, 1.15vw, 17px); }
.mobile-nav a { min-height: 48px; }
.mobile-nav a::before { color: var(--accent); }
.mobile-nav a.active { color: #ffffff; background: var(--bg2); }
.mobile-nav a.active::before { content: '>'; }
.quick-links { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .quick-links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
