/* ==========================================================
   Will Waters — Main Site Styles
   ========================================================== */

:root {
  --bg: #0b1220;
  --panel: #0f1a30;
  --panel2: #0c162b;
  --text: #e8eefc;
  --muted: #b6c2e2;
  --line: rgba(232,238,252,.12);
  --accent: #3b82f6;
  --accentDeep: #1e40af;
  --accentSoft: #7aa2ff;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
}

/* ==================== Accessibility ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== Global Resets ==================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* ==================== Background Grid ==================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 1px, transparent 1px 40px),
    radial-gradient(circle at 40% 60%, rgba(59,130,246,.05), transparent 70%);
  opacity: 0.4;
  animation: driftGrid 120s linear infinite;
  z-index: -2;
}

@keyframes driftGrid {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 80px 120px, 120px 80px, 200px 100px; }
}

/* ==================== Typography ==================== */
h1 { font-size: 44px; line-height: 1.1; margin: 0 0 14px; }
@media (max-width: 560px) { h1 { font-size: 36px; } }

h2 { font-size: 28px; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }

p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; }

/* ==================== Layout ==================== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 18px 64px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.brand strong { letter-spacing: .4px; display: block; }
.brand span { display: block; color: var(--muted); font-size: 13px; }

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--muted);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
}
nav a:hover {
  color: var(--text);
  background: rgba(232,238,252,.06);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================== Hero Section ==================== */
.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  padding: 26px 0 8px;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accentSoft);
  font-size: 14px;
  margin-bottom: 8px;
}

/* ==================== Cards ==================== */
.card {
  background: linear-gradient(180deg, rgba(15,26,48,.92), rgba(12,22,43,.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(8px);
  position: relative;
  transition: transform .2s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.4);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 12px rgba(59,130,246,.15);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.05) 0%,rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 0.3; }

.subcard {
  box-shadow: none;
  background: rgba(232,238,252,.04);
  border-color: rgba(232,238,252,.10);
}

.aboutCard {
  box-shadow: none;
  background: rgba(232,238,252,.03);
  border-color: rgba(232,238,252,.10);
}

/* ==================== Chips ==================== */
.chip {
  border: 1px solid rgba(232,238,252,.12);
  background: rgba(232,238,252,.06);
  color: rgba(232,238,252,.86);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 6px rgba(59,130,246,.25);
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(59,130,246,.85);
  box-shadow: 0 0 0 4px rgba(59,130,246,.18);
  transition: transform .3s ease;
}
.chip:hover .dot { animation: pulseDot 1.6s ease-in-out infinite; }

@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .7; }
}

/* ==================== Buttons ==================== */
.btnrow {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(232,238,252,.12);
  color: var(--text);
  font-size: 14px;
  background: rgba(232,238,252,.05);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover {
  background: rgba(232,238,252,.08);
  border-color: rgba(59,130,246,.3);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accentDeep);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accentSoft);
}

/* ==================== Focus Grid ==================== */
.focusGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* ==================== Footer ==================== */
footer {
  margin-top: 44px;
  border-top: 1px solid rgba(232,238,252,.10);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(232,238,252,.78);
  font-size: 13px;
}

/* ==================== Reduced Motion Override ==================== */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .chip:hover .dot { animation: none; }
}
