/* Global styles */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-weight: 300;
  background-color: #1353F5;
  color: #ADFF14;
  line-height: 125%;
}

a {
  color: #ADFF14;
  text-decoration: none;
}

.text-link {
  display: inline-block;
  transform: translate3d(0, 0, 0);
  transition: ease-in-out .3s;
}

.text-link:hover {
  text-shadow: 0px -1px 3px rgba(173, 255, 20, .5), 0px -1px 12px rgba(173, 255, 20, .25);
  transform: translate3d(0, 1px, 0);
  transition: ease-in-out .3s;
}

body.main {
  font-family: 'Geist';
}

@font-face {
  font-family: 'tf2-build';
  src: url('./tf2-build.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tf2-secondary';
  src: url('./tf2-secondary.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Titles */
body.work h1, 
body.work h2, 
body.work h3, 
body.work h4, 
body.work h5, 
body.work h6, 
body.work button, 
.backpack__title {
  font-family: 'tf2-build', sans-serif; /* Apply tf2-build font to titles */
}

/* Regular texts, spans, links, etc. */
body.work, 
body.work p, 
body.work span, 
body.work a, 
.modal__description {
  font-family: 'tf2-secondary', sans-serif; /* Apply tf2-secondary font to regular texts */
}

/* Wallpogo styles */
.wallpogo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

h1, .wallpogo__name {
  font-family: 'Playfair Display', serif; /* Font for headings */
  letter-spacing: 0.5px;
}

.wallpogo__subtitle, .wallpogo__description, .wallpogo__footer-text {
  font-family: 'Geist', sans-serif; /* Font for subtitles and descriptions */
}

.wallpogo__container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 450px;
  position: relative;
  width: 100%;
  z-index: 4;
}

.wallpogo__content {
  text-align: center;
  flex: 1;
  padding: 2rem;
  border-radius: 24px;
  border: 2px solid #0033B2;
  background: radial-gradient(98.3% 98.3% at 50.12% 1.7%, #0747E7 39.89%, #083BBA 100%);
  box-shadow: 0px 4px 13px 0px rgba(102, 145, 255, 0.40) inset, 0px 4px 2px 0px rgba(102, 145, 255, 0.75) inset;
  animation: fadeInSlideUp 0.5s ease-out;
}

.wallpogo__name {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 5px;
}

.wallpogo__subtitle {
  font-size: 16px;
  margin: 8px 0 24px;
}

.wallpogo__description {
  font-size: 16px;
  margin: 0 0 24px;
}

.wallpogo__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.wallpogo__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 2px solid #002B97;
  background: #1353F5;
  box-shadow: 0px 0px 0px 1px #1F5AEC, 0px -5px 8px 0px rgba(0, 41, 142, 0.35) inset, 0px 5px 4px 0px rgba(102, 145, 255, 0.32) inset, 0px 0px 4px 0px rgba(0, 0, 0, 0.25) inset;
  height: 106px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 106px;
}

.wallpogo__buttons button {
  border: 0;
  background: 0;
  margin: 0;
  padding: 0;
}

.wallpogo__button,
.wallpogo__button--email {
  cursor: pointer;
}

.wallpogo__button:hover {
  box-shadow: 0px 0px 0px 1px #1F5AEC, 0px 0px 12px 0px rgba(0, 8, 27, 0.35) inset, 0px 0px 4px 0px rgba(0, 0, 0, 0.25) inset;
  transition: all 0.3s ease;
}

.wallpogo__button svg path {
  transition: all 0.3s ease;
}

.wallpogo__button svg {
  overflow: visible;
}

.wallpogo__button:hover svg path {
  fill: #CAD9FF;
  filter: drop-shadow(0px 0px 4px rgba(202, 217, 255, 0.32)) drop-shadow(0px 0px 25px rgba(255, 255, 255, 0.50)) drop-shadow(0px 0px 40px rgba(255, 255, 255, 0.50));
  transition: all 0.3s ease;
}

.wallpogo__button--email {
  font-size: 16px;
  font-weight: 500;
  color: #00298E;
  gap: 6px;
  padding: 10px 15px;
  width: auto;
  height: auto;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wallpogo__button--email:hover {
  box-shadow: 0px 0px 6px 0px rgba(0, 8, 27, 0.45) inset, 0px 0px 0px 1px #1F5AEC;
  color: #CAD9FF;
  text-shadow: 0px 0px 40px rgba(255, 255, 255, 0.50), 0px 0px 25px rgba(255, 255, 255, 0.50), 0px 0px 4px rgba(202, 217, 255, 0.32); 
  transition: all 0.3s ease;
}

.wallpogo__button--email:hover span svg path {
  fill: none;
  stroke: #CAD9FF;
  transition: all 0.3s ease;
}

.wallpogo__button--email span {
  display: flex;
}

.wallpogo__or-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 1rem;
  width: 100%;
}

.wallpogo__or-container .wallpogo__or-line {
  border-bottom: 1px solid #215df6f2;
  background: #00288C;
  height: 2.05px;
  width: 100%;
}

.wallpogo__or {
  font-size: 16px;
  font-weight: 500;
  color: #00298E;
}

.wallpogo__social-buttons {
  display: flex;
  gap: 1.2rem;
}

.wallpogo__button--social {
  font-size: 1.2rem;
}

.wallpogo__button-icon {
  width: 32px;
  height: 32px;
  fill: #00298E;
}

.wallpogo__image {
  bottom: 0;
  flex: 1;
  display: flex;
  max-width: 50%;
  opacity: 0;
  mix-blend-mode: overlay;
  right: 75px;
  animation: fadeIn 0.7s ease-out 0.5s forwards;
  position: absolute;
  z-index: 2;
}

.wallpogo__image a {
  cursor: default;
}

.wallpogo__image img {
  width: 100%;
  height: auto;
  opacity: 0.7;
  filter: grayscale(1);
}

.wallpogo__footer {
  animation: fadeIn 0.5s ease-out 0.3s forwards;
  bottom: 5px;
  position: absolute;
  opacity: 0;
  width: 100%;
}

.wallpogo__footer__content {
  align-items: center;
  display: flex;
  justify-content: center;
}

.wallpogo__footer-light {
  border-radius: 50%;
  border: 1px solid #D3FF81;
  background: radial-gradient(85.71% 85.71% at 50% 14.29%, #ADFF14 27.13%, #243504 100%), #D9D9D9;
  box-shadow: 0px 0px 26.46px 0px #ADFF14, 0px 0px 15.12px 0px #ADFF14, 0px 0px 8.82px 0px #ADFF14, 0px 0px 4.41px 0px #ADFF14, 0px 0px 1.26px 0px #ADFF14, 0px 0px 0.63px 0px #ADFF14;
  height: 7px;
  margin-right: 8px;
  width: 7px;
}

.wallpogo__footer-text {

  font-size: 10px;
}

/* Responsive styles */
@media (max-width: 1024px) {

  .main-splash-screen {
    display: none;
    padding: 0 20px;
  }

  .main-splash-screen-img {
    max-width: 656px;
    width: 100%;
  }

  .wallpogo {
    padding: 0 20px;
  }

  .wallpogo__container {
    display: block;
  }

  .wallpogo__content {
    max-width: 600px;
    padding: 1.4rem;
    width: 100%;
    margin-bottom: 18px;
  }

  .wallpogo__image {
    max-height: 250px;
    max-width: 100%;
  }

  .wallpogo__image {
    /* top: 4px;
    left: 90px;
    max-width: fit-content;
    transform: translate(-50%, 0px); */
    display: none;
  }


  .wallpogo__button {
    height: 78px;
    width: 78px;
  }

  .wallpogo__button--email {
    height: auto;
    width: auto;
  }

  .wallpogo__name {
    font-size: 20px;
  }

  .wallpogo__subtitle,
  .wallpogo__description,
  .wallpogo__button--email,
  .wallpogo__or,
  .main-splash-screen-text {
    font-size: 14px;
  }
}

/* Logs Page */

.math-logs .wallpogo {
  padding: 24px 0;
}

.math-logs .wallpogo__image {
  bottom: 50px;
  position: fixed;
}

.wallpogo__log-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.wallpogo__log-header {
  border-radius: 13px;
  border: 2px solid #002276;
  background: #072F94;
  box-shadow: 0px 0px 0px 1px #3972FF, 0px 0px 0px 1px #1F5AEC;
  padding: 10px 15px;
}

.wallpogo__log-header p {
  color: #CAD9FF;
  text-align: center;
  /* text-shadow: 0px 0px 30px rgba(255, 255, 255, 0.25), 0px 0px 20px rgba(255, 255, 255, 0.25), 0px 0px 4px rgba(202, 217, 255, 0.25); */
  font-family: Geist;
  font-size: 16px;
  font-weight: 200;
  margin: 0;
}

.wallpogo__log-imgs {
  align-items: center;
  border-radius: 13px;
  border: 2px solid #002276;
  background: #072F94;
  box-shadow: 0px 0px 0px 1px #3972FF, 0px 0px 0px 1px #1F5AEC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.wallpogo__log-imgs img {
  border-radius: 12px;
  border: 2px solid #00113c;
  box-shadow: 0px 0px 0px 1px #174ed8;
  max-width: 369px;
}

.wallpogo__log-divider {
  border-bottom: 1px solid #144DDD;
  background: #001037;
  height: 2.05px;
  width: 100%;
}

@media (max-width: 1480px) {
  .wallpogo__image img {
    max-width: 270px;
  }
}

.main-splash-screen.hidden {
  display: none; /* Hides the element */
}

.main-splash-screen {
  align-items: center;
  animation: fadeOut 800ms ease-out 3.2s 1 forwards;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  position: fixed;
  top: 50%;
  left: 50%;
  height: 100%;
  width: 100%;
  transform: translate(-50%, -50%);
  background-color: rgb(0, 0, 0);
  transition: all ease-in-out 600ms;
  z-index: 8;
}

.main-splash-screen-img {
  animation: fadeIn 1.3s ease-out 1 forwards;
}

@font-face {
  font-family: 'Server Mono';
  src: url('assets/ServerMono-Regular.woff2') format('woff2'), /* Adjust the path and format as necessary */
       url('assets/ServerMono-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.main-splash-screen-text {
  animation: fadeIn 1.5s ease-out 1.3s 1 forwards;
  color: #1454F4;
  font-family: 'Server Mono', monospace; /* Added font family */
  margin: 0;
  opacity: 0;
}

/* Work page */

body.work {
  align-items: center;
  background-color: #2A2725;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1C1C1C;
}

::-webkit-scrollbar-thumb {
  background: #3A3A3A;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4A4A4A;
}

.backpack {
  max-width: 1200px;
  margin: 0 auto;
}

.backpack__title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #E5E5E5;
}

.backpack__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}

.backpack__item {
  aspect-ratio: 1;
  width: 100%;
  background-color: #3C362E;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.backpack__item--filled {
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.backpack__item--blue { 
  border-color: #4A90E2; 
  background-color: rgba(74, 144, 226, 0.1);
}
.backpack__item--yellow { 
  border-color: #F5A623; 
  background-color: rgba(245, 166, 35, 0.1);
}
.backpack__item--purple { 
  border-color: #9013FE; 
  background-color: rgba(144, 19, 254, 0.1);
}
.backpack__item--orange { 
  border-color: #F5623D; 
  background-color: rgba(245, 98, 61, 0.1);
}

/* Add this to ensure empty items maintain size */
.backpack__item::before {
  content: "";
  padding-bottom: 100%;
  display: block;
  width: 0;
}

.backpack__item img {
  position: absolute;
  width: 85%;
  height: 85%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.backpack__item img.loaded {
  opacity: 1;
}

.backpack__pagination {
  display: flex;
  gap: 8px;
}

.backpack__page {
  border-radius: 7px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: baseline;
  background-color: #786C60;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.backpack__page:hover:not(.backpack__page--active) {
  background-color: #3A3A3A;
}

.backpack__page--active {
  background-color: #934739;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  opacity: 0;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.modal.visible {
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: auto;
  max-width: 1000px;
  background-color: #3C3736;
  border: 3px solid #F6E9C3;
  border-radius: 8px;
  display: flex;
  padding: 24px;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.visible .modal__content {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.modal__left {
  background-color: #1A1412;
  border: 2px solid #000000;
  margin-right: 24px;
  padding: 24px;
}

.modal__right {
  width: 300px;
}

.modal__main-image {
  width: 400px;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal__main-image.loaded {
  opacity: 1;
}

.modal__thumbnails {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.modal__thumbnail {
  width: 70px;
  height: 70px;
  border: 1px solid #4A4A4A;
  cursor: pointer;
  transition: border-color 0.3s ease;
  opacity: 0.7;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.modal__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.modal__thumbnail--active {
  border-color: #FFFFFF;
  opacity: 1;
}

.modal__title {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal__subtitle {
  color: #999;
  margin-bottom: 24px;
}

.modal__description {
  line-height: 1.6;
  color: #CCC;
  margin-bottom: 24px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.modal__close:hover {
  opacity: 1;
}

.modal__button {
  background-color: #766B5E; /* Button background color */
  border-radius: 6px; /* Button border radius */
  padding: 10px 25px; /* Button padding */
  color: #DCD7CA; /* Text color for the button */
  border: none; /* Remove default border */
  cursor: pointer; /* Change cursor to pointer */
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
  width: fit-content;
}

.modal__button:hover {
  background-color: #8B7B6A; /* Optional: Change background color on hover */
}

/* Loading spinner */
.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #3A3A3A;
  border-top: 3px solid #FFFFFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .backpack__grid {
    grid-template-columns: 1fr;
  }

  .modal__content {
    flex-direction: column;
    gap: 24px;
    padding: 40px 15px 20px;
  }

  .modal__left {
    margin-right: 0;
    padding: 10px;
  }

  .modal__right {
    width: auto;
  }

  /* Responsive Modal Styles */
  .modal__content {
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
  }

  .modal__main-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
  }

  .modal__thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
  }

  .modal__thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
  }
}


