html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-image: url('/main_assets/background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@font-face {
  font-family: "clubbed to life";
  src: url("/fonts/ClubbedToLife.otf") format("opentype");
}

@font-face {
  font-family: "alte haas grotesk bold";
  src: url("/fonts/AlteHaasGroteskBold.ttf") format("truetype");
}

@font-face {
  font-family: "alte haas grotesk regular";
  src: url("/fonts/AlteHaasGroteskRegular.ttf") format("truetype");
}

.text-header {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
  margin-bottom: 15px;
  height: auto;
  font-family: "clubbed to life";
  font-size: clamp(32px, 5vw, 60px);
  color: #ffffff;
  text-align: right;
  letter-spacing: 1px;
}

.blank-text {
  font-family: 'clubbed to life';
  color: white;
  letter-spacing: 1px;
  font-size: 1px;
}

.text-subtitle-right {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
  height: auto;
  font-family: "clubbed to life";
  font-size: clamp(18px, 2.5vw, 30px);
  letter-spacing: 1.5px;
  color: #ffffff;
  text-align: right;
}

.text-alt-small-right {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 15px;
  margin-bottom: 5px;
  height: auto;
  font-family: "alte haas grotesk regular";
  font-size: clamp(14px, 1.5vw, 18px);
  color: #ffffff;
  text-align: right;
}

.text-alt-small-right a {
  text-decoration: underline;
  color: white;
}

.text-alt-small-right a:hover {
  color: #292B65;
  cursor: pointer;
}

.text-alt-small-left {
  color: white;
  text-align: left;
  height: auto;
  font-family: "alte haas grotesk regular";
  font-size: clamp(13px, 1.2vw, 15px);
}

.text-alt-small-left a {
  text-decoration: underline;
  color: white;
}

.text-alt-small-left a:hover {
  text-decoration: underline;
  color: #292B65;
}

.text-subtitle-left {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
  height: auto;
  font-family: "clubbed to life";
  font-size: clamp(18px, 2.5vw, 30px);
  letter-spacing: 1.5px;
  color: #ffffff;
  text-align: left;
}

.text-subtitle-left a {
  text-decoration: underline;
  color: white;
}

.text-subtitle-left a:hover {
  color: #292B65;
  cursor: pointer;
}

.text-medium {
  height: auto;
  font-family: "clubbed to life";
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 1.5px;
  color: #ffffff;
  padding-top: 10px;
  margin-bottom: 7px;
}

.text-small {
  font-family: 'clubbed to life';
  color: white;
  letter-spacing: 1px;
  font-size: clamp(16px, 1.8vw, 20px);
}

.text-xsmall {
  font-family: 'clubbed to life';
  color: white;
  letter-spacing: 1px;
  font-size: clamp(13px, 1.2vw, 16px);
  margin-top: 0px;
  margin-bottom: 0px;
}

/* ✦·┈๑⋅⋯ Header ⋯⋅๑┈·✦ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 7.3vw, 140px);
  background-image: url('/main_assets/header.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left top;
  z-index: 1000;
  min-width: unset;
}

.header-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.logo {
  position: absolute;
  top: clamp(8px, 1vw, 15px);
  left: 25px;
}

.logo img {
  height: clamp(40px, 3.6vw, 70px);
  width: auto;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  height: clamp(25px, 2.1vw, 40px);
  z-index: 1000;
  width: auto;
  display: flex;
}

.nav-list {
  font-family: 'clubbed to life';
  font-size: 20px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}


.nav-list li {
  background-image: url('/main_assets/nav-button.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: clamp(100px, 9.4vw, 181px);
  height: clamp(25px, 2.1vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: clamp(-20px, -1.6vw, -30px);
}

.nav-list li a {
  text-decoration: none;
  color: white;
}

.nav-list li a:hover {
  color: #292B65;
  cursor: pointer;
}

.hamburger {
  width: auto;
  cursor: pointer;
}

.hamburger button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: auto;
  height: clamp(25px, 2.1vw, 40px);
}

.hamburger button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ✦·┈๑⋅⋯ Main ⋯⋅๑┈·✦ */

