@font-face {
    font-family: "PSTimes";
    src: url("/assets/PSTimes-Regular.woff2") format("woff2"),
         url("/assets/PSTimes-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
  }
  
  @font-face {
    font-family: "HelveticaNeueRegular";
    src: url("/assets/HelveticaNeue-Regular.woff2") format("woff2"),
         url("/assets/HelveticaNeue-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
  }
  
  @font-face {
    font-family: "HelveticaNeueLight";
    src: url("/assets/HelveticaNeue-Light.woff2") format("woff2"),
         url("/assets/HelveticaNeue-Light.woff") format("woff");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
  }
  
  :root {
    --bg-color: #E8E8E8; 
    --card-bg: #E8E8E8;
    --text-main: #030303;
    --text-muted: rgba(0, 0, 0, 0.5);
    --text-inverse: #E8E8E8;
    --bg-dark: #030303;
    --accent: #A6A6A6;
    --accent-hover: #A6A6A6;
    --white: #FFFFFF;
    --font-display: "PSTimes", serif;
    --font-body: "HelveticaNeueRegular", sans-serif;
    --font-light: "HelveticaNeueLight", sans-serif;
    --page-gutter: 16px;
    --section-space: 11.111vw;
    --ease-standard: cubic-bezier(.445, .05, .55, .95);
    --ease-button: cubic-bezier(.165, .84, .44, 1);
  }
  
  *, *::before, *::after { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.1;
  }
  
  a { color: inherit; text-decoration: none; }
  button, input, textarea, select { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  img, video { display: block; max-width: 100%; }
  
  .app {
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-main);
  }
  
  header, .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
  }
  
  header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(3, 3, 3, 0.12);
    background: rgba(232, 232, 232, 0.88);
    backdrop-filter: blur(8px);
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
  }
  
  .logo {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
  }
  
  .logo span { color: inherit; }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .nav-links a {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s var(--ease-standard);
  }
  
  .nav-links a:hover, .nav-links a.active { color: var(--text-main); }
  




  section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
  }
  
  h1, h2, h3, .intro h1, .hero-title, .project-info h2, .project-title {
    color: var(--text-main);
    font-family: var(--font-display);
    font-weight: 300;
  }
  
  h2 {
    position: relative;
    display: inline-block;
    margin: 0 0 2rem;
    font-size: clamp(2rem, 3.0556vw, 3.66rem);
    line-height: 1.1;
  }
  
  #hero {
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    padding: 12.5vw 10%;
  }
  
  .intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70vh;
    padding: 8vw 10%;
  }
  
  .intro h1, .hero-title {
    max-width: 12ch;
    margin: 16px 0;
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 0.95;
    letter-spacing: normal;
  }
  
  .hero-title span { color: inherit; }
  
  .hero-subtitle {
    max-width: 600px;
    margin: 0 0 2rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 1.9444vw, 2.33rem);
    font-weight: 400;
    line-height: 1.2;
  }
  
  .hero-actions{ 
    display: flex;
    gap: 24px;
  }

  /* .resume-button {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease;
  } */
  
  .resume-button:hover,
  .resume-button:focus-visible {
    background-color: #171717;
    color: #fff;
  }

  .btn {
    display: inline-block;
    padding: 0.75rem 0;
 
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    
  }
  


  .btn:hover { 
    background: transparent; 
    border: 0;
    border-bottom: 1px solid var(--text-main);
    border-radius: 0;
    color: var(--text-main); 
    opacity: 0.6; 
    transition: opacity 0.3s var(--ease-button);
  }
  
  


  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .skill-category {
    padding: 1.5rem 0;
    border: 0;
    border-top: 1px solid rgba(3, 3, 3, 0.25);
    border-radius: 0;
    background: transparent;
  }
  
  .skill-category h3 {
    margin: 0 0 1rem;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.9444vw, 2.33rem);
    font-weight: 400;
  }
  
  .skill-tags, .project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  
  .tag {
    padding: 0.25rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  
  .work { padding: 0 5% 10%; }
  





  .project {
    display: block;
    margin-bottom: 8vw;
    color: inherit;
  }
  
  .project img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #DADADA;
    transition: transform 300ms ease;
  }
  
  .project:hover img { transform: scale(0.99); }
  
  .project-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
  }
  
  .project-info h2, .project-title {
    margin: 1rem 0 0.5rem;
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    line-height: 1.1;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: background-color 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
  }
  
  .project-card:hover,
  .project-card:focus-visible,
  .project-card.is-selected {
    opacity: 0.6;
  }
  
  .project-card:focus-visible {
    outline: 3px solid --accent-hover;
    outline-offset: 3px;
  }



  .project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem 0;
  }
  
  .project-timeline {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
  }
  
  .project-desc {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  footer {
    padding: 8vw 10%;
    background: var(--bg-dark);
    color: var(--text-inverse);
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
  }
  
  footer a, footer h1, footer h2, footer h3 { color: var(--text-inverse); }
  .footer__address, .footer .muted { color: var(--text-inverse); opacity: 0.5; }
  .footer__webgl { background: var(--bg-dark); }
  
  .text-muted { color: var(--text-muted); }
  
  .dark-bg {
    background: var(--bg-dark);
    color: var(--text-inverse);
  }
  
  .dark-bg a { color: var(--text-inverse); }
  
  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1rem; }
    section { min-height: auto; padding: 5rem 1.5rem 2rem; }
    #hero { min-height: 100vh; padding: 7rem 1.5rem 54px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .intro h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  }
  
  @media (max-width: 600px) {
    .project-info { display: block; }
    .project-info h2 { margin-bottom: 8px; }
    .projects-grid { grid-template-columns: 1fr; }
    .header { padding: 20px 1.5rem; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }

  .system-demo {
    padding: 5vw 6%;
    background: #f2f0eb;
    color: #171717;
  }
  
  #system-demo {
    scroll-margin-top: 80px; /* Adjust to your header height */
  }
  

  .demo-heading {
    max-width: 700px;
    margin: 0 auto 10px;
  }
  
  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
  }
  
  .demo-heading h2 {
    margin: 12px 0;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
  }
  
  .demo-video {
    max-width: 1200px;
    margin: 0 auto 36px;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
  }
  
  .demo-video video {
    display: block;
    width: 100%;
    height: auto;
  }
  
  .screenshots {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  
  .screenshots figure {
    margin: 0;
  }
  
  .screenshots figure:first-child {
    grid-column: 1 / -1;
  }
  
  .screenshots img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #ddd;
  }
  
  .screenshots figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
  }
  
  /* Reveal when scrolled into view */
  .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 700ms ease, transform 700ms ease;
  }
  
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* .flake {
    color: #000000;
    left: random(0%, 100%);
    width: random(3px,10px);
    opacity: random(0.3, 1);
    animation-duration: random(5s, 14s);

    animation-delay: random(-14s, 0s);
  } */
  
  @media (max-width: 650px) {
    .screenshots {
      grid-template-columns: 1fr;
    }
  
    .screenshots figure:first-child {
      grid-column: auto;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
  
