/* =============================================
   BurnRoberts.com — Main Stylesheet
   Dark theme, clean, engineering-profile feel
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0f12;
  --bg-card: #151820;
  --bg-card-hover: #1c2029;
  --border: #252a35;
  --accent: #4f8ef7;
  --accent-dim: #2a4a8a;
  --text: #e2e8f0;
  --text-muted: #b2b8c8;
  --text-dim: #606a80;
  --green: #48bb78;
  --yellow: #f6c90e;
  --radius: 10px;
  --max-width: 860px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(79, 142, 247, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(79, 142, 247, 0.04) 0%, transparent 50%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #7ba9f9;
}

/* === NAV === */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

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

.section-alt {
  background: #111418;
}

/* === HERO === */
#hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 30% 50%, rgba(79, 142, 247, 0.07) 0%, transparent 70%);
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.hero-text .title {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin: 6px 0 12px;
  font-family: var(--mono);
}

.hero-text .tagline {
  color: var(--text-muted);
  font-size: 0.975rem;
  max-width: 520px;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #3a7cf0;
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === SECTION HEADERS === */
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* === ABOUT === */
#about p {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 16px;
  font-size: 0.975rem;
}

#about p:last-child {
  margin-bottom: 0;
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s, background 0.2s;
}

.project-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--mono);
}

.badge {
  font-size: 0.7rem;
  font-family: var(--mono);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-live {
  background: rgba(72, 187, 120, 0.15);
  color: var(--green);
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.badge-dev {
  background: rgba(246, 201, 14, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(246, 201, 14, 0.3);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.project-metric {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.project-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* === CAREER === */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-period {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.timeline-role {
  font-size: 0.975rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* === CONTACT === */
#contact .section-title {
  margin-bottom: 10px;
}

#contact .sub {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--mono);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text .tagline {
    max-width: 100%;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 52px 0;
  }

  #hero {
    padding: 52px 0;
  }
}