/* ============================================================
   Christian Hillman — Personal Site
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-alt: #10161d;
  --surface: #151d26;
  --border: #22303d;
  --text: #e8eef4;
  --text-dim: #9fb0bf;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --accent-2: #2dd4bf;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.accent { color: var(--accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #14100b;
  font-weight: 700;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { box-shadow: none; border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--big { font-size: 1.15rem; padding: 1.05rem 2.2rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.nav__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav__logo:hover { text-decoration: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__links a:not(.btn) {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a:not(.btn):hover { color: var(--text); text-decoration: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
}
.hero__glow {
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.4rem;
}
.hero__sub {
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
}
.hero__sub strong { color: var(--text); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.hero__stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.hero__stat-num {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.6rem;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about__text p { margin-bottom: 1.1rem; color: var(--text-dim); font-size: 1.05rem; }
.about__text a { font-weight: 600; }
.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.about__card h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.about__card ul { list-style: none; }
.about__card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.about__card li:last-child { border-bottom: none; }
.about__card strong { color: var(--text); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Cards (services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Experience ---------- */
.xp { display: grid; gap: 1.6rem; }
.xp__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.xp__badge {
  align-self: start;
  display: grid;
  place-items: center;
  height: 84px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ffae63);
  color: #14100b;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.xp__badge--alt { background: linear-gradient(135deg, var(--accent-2), #7be8db); }
.xp__body h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.xp__meta { color: var(--text-dim); font-weight: 500; font-size: 0.92rem; }
.xp__body p { color: var(--text-dim); margin-bottom: 1rem; }
.xp__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.xp__tags li {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}
.xp__item:nth-child(2) .xp__tags li { background: rgba(45, 212, 191, 0.12); color: var(--accent-2); }
.xp__link { font-weight: 700; font-size: 0.95rem; }

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.step__num {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 700px; }
.contact .section__title { margin-bottom: 1rem; }
.contact__sub { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2.2rem; }
.contact__links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  color: var(--text-dim);
}
.contact__links a { color: var(--text-dim); font-weight: 600; }
.contact__links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer__top { color: var(--text-dim); }
.footer__top:hover { color: var(--accent); text-decoration: none; }

/* ---------- Reveal animation (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 0.6rem 4%;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.85rem 0; width: 100%; }
  .nav__links .btn { margin: 0.6rem 0 1rem; text-align: center; }

  .hero { padding: 4.5rem 0 3.5rem; }
  .about__grid { grid-template-columns: 1fr; }
  .xp__item { grid-template-columns: 1fr; }
  .xp__badge { height: 56px; width: 110px; }
  .section { padding: 4rem 0; }
}
