/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
  box-sizing: border-box; }

* {
  margin: 0; }

html {
  height: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem); }

body {
  height: 100%;
  line-height: 1.618;
  /* originally 1.5 */
  -webkit-font-smoothing: antialiased; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%; }

input, button, textarea, select {
  font: inherit; }

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word; }

#root, #__next {
  isolation: isolate; }

:root[data-theme="light"] {
  color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark; }

html[data-theme="light"] {
  --background: hsl(210, 20%, 96%);
  --foreground: hsl(225, 24%, 10%);
  --card: hsl(210, 20%, 98%);
  --card-foreground: hsl(225, 24%, 10%);
  --primary: hsl(225, 60%, 45%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-container: hsl(225, 60%, 35%);
  --primary-container-hover: hsl(225, 60%, 40%);
  --primary-container-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 20%, 90%);
  --secondary-foreground: hsl(225, 24%, 10%);
  --muted: hsl(210, 20%, 90%);
  --muted-foreground: hsl(215, 20%, 40%);
  --border: hsl(220, 13%, 88%);
  --ring: hsl(225, 60%, 45%);
  --surface: hsl(210, 20%, 96%);
  --surface-hover: hsl(210, 20%, 92%);
  --on-surface: hsl(225, 24%, 10%);
  --on-surface-variant: hsl(215, 20%, 40%);
  --outline: hsl(220, 13%, 88%); }

html[data-theme="dark"] {
  --background: hsl(225, 24%, 13%);
  --foreground: hsl(210, 20%, 92%);
  --card: hsl(225, 24%, 16%);
  --card-foreground: hsl(210, 20%, 92%);
  --primary: hsl(42, 100%, 50%);
  --primary-foreground: hsl(225, 24%, 13%);
  --primary-container: #604100;
  --primary-container-hover: #805100;
  --primary-container-foreground: #ffdeac;
  --secondary: hsl(225, 24%, 20%);
  --secondary-foreground: hsl(210, 20%, 98%);
  --muted: hsl(225, 24%, 20%);
  --muted-foreground: hsl(215, 20%, 65%);
  --border: hsl(225, 24%, 20%);
  --ring: hsl(42, 100%, 50%);
  --surface: hsl(225, 24%, 16%);
  --surface-hover: hsl(225, 24%, 20%);
  --on-surface: hsl(210, 20%, 98%);
  --on-surface-variant: hsl(215, 20%, 65%);
  --outline: hsl(225, 24%, 25%); }

body {
  font-family: "IBM Plex Sans", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s, color 0.3s; }

a {
  color: var(--primary);
  transition: color 0.2s; }

a:hover {
  color: var(--muted-foreground); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2; }

h1 {
  font-size: 2rem; }

h2 {
  font-size: 1.5rem; }

h3 {
  font-size: 1.25rem; }

h4 {
  font-size: 1.125rem; }

h5, h6 {
  font-size: 1rem; }

@media screen and (min-width: 768px) {
  h1 {
    font-size: 2.5rem; }
  h2 {
    font-size: 1.75rem; } }

section {
  padding: 1rem 0.75rem; }

:root {
  --header-height: 3rem; }

.container {
  width: 88%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--header-height); }

.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  transition: background-color 0.3s; }
  .sticky-header .header-contents {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; }
  .sticky-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0; }
    .sticky-header h3 a {
      text-decoration: none;
      color: var(--foreground);
      transition: color 0.2s; }
      .sticky-header h3 a:hover {
        color: var(--primary); }
    .sticky-header h3 .logo-dot {
      color: var(--primary); }
  .sticky-header nav,
  .sticky-header .nav-list {
    display: flex;
    align-items: center;
    padding: 0; }
  .sticky-header .nav-list {
    list-style-type: none;
    margin: 0; }
  .sticky-header .nav-list-item {
    margin-right: 1.5rem; }
  .sticky-header .btn-theme-toggle {
    background: transparent;
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: background-color 0.2s; }
    .sticky-header .btn-theme-toggle svg {
      fill: var(--primary);
      transition: fill 0.2s; }
    .sticky-header .btn-theme-toggle svg:hover {
      fill: var(--muted-foreground); }
    .sticky-header .btn-theme-toggle:hover {
      background-color: var(--muted); }
    .sticky-header .btn-theme-toggle:focus {
      outline: 2px solid var(--ring);
      outline-offset: 2px; }
    .sticky-header .btn-theme-toggle:focus:not(:focus-visible) {
      outline: none; }

html[data-theme="dark"] .switch-to-dark,
html[data-theme="light"] .switch-to-light {
  display: none; }

.hero-section {
  padding: 3rem 0 4rem;
  max-width: 48rem;
  animation: hero-fade-in 0.5s ease-out; }
  .hero-section h1 .highlight {
    color: var(--primary); }
  .hero-section p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted-foreground); }
  @media screen and (min-width: 768px) {
    .hero-section {
      padding: 4rem 0 3rem; }
      .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.25; }
      .hero-section p {
        font-size: 1.25rem; } }
