/* Hamburger Icon */

@media (min-width: 1080px) {
  .burger-container {
    position: absolute;
    display: flex;
    justify-content: left;
    align-items: center;
    top: 1;
    left: 1;
  }
  .burger {
    /* This is to specify it's dimensions in the menu bar */
    /* In truth we're stacking 6 bars 3 rows 2 colums */
    display: flex;
    justify-content: center;
    z-index: 1100;
    position: fixed;
    width: 26px;
    height: 21px;
    cursor: pointer;
  }
  .burger div {
    position: absolute;
    width: 50%;
    height: 2px; /* The thickness of each bar */
    background-color: #fff; /* The color of each bar */
    transition: all 0.2s ease-in-out;
  }

  /* Bevelling the edges */
  .burger div:nth-child(odd) {
    /* bevelling the left side of the bars on the left icons 1 3 and 5 */
    left: 0;
    border-radius: 5px 0 0 5px;
  }
  .burger div:nth-child(even) {
    /* bevelling the right side of the bars on the right 2, 4, 6 */
    left: 50%;
    border-radius: 0 5px 5px 0;
  }
  .burger div:nth-child(1),
  .burger div:nth-child(2) {
    top: 0;
  }

  /* Specifying the positions of bars 2,3,4,5,6 */
  .burger div:nth-child(3),
  .burger div:nth-child(4) {
    /* Specifying the positions for bar 3 and 4 (row 2)*/
    top: 9px;
  }
  .burger div:nth-child(5),
  .burger div:nth-child(6) {
    /* speecifying the position for bar 5 and 6 ( row 3) */
    top: 18px;
  }

  /* When we click the burger menu... */
  .burger-open .burger div:nth-child(1),
  .burger-open .burger div:nth-child(6) {
    /* rotate them by 45 degrees to the left */
    transform: rotate(45deg);
    transform-origin: center; /* Ensure rotation around center */
    top: 5px; /* Adjust top position */
    /* left: 2px; Adjust left position */
    left: calc(50% - 2px);
  }
  .burger-open .burger div:nth-child(2),
  .burger-open .burger div:nth-child(5) {
    /* rotate them by 45 degrees to the right */
    transform: rotate(-45deg);
    transform-origin: center;
    top: 5px;
    left: calc(50% - 2px);
  }
  .burger-open .burger div:nth-child(1) {
    /* move it up bby 5px and to th eleft by 2px */
    top: 5px;
    left: 2px;
  }
  .burger-open .burger div:nth-child(2) {
    /* move up by 5px and to the left by som math. */
    top: 5px;
    left: calc(50% -2px);
  }
  .burger-open .burger div:nth-child(3) {
    left: -100%;
    opacity: 0;
  }
  .burger-open .burger div:nth-child(4) {
    left: 150%;
    opacity: 0;
  }
  .burger-open .burger div:nth-child(5) {
    top: 14px;
    left: 2px;
  }
  .burger-open .burger div:nth-child(6) {
    top: 14px;
    left: calc(50% -2px);
  }

  /* Navigation Stuff */
  /* Split column slide down navigation */
  .navigation {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    user-select: none;
    transition: 400ms ease-in-out;
    border: 1px;
  }
  .navigation:has(:nth-child(1):hover) {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .navigation:has(:nth-child(2):hover) {
    grid-template-columns: 1fr 2fr 1fr 1fr;
  }
  .navigation:has(:nth-child(3):hover) {
    grid-template-columns: 1fr 1fr 2fr 1fr;
  }
  .navigation:has(:nth-child(4):hover) {
    grid-template-columns: 1fr 1fr 1fr 2fr;
  }
  .nav-item {
    position: relative;
    height: 100vh;
    padding: 30px;
    font-style: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-200vh);
    transition: transform 0.85s ease-in-out;
  }
  .burger-open .nav-item {
    transform: translateY(0);
  }
  .nav-item::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
  }
  .nav-item-hover::after {
    opacity: 0.5;
  }
  .nav-item:nth-child(1)::after {
    background-color: rgba(90, 88, 88, 0.5);
  }
  .nav-item:nth-child(2)::after {
    background-color: rgba(95, 177, 202, 0.5);
  }
  .nav-item:nth-child(3)::after {
    background-color: rgba(111, 177, 102, 0.5);
  }
  .nav-item:nth-child(4)::after {
    background-color: rgba(218, 127, 127, 0.5);
  }

  .nav-item:nth-child(1) {
    background-image: url(/Src/Portfolio-pieces/0003.png);
    transition-delay: 300ms;
  }
  .nav-item:nth-child(2) {
    background-image: url(/Src/Portfolio-pieces/Conquest.png);
    transition-delay: 500ms;
  }
  .nav-item:nth-child(3) {
    background-image: url(/Src/Portfolio-pieces/Desolate\ 4.png);
    transition-delay: 700ms;
  }
  .nav-item:nth-child(4) {
    background-image: url(/Src/Portfolio-pieces/Combined.png);
  }
}

