/* === Universal reset & base === */
* {
  color: white;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background-image: url(img/Backgrounds/NeoN_Logo-wide-1024x374.jpg);
  background-color: #181818;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
}

/* === Project specific backgrounds === */
#carto { background-image: url(img/Carto/cartoThumbnail.jpg); }
#space { background-image: url(img/BOSpace/spaceMainMenu.jpg); }
#gs { background-image: url(img/Thumbnails/godspeed43.png); }
#urp { background-image: url(img/URP/thumburp.png); }
#urp2 {background-image: url(img/URP/NewURP_back.png); }
#overlayMap { background-image: url(img/OverlayMap/mapScreenShot.png); }
#candy { background-image: url(img/CandyDandy/BigBackground.png); }
#spark {background-image: url(img/FirstSpark/Final_map.png); }
#geeked {background-image: url(img/DirtJam/Sunset.png); }
#shopify {background-image: url(img/Backgrounds/Blueprintbg.png); }
#ensemble {background-image: url(img/Ensemble/HQ_EnsembleRender.jpg)}
#octo {background-image: url(img/URP/4k_nglogo.png)}
#radial {background-image: url(img/URP/4k_nglogo.png)}

/* #ensemble { Uncomment for multiple backgrounds on page.
  background-image: url("img/Ensemble/EnsembleBG.jpg");
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1.2s ease-in-out;
} /* */

/* Phone-specific overrides for backgrounds */
@media (max-width: 768px) {
  body#urp2 {
    background-image: url("img/URP/phoneBG.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  body#candy {
    background-image: url("img/CandyDandy/smallBackground.png");
  }
  body#ensemble {
    background-image: url("img/Ensemble/phoneEnsemble.jpg");
  }
}



/* === Desktop === */
header {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* === Navbar === */
nav {
  left: 0;
  top: 0;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: rgb(20, 20, 20, 0.8);
  height: 4vw;
  margin-bottom: 2%;
}

.name {
  font-size: 80%;
  padding: 1vw;
}

.menu {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-right: 1vw;
}

.menu.show {
  display: flex;
  flex-direction: column;
}

.nav-items {
  display: inline-block;
  background-color: #181818;
  border: none;
  color: white;
  text-align: center;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;

}

.nav-items:hover {
  background-color: #4e4e4eb7;
}

/* === Hamburger === */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  padding: 1vw;
  color: white;
}

/* === Container === */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 2%;
}

/* === Project content === */
.project-header {
  text-align: center;
  background-color: #141414bc;
  width: 70%;
  font-size: 20px;
  border-bottom: solid 2px white;
}

.project-title {
  padding: 0;
  margin-bottom: 0;
}

.my-features > h2 {
  font-size: 16px;
}

.project-details {
  background-color: #141414bc;
  height: 50vw;
  width: 70%;
  overflow: auto;
}

.project-text {
  text-align: center;
  padding-top: 1vw;
  margin: 0 5vw;
}

/*
.project-text {
  max-width: clamp(800px, 65%, 1200px);
  margin-left: auto;
  margin-right: auto;
}  */

.project-text p {
  margin-bottom: 1.2em; /* More breathing room between paragraphs */
  line-height: 1.6; /* Slightly taller lines */
}

.project-text h2,
.project-text h3 {
  margin-top: 1.8em; /* Clearer section separation */
  margin-bottom: 0.6em;
}

.project-text hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2em 0;
}

.project-text ul {
  margin: 1em auto;
  padding-left: 1.2em;
}

.project-text li {
  margin-bottom: 0.6em;
}

.project-stats {
  display: flex;
  flex-direction: row;
  padding-left: 4vw;
  justify-content: space-evenly;
}

.project-description {
  padding: 2vw;
}

.project-description > .h2 {
  font-size: 36px;
  margin: 20px 0 10px;
}

.project-description > .p {
  font-size: 14px;
}

.project-description > .subtitle {
  font-size: 18px;
  margin: 20px 0 10px;
}

.project-images {
  text-align: center;
  font-size: 14px;
  padding-top: 2vw;
}

.project-images > img {
  width: 75%;
}

.project-images > video {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === Universal image and video scaling === */
video,
img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  margin: 0 auto;
}

/* === Video container === */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 75%; /* matches .project-images > img */
  margin: 2vw auto; /* centered, same spacing rhythm as images */
  border-radius: 12px; /* smooth rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* subtle drop shadow */
  background: transparent; /* fallback background for load */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px; /* rounded corners match container */
  display: block;
}


/* === Code snippets === */
div.code {
  white-space: pre;
}

code.snippet {
  display: block;
  background-color: #282828;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 14px;
  color: #a9b7c6;
}

/* === Utility classes === */
.centered-list {
  text-align: center;
  list-style: none;
  padding: 3px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.section-subtitle {
  margin-top: 2px;
  margin-bottom: 0.5em;
  font-style: italic;
  font-size: 0.9em;
  text-align: center;
}


/* === Contact and footer === */
#contact {
  background-color: #2c2b2b;
  text-align: center;
  padding: 2%;
}

#contact > p {
  background-color: #2c2b2b;
}

footer {
  background-color: #333;
  text-align: center;
  padding: 2%;
}

/* === Mobile === */
@media (max-width: 480px) {
  
  .hamburger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 10px;
    padding: 10px;
    gap: 10px;
    background: rgba(20, 20, 20, 0.95);
    z-index: 1;
  }

  .menu.show {
    display: flex;
  }
  
  nav{
    height: auto;
    padding: 10px;
    margin-bottom: 8%;
  }
  
  .project-header,
  .project-details {
    width: 100%;
    height: auto;
    font-size: 16px;
  }

  .project-text {
    margin: 0;
    padding: 5% 0;
  }

  .project-description {
    padding: 5%;
  }

  .project-description > .h2 {
    font-size: 24px;
  }

  .project-description > .p,
  .project-description > .subtitle {
    font-size: 14px;
  }

  .project-stats {
    flex-direction: column;
    padding: 0;
  }

  .project-images > img {
    width: 100%;
    height: auto;
  }

  .project-images > video {
    width: 100%;
    height: auto;
  }
  
  .video-container {
    max-width: 100%;
    margin: 1rem 0;
  }

  code.snippet {
    font-size: 12px;
  }

  html, body {
    margin: 0;
    padding: 0;
  }

  footer {
    margin-top: 8%;
  }
}

/* === Tablet === */
@media (min-width: 481px) and (max-width: 1024px) {

  .hamburger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 10px;
    padding: 10px;
    gap: 10px;
    background: rgba(20, 20, 20, 0.95);
    z-index: 1;
  }

  .menu.show {
    display: flex;
  }

  nav {
    height: auto;
    padding: 10px;
    margin-bottom: 8%;
  }

  .project-header,
  .project-details {
    width: 90%;
    font-size: 18px;
    height: auto;
  }

  .project-text {
    margin: 0;
    padding: 3% 0;
  }
  
  .video-container {
    max-width: 85%;
  }

  footer {
    margin-top: 4%;
  }
}



/* === XL === */
@media screen and (min-width: 1600px) {
  .project-details {
    max-width: 55%;
    font-size: 18px;
    /*margin: 0 auto;*/
    margin-bottom: 2%;
  }
  
  .project-header{
    max-width: 55%;
  }
  
  .project-text{
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.25;
  }
  
  .video-container {
    max-width: 75%;
    margin: 1.5vw auto
  }
  
  
}
