/* ── Noah Bulbring — Portfolio ──────────────────────────────
   Pure black · white text · electric blue #0066FF · Inter   */

:root {
  --black: #000000;
  --white: #ffffff;
  --blue: #0066FF;
  --blue-soft: rgba(0, 102, 255, 0.12);
  --grey: #9ba1ab;
  --line: rgba(255, 255, 255, 0.1);
  --card: #0a0a0c;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--black);
  overflow-x: hidden;
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(0, 102, 255, 0.45); }
.btn-outline {
  border-color: var(--line);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--blue); box-shadow: 0 8px 28px rgba(0, 102, 255, 0.2); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.nav-cta {
  color: var(--white);
  padding: 8px 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  transition: background 0.2s ease;
}
.nav-links a.nav-cta:hover { background: var(--blue); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; width: 100%; }
.hero-kicker {
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-name {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--grey);
  font-size: clamp(15px, 2.4vw, 19px);
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
}
.hero-sep { color: rgba(255, 255, 255, 0.25); }
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.section-num {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ── About ── */
.about-list {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.about-list li {
  position: relative;
  padding-left: 28px;
  color: var(--grey);
  font-size: 17px;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 2px;
  background: var(--blue);
}
.about-list strong { color: var(--white); font-weight: 600; }

/* ── Timeline ── */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 32px;
  max-width: 640px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -32px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--blue);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.timeline-item:hover .timeline-marker {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(0, 102, 255, 0.7);
}
.timeline-date {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-role { font-size: 20px; font-weight: 700; }
.timeline-org { color: var(--grey); font-size: 15px; }

/* ── Quitslip ── */
#quitslip .quitslip-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--card) 55%);
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: 20px;
  padding: 56px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#quitslip .quitslip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.18);
}
.quitslip-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.quitslip-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.quitslip-desc { color: var(--grey); margin-bottom: 22px; max-width: 420px; }
.quitslip-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.quitslip-badges li {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(0, 102, 255, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
}

/* NFC tap visual */
.nfc-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.nfc-tag {
  position: relative;
  z-index: 1;
  width: 96px; height: 96px;
  border-radius: 24px;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.5);
}
.nfc-ring {
  position: absolute;
  border: 1px solid rgba(0, 102, 255, 0.6);
  border-radius: 50%;
  animation: nfc-pulse 2.6s ease-out infinite;
}
.nfc-ring-1 { width: 130px; height: 130px; }
.nfc-ring-2 { width: 130px; height: 130px; animation-delay: 0.85s; }
.nfc-ring-3 { width: 130px; height: 130px; animation-delay: 1.7s; }
@keyframes nfc-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ── Certifications ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.cert-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.55);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.12);
}
.cert-issuer {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.cert-name { font-size: 15px; font-weight: 600; line-height: 1.4; }

/* ── Projects ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.55);
  box-shadow: 0 12px 36px rgba(0, 102, 255, 0.12);
}
.project-top h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.project-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 12px;
  border-radius: 999px;
}
.project-card p { color: var(--grey); font-size: 15px; flex: 1; }
.project-link {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.project-link:hover { color: var(--blue); }

/* ── Stats ── */
.stats {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.06) 0%, transparent 100%);
  padding: 72px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--blue);
}
.stat-label { color: var(--grey); font-size: 15px; }

/* ── Contact ── */
.contact-inner { text-align: center; }
.contact-inner .section-title { justify-content: center; }
.contact-lead {
  color: var(--grey);
  font-size: 18px;
  margin: -24px auto 36px;
  max-width: 480px;
}
.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--grey);
  font-size: 14px;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nfc-ring { animation: none; opacity: 0.4; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 16px; }
  .nav-links a.nav-cta { border: none; padding: 14px 24px; }
  .nav-links a.nav-cta:hover { background: none; color: var(--blue); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 72px 0; }
  #quitslip .quitslip-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .nfc-visual { min-height: 220px; }
  .stats-inner { grid-template-columns: 1fr; gap: 40px; }
}
