/* SWRTHY — simple responsive site styles */

:root {
  --bg: #0b0d11;
  --panel: #12151d;
  --panel-2: #1c2130;
  --text: #e8eef7;
  --muted: rgba(232, 238, 247, 0.72);
  --primary: #7fe3a5;
  --primary-2: #2be2cb;
  --accent: #ff8d7f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1080px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at top, #0d111f 0%, var(--bg) 52%);
  line-height: 1.55;
  overflow-x: hidden;
}

body {
  padding-top: 74px;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100%, var(--max));
  padding: 0 1.25rem;
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 13, 17, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-name {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.primary-nav a {
  font-size: 0.95rem;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile nav — hidden on desktop */
#mob-nav {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 44ch;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0d11;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.section {
  padding: 4.5rem 0;
}

.section--light {
  background: rgba(255, 255, 255, 0.04);
}

.section--dark {
  background: rgba(0, 0, 0, 0.35);
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.section p {
  max-width: 70ch;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.values {
  display: grid;
  gap: 1.1rem;
  padding: 0;
  list-style: none;
  max-width: 72ch;
}

.values li {
  border-left: 3px solid rgba(126, 227, 165, 0.9);
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 2rem 0;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.card-badge--muted {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h3 {
  margin-top: 0;
}

.tag {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.support-box {
  max-width: 62ch;
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.support-link {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.support-note {
  margin: 0.75rem 0 0;
  color: rgba(232, 238, 247, 0.66);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.small {
  color: rgba(232, 238, 247, 0.6);
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: rgba(232, 238, 247, 0.65);
}

/* ── Mission section ───────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.mission-lead {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.mission-body {
  font-size: 0.88rem;
  max-width: 72ch;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.mission-vision {
  border-left: 3px solid rgba(126, 227, 165, 0.7);
  margin: 0 0 2.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 0;
  max-width: 68ch;
  color: var(--muted);
  font-style: normal;
}

.beliefs-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(126, 227, 165, 0.2);
}

.beliefs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.beliefs li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  line-height: 1.5;
}

.beliefs li p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.belief-header {
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 0.3rem !important;
}

.belief-num {
  color: #c9a938;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}

.scripture {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(232, 238, 247, 0.4);
  font-style: italic;
}

/* ── Featured project card ─────────────────────────────── */
.card--featured {
  border-color: rgba(126, 227, 165, 0.35);
  background: rgba(126, 227, 165, 0.06);
  position: relative;
}

.card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0d11;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0;
}

.card-tech span {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.card-screens {
  display: flex;
  gap: 0.6rem;
  margin: 0.85rem 0;
  overflow-x: auto;
}

.card-screens img {
  height: 120px;
  width: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.card-details {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.card-details summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-details summary::before {
  content: '▶';
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.card-details[open] summary::before {
  transform: rotate(90deg);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.checklist li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Resume page ───────────────────────────────────────── */
.resume-wrap {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  max-width: 860px;
}

.r-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.r-name {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.r-title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.r-location {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.r-header-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
  font-size: 0.9rem;
}

.r-header-right a {
  color: var(--muted);
}

.r-header-right a:hover {
  color: var(--primary);
}

.r-dl {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  padding: 0.55rem 1.1rem !important;
  align-self: flex-end;
}

.r-section {
  margin-bottom: 2.75rem;
}

.r-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(126, 227, 165, 0.25);
}

.r-summary {
  color: var(--muted);
  max-width: 80ch;
  margin: 0 0 0.5rem;
  line-height: 1.65;
}

.r-meta {
  font-size: 0.85rem;
  color: rgba(232, 238, 247, 0.5);
  margin: 0;
}

.r-job {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.r-job:last-child,
.r-edu:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.r-edu {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.r-job-title {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}

.r-job-company {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.r-job-dates {
  font-size: 0.85rem;
  color: rgba(232, 238, 247, 0.55);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.badge-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0d11;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.r-project-label {
  font-size: 0.82rem;
  color: var(--primary);
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.r-project-label a {
  color: var(--primary);
}

.r-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: grid;
  gap: 0.4rem;
}

.r-list li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}

.r-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: rgba(126, 227, 165, 0.6);
}

.r-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.r-tags span {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 238, 247, 0.7);
}

.r-cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.r-cert {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.r-skill-group {
  margin-bottom: 1.1rem;
}

.r-skill-group h4 {
  font-size: 0.82rem;
  margin: 0 0 0.5rem;
  color: rgba(232, 238, 247, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Project detail page ───────────────────────────────── */
.proj-hero {
  padding: 5rem 0 3.5rem;
}

.proj-title {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin: 0.4rem 0 0.75rem;
  letter-spacing: -0.025em;
}

.proj-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  max-width: 58ch;
  margin: 0 0 0.85rem;
}

.proj-desc {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.proj-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.proj-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(126, 227, 165, 0.1);
  border: 1px solid rgba(126, 227, 165, 0.25);
  color: var(--primary);
  font-weight: 600;
}

.proj-section-desc {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}

.feat-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feat-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.screen-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.screen-scroll-wrap {
  overflow-x: auto;
  padding: 0 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.screen-scroll {
  display: flex;
  gap: 1rem;
  padding: 0.5rem max(1.25rem, calc((100vw - 1080px) / 2));
  width: max-content;
}

.screen-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.screen-img {
  width: 180px;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: block;
}

.screen-vid {
  width: 180px;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: block;
}

.screen-fig figcaption {
  font-size: 0.75rem;
  color: rgba(232, 238, 247, 0.45);
  text-align: center;
}

.vid-wrap {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  max-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.proj-video {
  width: 100%;
  display: block;
  background: #000;
}

.dash-fig {
  margin: 1rem 0 0;
}

.dash-img {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  display: block;
}

.dash-fig figcaption {
  font-size: 0.8rem;
  color: rgba(232, 238, 247, 0.45);
  margin-top: 0.6rem;
}

@media (max-width: 820px) {
  /* Hide desktop inline nav */
  .primary-nav {
    display: none;
  }

  /* Logo left, SWRTHY centered, hamburger right */
  .header-inner {
    position: relative;
    justify-content: center;
  }

  /* Pull logo out of flow so only the SWRTHY text centers */
  .brand-logo {
    position: absolute;
    left: 0;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 0;
    z-index: 101;
  }

  /* ── Mobile overlay nav ── */
  #mob-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: #0b0d11;
    overflow-y: auto;
    z-index: 500;
  }

  #mob-nav.open {
    display: flex;
  }

  .mob-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }

  .mob-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
  }

  .mob-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mob-brand span {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #c9a938;
  }

  #mob-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    line-height: 1;
  }

  #mob-nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.02em;
  }

  #mob-nav a:last-child {
    border-bottom: none;
  }

  #mob-nav a:active {
    background: rgba(127, 227, 165, 0.1);
    color: var(--primary);
  }
}
