/* ==========================================================================
   Lee S. Parkinson — Clean Frosted Glass & Subtle Blueprint Stylesheet
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #0a0f1a;
  --surface: rgba(17, 25, 42, 0.65);
  --surface-elevated: rgba(20, 30, 50, 0.82);
  --surface-subtle: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --grid-minor: rgba(96, 165, 250, 0.035);
  --grid-major: rgba(96, 165, 250, 0.075);

  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent: #60a5fa;
  --accent-solid: #2563eb;
  --accent-solid-hover: #3b82f6;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --green: #34d399;

  --glow-1: rgba(37, 99, 235, 0.18);
  --glow-2: rgba(56, 189, 248, 0.11);

  --shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-elevated: rgba(255, 255, 255, 0.88);
  --surface-subtle: rgba(15, 23, 42, 0.04);
  --surface-hover: rgba(15, 23, 42, 0.07);

  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.15);

  --grid-minor: rgba(26, 115, 232, 0.04);
  --grid-major: rgba(26, 115, 232, 0.085);

  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent: #1a73e8;
  --accent-solid: #1a73e8;
  --accent-solid-hover: #1557b0;
  --accent-soft: rgba(26, 115, 232, 0.09);
  --green: #059669;

  --glow-1: rgba(59, 130, 246, 0.12);
  --glow-2: rgba(14, 165, 233, 0.09);

  --shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1060px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: 4.5rem 0;
}

/* ==========================================================================
   Subtle Ambient Blur & Blueprint Grid
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}

.glow-blue {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
}

.glow-sky {
  width: 500px;
  height: 500px;
  top: 32%;
  right: -120px;
  background: radial-gradient(circle, var(--glow-2) 0%, transparent 70%);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 35%, transparent 100%);
}

/* ==========================================================================
   Frosted Navigation Bar (Apple / Google Pill Style)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  padding: 0 1rem;
}

.glass-nav {
  max-width: 1060px;
  margin-inline: auto;
  padding: 0.55rem 0.75rem 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--surface-elevated);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.theme-btn svg {
  width: 16px;
  height: 16px;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.46rem 1rem;
  border-radius: 999px;
  background: var(--accent-solid);
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-solid-hover);
}

/* ==========================================================================
   Shared Frosted Glass Cards, Buttons & Lists
   ========================================================================== */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.glass-card:hover {
  border-color: var(--border-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent-solid);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-solid-hover);
}

.btn-secondary {
  background: var(--surface-subtle);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.section-head {
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 56ch;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clean-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  padding: 0.28rem 0.68rem;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ==========================================================================
   1. Hero / About Me
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-prose {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 60ch;
  margin-bottom: 1.85rem;
}

.about-prose strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Quick Details Card */
.profile-card {
  padding: 1.6rem;
}

.card-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.facts-list {
  display: flex;
  flex-direction: column;
}

.fact-row {
  padding: 0.72rem 0;
  border-top: 1px solid var(--border);
}

.fact-row:first-child {
  border-top: none;
  padding-top: 0;
}

.fact-row:last-child {
  padding-bottom: 0;
}

.fact-row dt {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.fact-row dd {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   2. Projects
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-visual {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.project-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.project-body {
  padding: 1.5rem 1.65rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}

.project-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.project-text + .project-text {
  margin-top: 0.65rem;
}

.project-body .tag-row {
  margin-top: auto;
  padding-top: 1.2rem;
}

/* Subtle slow rotation on the tricycle schematic gears */
@keyframes spinCW {
  to { transform: rotate(360deg); }
}
@keyframes spinCCW {
  to { transform: rotate(-360deg); }
}

.gear-spin-fast { animation: spinCW 8s linear infinite; }
.gear-spin-med  { animation: spinCCW 20s linear infinite; }
.gear-spin-slow { animation: spinCW 45s linear infinite; }
.gear-spin-axle { animation: spinCCW 90s linear infinite; }

/* ==========================================================================
   3. Work Experience
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.exp-card {
  padding: 1.55rem 1.75rem;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.exp-company {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.exp-location,
.exp-role-single {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.exp-role-single {
  color: var(--accent);
  font-weight: 500;
}

.exp-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.exp-role-block + .exp-role-block {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.role-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.role-title-row h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent);
}

.role-subdate {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. Education & Qualifications
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sub-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 0.15rem;
}

.edu-card {
  padding: 1.45rem 1.6rem;
}

.edu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.edu-header h4 {
  font-size: 1.08rem;
  font-weight: 600;
}

.edu-degree {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.12rem;
}

.edu-detail {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card-group-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.course-item + .course-item {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.94rem;
}

.course-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.small-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   5. Skills & 6. Hobbies
   ========================================================================== */
.skills-grid,
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-card,
.hobby-card {
  padding: 1.5rem 1.65rem;
}

.skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
}

.skill-icon svg {
  width: 19px;
  height: 19px;
}

.skill-card h3,
.hobby-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.hobby-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.contact-text {
  color: var(--text-secondary);
  margin: 0.6rem 0 1.4rem;
  max-width: 50ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.contact-row:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.contact-row svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}

.site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.top-link:hover {
  color: var(--text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-layout,
  .projects-grid,
  .two-col-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero-section {
    padding-top: 2.25rem;
  }

  .skills-grid,
  .hobbies-grid {
    grid-template-columns: 1fr;
  }

  .role-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
