@font-face {
      font-family: "Helvetica";
      src: url("assets/Helvetica.ttf");
}

*, *::before, *::after {
      box-sizing: border-box;
      font-family: "Helvetica";
      color: white;
}

@font-face {
      font-family: "Obviously";
      src: url("assets/ObviouslyDemo-Extended.otf") format("opentype");
      font-weight: normal;
      font-style: normal;
      font-display: swap;
}

@font-face {
      font-family: "Obviously-Thin";
      src: url("assets/ObviouslyDemo-ExtendedThin.otf") format("opentype");
      font-weight: 300;
      font-style: normal;
      font-display: swap;
}

h1, h2, .button-group a, .button-group button {
     font-family: "Obviously", "Helvetica", sans-serif;
     text-transform: uppercase;
}

h3, h4, h5 {
      font-family: 'Obviously-Thin', 'Helvetica', sans-serif;

}

nav a {
      font-family: "Helvetica", sans-serif;
      text-transform: uppercase;
      font-size: .7rem;
}

.category-label h3 {
     font-family: "Obviously", "Helvetica", sans-serif;
     text-transform: uppercase; 
}

h1 {
      font-size: 2.5rem;
      margin: 0 0 20px 0;
}

h2 {
      font-family: 'Obviously-Thin', 'Helvetica', sans-serif;
      font-size: 1.5rem;
      text-transform: uppercase;

}

p {
      
      font-size: 1rem;
      margin: 0 0 20px 0;
}

html {
      background: black;
}

body {
      position: relative;
      background-color: black;
      margin: 0;
      padding: 0 14px 20px 14px;
      opacity: 0;
      animation: fadeFromBlack 0.45s ease-out 0.1s forwards;
}

body::before {
      content: "";
      position: fixed;
      inset: 0;
      background: black;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.45s ease-in;
      z-index: 9999;
}

body.page-exit::before {
      opacity: 1;
}

header {
      top: 0;
      left: 0;
      right: 0;
      z-index: 10;
      margin: 0;
      width: 100%;
      background: black;
      padding: 18px 16px;
      backdrop-filter: blur(10px);
      box-sizing: border-box;
      box-shadow:rgb(0, 0, 0) 0px 1px 3px, rgb(17, 16, 17) 0px 1px 4px;
}

nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 18px;
      padding: 20px 30px;
}

nav a {
      text-decoration: none;
      color: white;
      /* background-color: red; */
}

.nav-social {
      /* background-color: yellow; */
      display: flex;
      align-items: center;
      gap: 14px;
      margin-left: auto;
}

.nav-social a {
      display: inline-flex;
      align-items: center;
}

.nav-social img {
      width: 18px;
      height: 18px;
      display: block;
}

#projects {
      list-style: none;
      padding: 0;
      margin: 20px 50px;
      width: 100%;
      max-width: 1400px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 3px;
}

#projects li {
      list-style: none;
      margin: 0;
      padding: 0;
}

#projects li a {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: white;
      width: 100%;
      /* border: 2px solid white; */
      overflow: hidden;
      box-sizing: border-box;
      transition: background-color 0.2s ease, transform 0.2s ease, scale 0.2s ease;
      background: #080808;
      scale:1;
      position: relative;
      z-index: 1;
}

#projects li a:hover {
      background-color: #111;
      scale: 1.02;
      z-index: 5;
      /* transform: translateY(-2px); */
      /* box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24); */
}

.project-image {
      width: 100%;
      aspect-ratio: 5 / 3;
      overflow: hidden;
      background: #111;
}

.project-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
}

.project-detail__image {
      width: 100%;
      height: auto;
      max-width: 400px;
      max-height: 400px;
      border-radius: 12px;
      transition: transform 0.2s ease, filter 0.2s ease;
      transform: scale(1);
}

.project-detail__link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      /* width: 100%; */
      text-decoration: none;
      transition: transform 0.2s ease;
      box-sizing: border-box;
      padding: 16px 0;
      cursor: pointer;
}

.project-detail__link:hover .project-detail__image {
      transform: scale(1.02);
}

.project-detail__link:hover {
      transform: scale(1.01);
}

.project-detail.hover-section {
      transition: transform 0.2s ease;
}

.project-detail__link .project-detail__item {
      /* width: 100%; */
}

.project-detail__link .project-detail__image {
      display: block;
      margin: 0 auto;
      max-width: 100%;
}

.carousel-container .carousel {
      position: relative;
      overflow: hidden;
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
}

.carousel-track-container {
      overflow: hidden;
      width: 100%;
      position: relative;
      /* background-color: red; */
}

.carousel-track {
      display: flex;
      transition: transform 0.4s ease;
      gap: 16px;
      
}

.carousel-slide {
      min-width: 100%;
      display: flex;
      justify-content: center;
      box-sizing: border-box;
}

.carousel-slide img {
      max-width: 100%;
      max-height: 600px;
      width: auto;
      display: block;
      border: 2px solid white;
      border-radius: 0;
}

.carousel-slide video {
      max-width: 100%;
      max-height: 600px;
      width: auto;
      display: block;
      border: 2px solid white;
      border-radius: 0;
}

.carousel-button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.35);
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      backdrop-filter: blur(6px);
      z-index: 2;
      pointer-events: auto;
}

