body,
html {
  background: #121212 url("../img/bg-2021.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: 'Cairo', sans-serif;

  font-size: 12px;
  overflow: hidden;
  line-height: 14px;
}


header {
  position: relative;
  z-index: 100;
  width: 100%;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

footer {
  position: absolute;
  bottom: 0;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  margin: 0;
  text-align: center;
  /* max-width: 100%; */
  /* max-width: 600px; */
  margin: 0 auto;
}

header h1 {

  margin: 5px;
  padding: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  width: 80%;
  max-width: 500px;
  margin: 10px auto 5px auto;

  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

header nav,
footer nav {
  background: none !important;
  text-align: center;
  line-height: 20px;
  height: 16px;
  box-shadow: none !important;
  opacity: .6;
}

footer nav {
  margin: 5px 0;

}

header nav ul,
footer nav ul {
  width: 100%;
  height: 18px;
  text-align: center;
}

header nav li,
footer nav li {
  display: inline-block;
  margin: 0 2px 0 0;

  display: inline-block;
  *display: inline;
  /*IE7*/
  *zoom: 1;
  /*IE7*/

  float: none;
}


a,
a:link,
a:visited {
  color: #c60554;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  /*text-shadow: 1px 1px 1px #c60554;*/
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
  padding: 1px 3px;
  /*text-transform: uppercase;*/
}

a:hover {
  color: #fff;
  background: #1ececc;
  text-decoration: none;
}

#container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden;
  z-index: 1;
}

#controller {
  position: absolute;
  bottom: 10px;
  z-index: 50;
  width: 100%;
  display: none;
}

#controller.active {
  display: block;
}

input[type="range"] {
  border: none !important
}



#about {
  display: none;
}

#socialnetworks {
  opacity: .4;

}

#socialnetworks a {
  letter-spacing: 1px;
  color: #fff;
}

#socialnetworks img {
  margin: 0 5px 0 0;
  line-height: 30px;
  display: inline-block;
  position: relative;
  top: 2px
}

h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  /* letter-spacing: 1px; */
}

/* Project Overlay - Bottom Center */
#project-overlay {
  position: fixed;
  z-index: 5;
  max-width: 600px;
  width: 90%;
  transition: opacity 0.5s ease;
  display: none;
  opacity: 0;
}

/* Portrait mode - bottom center */
@media (orientation: portrait) {
  #project-overlay {
    bottom: 20px;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    text-align: center;
  }

  header nav li,
  footer nav li {

    margin: 0 2px 0 0;

  }
}

/* Landscape mode - vertical and horizontal center, aligned to second column */
@media (orientation: landscape) {
  #project-overlay {
    top: 50%;
    left: 62.5%;
    bottom: auto;
    transform: translate(-50%, -50%);
    max-width: 300px;
    width: 40%;
  }


}

.project-content {
  /* background: rgba(10, 10, 10, 0.95); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border-radius: 10px;
  padding: 15px;
  text-align: left;
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);  */
}

.project-header {
  margin-bottom: 8px;
}

.project-title {
  margin: 0;
}

.project-body {}

.project-description {
  margin: 0 0 5px 0;
  opacity: 0.7;
}

.project-meta {
  margin-top: 8px;
  font-size: 10px;
  opacity: 0.8;
  text-transform: uppercase;
  text-align: right;
}

.project-meta p {
  margin: 1px 0;
  font-size: 9px;
}

/* "Open Project" link inside project overlay */
.project-open-link {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s, background 0.3s;
}

.project-open-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* ─── HTML Project Navigation Buttons ─────────────────────── */
#project-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.project-nav-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
}

#project-nav button {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  padding: 8px;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

#project-nav button:hover {
  opacity: 1 !important;
}

#project-nav button img {
  width: 30px;
  height: 30px;
}

/* Close: top right — slides in from above */
#btn-close {
  top: 80px;
  right: 15px;
  transform: translateY(-80px);
}

/* Prev: left center — slides in from the left */
#btn-prev {
  left: 10px;
  top: 50%;
  transform: translate(-80px, -50%);
}

/* Next: right center — slides in from the right */
#btn-next {
  right: 10px;
  top: 50%;
  transform: translate(80px, -50%);
}

/* Active state: buttons slide to final position */
#project-nav.active #btn-close {
  transform: translateY(0);
  opacity: 0.4;
  transition-delay: 0.8s;
}

#project-nav.active #btn-prev {
  transform: translate(0, -50%);
  opacity: 0.4;
  transition-delay: 1.0s;
}

#project-nav.active #btn-next {
  transform: translate(0, -50%);
  opacity: 0.4;
  transition-delay: 1.1s;
}

/* Closing state: buttons slide back out */
#project-nav.closing #btn-close {
  transform: translateY(-80px);
  opacity: 0;
  transition-delay: 0s;
  transition-duration: 0.4s;
}

#project-nav.closing #btn-prev {
  transform: translate(-80px, -50%);
  opacity: 0;
  transition-delay: 0.05s;
  transition-duration: 0.4s;
}

#project-nav.closing #btn-next {
  transform: translate(80px, -50%);
  opacity: 0;
  transition-delay: 0.1s;
  transition-duration: 0.4s;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #project-nav button img {
    width: 24px;
    height: 24px;
  }

  #btn-close {
    top: 60px;
    right: 10px;
  }

  #btn-prev {
    left: 5px;
  }

  #btn-next {
    right: 5px;
  }
}