@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,300&family=Syne:wght@400;600;700;800&display=swap');

/* ─── RESET & ROOT ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0b;
  --bg2:       #111114;
  --bg3:       #18181d;
  --border:    #2a2a32;
  --border2:   #3a3a44;
  --text:      #e8e8f0;
  --muted:     #6b6b80;
  --muted2:    #9090a8;
  --accent:    #00ff88;
  --accent2:   #00cc6a;
  --accent-dim:#00ff8820;
  --red:       #ff4455;
  --yellow:    #ffcc00;
  --blue:      #4488ff;
  --mono:      'JetBrains Mono', monospace;
  --sans:      'Syne', sans-serif;
  --radius:    6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  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.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─── NOISE TEXTURE ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--sans); line-height: 1.1; }
a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent2); }
p { color: var(--muted2); }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }

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

.nav-links a {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ─── TERMINAL PROMPT ─── */
.prompt { color: var(--accent); }
.prompt-user { color: var(--blue); }
.prompt-at { color: var(--muted); }
.prompt-path { color: var(--yellow); }
.prompt-dollar { color: var(--muted); }

/* ─── SECTION ─── */
section { padding: 100px 0; }
.container { max-width: 960px; margin: 0 auto; padding: 0 40px; }

/* ─── SECTION LABEL ─── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '//';
  color: var(--accent);
  font-size: 13px;
}

/* ─── DIVIDER ─── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 60px 0;
}

/* ─── BUTTON ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 20px rgba(0,255,136,0.1);
}
.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-primary:hover {
  background: rgba(0,255,136,0.15);
  box-shadow: 0 0 30px rgba(0,255,136,0.2);
}

/* ─── CURSOR BLINK ─── */
.cursor {
  display: inline-block;
  width: 10px; height: 18px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── GLOW TEXT ─── */
.glow { color: var(--accent); text-shadow: 0 0 20px rgba(0,255,136,0.4); }

/* ─── TAG ─── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border2);
  border-radius: 3px;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.05em;
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── CARD ─── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }

/* ─── STATUS DOT ─── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 8px var(--accent)} 50%{box-shadow:0 0 16px var(--accent)} }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ─── FADE IN ANIMATION ─── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .container { padding: 0 20px; }
  section { padding: 70px 0; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
