:root {
  --bg: #020617;
  --bg-alt: #020617;
  --accent: #ff0000;
  --accent-soft: rgba(34, 197, 94, 0.1);
  --text: #e5e7eb;
  --muted: #6b7280;
  --border-subtle: #1f2937;
  --card-bg: #020617;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --code: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: radial-gradient(circle at top, #030712 0, #020617 40%, #020617 100%);
  background-color: #020617;
  color: var(--text);
}

header {
  position: sticky;
  top: 0;
  z-index: 10; 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #111827;
}

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

.brand {
  font-family: var(--code);
  font-size: 0.9rem;
  color: var(--accent);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.85rem;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  font-family: var(--code);
}

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

nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

section {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

section:last-of-type {
  border-bottom: none;
  padding-bottom: 4rem;
}

.section-more {
    color: var(--muted);
    display: flex;
    margin-top: 20px;
    justify-content: right;
    text-decoration: none;
}

.section-more:hover {
    color: var(--text);
}

.section-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-family: var(--code);
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Hero */

#home {
  padding-top: 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.hero-title {
  font-size: 2.1rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--code);
}

.tag-pill {
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.95);
  color: var(--muted);
}

.hero-card {
  border-radius: 0.7rem;
  padding: 1rem;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 65%),
              #020617;
  border: 1px solid #111827;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  font-family: var(--code);
}

/* Cards */

.cards-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #020617;
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid #111827;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85);
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.card-info {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-family: var(--code);
}

.card-content {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--code);
}

/* Blog */

.blog-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-family: var(--code);
}

.blog-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Projects */

.project-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-family: var(--code);
}

.project-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Resources */

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--code);
  font-size: 0.82rem;
}

.resource-item {
  padding: 0.7rem 0;
  border-bottom: 1px dashed #1f2937;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-title {
  font-size: 0.9rem;
}

.resource-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.resource-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
}

/* About */

.about-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 2fr 1.3fr;
  }
}

.about-content {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-info {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--code);
}

.about-info li {
  margin-bottom: 0.35rem;
}

footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid #111827;
  background: #020617;
  font-family: var(--code);
}

.socials li {
  list-style: none;
  display: inline-flex;
}
