/* Custom styles that won't be overwritten by Tailwind */

.retro-menu-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 64px;
  height: 48px;
  border: 2px solid #4a4a4a;
  background: #b2ebb2;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  transform-origin: top left;
}

.retro-menu-btn:hover {
  transform: scale(1.08);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}

.retro-menu-btn span {
  width: 22px;
  height: 3px;
  background: #4a4a4a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.retro-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.retro-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.retro-menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.retro-menu-panel {
  position: fixed;
  top: 78px;
  left: 16px;
  min-width: 220px;
  padding: 10px;
  border: 2px solid #4a4a4a;
  background: #b2ebb2;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
  z-index: 5;
}

.retro-menu-panel a {
  display: block;
  padding: 8px 10px;
  color: #4a4a4a;
  text-decoration: none;
  font-family: 'Pixel Operator', 'VT323', monospace;
  font-size: 30px;
}

.retro-menu-panel a:hover {
  background: rgba(74, 74, 74, 0.08);
}

@media (max-width: 640px) {
  .retro-menu-btn {
    top: 12px;
    left: 12px;
  }

  .retro-menu-panel {
    top: 74px;
    left: 12px;
    min-width: 190px;
  }
}

.github-menu-btn {
  position: fixed;
  top: 16px;
  left: 106px;
  width: 64px;
  height: 48px;
  border: 2px solid #4a4a4a;
  background: #b2ebb2;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  transform-origin: top left;
}
.github-menu-btn:hover {
  transform: scale(1.08);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}

.github-menu-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.github-menu-btn img {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 640px) {
  .github-menu-btn {
    top: 12px;
    left: 95px;
    width: 64px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  #firstTextSection,
  #projectsSection {
    padding-left: 12px;
    padding-right: 12px;
  }

  #firstTextSection h1,
  #projectsSection h1 {
    font-size: 44px !important;
    line-height: 1.05;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #aboutMeContainer,
  #projectsContainer {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #firstTextSection p,
  #projectsSection p {
    font-size: 20px !important;
    line-height: 1.35;
  }

  .text-\[50px\] {
    font-size: 32px !important;
  }

  .text-\[25px\] {
    font-size: 18px !important;
  }

  .text-\[80px\] {
    font-size: 44px !important;
  }

  /* .github-menu-btn {
    top: 12px;
    left: 82px;
    width: 56px;
    height: 44px;
  } */

  .github-menu-btn img {
    width: 28px;
    height: 28px;
  }

  /* Keep language tags in original visual style on mobile. */
  #projectsContainer span.text-\[30px\] {
    font-size: 30px !important;
  }
}