#container {
  max-width: 1900px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

#flex {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

main {
  padding-top: clamp(80px, 6vw, 120px);
  padding-bottom: clamp(60px, 5.5vw, 100px);
  margin-left: 25%;
  margin-right: 25%;
  flex: 1;
  min-width: 0;
  transition: margin-right 0.3s ease;
}

main.pushed {
  margin-right: 25%;
}

section a {
  text-decoration: none;
}

/* ✦·┈๑⋅⋯ Hello ⋯⋅๑┈·✦ */

#hello {
  margin: 10px;
  padding: 10px;
  height: auto;
}

.scroll {
  width: auto;
  height: 300px;
}

.scroll-text {
  padding: 50px;
}

.scroll img {
  width: 200px;
  height: auto;
  padding: 10px;
  float: left;
}

.blank {
  width: auto;
  height: 35vh;
}

/* ✦·┈๑⋅⋯ Sections ⋯⋅๑┈·✦ */

#electronics, #ui, #fun, #project {
  margin: 10px;
  padding: 10px;
  height: auto;
}

/* ✦·┈๑⋅⋯ Home Projects ⋯⋅๑┈·✦ */

.img-text {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 20px;
  border-radius: 20px;
  transition: padding 0.3s ease;
}

.img-text:hover {
  border: 3px solid hsla(204, 100%, 91.18%, 0.4);
  border-radius: 20px;
  padding: 12px;
}

.left {
  margin-right: 20px;
  padding-left: 2vw;
  height: auto;
  min-width: 200px;
  width: 40vw;
  align-items: left;
}

.left img {
  border-radius: 10px;
  width: 100%;
}

.right {
  margin: 5px;
  padding: 5px;
  height: auto;
  padding-right: 1vw;
}

.right img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 3px solid hsla(204, 100%, 91.18%, 0.4);
  max-width: 1600px;
}

.right-text {
  margin: 5px;
  padding: 5px;
  height: auto;
  padding-right: 1vw;
  padding-top: 25px;
}

/* ✦·┈๑⋅⋯ Project Page ⋯⋅๑┈·✦ */

.p-header {
  display: flex;
  flex-direction: row;
  border-radius: 20px;
  margin-top: 10px;
  padding-bottom: 30px;
}

.p-full-img {
  display: flex;
  border-radius: 10px;
  margin: 20px;
}

.p-full-img img, .p-full-img video {
  width: 100%;
  display: flex;
  border-radius: 10px;
  border: 3px solid hsla(204, 100%, 91.18%, 0.4);
}

.p-full-img-t {
  display: flex;
  border-radius: 10px;
  margin: 20px;
}

.p-full-img-t img {
  width: 100%;
}

.p-box-text {
  margin: 20px;
}

/* ✦·┈๑⋅⋯ Menu/Sidebar ⋯⋅๑┈·✦ */

.menu-group {
  width: 80%;
  margin-left: 20px;
}

