:root {
  --bg: #0b0d10;
  --bg-elevated: #14171b;
  --border: #23272d;
  --text: #eef1f4;
  --text-dim: #9aa3ad;
  --text-faint: #5c6570;
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --accent-soft: rgba(110, 231, 183, 0.12);
  --radius: 14px;
  --container: 880px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(110, 231, 183, 0.07), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(96, 165, 250, 0.06), transparent 45%);
}

a { color: inherit; text-decoration: none; }

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 13, 16, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.logo .dot { color: var(--accent); }

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

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 88px;
  padding-bottom: 56px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 580px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #06110c;
}
.btn-primary:hover { background: #7ff0c1; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */

main section {
  padding-top: 46px;
  padding-bottom: 46px;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.section-num {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.9rem;
}

.section-head h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.about-text {
  color: var(--text-dim);
  font-size: 1.02rem;
}
.about-text strong { color: var(--text); }

/* ---------- Projects ---------- */

/* Single column while there are only a couple of projects - a half-width card
   next to an empty gap looks unfinished. Once you have 3+ projects, switch this
   to: grid-template-columns: repeat(2, 1fr);  and the .featured card will keep
   spanning the full width on its own. */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
  border-color: rgba(110, 231, 183, 0.35);
  transform: translateY(-3px);
}

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, var(--bg-elevated), rgba(110, 231, 183, 0.04));
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-tag-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-live {
  background: var(--accent-soft);
  color: var(--accent);
}
.status-progress {
  background: rgba(96, 165, 250, 0.12);
  color: var(--accent-2);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tag-list li {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.project-links {
  display: flex;
  gap: 18px;
  margin-top: 4px;
}

.project-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.project-links a:hover { text-decoration: underline; }

/* ---------- Certificates ---------- */

.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cert-card:hover {
  border-color: rgba(110, 231, 183, 0.35);
  transform: translateY(-3px);
}

.cert-issuer {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cert-name {
  font-size: 1.02rem;
  font-weight: 600;
}

.cert-meta {
  font-size: 0.85rem;
  color: var(--accent);
}

/* ---------- Skills ---------- */

.skills-list {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
}
.skill-row + .skill-row { border-top: 1px solid var(--border); }

.skill-row h4 {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  padding-top: 3px;
}

.skill-row .tag-list { margin-top: 0; }

/* ---------- Reach me ---------- */

.reach-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 22px;
}

.reach-email {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.reach-email-address {
  font-family: var(--mono);
  font-size: 1.02rem;
  color: var(--text);
  user-select: all;
  word-break: break-all;
}

.copy-btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}

.reach-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reach-phone {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.reach-phone a:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-inner a { color: var(--text-faint); }
.footer-inner a:hover { color: var(--text); }

/* ---------- Reveal animation ----------
   Content is visible by default (no-JS, crawlers, link-preview bots
   that render without scrolling all see the full page). The animation
   only applies once JS has confirmed it can run and reveal elements. */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .hero {
    padding-top: 64px;
    padding-bottom: 44px;
  }

  main section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }

  .project-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-inner { flex-direction: column; gap: 8px; }
}
