/* ============================================================
   Boksma Software Solutions — shared stylesheet
   Sleek dark "modern dev" aesthetic
   ============================================================ */

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

:root {
  --bg:        #0a0c10;
  --bg-soft:   #11141b;
  --bg-card:   #141821;
  --line:      #232834;
  --text:      #e6e8ee;
  --text-dim:  #8b93a7;
  --text-faint:#5a6175;
  --accent:    #5eead4;     /* teal */
  --accent-2:  #818cf8;     /* indigo */
  --glow:      rgba(94, 234, 212, 0.15);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Fraunces', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle dotted grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* glow blob top-right */
body::after {
  content: "";
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 16, 0.8);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 120px 0 90px; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.eyebrow::before { content: "// "; color: var(--text-faint); }
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
h1 em { font-style: italic; color: var(--accent); }
.lead {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- section heading ---------- */
.section { padding: 70px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}
.section-head .idx {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card .tag {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 12px 0 8px;
}
.card p { color: var(--text-dim); font-size: 13px; }
.card .meta {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
}

/* status dot for service cards */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-dim);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- about / prose ---------- */
.prose { max-width: 640px; }
.prose p { color: var(--text-dim); margin-bottom: 20px; }
.prose strong { color: var(--text); }
.stack-list { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.stack-list li {
  display: flex; gap: 14px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.stack-list .k { color: var(--accent); min-width: 90px; }
.stack-list .v { color: var(--text-dim); }

/* ---------- contact ---------- */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px;
  text-align: center;
}
.contact-box h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 12px;
}
.contact-box p { color: var(--text-dim); margin-bottom: 26px; }
.mail-link {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.mail-link:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 32px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 12px;
}

/* ---------- page-load reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .hero { padding: 80px 0 60px; }
  .contact-box { padding: 32px 20px; }
}
