body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  header {
    background-color: #111;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto auto auto auto auto 1fr;
    column-gap: 1.25rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  nav {
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
    justify-self: center;
    grid-column: 4;
  }
  
  header h1 a {
    text-decoration: none;
    color: #ffffff;
    font-size: inherit;
    display: inline-block;
    transition: transform 160ms ease, color 160ms ease;
    will-change: transform;
  }

  header h1 {
    margin: 0;
    font-size: 1rem;
    justify-self: end;
    grid-column: 2;
  }

  .header-sep {
    color: #555;
    font-weight: 600;
    line-height: 1;
    margin: 0 0.5rem;
    user-select: none;
  }

  .header-sep-left {
    grid-column: 3;
  }

  .header-sep-right {
    grid-column: 5;
  }

  header h1 a:visited,
  header h1 a:hover,
  header h1 a:focus {
    color: #ffffff;
    text-decoration: none;
  }

  header h1 a:hover,
  header h1 a:focus {
    transform: translateY(-2px) scale(1.08);
    outline: none;
  }

  header h1 a:focus-visible {
    box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
    border-radius: 6px;
  }
  
  nav ul.nav {
  list-style: none;
  display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
}

nav ul.nav a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
    padding: 0.5rem;
  display: block;
}

nav ul.nav a:visited {
  color: #eee;
}

.nav-contact {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  padding: 0.5rem;
  display: block;
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
  justify-self: start;
  grid-column: 6;
}

.nav-contact:visited {
  color: #eee;
}

nav ul.nav > li > a {
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

nav ul.nav > li > a:hover,
nav ul.nav > li > a:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

nav ul.nav > li > a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

.nav-contact:hover,
.nav-contact:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

.nav-contact:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title contact"
      "nav nav";
    row-gap: 0.75rem;
    column-gap: 1rem;
  }

  .header-sep {
    display: none;
  }

  header h1 {
    grid-area: title;
    justify-self: start;
  }

  nav {
    grid-area: nav;
    width: 100%;
    justify-self: stretch;
    grid-column: auto;
  }

  .nav-contact {
    grid-area: contact;
    justify-self: end;
    grid-column: auto;
  }

  nav ul.nav {
    justify-content: flex-start;
  }
}
  
  main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1 0 auto;
  }
  
  .project h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
  }
  
  .project .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ddd;
  }
  
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-grid a:hover,
.gallery-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
  
.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: none;
    cursor: pointer;
    transition: none;
    transform-origin: center center;
    display: block;
  }
  
  @media (prefers-reduced-motion: reduce) {
    .gallery-grid a { transition: none; }
    .gallery-grid a:hover,
    .gallery-grid a:focus-visible { transform: none; }
  }
  
  footer {
    background-color: #000;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #888;
  }

  h1 {
    margin: 0;
    font-size: 2rem;
  }

header {
  background-color: #111;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  position: static;
  left: auto;
  transform: none;
  min-width: 0;
}

header h1 {
  display: none;
}

.header-sep,
.header-sep-left,
.header-sep-right,
.nav-contact {
  display: none;
}

nav ul.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

nav ul.nav li.nav-sep {
  color: #555;
  font-weight: 600;
  user-select: none;
}

nav ul.nav a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  padding: 0.5rem;
  display: block;
}

nav ul.nav a:visited {
  color: #eee;
}

nav ul.nav > li > a {
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

nav ul.nav > li > a:hover,
nav ul.nav > li > a:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

nav ul.nav > li > a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
  }

  nav ul.nav {
    flex-wrap: wrap;
  }
}