/* Menu bar styles */
.menu-bar {
  flex-direction: row;
  align-items: center;
  height: 3%;
  width: 100%;
  position: fixed; /* Keeps the menu at the top on scroll */
  left: 0;
  top: 0;
  transform: translatey(-100%);
  display: flex;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center; /* Centers the menu items */
  background-color: transparent;
  padding: 20px 0;
  top: 0;
  z-index: 1000; /* Ensures it stays above other elements */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
  transition: all 0.3s ease;
  padding-top: 16px;
  padding-bottom: 18px;
  /* border-bottom: .81px solid rgba(255, 255, 255, 0.137);   */
  /* gap: 20px; */
  transform: translatey(-100%);
  transition: transform 0.6s ease-out;
  /* gap: 20px; */
}
.menu-bar.active {
  transform: translatey(0);
}
/* Menu item styles */
.menu-item {
  margin: 32px 32px;
  position: relative;
  text-decoration: none;
  color: rgb(255, 255, 255);
  transition: color 0.3s ease;
}

/* Underline effect on hover */
.menu-item::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgb(255, 255, 255);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.menu-item:hover::after {
  transform: scaleX(1);
}

.menu-item:hover {
  color: #555; /* Slightly different color on hover */
  cursor: pointer;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #111;

  margin: 0;
  padding: 2rem;
  color: #333;
}

h1 {
  text-align: center;
  margin-top: 4rem;
  color: rgb(223, 185, 116);
  margin-bottom: 2rem;
  transition: 0.2s ease-in-out;
}
h1:hover {
  cursor: pointer;
}

.card {
  background: #242323;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

h2 {
  color: #4c51bf;
  margin-bottom: 1rem;
}

/* Code box */
pre {
  background: #1e1e1e;
  color: #dcdcdc;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Demo wrapper */
.demo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #242323;
  border: 1px solid #181717;
  border-radius: 15px;
  padding: 2rem;
  height: 500px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

iframe:hover {
  transform: scale(1.01);
}

.overlay {
  position: fixed;
  display: flex;
  justify-content: center; /*centers horizontally */
  align-items: center; /*centers vertically */

  top: 0;
  left: 0;
  height: 100vh;
  width: 0%;
  backdrop-filter: blur(0px);

  opacity: 0;
  transition: 0.3s ease-in-out;
}
.overlay.active {
  justify-content: center; /*centers horizontally */
  align-items: center; /*centers vertically */
  /* flex-direction: column; */
  backdrop-filter: blur(50px);

  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;

  transition: 0.3s ease-in-out;
  opacity: 1;
  /* overflow: hidden; */
}
.container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(100px);
  color: rgb(167, 165, 165);

  padding: 25px;
  border-radius: 20px;
  width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Notebook-style documentation card */
.container pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: hidden;

  /* background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 0px,
    transparent 28px
  ); */

  backdrop-filter: blur(10px);
  color: #e6e6e6;

  padding: 2.1rem;
  border-radius: 12px;
  font-size: 1.15rem;
  line-height: 1.8rem;
  font-family: "Segoe UI", sans-serif;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin: 1.2rem 0;

  /* border-left: 6px solid rgba(255, 255, 255, 0.2); */
}

.card:hover {
  opacity: 1;
}
