/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0f14;
  --surface: #161a22;
  --border: #252b38;
  --accent: #4f8ef7;
  --accent-dim: #1e3a6e;
  --text: #e8eaf0;
  --muted: #7a8299;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 420px;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }

.hero-badge {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.hero-badge span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent-dim); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.card p { color: var(--muted); font-size: 0.9rem; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 4rem 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.about-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.about-block p { color: var(--muted); font-size: 0.9rem; }

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-list li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
}

.skill-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Contact ── */
.contact-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--accent); }

.open-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.open-list li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
}

.open-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; gap: 2rem; padding: 3rem 1.5rem 2rem; }
  .hero-badge { align-items: flex-start; }
  .cards { grid-template-columns: 1fr; padding: 1rem 1.5rem 3rem; }
  .about-grid, .contact-section { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; }
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.2rem; }
}
