/* CUSTOM FONT */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap");

/* GENERAL */

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  width: 100%;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h5,
p {
  margin: 0;
}

.icon {
  height: 2rem;
  width: 2rem;
  margin: 0 0.5rem;
}

/* HERO */

#hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#hero__animation {
  animation-name: hover;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  height: 25rem;
  width: 25rem;
  max-height: 100vh;
  max-width: 100vw;
  margin: 0 auto;
}

#hero__animation__img {
  background-image: var(--tl-1);
  height: 100%;
  background-position: center;
  background-size: cover;
}

#hero__logo {
  margin-top: 3rem;
  text-align: center;
}

#hero__logo__img {
  height: 3rem;
  width: auto;
}

/* GRID COMMON STYLES */

#grid {
  position: absolute;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#grid__tl__btn,
#grid__tr__btn,
#grid__bl__btn,
#grid__br__btn {
  height: 18.75rem;
  width: 18.75rem;
  background: var(--bg);
  color: var(--text);
  border: var(--border);
  position: fixed;
  display: flex;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
  z-index: 100;
  border-radius: 40%;
  transition: transform 0.2s ease-in-out;
}

#grid__tl__content,
#grid__tr__content,
#grid__bl__content,
#grid__br__content {
  position: absolute;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  color: var(--text-alt);
}

#grid__tl__btn,
#grid__tr__btn {
  padding-bottom: 0.5rem;
  align-items: flex-end;
}

#grid__bl__btn,
#grid__br__btn {
  padding-top: 0.5rem;
}

#grid__tl__btn:active,
#grid__br__btn:active {
  transform: rotate(-45deg) scale(1.05);
}

#grid__tr__btn:active,
#grid__bl__btn:active {
  transform: rotate(45deg) scale(1.05);
}

/* TOP LEFT CORNER */

#grid__tl__btn {
  top: -11.5rem;
  left: -11.5rem;
  transform: rotate(-45deg);
}

#grid__tl__content {
  width: 30vw;
  top: 10vh;
  left: 0;
  transform: translateX(-100vw) translateY(-100vh);
}

article {
  background: rgb(245, 245, 245);
  font-size: 0.8rem;
  list-style: none;
  border: var(--border);
  border-radius: 2rem;
  padding: 0.5rem;
  margin: 1rem;
  width: 8.75rem;
  min-width: 8.75rem;
}

article h2 {
  font-size: 1rem;
  padding: 0.3rem;
}

article p {
  padding-bottom: 0.3rem;
}

article h2,
article p {
  color: #333;
}

.cards {
  padding: 1rem;
}

.cards__content {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cards__content__text {
  color: var(--text);
  text-align: left;
  margin: 0 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* TOP RIGHT CORNER */

#grid__tr__btn {
  top: -11.5rem;
  right: -11.5rem;
  transform: rotate(45deg);
}

#grid__tr__content {
  width: 30vw;
  top: 10vh;
  right: 0;
  transform: translateX(100vw) translateY(-100vh);
}

.experience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.experience__skill {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.5rem;
  margin: 0;
  width: fit-content;
  min-width: 19rem;
}

.experience__skill div {
  display: flex;
  align-items: center;
  width: 18rem;
  margin-bottom: 0.9rem;
}

.experience__skill div img {
  padding: 0;
  margin-right: 0.5rem;
}

.experience__skill div h2 {
  text-align: left;
}

.experience__skill div p {
  padding: 0;
}

.experience__skill div h2,
.experience__skill div p {
  font-size: 0.8rem;
}

.experience__skill div div {
  justify-content: space-between;
}

/* BOTTOM LEFT CORNER */

#grid__bl__btn {
  bottom: -11.5rem;
  left: -11.5rem;
  transform: rotate(45deg);
}

#grid__bl__content {
  width: 15rem;
  bottom: 15vh;
  left: 0;
  transform: translateX(-100vw) translateY(100vh);
}

.project {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  border-radius: 2rem;
  overflow: hidden;
  margin: auto auto 0.5rem;
  border: var(--border);
  background: var(--bg-alt);
}

@media (max-width: 1100px) {
  .project {
    width: 85%;
  }
}

.project__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .project__img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .project__img {
    height: 300px;
  }
}

.project__title {
  width: 100%;
  margin: 0;
  padding: 0.3rem 0;
  font-size: 1rem;
}

button {
  background: var(--btn);
  color: var(--btn-text);
  border: none;
  border-radius: 1rem;
  padding: 0.5rem;
}

.btn {
  border-radius: 0;
  height: 3rem;
  flex-basis: 50%;
  font-weight: 600;
}

.arrow {
  border: var(--border);
  width: 3rem;
  height: 2rem;
  margin: 0;
  padding: 0.2rem 0;
}

.btn,
.arrow {
  background: rgb(245, 245, 245);
  color: #333;
  transition: all 300ms ease;
}

.btn:active,
.arrow:active {
  background: var(--bg-alt);
  color: white;
  cursor: pointer;
}

.btn:hover,
.arrow:hover {
  cursor: pointer;
}

/* BOTTOM RIGHT CORNER */

#grid__br__btn {
  bottom: -11.5rem;
  right: -11.5rem;
  transform: rotate(-45deg);
}

#grid__br__content {
  bottom: 0;
  right: 0vw;
  transform: translateX(100vw) translateY(100vh);
}

#grid__br__content div {
  display: flex;
  margin: 0.5rem auto;
  gap: 1.2rem;
  width: 17rem;
}

#grid__br__content div:first-of-type {
  margin-bottom: 1rem;
}

.contact-text {
  color: var(--text);
}

.btn-contact {
  border: var(--border);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media screen and (max-width: 1100px) {
  #hero__logo {
    margin-top: -3rem;
    text-align: center;
  }
}

@media screen and (max-height: 820px) and (orientation: portrait) {
  #hero__animation {
    height: 18rem;
    width: 18rem;
    margin: 0 auto;
  }
  
  #hero__logo {
    display: none;
  }
  
  #hero__logo__img {
    height: 2.5rem;
  }
  
  #hero h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
  }
  
  #hero h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  
  #hero p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.5rem auto;
    max-width: 90%;
  }
  
  #grid__tl__btn,
  #grid__tr__btn,
  #grid__bl__btn,
  #grid__br__btn {
    height: 16rem;
    width: 16rem;
    font-size: 1.1rem;
  }
  
  #grid__tl__btn {
    top: -10rem;
    left: -10rem;
  }
  
  #grid__tr__btn {
    top: -10rem;
    right: -10rem;
  }
  
  #grid__bl__btn {
    bottom: -10rem;
    left: -10rem;
  }
  
  #grid__br__btn {
    bottom: -10rem;
    right: -10rem;
  }
}