.carousel-button.prev {
      left: 12px;
}

.carousel-button.next {
      right: 12px;
}

.project-title {
      padding: 18px 16px;
      font-size: 1rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
      background: rgba(255, 255, 255, 0.02);
}

.button-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      margin-top: 20px;

}

.button-group a,
.button-group button {
      min-width: 220px;
      padding: 12px 24px;
      border: 2px solid white;
      border-radius: 20px;
      background: transparent;
      color: white;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;

      transition: color .2s ease-in-out,
                  background .2s ease-in-out;
}

.button-group a:hover,
.button-group button:hover {
      color:black;
      background: white;
}

.container {
      width: 100%;
      max-width: 1200px;
      padding: 0 20px;
      box-sizing: border-box;
}

.about-container {
      
      
      max-width: 1200px;
      padding: 0 60px;
      box-sizing: border-box;
      /* padding-right: 50px; */
      /* background-color: blue; */
}

.masthead {
      min-height: calc(100vh - 90px);
      position:fixed;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px 0px 80px 0px;
      /* background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 35%), linear-gradient(180deg, #000 0%, #111 100%); */
      position: relative;
      /* background-image: url('assets/photo-1671159593357-ee577a598f71.avif'); */
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      /* background-color: blue; */
      margin-left:30px;
      margin-right:30px;
}


.masthead::before {
      content: "";
      position: absolute;
      inset: 0;
      /* background: rgba(43, 43, 43, 0.305); */
      pointer-events: none;
}

.masthead .container {
      position: fixed;
      z-index: 1;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
      margin: 0 10vw;
      opacity: 1;
      transition: opacity 0.10s ease-out;
      /* background-color: red; */
}

/* Content variant: move per-page container alignment into CSS
   Section background color may still be set inline per-page (e.g. darkgreen) */
.masthead.variant{
      margin-bottom:200px;
}

.masthead.variant .container {
      align-items: flex-end;
      justify-content: flex-end;
      text-align: right;
      margin-right: 30px;

}

.masthead h1 {
      font-size: 3rem;
      margin: 0;
      line-height: 1;
}

.masthead.variant .container .category-label {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      /* font-weight: 600; */
      background-color: rgb(255, 255, 255);
      border-radius: 20px;
      opacity: 0.95;
      width: auto;
      height: 45px;
      padding: 0 14px;
      margin-left: 0.3rem;
      margin-right: 0.3rem;
}

.masthead.variant .container .category-label h3 {
      margin: 0;
      color: black;
      line-height: 1;
}

/* Variant mastheads that should display a leading label */
.masthead.variant h1::before {
      
      display: inline-block;
      margin-right: 0.6rem;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: none;
      opacity: 0.95;
}

.masthead p {
      font-size: 1.25rem;
      line-height: 1.5;
      max-width: 720px;
      margin: 0;
      opacity: 0.9;
}

.masthead .button-group {
      flex-direction: row;
      gap: 16px;
      margin-top: 32px;
}

.masthead .button-group button {
      min-width: 180px;
}

.about-section {
      padding: 60px 0;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      gap: 24px;
      margin: 20px auto;
      max-width: 1000px;
      /* background-color: red; */
}

.project-detail {
      display: flex;
      flex-wrap: wrap;
      gap: 36px;
      justify-content: flex-start;
      align-items: flex-start;
      margin: 80px auto;
      max-width: 1200px;
      padding: 0 20px;
}



.project-detail__item {
      flex: 1 1 320px;
      min-width: 280px;
}

.project-detail__item.centered,
.project-detail__item .centered {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
}

.project-detail h2,
.project-detail p {
      margin: 0;
}

.vcu-impact-images {
      flex-direction: column;
      flex-wrap: nowrap;
      align-items: center;
      gap: 24px;
}

.vcu-impact-images .project-detail__item {
      display: flex;
      justify-content: center;
      width: 100%;
      min-width: 0;
}

.vcu-impact-images__image {
      display: block;
      width: min(100%, 800px);
      height: auto;
      max-width: 100%;
      max-height: none;
}

.atari-mockup-row {
      display: grid;
      gap: 2px;
      align-items: stretch;
      margin-top: 10px;
      margin-bottom: 10px;
}

.atari-mockup-row--three {
      grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atari-mockup-row--two {
      grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atari-mockup-column {
      min-width: 0;
      border: 2px solid white;
}

.atari-mockup-column .project-detail__image {
      display: block;
      width: 100%;
      height: 100%;
      max-width: none;
      max-height: none;
      border-radius: 0;
      object-fit: contain;
      background: black;
}

@media (max-width: 900px) {
      .project-detail {
            flex-direction: column;
            gap: 24px;
      }

      .atari-mockup-row {
            grid-template-columns: 1fr;
      }
}

@media (max-width: 800px) {
      .carousel-button {
            width: 34px;
            height: 34px;
      }
}

@media (max-width: 700px) {
      .masthead {
            padding: 60px 0;
      }
      .masthead .button-group {
            flex-direction: column;
      }
}

@media (max-width: 900px) {
      #projects {
            grid-template-columns: 1fr;
            gap: 16px;
            padding: 0 12px;
            margin: 16px auto;
      }
}

@keyframes fadeFromBlack {
      from {
            opacity: 0;
      }
      to {
            opacity: 1;
      }
}
