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

:root {
  --bg:       #060a0f;
  --surface:  #0d1520;
  --border:   #1a2d45;
  --cyan:     #00e5ff;
  --cyan-dim: #007a99;
  --amber:    #ffaa00;
  --text:     #c8dbe8;
  --muted:    #4a6a82;
  --mono:     'Share Tech Mono', monospace;
  --sans:     'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ── SCANLINE ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.08) 2px,
    rgba(0,0,0,.08) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* ── STARFIELD CANVAS ── */
#stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.wrap { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: .85rem;
  letter-spacing: .1em;
}
.nav-logo span { color: var(--amber); }
nav ul { list-style: none; display: flex; gap: 28px; }
nav a {
  font-family: var(--mono);
  color: var(--muted);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s;
}
nav a:hover { color: var(--cyan); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  margin: 5px 0;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media(max-width: 620px) {
  .hamburger { display: block; }
  nav ul {
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: rgba(6,10,15,.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, padding .3s;
    border-bottom: 1px solid var(--border);
  }
  nav ul.open {
    max-height: 280px;
    padding: 16px 0;
  }
  nav ul li { padding: 12px 0; }
  nav a { font-size: .85rem; }
}

/* ── HERO ── */
#hero {
  padding: 160px 0 80px;
  position: relative;
}
.hero-tag {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .6s .1s forwards;
}
.hero-tag::before { content: '> '; color: var(--amber); }
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #e8f4fb;
  opacity: 0;
  animation: fadeUp .6s .25s forwards;
}
h1 em {
  font-style: normal;
  color: var(--cyan);
  position: relative;
}
h1 em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px; right: 0;
  height: 2px;
  background: var(--cyan);
  opacity: .4;
}
.hero-sub {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp .6s .4s forwards;
}
.hero-sub strong { color: var(--text); font-weight: 400; }
.hero-chips {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  animation: fadeUp .6s .55s forwards;
}
.chip {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--cyan-dim);
  border: 1px solid var(--border);
  background: rgba(0,229,255,.04);
  padding: 5px 12px;
  border-radius: 2px;
  letter-spacing: .08em;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .6s .7s forwards;
}
.btn {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 2px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
}
.btn-primary:hover { background: #33ecff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,255,.25); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--cyan-dim); color: var(--cyan); transform: translateY(-2px); }

/* ── GLOW ORB ── */
.orb {
  position: absolute;
  top: 80px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── SECTION ── */
section { padding: 80px 0; }
.section-label {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--amber);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label::before { content: '//  '; }
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #e8f4fb;
  margin-bottom: 40px;
  letter-spacing: -.02em;
}

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 620px) { .projects-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.card:hover { border-color: var(--cyan-dim); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card-status {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
}
.status-wip  { background: rgba(255,170,0,.12); color: var(--amber); border: 1px solid rgba(255,170,0,.3); }
.status-live { background: rgba(0,229,255,.1);  color: var(--cyan);  border: 1px solid rgba(0,229,255,.3); }
.status-dev  { background: rgba(148,0,255,.1);  color: #c084fc;      border: 1px solid rgba(148,0,255,.3); }

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e8f4fb;
  margin-bottom: 10px;
}
.card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tag {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
}
.card-links { display: flex; gap: 12px; }
.card-link {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--cyan-dim);
  text-decoration: none;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.card-link:hover { color: var(--cyan); }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.skill-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}
.skill-block h4 {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--amber);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skill-list li {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text);
}
.skill-list li::before { content: '─ '; color: var(--cyan-dim); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media(max-width: 620px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p strong { color: var(--text); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 700;
  display: block;
}
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── CONTACT ── */
#contact {
  padding: 60px 0;
  text-align: center;
}
#contact p { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  padding: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
}
footer span { color: var(--cyan-dim); }
.lang-switch {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  cursor: pointer;
}
.lang-switch a:hover { color: var(--cyan); }
.lang-active { color: var(--cyan); }
.lang-sep { color: var(--border); margin: 0 6px; }

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

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

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

/* ── CURSOR BLINK ── */
.blink {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
