@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Vend+Sans:ital,wght@0,300..700;1,300..700&display=swap');

* {
  font-family: "Vend Sans", sans-serif;
}

html {
  overflow: hidden;
}

main {
  filter: blur(0px);
  transition: all 0.3s;
}

body {
  margin: 0px;
  min-height: 100vh;
  width: 100%;
  background-color: black;
  overflow: hidden;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

h1 {
  font-family: "Doto", sans-serif !important;
  user-select: none;
}

.grid {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}

.square {
  border: 1px solid rgba(0, 0, 255, 0.232);
  background-color: var(--square-color);
  width: calc(100% / var(--grid-width));
  height: calc(100vh / var(--grid-height));
  box-sizing: border-box;
  opacity: 0;
  overflow: hidden;
}

.project-square {
  background-color: var(--project-color);
  box-shadow: 0px 0px 30px rgba(0, 0, 255, 0.774);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1000 !important;
  cursor: pointer;
  padding: 4px;
}

.project-square:hover {
  background-color: rgb(255, 0, 0) !important;
}

.title-preview {
  font-size: 5px !important;
  pointer-events: none;
}

#project {
  position: absolute;
  width: 600px;
  height: 600px;
  transform: translateX(-50%) translateY(-50%) rotateY(90deg);
  background-color: black;
  border: 2px solid var(--project-color);
  box-shadow: 0px 0px 50px rgba(0, 81, 255, 0.51);
  z-index: 2000;
  left: 50%;
  top: 50%;
  transition: all 0.3s;
  box-sizing: border-box;
  overflow: hidden;
  color: white;
}


#project>div {
  height: 40%;
  box-sizing: border-box;
}

#project>div:first-child {
  padding: 7%;
  height: 60%;
}

#project-title {
  margin-top: 0px;
  margin-bottom: 0px;
}

#project-subtitle {
  margin-top: 0px;
}

#project-year {
  margin-top: 0px;
  font-style: italic;
}

#project-description {
  font-size: 0.8rem;
}

#project-description>a {
  color: var(--project-color)
}

#project-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#project-image>div {
  flex: 1;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition: all 0.5s;
}

#project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.technology {
  color: black;
  background-color: white;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 1000px;
}

#title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 10rem;
  color: var(--project-color);
  transition: all 1s;
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

#subtitle {}

#menu {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateX(-50%) translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--project-color);
  box-shadow: 0px 0px 20px rgb(0, 26, 255);
  border-radius: 1000px;
  padding: 12px;
  z-index: 3000;
  cursor: pointer;
  transition: all 0.2s;
}

#menu:hover {
  background-color: red;
  box-shadow: 0px 0px 500px red;
}

#menu:hover~main {
  filter: blur(10px);
}

#menu>a {
  position: absolute;
  opacity: 0;
  transition: all 0.2s;
  transform: translateY(-20px);
}

.show-menu {
  height: 210px !important;
}

.show-menu-item {
  opacity: 1 !important;
}

#who-am-i {
  position: absolute;
  right: 1%;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  z-index: 1000;
  width: 300px;
  font-size: 1.5rem;
  text-align: center;
}

#who-am-i:has(h2:hover)~main {
  filter: blur(10px);
}

#who-am-i>img {
  width: 100px;
  opacity: 0;
  transition: all 0.3s;
  mix-blend-mode: darken;
  transform: translateY(10%);
  z-index: -1;
}

#who-am-i>img:has(+ h2:hover) {
  transform: translate(0px);
  opacity: 1;
  filter: drop-shadow(0px 0px 20px rgba(255, 0, 0, 0.521));
}

#who-am-i>h2 {
  background-color: transparent;
  margin: 0px;
  text-align: right;
  font-family: "Doto", sans-serif;
}

#who-am-i>h2:hover {
  cursor: help;
  text-shadow: 0px 0px 10px red;
}

#who-am-i>p {
  opacity: 0;
  transition: all 0.5s;
  font-size: 1rem;
  margin: 0px;
  transform: translateX(100%);
  text-align: right;
  color: rgba(255, 255, 255, 0.534);
}

#who-am-i>h2:hover~p {
  opacity: 1;
  transform: translateX(0%);
}

@media(max-width: 600px) {
  #title {
    font-size: 3rem;
  }

  #menu {
    display: none;
  }

  #project {
    width: 90%;
  }

  #who-am-i {
    transform: translateY(-70%);
  }

  #who-am-i>p {
    transform: translateY(100%);
  }

}