@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px); }
  to {
    opacity: 1;
    transform: translateY(0); } }

.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
  .fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0); }

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem; }
  .section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap; }
    .section-header h2 svg {
      width: 1.75rem;
      height: 1.75rem;
      stroke: var(--primary);
      fill: none;
      flex-shrink: 0;
      margin-top: 0.125rem; }
  .section-header .divider {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 1rem;
    opacity: 0.5; }

.projects-section {
  padding: 5rem 0; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; }

@media screen and (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem; } }

.project-card {
  display: block;
  text-decoration: none;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden; }
  @media screen and (min-width: 768px) {
    .project-card {
      padding: 2rem; } }
  .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 80, 184, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; }
  .project-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 80, 184, 0.15); }
    .project-card:hover::before {
      opacity: 1; }
    .project-card:hover .project-card-title {
      color: var(--primary); }
    .project-card:hover .project-card-arrow {
      transform: translate(4px, -4px);
      stroke: var(--primary); }
  html[data-theme="dark"] .project-card::before {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.05) 0%, transparent 50%); }
  html[data-theme="dark"] .project-card:hover {
    box-shadow: 0 8px 24px rgba(255, 179, 0, 0.15); }

.project-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: start; }
  @media screen and (min-width: 768px) {
    .project-card-inner {
      gap: 1.5rem; } }
.project-card-image {
  width: 100%;
  aspect-ratio: 16 / 5;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.2s ease; }
  .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease; }
  .project-card:hover .project-card-image img {
    transform: scale(1.01); }

.project-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0; }

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem; }

.project-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  transition: color 0.2s ease;
  line-height: 1.3; }

.project-card-arrow {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--muted-foreground);
  fill: none;
  transition: all 0.2s ease;
  margin-top: 0.125rem; }

.project-card-description {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0; }

.project-card-tech {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  opacity: 0.7;
  line-height: 1.5;
  transition: opacity 0.2s ease; }
  .project-card:hover .project-card-tech {
    opacity: 0.9; }

.principles-section {
  padding: 5rem 0; }

.principles-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border); }

.principle-item {
  display: flex;
  gap: 1rem;
  align-items: start; }
  .principle-item .principle-icon {
    flex-shrink: 0; }
    .principle-item .principle-icon svg {
      width: 2rem;
      height: 2rem;
      stroke: var(--muted-foreground);
      fill: none;
      transition: all 0.3s ease;
      opacity: 0.7; }
  .principle-item .principle-content {
    flex: 1; }
    .principle-item .principle-content h3 {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      color: var(--foreground);
      transition: color 0.3s ease; }
    .principle-item .principle-content p {
      font-size: 1.125rem;
      line-height: 1.6;
      color: var(--muted-foreground);
      margin: 0; }
  .principle-item:hover .principle-icon svg {
    stroke: var(--foreground);
    opacity: 1;
    transform: scale(1.05); }
  .principle-item:hover .principle-content h3 {
    color: var(--primary); }

@media screen and (min-width: 768px) {
  .principle-item {
    gap: 1.25rem; }
    .principle-item .principle-icon svg {
      width: 2.5rem;
      height: 2.5rem; } }

.logistics-section {
  padding: 5rem 0; }
  .logistics-section .logistics-content {
    max-width: 48rem; }
    .logistics-section .logistics-content p {
      font-size: 1.125rem;
      line-height: 1.6;
      color: var(--muted-foreground);
      margin: 0.5rem 0; }
      .logistics-section .logistics-content p .highlight {
        color: var(--foreground);
        font-weight: 500; }

.client-availability {
  margin-top: 0.75rem;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: start;
  gap: 0.5rem;
  animation: fade-slide-in 0.5s ease-out; }
  .client-availability .clock-icon {
    width: 1rem;
    height: 1rem;
    stroke: var(--primary);
    fill: none;
    flex-shrink: 0;
    margin-top: 0.275rem; }
  .client-availability .timezone-value {
    color: var(--muted-foreground); }
    .client-availability .timezone-value .time-range {
      color: var(--primary);
      font-weight: 600; }

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem); }
  to {
    opacity: 1;
    transform: translateY(0); } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 3.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.00625em;
  background-color: var(--primary-container);
  color: var(--primary-container-foreground);
  padding: 0 1rem;
  border-radius: 1rem;
  border: none;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
  cursor: pointer; }
  .btn-primary img,
  .btn-primary svg,
  .btn-primary .btn-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: block; }
  .btn-primary img {
    border-radius: 50%;
    object-fit: cover; }
  .btn-primary svg {
    fill: var(--primary-container-foreground); }
  .btn-primary span {
    flex: 1;
    white-space: nowrap; }
  .btn-primary:hover {
    background-color: var(--primary-container-hover);
    color: var(--primary-container-foreground); }
  .btn-primary:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.00625em;
  color: var(--foreground);
  background-color: transparent;
  border: 1px solid var(--border);
  padding: 0 1rem;
  border-radius: 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
  cursor: pointer; }
  .btn-secondary svg,
  .btn-secondary .btn-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    fill: currentColor; }
  .btn-secondary span {
    white-space: nowrap; }
  .btn-secondary:hover {
    background-color: var(--muted);
    border-color: var(--primary);
    color: var(--foreground); }
  .btn-secondary:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px; }

