:root {
  --bg-dark: #0b111b;
  --bg-panel: #161c27;
  --accent: #00aaff;
  --text: #d8dee9;
  --text-dim: #888;
  --font: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: var(--bg-panel);
  border-bottom: 1px solid #1f2633;
}

.logo {
  font-weight: 600;
  font-size: 1.3em;
  color: var(--text);
}
.logo span {
  color: var(--accent);
}

nav a {
  color: var(--text);
  margin-left: 25px;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--accent);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  text-align: center;
  background: linear-gradient(180deg, #0b111b, #121825);
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}
.hero span {
  color: var(--accent);
}

.code-animation {
  margin-top: 10px;
  font-size: 1.2em;
  color: var(--accent);
}
.cursor {
  display: inline-block;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.projects {
  padding: 60px 10%;
  background: var(--bg-panel);
}
.projects h2 {
  text-align: center;
  margin-bottom: 40px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.card {
  background: #1b2332;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #222a3a;
  transition: transform 0.2s, border 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.about {
  padding: 60px 10%;
  text-align: center;
}

footer {
  background: var(--bg-panel);
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-dim);
  border-top: 1px solid #1f2633;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
