:root {
  --green:      #99e6a2;
  --green-dim:  #4db85a;
  --green-glow: rgba(153,230,162,0.18);
  --green-lt:   rgba(153,230,162,0.10);
  --green-bdr:  rgba(153,230,162,0.30);
  --black:      #000000;
  --dark:       #050f05;
  --card-bg:    #060e06;
  --muted:      #5a8c5e;
  --radius:     4px;
  --max:        900px;
  --mono:       'Share Tech Mono', monospace;
  --display:    'Orbitron', monospace;
  --body:       'Exo 2', sans-serif;
}

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

body {
  font-family: var(--body);
  background: var(--black);
  color: var(--green);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
  );
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }

.label {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green-dim);
  margin-bottom: .75rem;
}
.label::before { content: '// '; opacity: .6; }

h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600; line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--green);
  text-shadow: 0 0 18px rgba(153,230,162,0.4);
}

p { color: var(--muted); max-width: 58ch; font-weight: 300; }
a { color: inherit; text-decoration: none; }

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

/* ── Matrix canvas ── */
#matrix-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.13;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(0,0,0,0.88);
  border-bottom: 1px solid var(--green-bdr);
  backdrop-filter: blur(6px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo img {
  height: 38px; width: auto;
  filter: drop-shadow(0 0 6px rgba(153,230,162,0.5));
  transition: filter .3s;
}
.nav-logo img:hover { filter: drop-shadow(0 0 14px rgba(153,230,162,0.9)); }

.nav-links { display: flex; gap: 1.75rem; font-family: var(--mono); font-size: .82rem; }
.nav-links a { color: white; transition: color .2s, text-shadow .2s; letter-spacing: .05em; }
.nav-links a:hover { color: var(--green); text-shadow: 0 0 8px var(--green); }

/* ── HERO ── */
#hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(153,230,162,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153,230,162,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; top: 40%; left: 30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(153,230,162,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; padding: 7rem 0 5rem; }

.hero-tag {
  display: inline-block;
  font-family: var(--mono);
  background: rgba(153,230,162,0.08);
  color: var(--green);
  border: 1px solid var(--green-bdr);
  font-size: .75rem; letter-spacing: .15em;
  padding: .35rem 1rem; border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.hero-tag::before { content: '> '; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.25rem;
  color: white;
  text-shadow: 0 0 30px rgba(153,230,162,0.2);
}
.hero-title em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 22px rgba(153,230,162,0.8);
}
.hero-sub {
  font-family: var(--mono);
  font-size: .9rem; max-width: 52ch;
  color: var(--muted); margin-bottom: 2.25rem;
  line-height: 1.85;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .85rem; letter-spacing: .08em;
  padding: .75rem 1.6rem; border-radius: var(--radius);
  background: var(--green); color: black; font-weight: 600;
  transition: background .2s, box-shadow .2s, transform .15s;
  border: none;
}
.btn:hover {
  background: #b8f0be;
  box-shadow: 0 0 22px rgba(153,230,162,0.55);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--green);
  border: 1px solid var(--green-bdr); margin-left: .75rem;
}
.btn-ghost:hover {
  background: var(--green-lt);
  box-shadow: 0 0 14px rgba(153,230,162,0.3);
}

/* ── ABOUT ── */
#about { background: var(--dark); position: relative; z-index: 1; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%; border-radius: var(--radius);
  display: block; object-fit: cover; aspect-ratio: 4/5;
  border: 1px solid var(--green-bdr);
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: #080f08;
  border: 1px solid var(--green-bdr);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; color: var(--muted); font-family: var(--mono); font-size: .8rem;
  position: relative; overflow: hidden;
}
.about-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 18px,
    rgba(153,230,162,0.03) 18px, rgba(153,230,162,0.03) 19px
  );
}
.about-img-placeholder svg { width: 48px; opacity: .3; stroke: var(--green); }

.about-img-wrap::before, .about-img-wrap::after {
  content: '';
  position: absolute; width: 20px; height: 20px;
  border-color: var(--green); border-style: solid;
  z-index: 2;
}
.about-img-wrap::before { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.about-img-wrap::after  { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }

.about-text h2 { color: var(--green); }
.about-text p  { color: var(--muted); }

.skills-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.skill-tag {
  font-family: var(--mono);
  background: rgba(153,230,162,0.06);
  border: 1px solid var(--green-bdr);
  padding: .3rem .85rem; border-radius: var(--radius);
  font-size: .75rem; color: var(--green);
  letter-spacing: .05em;
  transition: background .2s, box-shadow .2s;
}
.skill-tag:hover {
  background: rgba(153,230,162,0.14);
  box-shadow: 0 0 8px rgba(153,230,162,0.25);
}

/* ── PROJECTS ── */
#projects { background: var(--black); position: relative; z-index: 1; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--green-bdr);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--green-bdr) transparent transparent;
  z-index: 2;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 28px rgba(153,230,162,0.12), 0 0 1px var(--green);
  border-color: rgba(153,230,162,0.6);
}
.card-thumb {
  aspect-ratio: 16/9;
  background: #030a03;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--green-bdr);
  position: relative; overflow: hidden;
}
.card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
}
.card-body { padding: 1.25rem; }
.card-body h3 {
  font-family: var(--display);
  font-size: .95rem; font-weight: 600;
  color: var(--green); margin-bottom: .5rem;
  text-shadow: 0 0 10px rgba(153,230,162,0.3);
}
.card-body p {
  font-family: var(--mono);
  font-size: .76rem; line-height: 1.65;
  margin-bottom: 1rem; color: var(--muted);
}
.card-links { display: flex; gap: .75rem; }
.card-link {
  font-family: var(--mono);
  font-size: .74rem; color: var(--green-dim);
  display: inline-flex; align-items: center; gap: .3rem;
  transition: color .2s, gap .2s;
}
.card-link:hover { color: var(--green); gap: .5rem; }

/* ── CONTACT ── */
#contact { background: var(--dark); position: relative; z-index: 1; }
.contact-box {
  background: #050f05;
  border: 1px solid var(--green-bdr);
  border-radius: var(--radius);
  padding: 3rem; max-width: 620px;
  position: relative; overflow: hidden;
}
.contact-box::before {
  content: '';
  position: absolute; top: 0; right: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent var(--green-bdr) transparent transparent;
}
.contact-box h2 { color: var(--green); }
.contact-box > p {
  color: var(--muted); font-family: var(--mono);
  font-size: .84rem; margin-bottom: 2rem;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .8rem;
  background: rgba(153,230,162,0.06);
  border: 1px solid var(--green-bdr);
  padding: .6rem 1.1rem; border-radius: var(--radius);
  color: var(--green);
  transition: background .2s, box-shadow .2s;
}
.contact-link:hover {
  background: rgba(153,230,162,0.13);
  box-shadow: 0 0 12px rgba(153,230,162,0.25);
}

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2rem 1rem;
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted); border-top: 1px solid #0d1f0d;
  position: relative; z-index: 1;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 0; }