.contact-section {
  padding: 5rem 0;
  max-width: 42rem; }
  .contact-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem; }
    .contact-section h2 svg {
      width: 1.75rem;
      height: 1.75rem;
      stroke: var(--primary);
      fill: none;
      flex-shrink: 0;
      margin-top: 0.125rem; }
  .contact-section p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem; }
  .contact-section .contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: fit-content;
    max-width: 100%; }

.services-section {
  padding: 3rem 0; }
  .services-section .services-list {
    padding: 0;
    margin: 0 0 2rem 0;
    max-width: 48rem;
    padding-left: 1.5rem; }
    @media screen and (min-width: 768px) {
      .services-section .services-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 2rem;
        max-width: none; } }
    .services-section .services-list li {
      font-size: 1.125rem;
      color: var(--muted-foreground);
      padding: 0.5rem 0;
      line-height: 1.6; }
      .services-section .services-list li::marker {
        color: var(--primary);
        font-weight: 700; }
      @media screen and (min-width: 768px) {
        .services-section .services-list li {
          font-size: 1.125rem;
          padding: 0.375rem 0; } }
  .services-section .services-note {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin: 0;
    max-width: 48rem;
    opacity: 0.85; }
    @media screen and (min-width: 768px) {
      .services-section .services-note {
        font-size: 1.0625rem; } }
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 0.75rem;
  text-align: center; }
  footer p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0; }

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin: 1rem 0; }

.card-mini {
  text-decoration: none;
  background-color: var(--card);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  transition: transform 0.166s ease-out, box-shadow 0.166s ease-out; }
  .card-mini .card-header {
    margin-top: 0.5rem; }
  .card-mini .chip {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem; }
  .card-mini:hover {
    box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
    background-color: var(--surface-hover);
    transform: translateY(-2px); }

.project-view .card {
  max-width: calc(60 * (1rem / 1.618));
  margin: 0 auto; }

.card-header {
  text-align: center;
  margin: 2rem 0 1.5rem; }

.card-image figure img {
  background: var(--muted);
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain; }

.project-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem; }
  @media screen and (min-width: 768px) {
    .project-title {
      font-size: 2.25rem; } }
.project-description {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0; }

.tools-container {
  margin: 1.5rem 0; }
  .tools-container ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    gap: 0.5rem; }

.chip {
  padding: 0.375rem 1rem;
  margin: 0;
  background-color: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  line-height: 1.5;
  text-align: center;
  font-size: 0.875rem; }

.card-content article {
  max-width: 65ch; }
  .card-content article p {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 1.5rem; }
    .card-content article p:last-child {
      margin-bottom: 0; }
  .card-content article h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem; }
    .card-content article h3:first-child {
      margin-top: 0; }
  .card-content article h4 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem; }
    .card-content article h4:first-child {
      margin-top: 0; }
  .card-content article blockquote {
    margin: 2rem 0;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
    font-style: italic;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    line-height: 1.75; }
    .card-content article blockquote p {
      margin-bottom: 1rem; }
      .card-content article blockquote p:last-child {
        margin-bottom: 0; }
  .card-content article ul, .card-content article ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem; }
    .card-content article ul li, .card-content article ol li {
      font-size: 1.0625rem;
      line-height: 1.75;
      margin-bottom: 0.75rem; }
      .card-content article ul li:last-child, .card-content article ol li:last-child {
        margin-bottom: 0; }
  .card-content article code {
    background-color: var(--muted);
    padding: 0.125rem 0.375rem;
    font-size: 0.9375rem;
    border-radius: 0.25rem;
    font-family: "JetBrains Mono", monospace; }
  .card-content article a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.125rem;
    transition: color 0.2s; }
    .card-content article a:hover {
      color: var(--muted-foreground); }
  .card-content article h3 + p {
    margin-top: 0; }
  .card-content article img + p,
  .card-content article p + img {
    margin-top: 1.5rem; }

.card-content article img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.5rem;
  margin: 1.5rem 0; }
  @media screen and (min-height: 1143px) {
    .card-content article img {
      max-height: 800px; } }
.contact-cta-section {
  margin: 3rem 0 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center; }
  .contact-cta-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem; }
  .contact-cta-section p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem; }

.back-to-projects {
  margin-top: 1.618rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  opacity: 0.32;
  text-align: center;
  margin: 2.5rem 0 2rem; }

@media screen and (max-width: 768px) {
  .container {
    width: 92%;
    padding-top: var(--header-height); }
  .projects-section,
  .principles-section,
  .logistics-section,
  .contact-section {
    padding: 3rem 0; }
  .projects-grid {
    grid-template-columns: 1fr; } }

@media screen and (max-width: 320px) {
  .sticky-header h3 {
    display: none; }
  .sticky-header .header-contents {
    justify-content: center; } }