.menu-projects {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu-group.open .menu-projects {
  max-height: 300px;
}

.menu-section {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-section::before {
  content: "✦";
  color: white;
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.menu-group.open .menu-section::before {
  transform: rotate(90deg);
}

.menu-project.active a {
  color: hsla(204, 100%, 91.18%, 1);
  text-decoration: underline;
}

.sidebar {
  position: fixed;
  top: clamp(80px, 7.3vw, 140px);
  right: 20px;
  width: 15vw;
  min-width: 180px;
  height: calc(100vh - clamp(80px, 7.3vw, 140px) - clamp(60px, 5.2vw, 100px));
  overflow-y: auto;
  padding-top: 50px;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 999;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.sidebar.closed {
  transform: translateX(100%);
}

.sidebar button.menu-project a {
  display: block;
  width: 100%;
  height: 100%;
  color: #FFFFFF;
  text-decoration: none;
  padding-top: 5px;
}

.sidebar button.menu-project {
  margin-top: 3px;
  margin-bottom: 3px;
  padding-left: 10px;
  width: 170px;
  height: 35px;
  background: hsla(206.88, 100%, 81.18%, 0.4);
  border: 3px solid hsla(204, 100%, 91.18%, 0.4);
  border-radius: 15px;
  font-family: "clubbed to life";
  font-size: 18px;
  color: #FFFFFF;
  text-align: left;
  letter-spacing: 1px;
}

.sidebar button.menu-project:hover {
  background: hsla(207, 70%, 67%, 0);
  border: 3px solid hsla(204, 100%, 91.18%, 0.4);
  border-radius: 15px;
  font-family: "clubbed to life";
  color: #FFFFFF;
  text-align: left;
  letter-spacing: 1px;
  cursor: pointer;
}

.sidebar button.menu-section {
  margin-top: 5px;
  margin-bottom: 5px;
  background: none;
  border: none;
}

.sidebar button.menu-section a {
  text-decoration: none;
  margin-left: 5px;
  font-family: "clubbed to life";
  font-size: 16px;
  color: #ffffff;
  text-align: left;
  letter-spacing: 1px;
}

.sidebar button.menu-section a:hover {
  color: hsla(204, 100%, 91.18%, 1);
}

/* ✦·┈๑⋅⋯ Footer ⋯⋅๑┈·✦ */

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: clamp(60px, 5.2vw, 100px);
  background-image: url('/main_assets/footer.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right bottom;
  z-index: 1000;
  min-width: unset;
}

.contact {
  position: absolute;
  top: 50%;
  right: 50px;
  transform: translateY(-30%);
  width: 400px;
}

.contact-list {
  font-family: 'clubbed to life';
  font-size: 22px;
  letter-spacing: 1px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  width: 300px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
}

.contact-list li a {
  text-decoration: none;
  color: white;
}

.contact-list li a:hover {
  color: #292B65;
  cursor: pointer;
}

.copyright {
  position: fixed;
  bottom: 2px;
  left: 10px;
  font-family: 'alte haas grotesk regular';
  font-size: 12px;
  color: white;
  z-index: 1000;
}

.copyright a {
  color: white;
  text-decoration: none;
}

/* ✦·┈๑⋅⋯ Project Page ⋯⋅๑┈·✦ */

.project-name-box {
  position: fixed;
  left: clamp(80px, 8vw, 300px);
  top: clamp(25px, 2.7vw, 120px);
  z-index: 1000;
  width: 300px;
  height: clamp(40px, 4vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1920px) {
  .project-name-box {
    left: clamp(200px, 7vw, 560px);
    top: clamp(25px, 2.85vw, 120px);

  }
}

.project-name {
  font-family: "clubbed to life";
  font-size: 24px;
  color: white;
  letter-spacing: 1px;
  text-align: center;
}

.project-menu {
  text-decoration: none;
  margin-left: 5px;
  font-family: "clubbed to life";
  font-size: 16px;
  color: #ffffff;
  text-align: left;
  letter-spacing: 1px;
}

.project-menu a {
  text-decoration: none;
  color: white;
}

.project-menu a:hover {
  color: hsla(204, 100%, 91.18%, 1);
  cursor: pointer;
}

.main-project {
  padding-top: 160px;
  padding-right: 100px;
  padding-left: 100px;
  flex: 1;
  min-width: 0;
  transition: margin-right 0.3s ease;
}

.main-project.pushed {
  margin-right: 200px;
  padding-left: 100px;
}

.arrow-right {
  position: fixed;
  right: 30px;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 1000;
}

.arrow-left {
  position: fixed;
  left: 30px;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 1000;
}

.arrow-text {
  font-size: 60px;
  text-decoration: none;
}

.arrow-text a {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 60px;
}

.arrow-text a:hover {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 70px;
  transition: font-size 0.3s ease;
  cursor: pointer;
}

/* ✦·┈๑⋅⋯ About ⋯⋅๑┈·✦ */

.about {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
}

.about-img {
  margin-right: 20px;
  margin-top: 25px;
  height: auto;
  min-width: 200px;
  width: 140vw;
  align-items: left;
}

.about-img img {
  border: 3px solid hsla(204, 100%, 91.18%, 0.4);
  border-radius: 20px;
  width: 100%;
}

.about-text {
  margin: 5px;
  padding: 5px;
  height: auto;
  padding-right: 1vw;
}

/* ✦·┈๑⋅⋯ Lightbox Overlay ⋯⋅๑┈·✦ */


.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 60px;
  cursor: pointer;
  font-family: 'clubbed to life';
  transition: font-size 0.3s ease;
}

.lb-left {
  left: 20px;
}

.lb-right {
  right: 20px;
}

.lb-arrow:hover {
  font-size: 70px;
}


/* ✦·┈๑⋅⋯ Mobile ⋯⋅๑┈·✦ */

@media (max-width: 768px) {

  html, body {
    background-attachment:fixed;
  }

  header {
    height: 100px; 
    background-size: 380%;   
  }

  nav {
    margin-right: -15px;
    height: 32px;
  }

  .nav-list li {
    width: 140px;
    height: 32px;
    margin-right: -20px;
    margin-left: 0;
  }

  .hamburger button {
    height: 32px;
  }

  .logo {
    top: 12px;
    left: 15px;
  }

  .logo img {
    height: 50px;
  }

  .project-name-box {
    left: 165px;
    top: 48px;
    width: 200px;
    height: 44px;
  }

  .project-name {
    font-size: 24px;
  }

  main {
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 80px;
    padding-bottom: 120px;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  main.hidden {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
  }

  .sidebar {
    position: fixed;
    top: 100px;
    right: 0;
    width: 220px;
    height: calc(100vh - 100px - 80px);
    padding-top: 30px;
    z-index: 998;
    transform: translateX(100%);
  }

  .sidebar.closed {
    transform: translateX(100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .img-text {
    flex-direction: column;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .img-text:hover {
    padding-left: 7px;
    padding-right: 7px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .left {
    padding-left: 0;
  }

  .text-medium {
    padding-top: 0;
    margin-top: 0;
  }

  .text-xsmall, .text-small {
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .left {
    width: 100%;
    min-width: unset;
    padding-left: 0;
    margin-right: 0;
    margin-left: 20px;
  }

  .right {
    padding: 0;
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }

  .right img {
    width: 90%;  
    margin: 0 auto;
  }

  footer {
    height: 50px;
    background-size: cover;
  }

  .contact {
    top: 50%;
    right: 20px;
    width: auto;
    transform: translateY(-30%);
  }

  .contact-list {
    font-size: 14px;
  }

  .contact-list li {
    width: auto;
    height: auto;
    margin-left: 10px;
  }

  .copyright {
    font-size: 6px;
    bottom: 1px;
    left: 2px;
  }

  .arrow-left {
    left: 10px;
  }

  .arrow-right {
    right: 10px;
  }

  .arrow-text a {
    font-size: 40px;
  }

  .scroll {
    height: auto;
  }

  .scroll img {
    width: 120px;
  }

  .scroll-text {
    padding: 20px;
  }

  .about {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 25px;
    display: flex;
  }

  .about-img {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: unset;
    max-width: 300px;
    margin: 0 auto;
    padding: 0;
  }

  .about-img img {
    width: 100%;
  }

  .about-text {
    padding: 0px;
    margin: 0px;
  }

  .lb-left {
    left: 10px;
    z-index: 1000;
  }

  .lb-right {
    right: 10px;
    z-index: 1000;
  }

  .lb-arrow {
    font-size: 40px;
  }

  .lb-arrow:hover {
    font-size: 50px;
  }

}