/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:        #0a0d11;
  --surface:   #0f1318;
  --surface-2: #161b22;
  --border:    #21262d;
  --border-glow: rgba(33, 139, 255, 0.25);
  --text:      #e6edf3;
  --muted:     #7d8590;
  --accent:    #218bff;
  --accent-2:  #3fb950;
  --accent-3:  #e3b341;
  --accent-4:  #ff7b72;
  --mono:      'Share Tech Mono', monospace;
  --display:   'Syne', sans-serif;
  --body:      'DM Sans', sans-serif;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── GRID BG ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 139, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 139, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NOISE ───────────────────────────────────────────── */
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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 17, 0.85);
  backdrop-filter: blur(16px);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .05em;
}
.nav-logo span { color: var(--muted); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}
#hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.hero-label {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .6s .1s forwards;
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}
.hero-title {
  font-family: var(--mono);
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .6s .3s forwards;
}
.hero-title .blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .6s .35s forwards;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .6s .45s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #388bfd;
  box-shadow: 0 0 18px rgba(33,139,255,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(33,139,255,.15);
}

/* ─── HEADSHOT ────────────────────────────────────────── */
.hero-photo-wrap {
  opacity: 0;
  animation: fadeIn .8s .5s forwards;
  flex-shrink: 0;
}
.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow:
    0 0 0 6px rgba(33,139,255,.06),
    0 20px 60px rgba(0,0,0,.6);
  display: block;
  transition: box-shadow .3s;
}
.hero-photo:hover {
  box-shadow:
    0 0 0 6px rgba(33,139,255,.15),
    0 20px 60px rgba(0,0,0,.7);
}

/* ─── SECTION SHARED ─────────────────────────────────── */
section { padding: 80px 0; }
.section-header { /* FIX: was "section-header" — missing dot */
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}
.section-tag {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

/* ─── ABOUT ──────────────────────────────────────────── */
#about { border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.about-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(33,139,255,.06);
}
.about-card-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.about-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.about-card p, .about-card li {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}
.about-card ul {
  list-style: none;
  padding: 0;
}
.about-card ul li::before {
  content: '▸ ';
  color: var(--accent);
}
.about-wide {
  grid-column: 1 / -1;
}

/* ─── SKILLS ─────────────────────────────────────────── */
#skills { border-top: 1px solid var(--border); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color .2s, transform .2s;
}
.skill-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.skill-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.skill-icon {
  font-size: 1.2rem;
}
.skill-name {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--accent);
  letter-spacing: .04em;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: .7rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ─── INTERESTS ──────────────────────────────────────── */
#interests { border-top: 1px solid var(--border); }
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.interest-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: .88rem;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}
.interest-pill:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

/* ─── DIRECTORY ──────────────────────────────────────── */
#connect { border-top: 1px solid var(--border); }
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.dir-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none !important;
  display: block;
}
.dir-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 28px rgba(33,139,255,.08);
  transform: translateY(-3px);
}
.dir-icon { font-size: 1.6rem; margin-bottom: 10px; }
.dir-title {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.dir-sub {
  font-family: var(--mono);
  font-size: .73rem;
  color: var(--muted);
}

/* ─── BADGE STRIP ────────────────────────────────────── */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.badge-python    { background: #3572A5; }
.badge-linux     { background: #e8a202; color: #000; }
.badge-cybersec  { background: #2563eb; }
.badge-js        { background: #f0db4f; color: #000; }
.badge-netsec    { background: #16a34a; }
.badge-bash      { background: #1e293b; border: 1px solid var(--border); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
footer .container {
  display: flex;
/*  justify-content: space-between; */
  flex-wrap: wrap;
/*  gap: 12px;  */
}
.footer-mono {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}

/* ─── DIVIDER ────────────────────────────────────────── */
.hex-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  opacity: .25;
  font-size: .75rem;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: .2em;
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--accent-2); }
  50%       { box-shadow: 0 0 14px var(--accent-2); }
}

/* ─── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 680px) {
  #hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-actions { justify-content: center; }
  footer .container { flex-direction: column; text-align: center; }
}
