/* MILES BARDEN PORTFOLIO DESIGN SYSTEM */
:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --bg-inner: #0b1120;
  --border-color: #334155;
  --border-subtle: #1e293b;
  --text-white: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #38bdf8;
  --accent-linkedin: #0a66c2;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER & NAV */
.site-header {
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-logo {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 600;
  padding-left: 10px;
  border-left: 1px solid var(--border-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.btn-resume-nav {
  background-color: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-resume-nav:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-linkedin-nav {
  background-color: var(--accent-linkedin);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-linkedin-nav:hover {
  background-color: #004182;
  transform: translateY(-1px);
}

/* MAIN CONTENT CONTAINER */
.main-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* HERO CARD */
.hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0b1120 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-badge-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1.3;
}

.hero-tagline {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-top: -6px;
}

.hero-text {
  font-size: 15.5px;
  color: #cbd5e1;
  line-height: 1.75;
  max-width: 980px;
}

/* METRICS BAR */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background-color: rgba(11, 17, 32, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  margin-top: 4px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 6px;
  border-right: 1px solid rgba(51, 65, 85, 0.5);
}

.metric-item:last-child {
  border-right: none;
}

.metric-value {
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.metric-highlight-gold { color: var(--accent-gold); }
.metric-highlight-blue { color: #38bdf8; }
.metric-highlight-emerald { color: var(--accent-emerald); }

.metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* BUTTON SYSTEM */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-linkedin {
  background-color: var(--accent-linkedin);
  color: #ffffff;
}
.btn-linkedin:hover {
  background-color: #004182;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #475569;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* SECTIONS & HEADINGS */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-heading {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.section-heading i { color: var(--primary); }

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
}

/* SYSTEM CARDS (FEATURED SYSTEMS / CASE STUDIES) */
.systems-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.system-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.system-card:hover {
  border-color: #475569;
  transform: translateY(-2px);
}

.system-card-highlight {
  border-left: 5px solid var(--primary);
}

.system-card-gold {
  border-left: 5px solid var(--accent-gold);
}

.system-card-purple {
  border-left: 5px solid var(--accent-purple);
}

.system-card-emerald {
  border-left: 5px solid var(--accent-emerald);
}

.system-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}

.system-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.system-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}

.system-meta-line span.company {
  color: #38bdf8;
}

.tag-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.tag-blue {
  background-color: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.tag-gold {
  background-color: rgba(245, 158, 11, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tag-purple {
  background-color: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.tag-emerald {
  background-color: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.system-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip i { font-size: 11px; }
.chip-green i { color: var(--accent-emerald); }
.chip-blue i { color: #38bdf8; }
.chip-gold i { color: var(--accent-gold); }
.chip-purple i { color: var(--accent-purple); }

.system-description {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
}

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

.highlight-item {
  background-color: var(--bg-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}

.highlight-item i {
  margin-top: 3px;
  font-size: 14px;
}

.highlight-item strong {
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* 2x2 PILLARS GRID */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #475569;
}

.card-icon { font-size: 28px; margin-bottom: 4px; }
.icon-blue { color: #38bdf8; }
.icon-purple { color: var(--accent-purple); }
.icon-emerald { color: var(--accent-emerald); }
.icon-amber { color: var(--accent-gold); }

.card h4 { font-size: 18px; font-weight: 800; color: #ffffff; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* TECH STACK & PROFICIENCY GRID */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tech-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.tech-card-header i {
  color: var(--primary-light);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  background-color: var(--bg-inner);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

/* RESUME CALLOUT BANNER */
.resume-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow);
}

.resume-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
}

.resume-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.resume-info p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

.resume-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 28px 24px;
  background-color: #0b1120;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .metric-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .nav-menu {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-card {
    padding: 28px 20px;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
  .hero-tagline {
    font-size: 12px;
  }
  .hero-text {
    font-size: 14px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    padding-bottom: 10px;
  }
  .metric-item:last-child,
  .metric-item:nth-last-child(2) {
    border-bottom: none;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .system-card {
    padding: 24px 18px;
  }
  .system-title {
    font-size: 20px;
  }
  .resume-banner {
    padding: 24px 20px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
