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

:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --border: #30363d;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --card-bg: #161b22;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.alt-bg {
  background-color: var(--bg-alt);
}

/* ============================================================
   NAV
   ============================================================ */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

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

.nav-bar nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

/* ============================================================
   HERO
   ============================================================ */
.clearance-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.35);
  color: #3fb950;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero {
  padding: 80px 32px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 32px;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  transition: background 0.15s, opacity 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--text-muted);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card-grid.two-col {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
  color: var(--text);
  display: block;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px 0 10px;
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.card-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.project-card:hover .card-arrow {
  color: var(--accent);
}

/* ============================================================
   COMPANY / SUBTITLE
   ============================================================ */
.company {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ============================================================
   TAGS
   ============================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-family: "SFMono-Regular", Consolas, monospace;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

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

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
}

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

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.65;
}

/* ============================================================
   CERTS / AWARDS
   ============================================================ */
.cert-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cert-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.cert-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 3px;
}

.award-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.award {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.award-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   SKILLS GRID
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.skill-category h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ============================================================
   EXPERIENCE BULLETS
   ============================================================ */
.bullet-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bullet-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.bullet-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 4px;
}

.bullet-list strong {
  color: var(--text);
  font-weight: 600;
}

.exp-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ============================================================
   GPA & CERT ENHANCEMENTS
   ============================================================ */
.gpa {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.cert-highlight {
  color: #3fb950 !important;
  font-weight: 600;
}

.cert-date {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  margin-left: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  transition: color 0.15s;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    padding: 60px 24px 60px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .timeline-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .timeline-date::after {
    content: "·";
    margin-left: 6px;
  }

  .nav-bar nav {
    gap: 16px;
  }

  .nav-bar nav a {
    font-size: 0.8rem;
  }
}
