@import url("https://fonts.googleapis.com/css2?family=Anton&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  max-height: 100vh;
  overflow: hidden;
  background-color: #222222;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

p,
a {
  font-family: "Roboto", sans-serif;
}

header,
footer,
section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

header {
  background-color: #222222;
}

footer {
  background-color: bisque;
}

section {
  background-color: #222222;
}

.page-wrapper {
  transition: 2s;
}

/* PAGE CONTROLS */
.page-controls {
  position: absolute;
  z-index: 10;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-button {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  border: solid rgba(255, 255, 255, 0.8) 2px;
  background-color: transparent;
}

.page-button:hover {
  cursor: pointer;
}

.page-button:first-of-type {
  background-color: rgba(255, 255, 255, 0.5);
}

/* NAVIGATION */

.header-nav {
  position: fixed;
  z-index: 10;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 45%;
  height: fit-content;
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: 30px;
}

.header-nav a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0 10px;
  text-decoration: solid line-through rgba(0, 0, 0, 0);
  transition: text-decoration 1s;
}

.header-nav a:hover {
  text-decoration: line-through solid rgb(255, 255, 255);
  cursor: pointer;
}

.header-nav a:nth-child(2) {
  border-left: solid gray 1px;
  border-right: solid gray 1px;
  margin: 0 20px;
  padding: 0 20px;
}

/* header */
header {
  flex-direction: column;
}

.heading-wrapper {
  position: relative;
  width: 70%;
  margin: 0 auto;
  height: fit-content;
}

.heading {
  position: absolute;
  top: 0;
  left: 0;
}

.heading,
.heading-ghost {
  font-size: 3rem;
  text-align: center;
  color: white;
}

.heading-ghost {
  color: rgba(255, 255, 255, 0);
}

.header_buttons a {
  text-decoration: none;
  background-color: #f1f1f1;
  color: #222222;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  margin: 10px;
}

/* projects */
.project-overlay{
  position: absolute;
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(0,0,0,1));
  backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.project {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  padding: 0 2%;
  padding-bottom: 10%;
}
.project-link{
  color: black;
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
  margin-top: 10px;
  position: relative;
  font-size: 1.2rem;
}
.project-link::after, .footer_contacts a::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: 0.5s;
}
.project-link:hover::after, .footer_contacts a:hover::after{
  width: 100%;
}

.project1 {
  background: url("./img/projects/twitter2.png")
    center/cover no-repeat;
}

.project2 {
  background: url("./img/projects/last fm charts.png")
    center/cover;
}

.project3 {
  background: url("./img/projects/Song Trivia.png")
    center/cover;
}

.project-title,
.project-description,
.project-tags,
.project-buttons {
  background-color: rgb(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 10px;
}

.project-title {
  font-size: 2rem;
}

.project-description {
  max-width: 70%;
  font-size: 1.5rem;
}

.project-button {
  background-color: white;
  padding: 5px;
  display: inline-block;
  border-radius: 10px;
  text-decoration: none;
  color: black;
  margin-top: 10px;
  transition: 0.5s;
}

.project-button:hover {
  background-color: #f1f1f1;
}

.project-tags {
  display: flex;
  gap: 15px;
}

/* BENTO GRID */
.projects-bento {
  display: grid;
  grid-template-areas:
    "tile1 tile2 tile2 tile2"
    "tile1 tile4 tile3 tile3";

  grid-template-rows: 300px 300px;
  grid-template-columns: repeat(4, 200px);
  gap: 20px;
}

.tile {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.bento-description {
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.5s;
  background-color: rgba(255, 255, 255, 0.3);
}
.tile:hover .bento-description {
  transform: translateY(0);
}

.tile1 {
  grid-area: tile1;
  background: url("./img/projects/darker.png")
    center/cover;
}

.tile2 {
  grid-area: tile2;
  background: url("./img/projects/clothing.jpg")
    center/cover;
}

.tile3 {
  grid-area: tile3;
  background: url("./img/projects/landify.svg")
    center/cover;
}

.tile4 {
  grid-area: tile4;
  background: url("./img/projects/about-img-front.png")
    center/cover;
}

.tile5 {
  grid-area: tile5;
  background: url(https://images.unsplash.com/photo-1509114397022-ed747cca3f65?q=80&w=1035&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)
    center/cover;
}

/* footer */
footer {
  background-color: #222222;
  flex-direction: column;
  position: relative;
}

.footer-text {
  width: 70%;
  margin: auto;
  text-align: center;
  color: white;
}

.skill-set {
  display: flex;
  gap: 10px;
  margin:20px auto;
  width: 60%;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-set li {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  list-style-type: none;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transition: 0.5s;
}
.skill-set li:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.skill-set img {
  width: 100%;
  height: 100%;
}

.footer_contacts {
  position: absolute;
  bottom: -30px;
  background-color: #f1f1f1;
  width: 50%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: 0.5s;
}

.footer_contacts-container{
  padding-top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.footer_contacts:hover {
  bottom: 0;
}
.footer_contacts a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
  position: relative;
}

.footer_contacts img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

@media (max-width: 400px) {
  html {
    font-size: 12px;
  }
  .heading-wrapper {
    width: 80%;
  }
  .heading,
  .heading-ghost {
    font-size: 2rem;
  }
  .page-controls {
    right: 20px;
  }

  .page-wrapper {
    transition: 1s;
  }

  .header-nav {
    width: 90%;
  }
  .header-nav a:nth-child(2) {
    margin: 0 10px;
    padding: 0 10px;
  }
  .project {
    justify-content: center;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description {
    width: 80%;
    font-size: 0.8rem;
  }

  .project-tags {
    font-size: 1rem;
  }

  .projects-bento {
    padding: 10px;
    width: 90%;
    gap: 10px;
    grid-template-areas:
      "tile1 tile2"
      "tile3 tile4"
      "tile5 tile5";
    grid-template-rows: repeat(3, 22vh);
    grid-template-columns: 50% 50%;
  }
  .bento-description h3 {
    font-size: 1rem;
  }
  .bento-description p {
    font-size: 0.8rem;
  }
  .bento-description .project-button {
    font-size: 0.8rem;
  }
  .skill-set {
    width: 80%;
  }
  .skill-set li {
    width: 50px;
    height: 50px;
  }
  .footer_contacts {
    width: 70%;
    bottom: 0;
  }
}
