:root {
  --bg: #0d0d0d;
  --card: #161616;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --accent: #6ea8fe;
  --border: #2a2a2a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1050px, 90%);
  margin: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  transition: 0.25s;
}

nav a:hover {
  color: var(--text);
}

a:link {
  color: #ffffff;
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;

  a:link {
  color: #000000;
}
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 20px;
}

.hero p {
  max-width: 650px;
  font-size: 1.15rem;
  color: var(--muted);
}

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

section {
  padding: 90px 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #555;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.button {
  display: inline-block;
  margin-top: 25px;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.button:hover {
  opacity: 0.8;
}

footer {
  border-top: 1px solid var(--border);
  padding: 35px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 15px;
  }

  nav a {
    margin: 0 10px;
  }

  .hero {
    min-height: 60vh;
  }

  section {
    padding: 60px 0;
  }
}