:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --text: #e8e8ec;
  --muted: #9a9aa3;
  --accent: #5b8cff;
  --border: #26262f;
  --grid-line: rgba(255, 255, 255, 0.13);
  --radius: 8px;
  --max-width: 960px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid-line) 1.2px, transparent 1.3px);
  background-size: 28px 28px;
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.05em;
}

h1,
h2,
h3 {
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.hero {
  padding: 4rem 0;
}

.subtitle {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0f;
  font-weight: 600;
}

.section {
  padding: 3.5rem 0;
  scroll-margin-top: 70px;
}

.section + .section {
  margin-top: 1rem;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.grid > :first-child {
  grid-column: span 2;
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  padding-left: calc(1rem + 2px);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--border);
  transition: background 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.card:hover::before,
.card:focus-within::before {
  background: linear-gradient(180deg, #00f0ff 0%, #7c00ff 50%, #ff00e5 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7), 0 0 12px rgba(255, 0, 229, 0.5);
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card a {
  color: var(--accent);
  text-decoration: none;
}

.skills,
.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skills li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: var(--surface);
}

.timeline {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  padding-left: calc(1rem + 5px);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #00f0ff 0%, #7c00ff 50%, #ff00e5 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.timeline-item:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.timeline-period {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  margin: 0.15rem 0;
}

.timeline-company {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.timeline-item p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.timeline-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.timeline-tags li {
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.open {
    display: flex;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .grid > :first-child {
    grid-column: span 1;
  }
}
