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

:root {
  --bg: #1a1a1a;
  --surface: #242424;
  --border: #3a3a3a;
  --text: #c8c8c8;
  --text-muted: #777;
  --accent: #6b9e6b;
  --radius: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Courier New", Courier, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}

a:hover {
  color: var(--accent);
  border-bottom-style: solid;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: none;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  border-bottom: none;
}

nav ul a:hover,
nav ul a.active {
  color: var(--text);
}

/* Sections */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px dashed var(--border);
}

h1 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.highlight {
  color: var(--accent);
}

/* Hero */
#hero {
  padding: 6rem 0 4rem;
}

#hero p {
  font-size: 1rem;
  color: var(--text-muted);
}

#about p {
  text-align: justify;
}

/* Skills */
.skills-track {
  overflow: hidden;
  display: flex;
}

.skills-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-right: 0.5rem;
  animation: scroll 20s linear infinite;
}

.skills-list li {
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

@keyframes scroll {
  to {
    transform: translateX(-100%);
  }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.project-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.project-card p {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* Contact */
.contact-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px dashed var(--border);
}

/* Mobile */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  #hero {
    padding: 4rem 0 3rem;
  }
}